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

tall_vish avatar image
tall_vish asked FlyingRaccoon answered

Model behaviour file linking

i am learning on how to make a mod and I want an xml file to access a file in a different folder, an example is below

Root\modelbehaviourfiles\Asobo\Generic\"xml file which will reference"

Root\simobjects\airplanes\Asobo\787\model\"xml file to be referenced"

I tried putting in ..\..\..\ but I guess it doesn't go back three directories or I have to use a different format to start from root?

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

·
FlyingRaccoon avatar image
FlyingRaccoon answered

Hello @tall_vish

Check the doc about <Include> and <IncludeBase> tags for this:
General Template Definitions (flightsimulator.com)

Using <Include>, the path is relative to ModelBehaviorDefs.

Regards,
Sylvain

10 |10000

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

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.