im in need to extract this .dat Files from the very old Yakuza Playstation2 Game.
I searched this Page and Google, but did not found a working Script.
Im not sure if this Info is right or help, but was the closest i found
The compression is a LZ RenauCode: Select all
/*------------------------------------------------------------------------------
DAT file structure:
- header
+ 4 bytes: number of files, low endian
+ for each file
- 4 bytes: LBA, low endian
+ fill
- aligned to 0x800 bytes, padded with 0x00
- data
+ X bytes: encoded data
+ fill
- aligned to 0x800 bytes, padded with 0x00
------------------------------------------------------------------------------*/Code: Select all
/*------------------------------------------------------------------------------
LZR file structure:
- header
+ 2 bytes: signature, always "CM"
+ 4 bytes: decoded length, low endian
+ 4 bytes: encoded data length, low endian
- data
+ X bytes: encoded data
+ Y bytes: flags
- fill
+ aligned to 0x800 bytes, padded with 0x00
'flag' data, 8 bits, right to left:
- 0: uncompressed data, copy 1 byte to 'target'
- 1: compressed data, copy 'length+3' bytes from 'target-offset-1' to 'target'
+ 12-bits offset, bits 0-11
+ 4-bits length, bits 12-15
------------------------------------------------------------------------------*/
Would be very nice if i can get some help, maybe someone allready worked on the PS2 Version ?
I attached 3 Files to Test for the USA Language.
To bad that Sega did not use the Language Files from the PS2 Game, as there are a lot different Languages then only English in the PC Version.
Thank you