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.

Battle vs Chess OSX - TPAK archives

Featured Replies

  • Author
  • Localization

AlphaTwentyThree, posted Tue Sep 30, 2014 6:26 am (597)


Hello there! I can't figure out the TPAK format from this game... Can anybody give me a hint or even write a little script? Would be wonderful! :)
Here's a sample: http://rcepyzc6yx.1fichier.com/
Thanks for all your work! :)
  • Author
  • Localization

aluigi, posted Tue Sep 30, 2014 12:55 pm (598)


The format is "similar" to the one used by some games developed by the same people.
Armageddon Riders Clutch, Insane 2 and possibly other Targem games:
http://aluigi.org/papers/bms/clutch.bms

But it's not fully compatible.
In the other games the compressed data was zlib with the first 2 bytes modified.
Here I have tried to add, replace and "mix" the 2 missing bytes without luck using offzip.
I even tried to use the compression scanner over it, nothing.
  • Author
  • Localization

AlphaTwentyThree, posted Tue Sep 30, 2014 1:23 pm (599)


Thanks for trying Luigi! :)
Does anybody else here have experience in compression methods and could help me out?
  • Author
  • Localization

aluigi, posted Tue Sep 30, 2014 2:22 pm (600)


The problem is related to obfuscation, not to compression.
  • Author
  • Localization

AlphaTwentyThree, posted Tue Sep 30, 2014 3:17 pm (601)


Ah ok. Just to be sure: It means that it's some standard compression like zlib but the deliberately changed bits to make the files harder to access - right?
  • Author
  • Localization

aluigi, posted Tue Sep 30, 2014 5:44 pm (607)


Yes.
The other games do something like this:
zlib_data[0] = random_number;
zlib_data[1] = random_number;
That's why in my script I set them to 0x78 and 0x9c.
  • Author
  • Localization

AlphaTwentyThree, posted Thu May 05, 2016 6:48 pm (13141)


Here's an example from Battle vs. Chess: Dark Desert: http://www37.zippyshare.com/v/J0dt3lC8/file.html
Here, the clutch.bms doesn't work either. Is this a similar problem or can this be solved with a simple update?
  • Author
  • Localization

aluigi, posted Fri May 06, 2016 6:51 am (13162)


I think that both the names and the toc are encrypted or obfuscated.
In the meantime I have updated the script to version 0.3.1 simply for handling the endianess (big endian here) and for a particular 32bit that is used only here, but it can't work without the toc.
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.