November 3, 20223 yr I have been using the documentation at https://docs.flightsimulator.com I assume this is the 'official' documentation and for this sub-templates XML code I have a question: <Template Name="ASOBO_INSTRUMENT_Needle_VerticalSpeed_SubTemplate"> <DefaultTemplateParameters> <NODE_ID>INSTRUMENT_Needle_VerticalSpeed#SUFFIX_ID#</NODE_ID> <ANIM_NAME>INSTRUMENT_Needle_VerticalSpeed#SUFFIX_ID#</ANIM_NAME> <PART_ID>INSTRUMENT_Needle_VerticalSpeed</PART_ID> <MAX_VALUE>2000</MAX_VALUE> <UNITS>ft/min</UNITS> </DefaultTemplateParameters> <OverrideTemplateParameters> <ANIM_SIMVAR_SCALE Process="Float">50 #MAX_VALUE# /</ANIM_SIMVAR_SCALE><!-- Scale MAX_VALUE to [-50, 50] --> <Condition Valid="USE_TOTAL_ENERGY"> <True> <ANIM_SIMVAR>VARIOMETER TOTAL ENERGY</ANIM_SIMVAR> <ANIM_LAG>100</ANIM_LAG> </True> <False> <ANIM_SIMVAR>VERTICAL SPEED</ANIM_SIMVAR> </False> </Condition> </OverrideTemplateParameters> <Component ID="INSTRUMENT_VerticalSpeed"> <Component ID="#ANIM_NAME#" Node="#NODE_ID#"> <UseTemplate Name="ASOBO_GT_Anim_Sim"> <ANIM_SIMVAR>VERTICAL SPEED</ANIM_SIMVAR> <ANIM_SIMVAR_UNITS>#UNITS#</ANIM_SIMVAR_UNITS> <ANIM_SIMVAR_BIAS>50</ANIM_SIMVAR_BIAS><!-- [-50, 50] + 50 => [0, 100] --> <Condition Check="HIGHLIGHT_NODE_ID"> <PART_ID/> </Condition> </UseTemplate> </Component> <Condition Check="HIGHLIGHT_NODE_ID"> <UseTemplate Name="ASOBO_GT_Highlight_Template"> <HIGHLIGHT_NODE_ID>Instrument_VerticalSpeed_Highlight</HIGHLIGHT_NODE_ID> </UseTemplate> </Condition> </Component> </Template> I am trying to make the T31 variometer. I have it operating with Vertical_Speed but that's a simple VSI and I think I need to use the TOTAL ENERGY bold part but it is ommitted from the code in the file Instrument_Subtemplates.xml Does anyone know if I can just paste it in or has it been removed from the subtemplate file for a reason? And does anyone know how I would call a conversion from ft/min to ft/sec when calling from my internal.xml :- <Component ID="Manometer_Green_Ball"> <Parameters Type="Default"> <ID>2</ID> <ANIM_SIMVAR_SCALE Process="Float">50 #MAX_VALUE# /</ANIM_SIMVAR_SCALE> <!-- Scale MAX_VALUE to [-50, 50] --> <!-- <Condition = USE_TOTAL_ENERGY /> --> </Parameters> <UseTemplate Name="ASOBO_GT_Helper_Suffix_ID_Appender"> <TEMPLATE_TO_CALL>ASOBO_INSTRUMENT_Needle_VerticalSpeed_SubTemplate</TEMPLATE_TO_CALL> </UseTemplate> </Component> Hope someone can help. Edited November 3, 20223 yr by klem typo
November 3, 20223 yr Probably worth asking on https://devsupport.flightsimulator.com/index.html and/or https://fsdeveloper.com/forum/ Edited November 3, 20223 yr by lwt1971 Len 1980s: Sublogic FS II on C64 ---> 1990s: Flight Unlimited I/II, MSFS 95/98 ---> 2000s/2010s: FS/X, P3D, XP ---> 2020+: MSFS Current system: i9 13900K, RTX 4090, 64GB DDR5 4800 RAM, 4TB NVMe SSD
Archived
This topic is now archived and is closed to further replies.