• 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.

[SOLVED] SODE Animations not working!

  • Thread starter Thread starter Aviasim
  • Start date Start date
A

Aviasim

Guest
Probably the 19876th problem with SODE today! and it's getting rather frustrating!

I applied a SODE_1_4SEC animation to my hangar doors and they are not moving in FS. In fact, when I press tab+S to bring up the text menu it says there are no triggerable animations within 12km - Im standing right next to the bloody thing!

I am using 0-100 frames for my animation, which is also set in my modeldef with a lag of 25 to give 4 seconds...as described in the manual.

However, for what ever reason, SODE does not recognise my animation at all, it worked fine as an Ambient animation!

I have seen SODE can't animate multiple objects which leads me to think that maybe it's my doors. Here is a pic...
2018-10-25 19_45_37-Microsoft Flight Simulator X.png


That is with the ambient animation - so ignore that they are open now, however, there are 4 blocks (doors) which open, 2 slide in opposite directions. Because these are seperate objects (which is needed to animate the way I want them to) does this mean SODE is still seeing it as multiple animations?

In the game with the proper SODE_1_4SEC tagged animation.. the doors are shut.

Am I doing something wrong here or am I still missing/forgetting something?

Thanks
 
2018-10-25 22_35_22-ModelConverterX - egbg_t2_hangar.mdl - EGBG_T2_Hangar.png

2018-10-25 22_34_06-T2.max      - Project Folder_ C__Users_Darren_Documents_3dsmax      - Auto...png

2018-10-25 22_33_48-Microsoft Flight Simulator X.png


And my XML code is simply:

<SODE>
<SimObject Name="T2 Hangar">
<Placement Lat="52.6056768361" Lon="-1.036713039" Alt="0.0#AGL" Hdg="-41.5"/>
<Model SimTitle="EGBG_T2_Hangar"/>
<TriggerableAnimation Input="TextMenu" Action="Open,Close" StartKF="0" EndKF="100" Duration="4" IgnoreRadiusFilter="Yes"/>
</SimObject>
</SODE>
 
<SODE>
<SimObject Name="T2 Hangar">
<Placement Lat="52.6056768361" Lon="-1.036713039" Alt="0.0#AGL" Hdg="-41.5"/>
<Model SimTitle="EGBG_T2_Hangar"/>
<TriggerableAnimation Input="TextMenu" Action="Open,Close" StartKF="0" EndKF="100" Duration="4" IgnoreRadiusFilter="Yes"/>

</SimObject>
</SODE>

Just a guess but perhaps you need closing xml tags?

</TriggerableAnimation>
</Model>
 
Any behavioural "tag" (like TriggerableAnimation) is a child of the Model tag -> https://sode.12bpilot.ch/?document=the-xml-definition-file/model

XML:
<SODE>
  <SimObject Name="T2 Hangar">
    <Placement Lat="52.6056768361" Lon="-1.036713039" Alt="0.0#AGL" Hdg="-41.5"/>
    <Model SimTitle="EGBG_T2_Hangar">
       <TriggerableAnimation Input="TextMenu" Action="Open,Close" StartKF="0" EndKF="100" Duration="4" IgnoreRadiusFilter="Yes"/>
    </Model>
  </SimObject>
</SODE>
 
Any behavioural "tag" (like TriggerableAnimation) is a child of the Model tag -> https://sode.12bpilot.ch/?document=the-xml-definition-file/model

XML:
<SODE>
  <SimObject Name="T2 Hangar">
    <Placement Lat="52.6056768361" Lon="-1.036713039" Alt="0.0#AGL" Hdg="-41.5"/>
    <Model SimTitle="EGBG_T2_Hangar">
       <TriggerableAnimation Input="TextMenu" Action="Open,Close" StartKF="0" EndKF="100" Duration="4" IgnoreRadiusFilter="Yes"/>
    </Model>
  </SimObject>
</SODE>


Any idea where I am going wrong, Jeffrey?
Will it be the fact the doors are there own individual mesh? (they share the same texture). In MCX Animation Editor, I see 4 instances of SODE_1_4SEC - which would make sense to me as the doors are separate objects....
 
Any idea where I am going wrong, Jeffrey?
Will it be the fact the doors are there own individual mesh? (they share the same texture). In MCX Animation Editor, I see 4 instances of SODE_1_4SEC - which would make sense to me as the doors are separate objects....

He just told you it's jus a syntax error in your xml code
 
He just told you it's jus a syntax error in your xml code


When I add the </Model> tag, the model completely disappears from the sim.. not even a red X....
Also the animation is still not detected by the menu
 
Last edited by a moderator:
<SODE>
<SimObject Name="T2 Hangar">
<Placement Lat="52.6056768361" Lon="-1.036713039" Alt="0.0#AGL" Hdg="-41.5"/>
<Model SimTitle="EGBG_T2_Hangar"/>
<TriggerableAnimation Input="TextMenu" Action="Open,Close" StartKF="0" EndKF="100" Duration="4" IgnoreRadiusFilter="Yes"/>
</Model>
</SimObject>
</SODE>

2018-10-28 18_51_55-sim.cfg - Notepad.png
 
Now you closed the model twice now. Once in the model opening tag and the second in the closing tag.
You need to remove the '/' in the first one, so it says:

"<Model SimTitle="EGBG_T2_Hangar">"

Then it should work
 
Now you closed the model twice now. Once in the model opening tag and the second in the closing tag.
You need to remove the '/' in the first one, so it says:

"<Model SimTitle="EGBG_T2_Hangar">"

Then it should work


Ahh mate... I can not thank you enough, it works!

Personal de-brief, I did use SODEPlacer to place the model and added in the triggerable animation line - so I completely forgot to add the </Model> closing tag and the stray / I perhaps would have never figured out so again, thank you so so much!
 
Back
Top