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

Custom animation length

Messages
228
Country
france
Hi Jeffrey,

is it possible to set an animation for hangar doors that last more than 4 seconds (ie 40s)?. I have tried to add a new one in modeldef.xml but without success (error message at compilation). Maybe I'm wrong with my code (see attached file). If not yet implemented, can you add it to the wishlist?
 

Attachments

Hello Jeffrey,
I built a hangar with movable gates.
The "SODE" module works well, but the movement is too fast!
I want to increase the movement time to 10sec ...
I changed "Modeldef.xml" like this :

Code:
<!-- ### SIMOBJECT DISPLAY ENGINE ### -->  
  <Animation name="SODE_Trigger_1_4SEC" guid="0e586c0a-1e20-4a01-a077-25f74198b650" length="100" type="Sim" typeParam2="SODE_Trigger_1_4SEC" typeParam="AutoPlay"/>
    <Animation name="SODE_Trigger_2_4SEC" guid="0e586c0a-1e20-4a01-a077-25f74198b651" length="100" type="Sim" typeParam2="SODE_Trigger_2_4SEC" typeParam="AutoPlay"/>  
    <Animation name="SODE_Trigger_1_10SEC" guid="e2de0edd-3580-4fc0-9829-b3b098a1bf25" length="100" type="Sim" typeParam2="SODE_Trigger_1_10SEC" typeParam="AutoPlay"/>      
  <AnimationGroup name="SimObject Display Engine" guid="0xB331C7EF,0xE2BA4276,0x254A10A1,0x4B457465">
        <AnimationRef guid="0e586c0a-1e20-4a01-a077-25f74198b650"/>
        <AnimationRef guid="0e586c0a-1e20-4a01-a077-25f74198b651"/>
        <AnimationRef guid="e2de0edd-3580-4fc0-9829-b3b098a1bf25"/>
  </AnimationGroup>
  
    <!-- Animation Code -->  
    <PartInfo>
        <Name>SODE_Trigger_1_10SEC</Name>
        <AnimLength>100</AnimLength>
        <Animation>
            <Parameter>
                <Code> <!-- Masks bit 1 (0x0001) out of the SimVar and checks if set -->
                (A:VELOCITY BODY Z, number) near 0x0001 &amp; 0x0001 == if{ 100 } els{ 0 }
                </Code>              
                <Lag>10</Lag> <!-- Defines duration of animation: 100Frames/10 = 10 seconds -->
            </Parameter>
        </Animation>      
    </PartInfo>  
    <!-- End Animation Code -->

But Gmax does not accept these fields and indicates a compile-time error!
How do I edit 'Modeldef.xml' to get to this movement time?

Best Regards

Patrick
 
Hi guys, I have moved your posts to a new thread.

@ Jacques:
You still need to use bit 0 for the trigger, so 0x0003 should be still 0x0001.
Also, are 1000 keyframes really needed? You can also have 100 keyframes and set Lag to 2 to get 50secs, or 100KF and Lag 2.5 results in 40secs.

Code:
<PartInfo>
  <Name>SODE_Trigger_1_50SEC</Name>
  <AnimLength>1000</AnimLength>
  <Animation>
    <Parameter>
      <Code> <!-- Masks bit 0 (0x0001) out of the SimVar and checks if set -->
         (A:VELOCITY BODY Z, number) near 0x0001 & 0x0001 == if{ 1000 } els{ 0 }
      </Code>
      <Lag>20</Lag><!-- Defines duration of animation: 1000Frames/20 = 50 seconds -->
    </Parameter>
  </Animation>
</PartInfo>

@ Patrick:
Your code I pasted in my modeldef.xml works nicely...Can you attach your modeldef.xml here?
 
Hi guys, I have moved your posts to a new thread.

@ Jacques:
You still need to use bit 0 for the trigger, so 0x0003 should be still 0x0001.
Also, are 1000 keyframes really needed? You can also have 100 keyframes and set Lag to 2 to get 50secs, or 100KF and Lag 2.5 results in 40secs.

Code:
<PartInfo>
  <Name>SODE_Trigger_1_50SEC</Name>
  <AnimLength>1000</AnimLength>
  <Animation>
    <Parameter>
      <Code> <!-- Masks bit 0 (0x0001) out of the SimVar and checks if set -->
         (A:VELOCITY BODY Z, number) near 0x0001 & 0x0001 == if{ 1000 } els{ 0 }
      </Code>
      <Lag>20</Lag><!-- Defines duration of animation: 1000Frames/20 = 50 seconds -->
    </Parameter>
  </Animation>
</PartInfo>

@ Patrick:
Your code I pasted in my modeldef.xml works nicely...Can you attach your modeldef.xml here?

Thanks a lot for your reply Jeffrey, I will test in a few days.
 
Hi Jeffrey,

I followed your instructions but I get this error message at compilation with gmax : " No definition found for animation "SODE_Trigger_2_40SEC".

(Patrick get the same message)
 

Attachments

Hello Jeffrey,

My 'Modeldef.xml' is attached to this message.

When compiling in Gmax, first I get this message :
SODE_Anim_01.jpg


Then the second :
SODE_Anim_02.jpg


The compilation does not work !

Best regards ...

Patrick
 

Attachments

Your modeldef is compiling fine here...
Where is your modeldef.xml located and can you show me a screenshot of the animation tool (from FSX SDK)?
 
Hi Jeffrey,

We (Patrick and I) finally succeed in compiling animated doors with FSX SDK. We previously attempt to do it with P3D2 SDK and that's why we failed.
For now, I have no idea about the cause of errors.

Best regards
 
Hello Jeffrey,

I made a 'P3D2_GmaxGamePack' and it works ...
See :
http://www.pilote-virtuel.com/viewtopic.php?id=59438
https://sites.google.com/site/patdebarrsimus/home/tutos
https://drive.google.com/file/d/0B4M0_rBrbLnfZVBKUDF5QUdtWDQ/view?usp=sharing

All previous animations, in standard mode or SODE, were exported with this GamePack successfully.
The original control "SODE_Trigger_1_4SEC" works perfectly with this GamePack.
The only one that does not work with this package is the last modified control doors.

For informations :
In FS-X SDK, my 'modeldef.xml' is here :
FSX-SDK.jpg


In P3D2 SDK, my 'modeldef.xml' is here :
P3D2-SDK.jpg


My Gmax has 2 GamePacks :
Gmax-GPacks.jpg

P3D2 must be installed to work with 'P3D2_GmaxGamePack'.

Best regards.

Patrick
 
Sorry to bring up a thread but now I am getting a "No animation definition" message when trying to compile an animation.

I recently went through god knows how much hassle to get the damn animation to be triggerable - well now I just added my own to get a 30 second animation and now for some reason it doesn't want to export with any animations at all after throwing out "No definition..." errors. I've changed NOTHING in the code.. just added.

At the top I added:
XML:
<Animation name="SODE_Trigger_1_30SEC" guid="0e586c0a-1e20-4a01-a077-25f74198b652" length="100" type="Sim" typeParam2="SODE_Trigger_1_30SEC" typeParam="AutoPlay"/>

Then in animation group I added:
XML:
<AnimationRef guid="0e586c0a-1e20-4a01-a077-25f74198b652"/>

Then at the bottom under animation code, under the already existing entries, I added:

XML:
    <PartInfo>
        <Name>SODE_Trigger_1_30SEC</Name>
        <AnimLength>100</AnimLength>
        <Animation>
            <Parameter>
                <Code> <!-- Masks bit 0 (0x0001) out of the SimVar and checks if set -->
                (A:VELOCITY BODY Z, number) near 0x0001 &amp; 0x0001 == if{ 100 } els{ 0 }
                </Code>             
                <Lag>3</Lag> <!-- Defines duration of animation: 100Frames/3 = 33.33 seconds -->
            </Parameter>
        </Animation>     
    </PartInfo>

My XML is located in E:\Lockheed Martin\Prepar3D SDK 1.4.4747.0\Environment Kit\Modeling SDK\bin

And just to clarify, previously working animations are no longer exporting with their animations, every setting gives me the "No definition..." error whether it's 4sec, 10sec or my own 30sec. Beginning to lose patience with thise SODE!!
And to FURTHER clarify... NONE of the previously perfectly working models are being exported with their animations, same old error - only this time I deleted the code I put in to have my own. :mad::banghead:
 
Last edited by a moderator:
Now, after starting with a fresh modeldef XML file with the standard SODE entries... no difference... it seems this tool has a mind of it's own, sometimes it will work and other times not.

A real piss off is that I have already 2 triggerable animated hangars in the scene which I exported yesterday - now I go to add in the final hangar and SODE wants to give me issues....

@12bPilot PLEASE sort it out.

I'm on the verge of completely abandoning this if it keeps crapping on me like this all the freaking time.
 
Hello Daren,

It seems that you are using the P3D1.4 SDK !!!
We are currently in the P3D4.3 version ...
Your problem is known and solutions exist.
Read the '* .pdf' attached ...
Good luck

Patrick
 

Attachments

Hello Daren,

It seems that you are using the P3D1.4 SDK !!!
We are currently in the P3D4.3 version ...
Your problem is known and solutions exist.
Read the '* .pdf' attached ...
Good luck

Patrick


I fixed the issue, well, I didn't it fixed itself some how!

Anyway, the fact I am using 1.4 SDK makes NO DIFFERENCE! as it's required for the versions I am covering - I appreciate the help but I don't appreciate the ignorance.
I also use 3DS Max, though thanks for the document...

Tu further elaborate, just incase anyone else gets this issue.. for some reason max decided not to use the modeldef.xml file in the Bin folder of my chosen SDK but instead chose the modeldef.xml file in my 3D editors specific plugins folder.. by that I mean it wasn looking in Modelling SDK/Bin but instead Modelling SDK/3DSM9/Plugins... I added the SODE code to that XML and it worked
 
Last edited by a moderator:
Back
Top