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
Kung Fu Panda 2 *.RES Script Help
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: Kung Fu Panda 2 *.RES Script Help
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.
-
- Posts: 119
- Joined: Sun Dec 27, 2015 10:22 pm
Re: Kung Fu Panda 2 *.RES Script Help
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.