TM-FORUM

The TrackMania universal forum ^_^
It is currently Fri Oct 31, 2014 8:05 pm

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: GBX file structure
PostPosted: Thu Jul 21, 2011 9:16 am 
Offline
highway camper
highway camper

Joined: Thu Jul 21, 2011 9:10 am
Posts: 4
Owned TM-games: TMforever
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


Top
 Profile  
 
 Post subject: Re: GBX file structure
PostPosted: Thu Jul 21, 2011 7:52 pm 
Offline
Pit Crew
Pit Crew

Joined: Sun Aug 19, 2007 3:58 pm
Posts: 5472
Owned TM-games: TMN, TMU, TMF, TM²
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


Top
 Profile  
 
 Post subject: Re: GBX file structure
PostPosted: Thu Jul 21, 2011 11:37 pm 
Offline
highway camper
highway camper

Joined: Thu Jul 21, 2011 9:10 am
Posts: 4
Owned TM-games: TMforever
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.
http://www.youtube.com/watch?v=scOwfqahSFg
It is a passive 3D attraction I've done this with rollercoster.
Thanks


Top
 Profile  
 
 Post subject: Re: GBX file structure
PostPosted: Tue Jul 26, 2011 5:10 pm 
Offline
highway camper
highway camper

Joined: Thu Jul 21, 2011 9:10 am
Posts: 4
Owned TM-games: TMforever
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


Top
 Profile  
 
 Post subject: Re: GBX file structure
PostPosted: Wed Jul 27, 2011 11:03 am 
Offline
highway camper
highway camper

Joined: Thu Jul 21, 2011 9:10 am
Posts: 4
Owned TM-games: TMforever
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group