Roy Holmes
Resource contributor
- Messages
- 1,805
- Country

I'm having a problem with one simple 3D gauge whose needle does not move.
It happens to be the last animated item in the .mdl file and the content of that area of the file suggests to me that it is missing the XML code.
The preceeding three items have essentially the same layout and they include the XML code.
The first of the good three has the following mdl content starting at XANI
I can see the XANI header and the XANS header for the XANK animation code as well as the XML code after XAPC
The modeldef code for this item is
The last of the good three has the following mdl content starting at XANI
This is essentially identical in format to the first one and the modeldef code is:
The one that does not work does not have a XAPC section after Autoplay, it jumps to XANS.
I searched modeldef for any other instance of "Autoplay XANS" and there was none.
The XML code for this item is:
The .xanim blocks for the last two are:
The mdl file format wiki does not mention XAPC and I wonder if anyone has seen this issue before.
So far as I can see the reason why the fuel flow needle does not move is the lack off Autoplay XAPC and the XML code in the .mdl file.
Roy
It happens to be the last animated item in the .mdl file and the content of that area of the file suggests to me that it is missing the XML code.
The preceeding three items have essentially the same layout and they include the XML code.
The first of the good three has the following mdl content starting at XANI
Code:
XANI Fž'X"0RB®Í¾¡üÏ ´CSim AutoPlay XAPC. (A:Turb eng corrected N1:1,percent) 10 % 36 * XANS N ´CXANK €?XANK ´B ÷5¿ ÷5?XANK 4C €? XANK ‡C ÷5? ÷5?XANK ´C €?
I can see the XANI header and the XANS header for the XANK animation code as well as the XML code after XAPC
The modeldef code for this item is
Code:
<Animation name="needle_Small_RPM" guid="58279E46-3022-4252-AECD-BE08A11AFCCF" type="Sim" typeParam="AutoPlay" typeParam2="needle_Small_RPM" length="360"/>
<PartInfo>
<Name>needle_Small_RPM</Name>
<AnimLength>360</AnimLength>
<Animation>
<Parameter>
<Code>(A:Turb eng corrected N1:1,percent) 10 % 36 *</Code>
</Parameter>
</Animation>
</PartInfo>
The last of the good three has the following mdl content starting at XANI
Code:
XANIÍ ÿ»×%’EÝÀ`7Ú5• ÈBSim AutoPlay XAPC- (L:needle_TGT, number)
XANSc P ÈBXANK €?XANK HB г]? ¿XANK ÈB г]? ?
This is essentially identical in format to the first one and the modeldef code is:
Code:
<Animation name="needle_TGT" guid="11D7BBFF-9225-451c-81DD-C06037DA3595" type="Sim" typeParam="AutoPlay" typeParam2="needle_TGT" length="100"/>
<PartInfo>
<Name>needle_TGT</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>
(L:needle_TGT, number)
</Code>
</Parameter>
</Animation>
</PartInfo>
The one that does not work does not have a XAPC section after Autoplay, it jumps to XANS.
Code:
XANIï Fž'X"1RB®Í¾¡üÏ ðBSim AutoPlay XANSº Q ðBXANK €?XANK ðA г]? ¿XANK pB г]? ?XANK *B
óF? !?XANK ÈB 9B&? ø©B?XANK ðB ? г]?
I searched modeldef for any other instance of "Autoplay XANS" and there was none.
The XML code for this item is:
Code:
<Animation name="needle_fuelFlow" guid="58279E46-3122-4252-AECD-BE08A11AFCCF" type="Sim" typeParam="AutoPlay" typeParam2="needle_FuelFlow" length="120"/>
<PartInfo>
<Name>needle_fuelFlow</Name>
<AnimLength>120</AnimLength>
<Animation>
<Parameter>
<Code>(A:TURB ENG FUEL FLOW PPH:1,Pounds per hour) 100 /</Code>
</Parameter>
</Animation>
</PartInfo>
The .xanim blocks for the last two are:
Code:
<Anim name="needle_TGT" guid="11D7BBFF-9225-451c-81DD-C06037DA3595" length="100.000000"
type="Sim" typeParam="AutoPlay" typeParam2="needle_TGT">
<AnimStream name="Rotation" id="0" partName="needle_TGT" length="100.000000">
<Keyframe time="0.000000" type="Quaternion" data="0.000000;0.000000;0.000000;1.000000"/>
<Keyframe time="50.000000" type="Quaternion" data="0.000000;0.866025;0.000000;-0.500000"/>
<Keyframe time="100.000000" type="Quaternion" data="0.000000;0.866025;0.000000;0.500000"/>
</AnimStream>
</Anim> // End anim block
<Anim name="needle_fuelFlow" guid="58279E46-3122-4252-AECD-BE08A11AFCCF" length="120.000000"
type="Sim" typeParam="AutoPlay" typeParam2="needle_FuelFlow">
<AnimStream name="Rotation" id="0" partName="needle_fuelFlow" length="120.000000">
<Keyframe time="0.000000" type="Quaternion" data="0.000000;0.000000;0.000000;1.000000"/>
<Keyframe time="30.000000" type="Quaternion" data="0.000000;0.866025;0.000000;-0.500000"/>
<Keyframe time="60.000000" type="Quaternion" data="0.000000;0.866025;0.000000;0.500000"/>
<Keyframe time="80.000000" type="Quaternion" data="0.000000;0.777146;0.000000;0.629320"/>
<Keyframe time="100.000000" type="Quaternion" data="0.000000;0.649448;0.000000;0.760406"/>
<Keyframe time="120.000000" type="Quaternion" data="0.000000;0.500000;0.000000;0.866025"/>
</AnimStream>
</Anim> // End anim block
The mdl file format wiki does not mention XAPC and I wonder if anyone has seen this issue before.
So far as I can see the reason why the fuel flow needle does not move is the lack off Autoplay XAPC and the XML code in the .mdl file.
Roy
