Page 1 of 1

iRacing .dat

Posted: Sun Sep 11, 2022 11:27 am
by zimex25
Hello everyone,
I'm interesed in model from iRacing, format is .dat file, this script didn't work http://aluigi.altervista.org/bms/iracing_alpha.bms
Anybody know, how to import models with all LODs and textures?
Sample: https://www.mediafire.com/file/jfxyv8tn ... r.rar/file

Re: iRacing .dat

Posted: Sun Sep 11, 2022 8:57 pm
by Machinedramon
well im not 100% if that is already how it should be unpacked, it looks like it is indeed raw information, but needs to be separated in the files that are indexed in the header

Re: iRacing .dat

Posted: Mon Sep 12, 2022 10:13 am
by Machinedramon
well, decided to have a look more in depth into the header file and not sure exactly what are the positions marked on each file but i guess if we check all the sizes and compare to the full container size or the blocks of information there will be some way to figure out what is the offset/size for splitting the different files, the .stp im not sure if those are step files for 3d models directly or just some special format they use... at least the sounds are in RIFF WAV(.wav) files from what i saw

Re: iRacing .dat

Posted: Mon Sep 12, 2022 10:27 am
by shakotay2
zimex25 wrote: Sun Sep 11, 2022 11:27 am Hello everyone,
...
Anybody know, how to import models with all LODs and textures?
Hello, I used offzip on the porsche-rar, got a few .dat files sized around 100 kB. But all I found in them were AnimKeys, afaics.

Re: iRacing .dat

Posted: Mon Sep 12, 2022 11:09 am
by Machinedramon
on closer inspection, the header does contain information regarding the position and also the size of each item, size for the string of the name and probably a compressed size, the sizes stop matching after the second one more likely cause the main data is compressed, if the alpha used deflate it doesnt seem to work now at least from what i tried with the places cut, so maybe if someone can get the correct decomp method for the main block the 3d model/textures could be converted...

Re: iRacing .dat

Posted: Mon Sep 12, 2022 4:24 pm
by zimex25
Machinedramon wrote: Mon Sep 12, 2022 10:13 am well, decided to have a look more in depth into the header file and not sure exactly what are the positions marked on each file but i guess if we check all the sizes and compare to the full container size or the blocks of information there will be some way to figure out what is the offset/size for splitting the different files, the .stp im not sure if those are step files for 3d models directly or just some special format they use... at least the sounds are in RIFF WAV(.wav) files from what i saw
lol that's look like normal files like .png and .bl. DAT of iRacing looking like compressed files aka rar, zip, 7z etc.

Re: iRacing .dat

Posted: Mon Sep 12, 2022 9:59 pm
by Durik256
has 3 compress type (5-not compressed, 2181-deflate, 3333-unk compress), scanned with qbms.
Specification .dat:

Code: Select all

ushort magic
uint numFile
uint sizeInfoBlock

for numFile:
	ushort typeCompress
	uint unzipSize
	uint zipSize
	uint offset
	ubyte lenName
	string Name >> (lenName)

*(if compressed, indent first 8 bytes in file data)
**(its 8 bytes [uint unzip size, uint zip size] not always correct)
(decompress Deflate, with qbms) "wheel_options.png":
Image

i made plugin for Noesis, unpacks without decompress and sorts into folders depending on the type of compression.

Re: iRacing .dat

Posted: Thu Sep 15, 2022 7:09 pm
by zimex25
Okay we get 3do files (models) and textures in tga/mip. 3DSimEd crashing when I tried open files, Photoshop and PVRTexTool didn't open textures.
Models samples: https://mega.nz/file/KpNmlKaJ#HvkaSYghG ... w2wiKYNmSU
Texture samples: https://mega.nz/file/bwUiXJiD#NPz3jjYBi ... 1dxWTeZIZs
https://mega.nz/file/OgtwlIbA#XxYGNNUW2 ... jX-VxGFFQk

Re: iRacing .dat

Posted: Thu Sep 15, 2022 7:52 pm
by Durik256
zimex25 wrote: Thu Sep 15, 2022 7:09 pm Okay we get 3do files (models) and textures in tga/mip. 3DSimEd crashing when I tried open files, Photoshop and PVRTexTool didn't open textures.
what do you get... i think you should re-read the post.
files are compressed...
update for my previous post: image is broken into chunks:

Code: Select all

while
	uint unzipSize
	uint zipSize
	bytes zipData
car_pattern_024.tga decompress and resize (2048x2048 >> 256x256)
car_pattern_024_DECOMP.tga.jpg

Re: iRacing .dat

Posted: Thu Sep 29, 2022 8:15 pm
by iddan787
Как вы импортируете 3д модели?