While working on a Scenery using Blender, the great Blender2MSFS 2024 exporter plugin I noticed, that model behaviours of simobjects like the visibility do not work, as long as the developer mode is on.
If I add the compiled scenery to the community folder, and restart the sim without DevMode, the configured behaviours work as expected.
Steps to reproduce
- Build a model with one node named “model” and add it as SimObject using the MSFS 2024 developer mode named as “model”
- Extend the model.xml with the below shown behaviour
- Stay in Developer mode and switch the weather from sunny to rain/snow while watching the model.
EXPECTED
If It is sunny, the model should be visible, if there is precipitation, it should be hidden (like an awning) as long as the scenery is opened within the DevMode.
ACTUAL
The model is shown no matter whether the model behaviours match the current situation or not.
WHY is that annoying?
Simply because changes on the behaviours cannot be tested easily. It seems that I after each change I need to reload the sim, which is extremely time consuming.
The model.xml:
<?xml version="1.0" encoding="utf-8"?>
<ModelInfo guid="{e8427d2a-e730-44c0-9df9-e596b469f218}" version="1.1">
<LODS>
<LOD minSize="0.0" ModelFile="model_LOD0.gltf"/>
</LODS>
<Behaviors>
<Component ID="awning_open" Node="model">
<Visibility>
<Parameter>
<Code>(E:TIME OF DAY,enum) 1 == (A:AMBIENT PRECIP STATE,Number) 2 == AND (E:LOCAL MONTH OF YEAR,Number) 1 & t; AND (E:LOCAL MONTH OF YEAR,Number) 12 < AND if{1} els{0}</Code>
</Parameter>
</Visibility>
</Component>
</Behaviors>
</ModelInfo>