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

FS2004 Animation over 1024 frames, a question...

Messages
473
Country
hungary
Yes I thought the same. I'll do that.


The files what I uploaded is free for use. If you like it you can add it to the download section or to wiki. However I want to extend the excel file with an additional option to help the tweaking.
How is working with the wiki? Can I extend it by myself or you can do it?
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,859
Country
netherlands
Hi,

Looks good those additions. I have changed the sections a bit to make it more logical.

I think XLS files can not be uploaded by default, but I will put it on the site manually.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,859
Country
netherlands
Hi,

I have (finally) uploaded the XLS and added the link in the wiki article.
 
Messages
86
Country
australia
This process is simply too long winded for the average scenery developer to sink there teeth into. It may be fine to do once or twice if you have a few hours or days to kill but if your making a scenery with more than one or two animations that require ASM tweaking, then a tool like CAT is really required to speed the process along.

Noboday really wants to spend weeks on just doing a few animations with extended time frames in a high risk mistake environment such as manually tweaking files for freeware projects.

Until a tool is developed, I can see very little freeware scenery developers putting them self through this hassle and they will continue to use more intensive AI models instead just to make do.

Arno, have you made any progress on a tool????

Mark
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,859
Country
netherlands
Hi Mark,

No, there is no progress on a tool for this. Technically it would be possible, but for the near future I have no time for it. To develop an easy to use and robust tool is a few weeks of work as well.
 
Messages
86
Country
australia
Arno,

As alway's, your time and effort to the FS community is very much appreciated by one and all. It will be really outstanding when you can get to this project.

Mark
 
Messages
473
Country
hungary
Today I did some animation again. In my animation 3 object is moving. This time I could not do it. I do not find the problem. Somewhere I made a mistake. I'm sure it is at the end of the code in the hex representation code. No clue how it works. I think I'll export the 3 objects separately and keep them in separate mdl.

Question. The animation is not smooth. Sometimes the object is shaking a little bit. Is there a way to increase smooth?
 
Messages
473
Country
hungary
Hello Guys!

Can somebody help me? I get a lot of error when I want to comply my asm file:

In the attachment are the origin files:

D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9>bglc_9 -mdl trainanim1.asm
Microsoft (R) Flight Simulator BGL Compiler Version 8.00
Copyright (C) Microsoft Corp 1981-2002. All rights reserved.

Assembling: trainanim1.azm
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4916) : error A200
6: undefined symbol : trainanim1_1_fc_2048
IFIN1(4): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4916): Include F
ile
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4916) : error A200
6: undefined symbol : trainanim1_1_fc_2048
ERRS16(1): Macro Called From
IFIN1(6): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4916): Include
File
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4917) : error A200
6: undefined symbol : trainanim1_1_fc_2048
IFMSK(4): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4917): Include F
ile
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4917) : error A200
6: undefined symbol : trainanim1_1_fc_2048
ERRS16(1): Macro Called From
IFMSK(7): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4917): Include
File
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4919) : error A200
6: undefined symbol : trainanim1_1_fc_2048
IFMSK(4): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4919): Include F
ile
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4919) : error A200
6: undefined symbol : trainanim1_1_fc_2048
ERRS16(1): Macro Called From
IFMSK(7): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4919): Include
File
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4921) : error A200
6: undefined symbol : trainanim1_1_fc_2048
IFMSK(4): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4921): Include F
ile
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4921) : error A200
6: undefined symbol : trainanim1_1_fc_2048
ERRS16(1): Macro Called From
IFMSK(7): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4921): Include
File
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4923) : error A200
6: undefined symbol : trainanim1_1_fc_2048
IFMSK(4): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4923): Include F
ile
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4923) : error A200
6: undefined symbol : trainanim1_1_fc_2048
ERRS16(1): Macro Called From
IFMSK(7): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4923): Include
File
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4925) : error A200
6: undefined symbol : trainanim1_1_fc_2048
IFMSK(4): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4925): Include F
ile
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4925) : error A200
6: undefined symbol : trainanim1_1_fc_2048
ERRS16(1): Macro Called From
IFMSK(7): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4925): Include
File
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4927) : error A200
6: undefined symbol : trainanim1_1_fc_2048
IFMSK(4): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4927): Include F
ile
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4927) : error A200
6: undefined symbol : trainanim1_1_fc_2048
ERRS16(1): Macro Called From
IFMSK(7): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4927): Include
File
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4929) : error A200
6: undefined symbol : trainanim1_1_fc_2048
IFMSK(4): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4929): Include F
ile
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4929) : error A200
6: undefined symbol : trainanim1_1_fc_2048
ERRS16(1): Macro Called From
IFMSK(7): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4929): Include
File
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4971) : error A200
6: undefined symbol : trainanim1_1_fc_2048
IFIN1(4): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4971): Include F
ile
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4971) : error A200
6: undefined symbol : trainanim1_1_fc_2048
ERRS16(1): Macro Called From
IFIN1(6): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4971): Include
File
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4972) : error A200
6: undefined symbol : trainanim1_1_fc_2048
IFMSK(4): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4972): Include F
ile
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4972) : error A200
6: undefined symbol : trainanim1_1_fc_2048
ERRS16(1): Macro Called From
IFMSK(7): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4972): Include
File
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4974) : error A200
6: undefined symbol : trainanim1_1_fc_2048
IFMSK(4): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4974): Include F
ile
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4974) : error A200
6: undefined symbol : trainanim1_1_fc_2048
ERRS16(1): Macro Called From
IFMSK(7): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4974): Include
File
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4976) : error A200
6: undefined symbol : trainanim1_1_fc_2048
IFMSK(4): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4976): Include F
ile
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4976) : error A200
6: undefined symbol : trainanim1_1_fc_2048
ERRS16(1): Macro Called From
IFMSK(7): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4976): Include
File
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4978) : error A200
6: undefined symbol : trainanim1_1_fc_2048
IFMSK(4): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4978): Include F
ile
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4978) : error A200
6: undefined symbol : trainanim1_1_fc_2048
ERRS16(1): Macro Called From
IFMSK(7): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4978): Include
File
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4980) : error A200
6: undefined symbol : trainanim1_1_fc_2048
IFMSK(4): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4980): Include F
ile
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4980) : error A200
6: undefined symbol : trainanim1_1_fc_2048
ERRS16(1): Macro Called From
IFMSK(7): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4980): Include
File
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4982) : error A200
6: undefined symbol : trainanim1_1_fc_2048
IFMSK(4): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4982): Include F
ile
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4982) : error A200
6: undefined symbol : trainanim1_1_fc_2048
ERRS16(1): Macro Called From
IFMSK(7): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4982): Include
File
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4984) : error A200
6: undefined symbol : trainanim1_1_fc_2048
IFMSK(4): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4984): Include F
ile
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4984) : error A200
6: undefined symbol : trainanim1_1_fc_2048
ERRS16(1): Macro Called From
IFMSK(7): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(4984): Include
File
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5026) : error A200
6: undefined symbol : trainanim1_1_fc_2048
IFIN1(4): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5026): Include F
ile
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5026) : error A200
6: undefined symbol : trainanim1_1_fc_2048
ERRS16(1): Macro Called From
IFIN1(6): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5026): Include
File
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5027) : error A200
6: undefined symbol : trainanim1_1_fc_2048
IFMSK(4): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5027): Include F
ile
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5027) : error A200
6: undefined symbol : trainanim1_1_fc_2048
ERRS16(1): Macro Called From
IFMSK(7): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5027): Include
File
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5029) : error A200
6: undefined symbol : trainanim1_1_fc_2048
IFMSK(4): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5029): Include F
ile
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5029) : error A200
6: undefined symbol : trainanim1_1_fc_2048
ERRS16(1): Macro Called From
IFMSK(7): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5029): Include
File
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5031) : error A200
6: undefined symbol : trainanim1_1_fc_2048
IFMSK(4): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5031): Include F
ile
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5031) : error A200
6: undefined symbol : trainanim1_1_fc_2048
ERRS16(1): Macro Called From
IFMSK(7): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5031): Include
File
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5033) : error A200
6: undefined symbol : trainanim1_1_fc_2048
IFMSK(4): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5033): Include F
ile
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5033) : error A200
6: undefined symbol : trainanim1_1_fc_2048
ERRS16(1): Macro Called From
IFMSK(7): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5033): Include
File
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5035) : error A200
6: undefined symbol : trainanim1_1_fc_2048
IFMSK(4): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5035): Include F
ile
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5035) : error A200
6: undefined symbol : trainanim1_1_fc_2048
ERRS16(1): Macro Called From
IFMSK(7): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5035): Include
File
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5037) : error A200
6: undefined symbol : trainanim1_1_fc_2048
IFMSK(4): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5037): Include F
ile
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5037) : error A200
6: undefined symbol : trainanim1_1_fc_2048
ERRS16(1): Macro Called From
IFMSK(7): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5037): Include
File
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5039) : error A200
6: undefined symbol : trainanim1_1_fc_2048
IFMSK(4): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5039): Include F
ile
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5039) : error A200
6: undefined symbol : trainanim1_1_fc_2048
ERRS16(1): Macro Called From
IFMSK(7): Macro Called From
D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9\trainanim1_0.asm(5039): Include
File
BGLC: Error!

D:\Program Files\FS2004SDK\BGLCOMP_SDK\BGLC9>pause
A folytatáshoz nyomjon meg egy billentyűt . . .
 

Attachments

  • train_anim_error.zip
    65.1 KB · Views: 350

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,859
Country
netherlands
Hi,

As the error message says, the label trainanim1_1_fc_2048 is not defined. I do not see it in the ASM file either, but it is used. Did you tweak this file already or not?
 
Messages
473
Country
hungary
Yes this is a tweaked file.

The problem is I do not understand at that part what I'm doing. I try to change it according the wiki.

; Animation command for animation: 0 output index: 1
bgl_animation_command_start_trainanim1_1 label BGLCODE
; usrvar = tick18 mod 1000
LOCAL_BASE_32 trainanim1_1_tick18_mod_1
BGL_INTERPOLATE VAR_BASE_GLOBAL,BGL_TICK18,\
VAR_BASE_GLOBAL,usrvar,\
VAR_BASE_LOCAL,(offset trainanim1_1_tick18_mod_1 - offset trainanim1_1_tick18_mod_1)
LOCAL_BASE_32 trainanim1_1_tick18_mod_2
BGL_INTERPOLATE VAR_BASE_GLOBAL,usrvar,\
VAR_BASE_GLOBAL,usrvar,\
VAR_BASE_LOCAL,(offset trainanim1_1_tick18_mod_2 - offset trainanim1_1_tick18_mod_2)
; convert usrvar to float and store in usrvr2-usrvr3
LOCAL_BASE_32 trainanim1_1_float_convert_hi
BGL_INTERPOLATE VAR_BASE_GLOBAL,usrvar,\
VAR_BASE_GLOBAL,usrvr3,\
VAR_BASE_LOCAL,(offset trainanim1_1_float_convert_hi - trainanim1_1_float_convert_hi)
VAR_BASE_32 VAR_BASE_GLOBAL
SETWRD usrvr2,0
IFIN1 trainanim1_1_fc_512, usrvar,257,512
IFMSK trainanim1_1_fc_512, usrvar,0001h
SETWRD usrvr2,08000h
trainanim1_1_fc_512 label word
IFIN1 trainanim1_1_fc_1024, usrvar,513,1024
IFMSK trainanim1_1_fc_1024, usrvar,0003h
SETWRD usrvr2,04000h
IFMSK trainanim1_1_fc_1024, usrvar,0002h
SETWRD usrvr2,08000h
IFMSK trainanim1_1_fc_1024, usrvar,0001h
SETWRD usrvr2,0C000h
trainanim1_1_fc_1024 label word
IFIN1 trainanim1_1_fc_2048, usrvar,1025,2048
IFMSK trainanim1_1_fc_2048, usrvar,0007h
SETWRD usrvr2,02000h
IFMSK trainanim1_1_fc_2048, usrvar,0006h
SETWRD usrvr2,04000h
IFMSK trainanim1_1_fc_2048, usrvar,0005h
SETWRD usrvr2,06000h
IFMSK trainanim1_1_fc_2048, usrvar,0004h
SETWRD usrvr2,08000h
IFMSK trainanim1_1_fc_2048, usrvar,0003h
SETWRD usrvr2,0A000h
IFMSK trainanim1_1_fc_2048, usrvar,0002h
SETWRD usrvr2,0C000h
IFMSK trainanim1_1_fc_2048, usrvar,0001h
SETWRD usrvr2,0E000h
LOCAL_BASE_32 trainanim1_trans_1
BGL_ANIMATE_INDIRECT VAR_BASE_GLOBAL,usrvr2,VAR_BASE_LOCAL,(offset trainanim1_trans_1 - offset trainanim1_trans_1),0.0,0.0,0.0,1
bgl_animation_command_end_trainanim1_1 label BGLCODE
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,859
Country
netherlands
Hi,

The Wiki also shows that you have to add a label (named test_1_fc_2048 in the tutorial), with some additional code with checks below it. It seems you forgot to add that.

How many frames does your animation has? It depends on the frame count how many of these commands you need. They are needed to make sure that after interpolating the frame number it is stored correctly as a floating number.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,859
Country
netherlands
I would have to read my own tutorial again to see if the 2048 label is need for animation with 1024-2048 frames or for animations with more than 2048 frames.
 
Messages
1,749
Country
unitedstates
Updated tool

Hello Guys!


I'm still working on this asm tweak.

In the asm to continou the number of the frames I should rewrite 2x177 lines. That is annoying. As I'm an excel fan I've created a very easy excel sheet that does the job for us. I would like to share it with you. You can find it in the attachement. I did not hide the commands and I did not combined them to show how it works.
Usage is easy : Take your asm file, mark the lines copy them (CTRL+C) than open this excel file, paste it where it shows. Set the starting frame as you wish. Voila! In column B you can find the result what you can copy now and paste it to your asm file.
The method is easy, he extracts the frame number and add the "frame start" value to it and than he assembla the code again. It works properly. I could than generate an mdl than a bgl (however I was using the Frame start "0")

The big part of course to assamble the whole animation. I'm working on it.

Here you are : (I left my work in the excel, you can check it, but of course if you want to use the tool, you should remove it.)
I very welcome any suggestion, idea, opinion regarding this "tool"!


Hi,

I just posted a question on this topic in the wrong thread.
Well its moved here and I noticed you guys are working with the Excel tool.
My problem was I use Open Office and I am not sure if the tool should re number and range. I was getting 1024 down the row. So i looked at tool to see why the math was not working. I noticed The math was right but the function was not. So I found a function that works perfect and was able to repeat the formula. Now it works. Is it because I was not using Microsoft Excel?

Email me if you want a copy. You did create this right?
By the way after making a perfect 4 part animation. I noticed when it gets
to the second part of the animation it gets super jumpy. My animation has a stopped position for a while. When it gets to this point. The end of the send part, it jumps back to the beginning.

I do know that the numbers where the same range. I aslo know I have the right amount of entries listed. The other 2 parts I paste in is very simple.
So why the so jumply. Also the animation works fine as a 1024 solo.

I gave up. It's alot of work. But heres my asm.

http://flysim.us/videos/bus1_0.zip

Thanks DG,
 
Last edited:
Messages
473
Country
hungary
Hi,

I just posted a question on this topic in the wrong thread.
Well its moved here and I noticed you guys are working with the Excel tool.
My problem was I use Open Office and I am not sure if the tool should re number and range. I was getting 1024 down the row. So i looked at tool to see why the math was not working. I noticed The math was right but the function was not. So I found a function that works perfect and was able to repeat the formula. Now it works. Is it because I was not using Microsoft Excel?

Email me if you want a copy. You did create this right?
By the way after making a perfect 4 part animation. I noticed when it gets
to the second part of the animation it gets super jumpy. My animation has a stopped position for a while. When it gets to this point. The end of the send part, it jumps back to the beginning.

I do know that the numbers where the same range. I aslo know I have the right amount of entries listed. The other 2 parts I paste in is very simple.
So why the so jumply. Also the animation works fine as a 1024 solo.

I gave up. It's alot of work. But heres my asm.

http://flysim.us/videos/bus1_0.zip

Thanks DG,

Hi!

Yes, I've created the excel file. I do not know openoffice, but I can imagine that the formula does not work in open office.

This tweaking is a nightmare. My problem above is still not solved. I do not know how to correct it.

I hope, Arno the scenery superhero :) will once create an easy tool to merge animations! It could be part of MDX!
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,859
Country
netherlands
I hope, Arno the scenery superhero :) will once create an easy tool to merge animations! It could be part of MDX!

I would love to, but I doubt time will allow me to do so soon.
 
Messages
473
Country
hungary
Hello Guys!


I really can not solve this issue. I've an animation where 3 object is moving on 1627 frames. I can not compile the asm.

The problem is somewhere here:

; Animation parameters for animation: 2
trainanim1_2_tick18_mod_1 label word
dw 10
dw -32768,0,-16770,15999
dw -16768,0,-770,15999
dw -768,0,15230,15999
dw 15232,0,31230,15999
dw 31232,0,32767,1536
trainanim1_2_tick18_mod_2 label word
dw 32
dw 0,0,999,999
dw 1000,0,1999,999
dw 2000,0,2999,999
dw 3000,0,3999,999
dw 4000,0,4999,999
dw 5000,0,5999,999
dw 6000,0,6999,999
dw 7000,0,7999,999
dw 8000,0,8999,999
dw 9000,0,9999,999
dw 10000,0,10999,999
dw 11000,0,11999,999
dw 12000,0,12999,999
dw 13000,0,13999,999
dw 14000,0,14999,999
dw 15000,0,15999,999
trainanim1_2_float_convert_hi label word
dw 12 ; num entries
dw 0,0
dw 1,16256
dw 2,16384
dw 4,16512
dw 8,16640
dw 16,16768
dw 32,16896
dw 64,17024
dw 128,17152
dw 256,17280
dw 512,17408
dw 1024,17536

and here :

SETWRD usrvr2,0
IFIN1 trainanim1_1_fc_512, usrvar,257,512
IFMSK trainanim1_1_fc_512, usrvar,0001h
SETWRD usrvr2,08000h
trainanim1_1_fc_512 label word
IFIN1 trainanim1_1_fc_1024, usrvar,513,1024
IFMSK trainanim1_1_fc_1024, usrvar,0003h
SETWRD usrvr2,04000h
IFMSK trainanim1_1_fc_1024, usrvar,0002h
SETWRD usrvr2,08000h
IFMSK trainanim1_1_fc_1024, usrvar,0001h
SETWRD usrvr2,0C000h
trainanim1_1_fc_1024 label word
IFIN1 trainanim1_1_fc_2048, usrvar,1025,2048
IFMSK trainanim1_1_fc_2048, usrvar,0007h
SETWRD usrvr2,02000h
IFMSK trainanim1_1_fc_2048, usrvar,0006h
SETWRD usrvr2,04000h
IFMSK trainanim1_1_fc_2048, usrvar,0005h
SETWRD usrvr2,06000h
IFMSK trainanim1_1_fc_2048, usrvar,0004h
SETWRD usrvr2,08000h
IFMSK trainanim1_1_fc_2048, usrvar,0003h
SETWRD usrvr2,0A000h
IFMSK trainanim1_1_fc_2048, usrvar,0002h
SETWRD usrvr2,0C000h
IFMSK trainanim1_1_fc_2048, usrvar,0001h
SETWRD usrvr2,0E000h
LOCAL_BASE_32 trainanim1_trans_1

Could somebody help me? I've uploaded the source file too.
I would really appreciate your help! Thanks guys!
 

Attachments

  • trainanim1_0.asm
    394.2 KB · Views: 424
Top