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!


question

tml avatar image
tml asked tml commented

Is there a problem if you have non-alphanumeric characters in your add-on's file or folder names?

I use an "extra" period in some configuration file and folder names for my aircraft. If the top XML file is called Foo.Bar.xml (not the actual name I use of course, but I don't want to "reveal" the name of the aircraft here) and there is for instance PackageSources\SimObjects\Airplanes\Foo.Bar\model\Foo.Bar.xml , will that cause problems sooner or later?

Asking because at some stage, it appears that using the Dev Mode tools seems to have saved the top-level XML file as just Foo.xml instead of Foo.Bar.xml. Should I not risk anything with what is already fairly fragile massively complex software (MSFS), and just use file and folder names with only alphanumerics? Thinking, if there isn't a bug in file name handling yet, there sure will be one at some stage...

devmode
10 |10000

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

1 Answer

·
rhumbaflappy avatar image
rhumbaflappy answered tml commented

I would use a hyphen or underscore rather than a dot ( - _ ) A dot could indicate the end of the filename and beginning of the extension.

1 comment
10 |10000

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

tml avatar image tml commented ·
Or more to the point, buggy code could think that there can be just one dot in a file name, and one shouldn't risk that. Yeah, I will rename my folders and files.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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