Compress unknown file to " .res"

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Unknown user
Posts: 13
Joined: Thu Sep 20, 2018 6:03 pm

Compress unknown file to " .res"

Post by Unknown user »

Hello, you see, I'm looking for a script that can convert the files that are the animations of the game Dragon Ball Z Budokai Tenkaichi 3 to a format that is legible in Dragon Ball Z Budokai Tenkaichi Tag Team.

There is, yes, a tool that apart from converting these animation files from Tenkaichi 3 format to Tenkaichi Tag Team, read the game, and expand it to the maximum, the problem is that to convert this, the tool generates a folder and in it must place the files and then in the same tool you have to enter the name plus the extension, well, the case is that after using it, be one or three times, the program is stuck, you have to go with the administrator of tasks to close and that is a disadvantage that I hope to fix.

The fact is that if there is, or not, a Script that does this without the need to use such a tool, I stress that in Tenkaichi 3 the script that is used to compress the animations are BPE, this, only in Tenkaichi 3. The tool boots the file with the extension ".res", search but I did not find results.

Here I leave a file in the format of Tenkaichi 3 and one that is already in the Tenkaichi Tag Team format in a ".rar", if they perform some tests and compare the result is the same.

Thank you.
Last edited by Unknown user on Wed Oct 03, 2018 5:28 pm, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Compress File from Tenkaichi 3 to Tenkaichi Tag Team

Post by aluigi »

The res file uses zlib compression, not sure if this is what you need:

Code: Select all

endian big
get SIZE long
get ZSIZE long
savepos OFFSET
get NAME basename
clog NAME OFFSET ZSIZE SIZE
Unknown user
Posts: 13
Joined: Thu Sep 20, 2018 6:03 pm

Re: Compress File from Tenkaichi 3 to Tenkaichi Tag Team

Post by Unknown user »

That, unzip the ".res" format to the Tenkaichi 3 format, it does not compress, yet I thank you for that, but, it's not what I'm looking for.
Unknown user
Posts: 13
Joined: Thu Sep 20, 2018 6:03 pm

Re: Compress File from Tenkaichi 3 to Tenkaichi Tag Team

Post by Unknown user »

Help?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Compress File from Tenkaichi 3 to Tenkaichi Tag Team

Post by aluigi »

Code: Select all

comtype zlib_compress
endian big
get SIZE asize
log MEMORY_FILE 0 0
put SIZE long MEMORY_FILE
put 0 long MEMORY_FILE
append
clog MEMORY_FILE 0 SIZE SIZE
append
get SIZE asize MEMORY_FILE
math ZSIZE = SIZE
math ZSIZE - 8
goto 4 MEMORY_FILE
put ZSIZE long MEMORY_FILE
get NAME filename
string NAME + ".res"
log NAME 0 SIZE MEMORY_FILE
Unknown user
Posts: 13
Joined: Thu Sep 20, 2018 6:03 pm

Re: Compress unknown file to " .res"

Post by Unknown user »

Wow, incredible, thanks <3