Hi all,
I've been working on adding animations to the fsx default 747-400 VC model. I do this by adding code straight into the .x and .xanim files (I don't use any 3D software. I'm a sucker for punishment).
I frequently backup 'versions' of my .x and .xanim files when I work on a project, just in case I break something.
I have added many animations (approx. 50), mostly animating the switches on the overhead panel. In my latest 'version', the autopilot disengage bar is no longer animating correctly in FSX (all others have compiled correctly). It was working correctly in a previous version. I haven't made any changes to it.
When I review the compiled model in MCX, the animation is working correctly? How can this be?
When I revert to a previous back up, the compile works fine and the autopilot disengage bar is animating correctly within FSX. But I haven't changed anything in relation to the code of that part?
I've spent some time tonight searching the forums for anything related to this problem without any lot of luck. I'm hoping one of you has run into something similar in the past and can point me in the right direction...
Code below in case anyone is interested.
From the modeldef.xml:
<Animation name="747_Part78" guid="ee48d4f3-3bf7-47be-b990-e893bffd4c4c" length="50" type="Sim" typeParam2="747_Part78" typeParam="AutoPlay" />
<PartInfo>
<Name>747_Part78</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>
(L:Autopilot Block, bool) 50 *
</Code>
<Lag>400</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Disengage Autopilot and Autothrottle</TooltipText>
<HelpID>HELPID_DISPLAY_UNIT_SELECTOR</HelpID>
<MouseFlags>LeftSingle</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 == if{ (L:Autopilot Block, bool) 0 == if{ 1 (>L:Autopilot Block, bool)
(>K:AUTOPILOT_OFF)
(A:Autopilot throttle arm,bool)
if{ (>K:AUTO_THROTTLE_ARM) } }
els{ 0 (>L:Autopilot Block, bool) } } }
</CallbackCode>
</MouseRect>
</PartInfo>
From the .xanim file:
<Anim name="747_Part78" guid="ee48d4f3-3bf7-47be-b990-e893bffd4c4c" length="50.000" type="Sim" typeParam="AutoPlay" typeParam2="747_Part78">
<AnimStream name="Position" id="2" partName="node5_78" length="50.000">
<Keyframe time="0.000" type="Vector" data="0.000000;0.000000;0.000000;0.000000"/>
<Keyframe time="50.000" type="Vector" data="0.000000;0.000000;-0.009769;0.000000"/>
</AnimStream>
<AnimStream name="Rotation" id="0" partName="node5_78" length="50.000">
<Keyframe time="0.000" type="Quaternion" data="0;0;0;1"/>
<Keyframe time="50.000" type="Quaternion" data="0;0;0;1"/>
</AnimStream>
</Anim>
From the .x file:
AnimLinkName {
"node5_78";
}
I've been working on adding animations to the fsx default 747-400 VC model. I do this by adding code straight into the .x and .xanim files (I don't use any 3D software. I'm a sucker for punishment).
I frequently backup 'versions' of my .x and .xanim files when I work on a project, just in case I break something.
I have added many animations (approx. 50), mostly animating the switches on the overhead panel. In my latest 'version', the autopilot disengage bar is no longer animating correctly in FSX (all others have compiled correctly). It was working correctly in a previous version. I haven't made any changes to it.
When I review the compiled model in MCX, the animation is working correctly? How can this be?
When I revert to a previous back up, the compile works fine and the autopilot disengage bar is animating correctly within FSX. But I haven't changed anything in relation to the code of that part?
I've spent some time tonight searching the forums for anything related to this problem without any lot of luck. I'm hoping one of you has run into something similar in the past and can point me in the right direction...
Code below in case anyone is interested.
From the modeldef.xml:
<Animation name="747_Part78" guid="ee48d4f3-3bf7-47be-b990-e893bffd4c4c" length="50" type="Sim" typeParam2="747_Part78" typeParam="AutoPlay" />
<PartInfo>
<Name>747_Part78</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>
(L:Autopilot Block, bool) 50 *
</Code>
<Lag>400</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Disengage Autopilot and Autothrottle</TooltipText>
<HelpID>HELPID_DISPLAY_UNIT_SELECTOR</HelpID>
<MouseFlags>LeftSingle</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 == if{ (L:Autopilot Block, bool) 0 == if{ 1 (>L:Autopilot Block, bool)
(>K:AUTOPILOT_OFF)
(A:Autopilot throttle arm,bool)
if{ (>K:AUTO_THROTTLE_ARM) } }
els{ 0 (>L:Autopilot Block, bool) } } }
</CallbackCode>
</MouseRect>
</PartInfo>
From the .xanim file:
<Anim name="747_Part78" guid="ee48d4f3-3bf7-47be-b990-e893bffd4c4c" length="50.000" type="Sim" typeParam="AutoPlay" typeParam2="747_Part78">
<AnimStream name="Position" id="2" partName="node5_78" length="50.000">
<Keyframe time="0.000" type="Vector" data="0.000000;0.000000;0.000000;0.000000"/>
<Keyframe time="50.000" type="Vector" data="0.000000;0.000000;-0.009769;0.000000"/>
</AnimStream>
<AnimStream name="Rotation" id="0" partName="node5_78" length="50.000">
<Keyframe time="0.000" type="Quaternion" data="0;0;0;1"/>
<Keyframe time="50.000" type="Quaternion" data="0;0;0;1"/>
</AnimStream>
</Anim>
From the .x file:
AnimLinkName {
"node5_78";
}

