Tool/script to unpack/repack unknown format [Mortal Kombat Shaolin Monks ewdf]

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Tool/script to unpack/repack unknown format [Mortal Kombat Shaolin Monks ewdf]

Post by aluigi »

Script 0.1.5
TotalMK
Posts: 12
Joined: Wed Mar 04, 2020 11:48 am

Re: Tool/script to unpack/repack unknown format [Mortal Kombat Shaolin Monks ewdf]

Post by TotalMK »

Working perfectly, thank you!
toasty333
Posts: 5
Joined: Wed Nov 04, 2020 3:41 pm

Re: Tool/script to unpack/repack unknown format [Mortal Kombat Shaolin Monks ewdf]

Post by toasty333 »

Everytime I try unpacking the file I get an error message from quickbms.

BMS script selected: mksm_ewdf.bms 0.1.5
File selected: GAMEDATA.WAD (398,250 KB, from NTSC version)

Message I get:

Can't read 64 bytes from offset f580001c.
Anyway don't worry, it's possible that the BMS script has been written
to exit in this way if it's reached the end of the archive so check it
or contact its author or verify that all the files have been extracted.
Please check the following coverage information to know if it's ok.

coverage file 0 0% 24 407808000 . offset f580001c

Last script line before the error or that produced the error:
53 log "" OFFSET SIZE

I even tried unpacking the same file from the PAL version and I got the exact same message. I see other people managed to do it without trouble, any clues?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Tool/script to unpack/repack unknown format [Mortal Kombat Shaolin Monks ewdf]

Post by aluigi »

@toasty333
Please provide the file so I can check it.
It's enough to upload just the first few megabytes in case you can't upload it full.
toasty333
Posts: 5
Joined: Wed Nov 04, 2020 3:41 pm

Re: Tool/script to unpack/repack unknown format [Mortal Kombat Shaolin Monks ewdf]

Post by toasty333 »

I attached the first 5MB of GAMEDATA.WAD for you to see. There was a size limit for uploads, if it's not enough I can host a bigger sample somewhere else.

I noticed that if I manually gather the files from GAMEDATA.WAD with a hex editor and put them in a separate file (copypasting bytes), I can run your .bms script flawlessly on them. However if I try running said script on the previously mentioned container file then it crashes.

Also found this thread the other day and it seems the OP managed to run the script on the whole container if I'm not wrong: https://zenhax.com/viewtopic.php?t=8851

thanks in advance!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Tool/script to unpack/repack unknown format [Mortal Kombat Shaolin Monks ewdf]

Post by aluigi »

toasty333
Posts: 5
Joined: Wed Nov 04, 2020 3:41 pm

Re: Tool/script to unpack/repack unknown format [Mortal Kombat Shaolin Monks ewdf]

Post by toasty333 »

It's working perfectly now, thanks a lot!
GeoZiphGZ
Posts: 4
Joined: Sun Feb 02, 2020 1:06 am

Re: Tool/script to unpack/repack unknown format [Mortal Kombat Shaolin Monks ewdf]

Post by GeoZiphGZ »

Has anyone ripped models from this game yet? if so how? :? :?
Alpha1001
Posts: 37
Joined: Tue Nov 06, 2018 10:11 am

Re: Tool/script to unpack/repack unknown format [Mortal Kombat Shaolin Monks ewdf]

Post by Alpha1001 »

Hi