ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Thu Dec 13, 2018 3:03 pm

All times are UTC




Post new topic  Reply to topic  [ 12 posts ] 
Author Message
PostPosted: Tue Nov 06, 2018 11:09 am 

Joined: Tue Nov 06, 2018 10:11 am
Posts: 16
Hi aluigi, I want to translate the Mortal Kombat Shaolin Monks game and I would like to know if you can make for me an script to unpack the below files. I've splitted the file into 2 parts using the "files_cutter.bms" script. Thanks in advance!
https://drive.google.com/file/d/1h6gt1l ... p=drivesdk

https://drive.google.com/file/d/1B9WXSW ... p=drivesdk


Top
   
PostPosted: Wed Nov 07, 2018 11:09 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9471
It's a container of archived files without header or tail for the information.
Check if you have a small file called GAMEDATA with a different extension or *index* or *idx* something.


Top
   
PostPosted: Thu Nov 08, 2018 5:52 pm 

Joined: Tue Nov 06, 2018 10:11 am
Posts: 16
Hi aluigi, I think that TOC (header) is in these 2 files https://drive.google.com/file/d/17QAvgc ... -gCWwNY4-g mainly in the WADCRC.BIN


Top
   
PostPosted: Fri Nov 09, 2018 10:44 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9471
Eh no, there is no TOC in them.
I searched both the offset and aligned offset of one of the files.


Top
   
PostPosted: Thu Dec 06, 2018 7:29 pm 

Joined: Tue Nov 06, 2018 10:11 am
Posts: 16
Hi aluigi, I managed to find something infos about the GAMEDATA.WAD, I did some tests to make the pointer of a file point to the other and it worked out in the game. The infos for each file into archive is an 8 bytes field, the 4 first bytes are the offset to a file into archive, the 4 first bytes *800=offset of beginning of file, the next 6 bytes it seems the filesize but I didn't understood the last 6 bytes. The TOC is in the GAMEDATA.WAD, replacing 8 bytes of a field that contains infos for the beginning of a texture in English by 8 bytes of the same texture in Spanish for example, I can make the game read the texture of Spanish instead of English.
So, with these infos do you think that is possible make an script now?
This TOC is similar to the ZDIR.BIN TOC in the Need for Speed series.


Top
   
PostPosted: Fri Dec 07, 2018 10:50 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9471
What you are seeing is the PWF file itself, there are N PWF files without any reference and probably other formats (non-PWF) too.
If you are talking about another TOC tell us its offset.


Top
   
PostPosted: Sun Dec 09, 2018 5:48 pm 

Joined: Tue Nov 06, 2018 10:11 am
Posts: 16
Hi, I want to say that the TOC is after the PWF string, as you said there is no PWF files inside the GAMEDATA, inside the GAMEDATA there is only many EWDF files and P2N textures.


Top
   
PostPosted: Sun Dec 09, 2018 6:07 pm 

Joined: Tue Nov 06, 2018 10:11 am
Posts: 16
The offset to the first file is in 0x20, e.g: in the 0x220 offset there is the pointer to the EWDF archive that contains the Main Menu textures. The value of this pointer is 570A, A57*800= EWDF archive with textures.


Top
   
PostPosted: Sun Dec 09, 2018 10:14 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9471
Ok I have updated the script http://aluigi.org/bms/mksm_ewdf.bms

It looks like there is still some space at the end of the WAD archive that is not parse and the SIZE field is a mess, but currently it works.


Top
   
PostPosted: Mon Dec 10, 2018 9:41 am 

Joined: Tue Nov 06, 2018 10:11 am
Posts: 16
Thanks aluigi, I've tested the bms script here and some files have been extracted. However, an error message is showed after the extraction, "this message is related with the command in the 47 line "clog NAME OFFSET SIZE XSIZE". I've replaced the XZIZE with ZSIZE and now 2959 files are extracted, but all files has 0 bytes in filesize, probably because the SIZE field is really a mess in this format.


Top
   
PostPosted: Mon Dec 10, 2018 9:48 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9471
Updated script, version 0.1.4.
Let me know if it works.


Top
   
PostPosted: Mon Dec 10, 2018 11:13 am 

Joined: Tue Nov 06, 2018 10:11 am
Posts: 16
Working perfectly, 2959 files extracted properly with valids filesize. Thank you very much!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 12 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