Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

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

Featured Replies

  • Author
  • Localization

aluigi, posted Fri Nov 09, 2018 7:02 pm (40232)


Name of the game?
Remember to write ever the name of the game in the title.
  • Author
  • Localization

Alpha1001, posted Fri Nov 09, 2018 7:47 pm (40236)


Mortal Kombat Shaolin Monks
  • Author
  • Localization

Alpha1001, posted Fri Nov 09, 2018 8:51 pm (40240)


Thanks!
  • Author
  • Localization

Alpha1001, posted Fri Nov 09, 2018 9:16 pm (40242)


Hey aluigi, the script works fine to decompress the EWDF, but the recompression/reimport won't work "the file is too big" after decompressed. I've searched on the Wikipedia about the Deflate algorithm, the ZIP format uses it, I've tested with the Winrar and the PKZIP but the game crashes. I think that because of header in the ZIP archives are differents, the filesize is in other offset... So, you can make/implement an small tool to recompress this Deflate version specifically to the game?
  • Author
  • Localization

aluigi, posted Sat Nov 10, 2018 2:38 pm (40259)


I have updated the script for automatically acting as rebuilder if the input file doesn't have the ewdf extension.

Usually I never write rebuilders but this format was very simple :)
  • Author
  • Localization

Alpha1001, posted Sat Nov 10, 2018 4:32 pm (40261)


Hi, the script works to rebuild the ewdf decompressed, but if I translate all the texts of a file that I have here, keeping the original filesize (4390 bytes) after rebuild the ewdf becomes larger and the game freezes, now if I translate an small text block the game works fine. There is something with the repeated strings or chars (amount details) even keeping the original filesize? Is possible to achieve always the same size of original archive keeping the same size in the modified file (improve the compression level)?
  • Author
  • Localization

aluigi, posted Sat Nov 10, 2018 7:30 pm (40263)


I have just noticed 2 additional fields at the end of the ewdf archive.
Script 0.1.2
  • Author
  • Localization

Alpha1001, posted Sat Nov 10, 2018 10:35 pm (40270)


I've tested here, but this message error is showed after select the ewdf decompressed http://imgur.com/ZvkAhuN
  • Author
  • Localization

aluigi, posted Mon Nov 12, 2018 10:49 am (40293)


Here everything works perfectly:
quickbms.exe mksm_ewdf.bms y_hud_v01.P2N
  • Author
  • Localization

Alpha1001, posted Tue Nov 13, 2018 2:33 pm (40330)


Now is working here too, thanks!
  • Author
  • Localization

Alpha1001, posted Sat Nov 17, 2018 10:28 am (40441)


I've inserted several files and so far it has worked fine, but now I've found that file https://drive.google.com/file/d/11z_Rtw ... p=drivesdk that is making the game freeze after recompression. Maybe there is a difference in compressing this file to others or does the script have to be adapted to it? You can check this file, the decompression works normal, but after. recompress the game freezes
  • Author
  • Localization

aluigi, posted Mon Nov 19, 2018 10:06 pm (40517)


Give it an ewdf extension because the script is instructed to extract the files with such extension and repacking those with any other extension (or no extension at all like your sample).
  • Author
  • Localization

Alpha1001, posted Mon Nov 19, 2018 11:12 pm (40521)


After I decompress this file the extension is .bin (a text file called h.bin). The problem is with the recompression, I don't know if the game uses CRC checking for this file to detect changes in the original content, because the others ewdf works fine recompressed.
  • Author
  • Localization

phantaton, posted Wed Dec 19, 2018 8:35 pm (41520)


I tried using the script to unpack GAMEDATA.WAD from the E3 build of the game and it's not working. Not really sure what is different about the older build's .wad file but here it is if anyone wants to mess with it:
https://drive.google.com/file/d/1hVNSFhMbe358Y1da5hRDjPTToCsCoCS7/view?usp=sharing
  • Author
  • Localization

TotalMK, posted Sat Oct 10, 2020 12:24 pm (59212)


Need some Further help with this script I am using version 1.0.4

The bms unpacks GAMEDATA.WAD, in those files there are additional .WAD files (example: ES_00000047.WAD)
I tried running the script again on these but get the Error (see attached image)

Tried changing the extension to .ewdf also didn't work.

Download file for further analysis:
http://www.totalmk.me/ES_00000047.rar
  • Author
  • Localization

TotalMK, posted Tue Oct 13, 2020 4:05 am (59382)


I gave it a go on the wad I posted and another .wad but unfortunately it didn't work
  • Author
  • Localization

aluigi, posted Tue Oct 13, 2020 8:22 am (59389)


Script 0.1.5
  • Author
  • Localization

TotalMK, posted Tue Oct 13, 2020 5:49 pm (59403)


Working perfectly, thank you!
  • Author
  • Localization

toasty333, posted Wed Nov 04, 2020 3:49 pm (59955)


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?
  • Author
  • Localization

aluigi, posted Mon Nov 16, 2020 6:12 pm (60331)


@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.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.