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