[SU14] SDK Model Behaviors - use of <Parameter> (without s)

The example in the Templates section of

https://docs.flightsimulator.com/flighting/html/Content_Configuration/Models/ModelBehaviors/Model_Behaviors.htm

has

<Template Name = "ASOBO_GT_Visibility_Sim">
    <Parameter type="Default">
        <VISIBILITY_SIMVAR_SCALE>1</VISIBILITY_SIMVAR_SCALE>
        <VISIBILITY_SIMVAR_BIAS>0</VISIBILITY_SIMVAR_BIAS>
    </Parameter>

I believe the Parameter should be Parameters (with an s)>

Also the L-39 has this in the xml

Is this correct usage if so it’s the only one.

				<Component ID="Flaps_Lights">
					<Parameter Type="Override">
						<VALUE_RANGE>3</VALUE_RANGE>
					</Parameter>

1 Like

It would be great if the XML files distributed with the SDK and with the sim itself and its packages, and Marketplace packages, would be automatically passed through some XML validator that would not only check XML syntax but also validate against the relevant schema. The use of # means they are not even lexically valid XML, but that can be handled by a minor preprocessing step before doing the XML validation.

(In my in-progress, or more like lost-interest, experimental “template-expand.py” tool at GitHub - tml1024/MSFS-tools I replace each #FOO# with __HASH__FOO__HSAH__ to make it lexically valid XML. Even after that step some XML files from the sim would not load into Python’s xml.etree.ElementTree because of minor semantic errors that needed fixing. Like end tags not matching start tags. But it seems that many or maybe all of those have been fixed.)

1 Like

Hello,

Thank you for reporting this. The docs will be fixed.

Regards,
Boris

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.