• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Please see the most recent updates in the "Where did the .com name go?" thread. Posts number 16 and 17.

    Post 16 Update

    Post 17 Warning

GSL file format

RingTingTing

Members +
Hi all
Does anybody have any info on the Structure of the GSL file ?
I have been studying the HEX code , and think I have a lot of it figured out, but I am struggling with the GOB code.
The 6 hex numbers before the .gob - Example : 2621fe.gob

I am pretty sure it specifies the position of the GOB, but cannot completely figure it out :

I think the 1st 3 hex numbers specify the Lat coords , and the last 3 specify the Lon coords.
I could reliable get the correct Longitude by taking the last three bytes hex, converting it to a 16bit Integer and then multiplying it by 360/4096
I have not been able to figure out a pattern for the Lat coords using the 1st 3 Hex number though.

Any insights will be appreciated

Regards
 
Why? The tools already exist to modify the gsl file.

Try contacting Martin Wright, who designed the GSLEdit & GSLMan programmes. He probably already has it worked out.

I think the gob nomenclature probably ties in with the LOD scenery structure used...
 
Thanx for the reply Uncle,
I would like to be able to write out the gobs for scenery created in a tool I'm busy working on,
it would just be so much less hassle than going to MB every time to create the gobs.
I will definitely try to track down Martin
 
Go to https://mwgfx.co.uk/

click on "Developers Corner" & Martin has instructions for how to contact him & request his gsl tools.

Amongst them is a little prog call "gobcheck" which lets you check a CFS2 layout for it's gob address - very handy!!!
 
He usually does get back to people, may take some time though (usually not this long though!). The other way to get his attention is to donate a 'coffee' on his site, that should get him to thank you and go from there.

Interesting project.

Cheers

Shessi
 
He usually does get back to people, may take some time though (usually not this long though!). The other way to get his attention is to donate a 'coffee' on his site, that should get him to thank you and go from there.

Interesting project.

Cheers

Shessi

Thanx Shessi, but I think I have what I need now.
After countless web searches, I just hit the jackpot with Google AI spitting out unbelievable info on this topic.
Shows you that us old folk need to learn how to use the latest tech 😎
Now it's just a little matter of writing the code to spit out the gobs . . . . . . easier said than done
 
Google AI might leave your game up Google creek without a bikni in sight
Yup, I have since done some reading and comparing the info to the Hex code of existing GSL files, and it does not gel at all.
I have no idea where AI grabs all it's info from, but every time I tell it that it's info does not match the files in CFS2, it comes up
with a different explanation of how it works :ROFLMAO:
At least some of the info is helpful in the sense that I'm not looking at a complete black box anymore . . .
 
Well, in the absence of any information about the GSL file structure , I had to do it the hard way.
Many hours of Hex code studying and writing code to test my theories.
I think that I cracked the file structure now.
I can successfully read GSL files and get the object properties from it.
Now I need to reverse this process to be able to generate GSL files from my Scenery creation App.

Here is a little app I wrote to read GSL files and extract the GOBs, Objects and Object detail.
 

Attachments

  • CFS2_GSLEditor.zip
    11.5 KB · Views: 8
  • Like
Reactions: mav
Well done RTT - a great little program!

Would you like me to send you Martin Wright's GSLEdit and GOBCheck?

Cheers,
Kevin
 
I am almost done with an application that would enable you to create airfields in minutes.
The runways are generated from scratch and look much better than the stock ones which bleed through etc.
Well, one thing lead to another and now I can populate my airfields with scenery objects as well. Problem is they are only the scenery bgl's
and not the damageable objects used in the Global scenery. So I want to be able to export the GSL files from my app in order to have the damageable objects as scenery.
This app actually also includes a very nice Airfields.dat editor/fixer.

When it's all done, I will make it available on this site.

RingTingTing
 
Back
Top