- Messages
- 14
- Country

Hi,
Recently I have been trying to make myself some custom XML animations for an upcoming project. Although I'm new to XML-coding, I managed to succeed in getting my XML to show up in the FSX's Animation Manager. After tagging the animation in 3Ds MAX I can export to an .X file without a problem. But when I try to convert the .x and .xanim file to a .mdl file I come across this errormessage:
C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Envi
ronment Kit\Modeling SDK\3DSM9\Plugins>XtoMdl /XANIM /DICT:..\..\bin\modeldef.xm
l /XMLSAMPLE 757.x
Found dictionary file: ..\..\bin\modeldef.xml
OutputFile: 757.MDL
Output file after modification: 757.MDL
Creating output MDL file: 757.MDL
CRASHTREE no granularity specified
CRASHTREE completed in 00:00:00.0160009
<!-- ++++ Processing Animation : Enigma_Wing_Flex ++++ -->
error :
error : Failed processing animation file!!
error :
error : System.ArgumentNullException: String reference not set to an instance of
a String.
error : Parameter name: s
error : at System.Text.Encoding.GetBytes(String s)
error : at Microsoft.FlightSimulator.XAnimToAnimLib.FileExporter.WriteString(
String S, Boolean NullTerminate)
error : at Microsoft.FlightSimulator.XAnimToAnimLib.ANIMProcessor.WriteSimAni
mation(XPartInfo_Animation PInfo)
error : at Microsoft.FlightSimulator.XAnimToAnimLib.ANIMProcessor.WriteANIM(X
mlNode node)
error : at Microsoft.FlightSimulator.XAnimToAnimLib.ANIMProcessor.WriteANIMLi
b(XmlNode node)
error : at Microsoft.FlightSimulator.XAnimToAnimLib.ANIMProcessor.GenerateOut
put(FileExporter Exporter)
error : at Microsoft.FlightSimulator.XAnimToAnimLib.XAnimToAnimLib.Process(St
ream OutputStream)
C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Envi
ronment Kit\Modeling SDK\3DSM9\Plugins>
I'm thinking that it might have to do with this XML I made:
It would be awesome if you could help me out with this
Cheers,
Recently I have been trying to make myself some custom XML animations for an upcoming project. Although I'm new to XML-coding, I managed to succeed in getting my XML to show up in the FSX's Animation Manager. After tagging the animation in 3Ds MAX I can export to an .X file without a problem. But when I try to convert the .x and .xanim file to a .mdl file I come across this errormessage:
C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Envi
ronment Kit\Modeling SDK\3DSM9\Plugins>XtoMdl /XANIM /DICT:..\..\bin\modeldef.xm
l /XMLSAMPLE 757.x
Found dictionary file: ..\..\bin\modeldef.xml
OutputFile: 757.MDL
Output file after modification: 757.MDL
Creating output MDL file: 757.MDL
CRASHTREE no granularity specified
CRASHTREE completed in 00:00:00.0160009
<!-- ++++ Processing Animation : Enigma_Wing_Flex ++++ -->
error :
error : Failed processing animation file!!
error :
error : System.ArgumentNullException: String reference not set to an instance of
a String.
error : Parameter name: s
error : at System.Text.Encoding.GetBytes(String s)
error : at Microsoft.FlightSimulator.XAnimToAnimLib.FileExporter.WriteString(
String S, Boolean NullTerminate)
error : at Microsoft.FlightSimulator.XAnimToAnimLib.ANIMProcessor.WriteSimAni
mation(XPartInfo_Animation PInfo)
error : at Microsoft.FlightSimulator.XAnimToAnimLib.ANIMProcessor.WriteANIM(X
mlNode node)
error : at Microsoft.FlightSimulator.XAnimToAnimLib.ANIMProcessor.WriteANIMLi
b(XmlNode node)
error : at Microsoft.FlightSimulator.XAnimToAnimLib.ANIMProcessor.GenerateOut
put(FileExporter Exporter)
error : at Microsoft.FlightSimulator.XAnimToAnimLib.XAnimToAnimLib.Process(St
ream OutputStream)
C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Envi
ronment Kit\Modeling SDK\3DSM9\Plugins>
I'm thinking that it might have to do with this XML I made:
Code:
<!-- Enigmasim -->
<Animation name="Enigma_Wing_Flex" guid="3bfc5af9-fefb-4540-ba5a-5b70b4914f6e" length="200" type="Sim" typeParam2="Enigma_Wing_Flex" typeParam="AutoPlay"/>
<!-- end Enigmasim -->
<AnimationGroup name="Enigma Animations" guid="0xca7be0f3,0xf2614957,0xb3b11cea,0x15c20bb6">
<AnimationRef guid="3bfc5af9-fefb-4540-ba5a-5b70b4914f6e"/>
</AnimationGroup>
<PartInfo>
<Name>Enigma_Wing_Flex</Name>
<Animation>
<Parameter>
<code>
(A:PLANE PITCH DEGREES, radians) -0.3 * (A: VELOCITY BODY Z, knots) + 0.0125 *
</code>
</Parameter>
</Animation>
</PartInfo>
It would be awesome if you could help me out with this
Cheers,
Last edited:


