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

Dynamic Scenery HELP!

Many thanks Jeff! Looks ok now.

Peter: I'm a bit confused about logfile because i set, but i never get any other file without the BGL.

Is that possible that more objects use the same path but they have different starting positions? If yes, how? The 64k is not too much.
 
Assign the extension "sca" so it compiles directly when doubleclick. The drag and drop-method seems not generate a logfile.

Cheers, Peter
 
Hello again,


why i cannot change the texture on a dynamic object? I explained a problem in this topic but now i also tried to make a simple night texture(with _LM.bmp extension) for my dynamic object but don't work. I know how to do it in gmax and in scasm and the code looks ok but the textures are never changed so i see the same texture at day and night. Why?
 
Not all variables are natively accessible to dynamic scenery. TOD is probably one of them. You might be able to get your textures to change based on TOD by using an override in your objects code. That is how I managed to get strobe lights to flash.

VAR_BASE_OVERRIDE VAR_BASE_GLOBAL

IFMSK nolgt_16, beacnt, 00002h
BGL_LIGHT LIGHT_STROBE, -0.000, -0.000, 0.102, 40, 0.60, 0.40, 0FFFFFFFFh, 0.000000, 0.000000, 1.000000 ; source poly num = 2181

nolgt_16 label BGLCODE

Of course, if you are using SCASM you will have to use a similar code based on that language and replace the variable with TOD as well as the correct command structure.

Lou
 
Hi !

If you want to have the object to react on a scenery variable, you do like this in scasm ;

Low64k2var( 30 28C ) ;Time of day, 1=day 2 =dusk/dawn 4 = night

With this command you have set the local variable ( the object var ) 30 to the value of the sceneryVar 28C that holds the time of day. This line can be inserted wheresoever in the code. Then you can use the object var like this ;

IfVarAnd ( :Else 30 1 )
;Here you have the code of what's to be done if it's "day".
:Else ; ....and here what happends if not.
Return

You can read more about the objectvar's in the scasm doc here ; http://www.scasm.de/doc/sca_objl.htm

Cheers, Peter
 
Thanks i will try it!

I think that before 'compile the ASM code to library and decompile it to SCASM' a can use the VAR_BASE command in the ASM code but it seems to me better to make in scasm after the decompilation.
 
I have one idea, but I haven't any clues how to realize it. So, I've modelled a bridge approx. 2.5 km lenght and created a dynamic lybrary consists of a number of cars. Knowing the 64 kb limit of the animation file, And using just two vice-versa bridge roads I want to do the following:
a) cars ought to call from the library randomly
b) SetPos of each car (meaning the beginning of its moving) ought to defines randomly too (and each car have to go all the cycle of MoveTo waypoints step by step)
c) the distance between cars must not to be more than (x) and less then (y)
What can you say?
 
Last edited:
Back
Top