plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.


Please take a moment to read the platform’s guidelines before you get started!


Idea

DA40CGDFQ avatar image
DA40CGDFQ suggested

Enhance Project Compilation with better file/code/XML/RPN automatic validation

There is one feature that is missing from the project compile stage, better error checking of files and their contents - specifically xml files, cfg files. SimObjects are getting more and more complex and a lot of simple mistakes are not being found, due to the fact that the project will still compile and export with errors in those files. Then you open a flight or even just open the project an CTD.

Please add error checking/validation for aircraft cfg, localization, model xml, panel.xml, panel.cfg and fx files. (probably more). These errors should be logged to the console window with filename and line numbers. I'm sure existing parsing code can be reused for this kind of code/file validation.

If an error is found then stop the project compilation, that way the error is right there as the last console log item, no need to search. If that is not suitable to other devs then perhaps the aircraft.cfg wip_indicator as a flag to stop project compilation (move it up from Flightsim.N section or the first/default livery drives this feature.)

The systems.cfg and flightmodel.cfg files are getting to be an overly complex part of aircraft building, The system.cfg file relies on panel.cfg, panel.xml, model.xml (RPN coding and templates) interactions (not to mention javascript and possibly WASM)

Error examples:

RPN coding if{ if { else{ els{ - the RPN parser should easily find these errors.

XML coding spaces in names that can't have spaces, template naming, missing templates that are in "usetemplate", panel.xml XML coding of conditions etc.


system.cfg [electrical] and [Lights], flightmodel.cfg [fuel system].


deprecated code/variables


The key being that it should help reduce CTDs, since the AE and project compiler is not very robust, when simple errors occur.

Thanks for your consideration on this.

Other developers:
PLEASE add where you think other issues can be addressed.

devmodedocumentationpackagetool
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

No Comments

·

Write a Comment

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Your Opinion Counts

Share your great idea, or help out by voting for other people's ideas.