RenderWare Engine PS2 pack files

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
black_racer
Posts: 22
Joined: Thu Jun 04, 2015 1:05 pm

RenderWare Engine PS2 pack files

Post by black_racer »

Hello Guys!
This is the package files from the game on the RenderWare Engine for PS2
Help me deal with these files, this package has no compression but it in itself connects several types of files such as * TXD, * DFF, * BSP I can read them by structure, but it is very difficult. Is it possible to separate them into data types?

Sample here: https://www.dropbox.com/s/zew02qr1c6eul ... s.zip?dl=0
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: RenderWare Engine PS2 pack files

Post by aluigi »

bin and d1 have the same format although I guess there is no format at all and it's just a sequence of files, anyway if you can post the exact offset where are located the files you found, I will be able to "tune" the following script (I don't know what's part of the files):

Code: Select all

get MAX_SIZE asize
for OFFSET = 0 != MAX_SIZE
    get DUMMY long
    get SIZE long
    math SIZE + 12
    log "" OFFSET SIZE
    math OFFSET + SIZE
    goto OFFSET
next
black_racer
Posts: 22
Joined: Thu Jun 04, 2015 1:05 pm

Re: RenderWare Engine PS2 pack files

Post by black_racer »

I'll give an example for a *.D1 file included in the archive

(Section Header)
4 bytes - int - Section Type
4 bytes - int - Section Size

Data Type:
Textures *.TXD 0x16
Dynamic Models *.DFF 0x10
Static Models *.BSP 0x0B

Structure:
Textures Block - Starting at 0x00000000
Dynamic Models - Starting at 0x00066A74
Dynamic Models - Starting at 0x00068346
Static Models - Starting at 0x00069B17
Static Models - Starting at 0x001D6668
Static Models - Starting at 0x002391FF
Dynamic Models - Starting at 0x00286124
Static Models - Starting at 0x00286466
Static Models - Starting at 0x002DF546
Dynamic Models - Starting at 0x002FDB28
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: RenderWare Engine PS2 pack files

Post by aluigi »

Good, so the offsets correctly match those catched by the script :)
black_racer
Posts: 22
Joined: Thu Jun 04, 2015 1:05 pm

Re: RenderWare Engine PS2 pack files

Post by black_racer »

Luigi you once again helped me, it's works great :D
Thank you very much!