Page 2 of 2

Re: Need for Speed: Shift Track SGB Files

Posted: Thu Jul 29, 2010 12:26 pm
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)

Re: Need for Speed: Shift Track SGB Files

Posted: Thu Jul 29, 2010 5:42 pm
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.

Re: Need for Speed: Shift Track SGB Files

Posted: Sun Aug 01, 2010 4:25 pm
by rafal345
Can you compare .SGB file of tracks and .BML file of car?
They're using the same subformat - .meb.

Re: Need for Speed: Shift Track SGB Files

Posted: Sun Aug 01, 2010 4:43 pm
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.

Re: Need for Speed: Shift Track SGB Files

Posted: Wed Aug 04, 2010 10:08 pm
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.

Re: Need for Speed: Shift Track SGB Files

Posted: Thu Aug 05, 2010 3:00 am
by Simon
Thank you very much testing this after some sleeping :)

Re: Need for Speed: Shift Track SGB Files

Posted: Sun Aug 08, 2010 10:41 am
by peppe
Simon wrote:Thank you very much testing this after some sleeping :)
Any success? Problems? Suggestions for improvements?

Re: Need for Speed: Shift Track SGB Files

Posted: Tue Aug 10, 2010 12:25 am
by Simon
SOrry had no time .. max 1-2 days

Re: Need for Speed: Shift Track SGB Files

Posted: Wed Apr 06, 2011 1:02 am
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