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

Animation timer, is it possible

Messages
86
Country
australia
Probally a question for Arn. Is it possible to tweak the ASM file to include a timer, say 10 minutes, between the activation of a tick18 animation.

I only want the animation to run its full tick18 cycle once every 10 minutes, is that possible???

If so, what would an example of the code look like.

Many thanks for any advice,

Mark
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
31,944
Country
netherlands
Hi Mark,

One option could be to use code similar to CAT to trigger the animation. Then you would trigger it when the minutes of the hour variable is 0, 10, 20, 30, 40 and 50. It would then run once every ten minutes (but it would run the reverse animation afterwards as well as soon as the minute becomes 1, 11, 21, 31, 41, or 51.

Else you will have to dive into ASM tweaking. Using the minute of the hour variable you can build your own condition on when to animate.
 
Messages
86
Country
australia
Hi Arn,
Thanks for your reply.

The CAT tweaking option would be great for things like trains that can operate either end and your advice helps with that animation.

I also have a coal train which only operates in one direction, (forward) so CAT tweaking would not look proper in that instance.
Like most people, I have a limited knowledge of ASM tweaking but I am capable of copy/paste if some generous person is able to generate the code.
I'm sure the ASM time code would come in handy for a number of animated models.

Thanks for any advice,

Mark
 
Messages
86
Country
australia
Arno,

I read through the SDK's and while there is mention of using HOD from 0-23, MOD from 0-59 and even SOM 0-59 seconds, there are doesn't seem to be any examples as to how to write the code for the ASM file.

Unfortunitely, TweakerII proggy doesn't go any further than day of the year and I couldn't see any where different in the CAT proggy???

Any help to get this timer working would be very much appreciated.

Regards,

Mark
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
31,944
Country
netherlands
Hi,

I think what you found in the SDK are the conditions for effects, but that is not the same as the ASM variables.

388h is the variable for minutes of the hour. So it will run from 0 to 59. You can use it for your conditions. To experiment you can type this variable in CAT or MDL Tweaker (it is not in the predefined list indeed).
 
Top