Page 1 of 1

GBX file structure

Posted: 21 Jul 2011 06:16
by sdecorme
Hi,
I would like to know wher I find the strucuture of gbx file ?
I need to extract data to get the position and the attitude of the car during the race.
I want to use this data to make a 3axis platform moving with this.
I've found this
http://en.tm-wiki.org/wiki/GBX but not really explicit about the data structure.

Thanks

Re: GBX file structure

Posted: 21 Jul 2011 16:52
by Xymph
You could have mentioned you're talking about a replay GBX, not a challenge. :wink:
All publicly known info about GBX files is on that Wiki page, and related pages. I certainly don't know more than that.

What you're looking for is probably unknown, and that is just as well. If it could be decompiled, fake data could also be compiled back, resulting in cheated replays. That would be a Bad Thing™.

Re: GBX file structure

Posted: 21 Jul 2011 20:37
by sdecorme
Yes it is a GBX replay file
No it is not for cheat .
I want to use it to view a replay on a moving platform like this one,
I've done this with rfactor.

It is a passive 3D attraction I've done this with rollercoster.
Thanks

Re: GBX file structure

Posted: 26 Jul 2011 14:10
by sdecorme
Here is my job
Image
In violet every data easy to extract
In blue all the Chunk ID
In Green All the time ex 7A AD <=> 44410
I've decompiled all the first from the start to the </header>
using the wiki page
After it is more complicated because the file haven't the same structure.
Nobody works on this file ?
Here is a print screen of the soft I'm working on
Image

Thanks

Re: GBX file structure

Posted: 27 Jul 2011 08:03
by sdecorme
The wheel work perfectly like this no need to modify it in square :lol:
If I follow the wiki page there is no problem to extract the header.
but after the header wiki say that I've
Num nodes OK for me 09 00 00 00
num External OK for me 00 00 00 00

if num External >0 and data compressed
{
uncompressedSize for me 53 63 00 00
compressedSize for me F3 5D 00 00
byte data[compressedSize] (compressed with regular LZO)
}
So I put the data[] in a file and it is not a lzo file. :(

If you take 2 minutes to look at the hex editor picture on my previous post you can see the end of the header at the offset 0x138 and after my data .
I think the wiki page is not done with a replay file.

Thanks for your help