GBX file structure

Everything else which you can't find above

Moderator: TM-Patrol

Post Reply
sdecorme
highway camper
highway camper
Posts: 4
Joined: 21 Jul 2011 06:10
Owned TM-games: TMforever

GBX file structure

Post by sdecorme » 21 Jul 2011 06:16

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

Xymph
Pit Crew
Pit Crew
Posts: 5647
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: GBX file structure

Post by Xymph » 21 Jul 2011 16:52

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™.
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub

sdecorme
highway camper
highway camper
Posts: 4
Joined: 21 Jul 2011 06:10
Owned TM-games: TMforever

Re: GBX file structure

Post by sdecorme » 21 Jul 2011 20:37

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

sdecorme
highway camper
highway camper
Posts: 4
Joined: 21 Jul 2011 06:10
Owned TM-games: TMforever

Re: GBX file structure

Post by sdecorme » 26 Jul 2011 14:10

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

sdecorme
highway camper
highway camper
Posts: 4
Joined: 21 Jul 2011 06:10
Owned TM-games: TMforever

Re: GBX file structure

Post by sdecorme » 27 Jul 2011 08:03

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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests