Real Racing 3 *.DDS.Z.BIN

Textures, recreate headers, conversions, algorithms and parsing of image files
LolHacksRule
Posts: 865
Joined: Fri Apr 20, 2018 12:41 am

Real Racing 3 *.DDS.Z.BIN

Post by LolHacksRule »

I cannot extract these with the real_racing_3.bms script, even though its a .bin file. Upon simple experimentation, they are compressed with zlib.

Code: Select all

- open input file RR3\data\.\files\.depot\vehicles\2010_porsche_gt3\2010_porsche_gt3_ext_shadows_high.etc.dds.z.bin
- open script real_racing_3.bms
- set output folder EXT_DEC\data_bin

  offset   filesize   filename
--------------------------------------
  00000008 1          2010_porsche_gt3_ext_shadows_high.etc.dds.z\00000000.dat
  0000000b 256        2010_porsche_gt3_ext_shadows_high.etc.dds.z\00000001.dat

Error: the compressed zlib/deflate input is wrong or incomplete (-3)
Info:  algorithm   1
       offset      0000000b
       input size  0x000001fb 507
       output size 0x00000100 256
       result      0xffffffff -1

Error: the uncompressed data (-1) is bigger than the allocated buffer (256)
       It usually means that data is not compressed or uses another algorithm

Last script line before the error or that produced the error:
  17  clog NAME OFFSET ZSIZE SIZE
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Real Racing 3 *.DDS.Z.BIN

Post by Acewell »

here is bms script to decompress, extract and convert textures from your two z.bin samples to pvr files. :D
RealRacing3_etcddszbin2pvr.zip

top level mip only
LolHacksRule
Posts: 865
Joined: Fri Apr 20, 2018 12:41 am

Re: Real Racing 3 *.DDS.Z.BIN

Post by LolHacksRule »

TYSM!