• 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

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

Deep Inside a Gauge File

Ali Cat

Charter Member
attachment.php
 

Attachments

  • DumpGauges.jpg
    DumpGauges.jpg
    125.3 KB · Views: 5
Carlo,

Interesting, so that is a default CFS2 Zero gauge?

The absolute holy grail would to be able to convert xml to gau gauges or vica versa....

Cheers

Shessi
 
Hey, Shessi and so good to speak with you again.


Yes, the output is the gauge names straight out of the A6M2 standard gauge file (a binary which hunt). I plan to push the code to read all gauge names in one's gauges directory. Its not much of a utility but I've noticed some have requested it. I also wanted something for my first c++ project.


A bit of an explanation on this one. I've long been intrigued on just how CFS2 talks to all those dll's. I've learned a lot and while there's still hope that this effort will lead to something useful, the news is not good. While some CFS2 dll's export functions that look like c++ (you can see the function names and passed argument types), most do not. All the dll's (that I've noticed) export two names: “ImportTable” and “Linkage”. The bad news is that these are not function names. They are data structures that can (and do in the case of gauges) also contain pointers to functions.


After this project I have a number ideas for the next one but, XML to CFS2 gauge – yikes – how juicy. I had not thought of that. A few ideas for what's next.


-Gauge maker: To do right this would be a biggy (not hard just a lot of coding). And with such a tool it would be easy to add an XML import.


-Read a BGL or better yet a MDL file to develop an exporter. (yes, I'm aware of ModelConverterX).


-Continue working on the dll exports.




Ideas welcome but no promises – I'm easily distracted Ya' know.
AC
 
Oh yes, two quesions:

-Has anyone else noticed that MDL files are dll's, too? It made me jump.

-The FS 2000 Scenery SDK mentions a Bglmac.inc file. Anyone know were I can find it?

AC
 
Thank you, Allen. I had Googled it a bit but had no luck. A few weeks ago I wrote code that read the header to a BGL file (easy). It's a tiny start to a possible project that I don't know would even be useful. The idea started with the thought of importing a model into a game engine -- Godot, for example has caught my eye. ModelConverterX may be all we need here I just haven't been down that road enough to know. Guessing it would be a crazy amout of work but I like very much the thought of all the incredible work done herein could possibly live on much longer.

AC
 
Back
Top