• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

SPB File Format

@GaryGB thanks

I want to be able to decompile a SPB file via code.

In the links you shared their is no documented format for the SPB file?

There is a tool spb2xml but no source available.

Thanks
 
Last edited:
Indeed, Lamont Clark's spb2xml de-compiler is here (with source code):



http://lc0277.gratisim.fr/software.html


The SDK utility used to compile can also be used to validate, therefore having the equivalent of a syntax definition within the executable:

"To simply validate an XML file without creating an output file, change the keyword 2spb to validate."

http://www.prepar3d.com/SDKv4/sdk/p...ml_gauges_reference.html#Creating an SPB file


Perhaps you can study either / both of the above executables ...to derive your own 'direct-access' mechanism ? :scratchch


Sorry, I am not aware of any documentation for the *.SPB file format itself ...only the *.XML source code to be compiled to a *.SPB

GaryGB
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
There is another library with source code that can read spb as well for a former MS Flight employee (I forgot the name). I use that one in scenproc and ACM.
 
Thanks to Arno for that reminder (I had forgotten about the tool set he refers to above). :)


IIRC, Arno refers to former MS Game Studios team member "stonelance" (Stephen Heijster ) and his "Flight ToolKit":



https://www.fsdeveloper.com/forum/threads/installing-custom-autogen-configuration.428760/post-678974

https://www.fsdeveloper.com/forum/threads/flight-docs-terrain-system.431225/post-682024


https://www.google.com/search?source=hp&ei=1_BgXrzjN4WxtAb32qSQDw&q=site:www.fsdeveloper.com+SPB+SimProp+stonelance&oq=site:www.fsdeveloper.com+SPB+SimProp+stonelance&gs_l=psy-ab.3...2154.84398..87906...0.0..0.221.3022.1j23j2......0....2j1..gws-wiz.j5iGdnNTpSU&ved=0ahUKEwj8quqXq4PoAhWFGM0KHXctCfIQ4dUDCAc&uact=5



Perhaps Arno would be able to tell us if the intended modifications on the *.SPB processing code was ever finished by stonelance and/ or if Arno ended up having to implement various custom changes to that code set for subsequent use in Arno's own FS scenery utilities ? :scratchch


GaryGB
 
Last edited:

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Hi,

I just used the library as stonelance made it. I don't think I had to make any modifications or bug fixes. I only added some new functions to merge configurations.
 
Top