Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Need for Speed: Shift Track SGB Files

Read or post about compression. And decompression. Or ask questions how to decompress your files.
Simon
mega-veteran
mega-veteran
Posts: 180
Joined: Sun Sep 20, 2009 5:41 pm
Has thanked: 31 times
Been thanked: 20 times

Re: Need for Speed: Shift Track SGB Files

Post by Simon »

Hmm looks a little bit weird.

Could it be something with Lods?

OH for HATTarget and ShadowReceiver - I am not sure if they included this into Shift Versions.

What happens if you Convert all known things of the SGB to SGX and try loading the Track? (Be sure to Rename/Delete the SGB before)
peppe
n00b
Posts: 13
Joined: Fri Jul 09, 2010 6:21 am
Been thanked: 3 times

Re: Need for Speed: Shift Track SGB Files

Post by peppe »

Simon wrote:What happens if you Convert all known things of the SGB to SGX and try loading the Track? (Be sure to Rename/Delete the SGB before)
Well, ignoring that I don't have the game and that I'm not running windows, there is too much data in the sgb not in the known sgx structure.
In order to be able to do that we need to learn more about the sgx format.

It is however possible to export to some own xml format for editing and then build a new sgb file based on that.
rafal345
n00b
Posts: 17
Joined: Sun Jun 06, 2010 7:24 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Need for Speed: Shift Track SGB Files

Post by rafal345 »

Can you compare .SGB file of tracks and .BML file of car?
They're using the same subformat - .meb.
peppe
n00b
Posts: 13
Joined: Fri Jul 09, 2010 6:21 am
Been thanked: 3 times

Re: Need for Speed: Shift Track SGB Files

Post by peppe »

rafal345 wrote:Can you compare .SGB file of tracks and .BML file of car?
No, not really.
bml files are the same format as bmt files, which is quite different from the sgb files.
More about the bml/bmt format.
rafal345 wrote:They're using the same subformat - .meb.
No.
peppe
n00b
Posts: 13
Joined: Fri Jul 09, 2010 6:21 am
Been thanked: 3 times

Re: Need for Speed: Shift Track SGB Files

Post by peppe »

peppe wrote:It is however possible to export to some own xml format for editing and then build a new sgb file based on that.
I think it is working now.
http://projects.pappkartong.se/sgbconverter/
Converting from sgb to sgb, that is, just reading the file into the internal structure and then writing it down again, results in binary equal files.
Converting from sgb to xml and back will result in a files that are not binary equal, probably due to lost precision in all the float values when going float->text->float.
Simon
mega-veteran
mega-veteran
Posts: 180
Joined: Sun Sep 20, 2009 5:41 pm
Has thanked: 31 times
Been thanked: 20 times

Re: Need for Speed: Shift Track SGB Files

Post by Simon »

Thank you very much testing this after some sleeping :)
peppe
n00b
Posts: 13
Joined: Fri Jul 09, 2010 6:21 am
Been thanked: 3 times

Re: Need for Speed: Shift Track SGB Files

Post by peppe »

Simon wrote:Thank you very much testing this after some sleeping :)
Any success? Problems? Suggestions for improvements?
Simon
mega-veteran
mega-veteran
Posts: 180
Joined: Sun Sep 20, 2009 5:41 pm
Has thanked: 31 times
Been thanked: 20 times

Re: Need for Speed: Shift Track SGB Files

Post by Simon »

SOrry had no time .. max 1-2 days
rollobollo
ultra-n00b
Posts: 1
Joined: Wed Apr 06, 2011 12:51 am

Re: Need for Speed: Shift Track SGB Files

Post by rollobollo »

Peppe, I tried your sgbconverter with the sgb-track files of Shift2. Unfortunately it wont work anymore (it dies with an exception), maybe the exact file format changed between the 2 game releases . Would you be so kind to try to fix this issue?

THX
Post Reply