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.

Kung Fu Panda 2 *.RES Script Help

Featured Replies

  • Author
  • Localization

Anexenaumoon, posted Sun Jul 29, 2018 4:55 am (37078)


Recently begun attempting to create tools to extract the models of the PS3 edition of this game. (I'm aware that the game's formats are on ps23dformat, but all scripts there are terrible and do not export anything correctly.) So, I got most of the format down of the *.RES files that are in the file system. However, whenever I log around filenum 600 , it throws an error that it can't read x amount of bytes from the memory file I have to write. There is a zlib compressed stream at 0x100 in all of the files. It's a very easy format, but I just can't figure out what's wrong in my script in order to extract them fully. There is no file names, so I conventionally named them based off # and extension. Attached is my script below, and link to a sample (Sorry its 30MB, that was like one of the smallest ones). Any help appreciated. Thanks!

~Eric

Guji Camp RES

kfp2_res.bms

  • Author
  • Localization

aluigi, posted Tue Jul 31, 2018 4:44 am (37117)


There are at least 2 compressed zlib data streams in that file (second offset 0x006715c0) but I don't think the 32bit field after the 4bytes name is an offset.
  • Author
  • Localization

Anexenaumoon, posted Tue Jul 31, 2018 5:01 am (37119)


The 32bit field at 0x14 points to another part of compressed zlib data as well. This makes me wonder if The files are split up between each of these compressed parts or if those parts are decompressed at all and the second part is appended to the first.
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.