• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSX Possible XML problem

Messages
14
Country
netherlands
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:

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:
You have a space between A: and VELOCITY BODY Z, which needs to be fixed. But I don't know if it is causing your problem..
 
You are missing the Animation Length entry...

Code:
<PartInfo>
    <Name>Enigma_Wing_Flex</Name>
   [B]<AnimLength>200</AnimLength>[/B]
    <Animation>
         <Parameter>
	     <code>
		  (A:PLANE PITCH DEGREES, radians) -0.3 * (A: VELOCITY BODY Z, knots) + 0.0125 *   		
             </code>				 				         
          </Parameter>
     </Animation>
  </PartInfo>
 
Back
Top