ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Tue Sep 26, 2017 9:19 am

All times are UTC




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sun Sep 10, 2017 11:19 pm 

Joined: Fri May 27, 2016 2:28 pm
Posts: 43
Hello

I'm unpacked a ".big" archives of MVF 2005 game by EA. Some unpacked files have '0x10BF' bytes at beginning, so looks like a 'firm' EA compression DBPF. Decompression of these files is possible?

The File infos block from ".big" archives not contain a uncompressed sizes of that files. So, I'm tried commands like 'Clog fileName fileOffset compressedSize comressedSize' or 'Clog fileName fileOffset compressedSize 100000' with seted 'comtype DBPF'. How obvious, this give a error because of wrong uncompressed sizes.


Attachments:
DBPF_samples.zip [976.15 KiB]
Downloaded 7 times
Top
   
PostPosted: Mon Sep 11, 2017 8:49 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 6721
It's the refpack algorithm which I call dk2 in quickbms becuse the first time it has been reverse engineered was with Dungeon Keeper 2, but don't worry you can call it comtype EA or comtype RefPack too.
The decompressed size is calculated automatically so it's enough to use the following:
Code:
comtype dk2
get SIZE asize
clog "out.dat" 0 SIZE SIZE
comtype dk2_compress performs the recompression in case you are interested in it.


Top
   
PostPosted: Mon Sep 11, 2017 2:39 pm 

Joined: Fri May 27, 2016 2:28 pm
Posts: 43
Thanks =)

So the unpack script looks now:

Code:
#MVP Baseball 2005 *.big 'BIGF' #Electronic Arts 

comtype EA
IDString "BIGF"

get bigfSz long
endian big
get fileCnt long
get dataOffset long

for I = 1 to fileCnt
endian big
get fOffset long
get fSize long
endian little
get fName string

savepos curPos
goto fOffset
get comID short

if comID == 0xFB10
cLog fName fOffset fSize fSize
else
log fName fOffset fSize
endif

goto curPos
next I


And BIGF samples in attach just in case )


Attachments:
BIGF_samples.zip [4.83 MiB]
Downloaded 6 times
Top
   
PostPosted: Mon Sep 11, 2017 4:31 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 6721
Why not using the existent script?
http://aluigi.org/bms/ea_big4.bms


Top
   
PostPosted: Tue Sep 12, 2017 10:31 pm 

Joined: Fri May 27, 2016 2:28 pm
Posts: 43
aluigi wrote:
Why not using the existent script?
http://aluigi.org/bms/ea_big4.bms


I'm not found that. And just write a script for self was more interesting :D


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited