• 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 SCASM - dynamic scenery libraries

Messages
537
Country
canada
Good morning, all

This is for FS2004, for dynamic scenery.

I am very intrigued by dynamic scenery, old fashion as it is.

I have read all the SCASM documents, including the dynamic scenery Reference.

1. I have successfuly created a dynamic scenery for FS2004 using a basic bgl created by FS Action! demo. I de-compiled the bgl into an sca and then edited the sca to make the object do the trajectory I wanted. I used ADE to measure the metres east-west and north-south, and I got the vehicle to go very precisely where I wanted.

2. I am using, as the only thing that FS Action! demo does, the native DYNLIB.bgl library, that only has one fuel truck, and that is the problem I really want to solve.

3. I can look at the code of my own bgl (before I compile it) and I can look at the DYNLIB.bgl decompiled into an sca.

4. Looking at those two, and reading the SCASM manuals, I see the "Pattern" command calling for the object code, which I changed to 0FE10 (the truck), and that is where my question starts. (I never figured out how 0FE10 finds the truck, as 0FE10 is nowhere to be seen in DYNLIB.bgl.)

5. I would like to learn how to use the CallDLibObj command, instead of the Pattern command. My desire is to create a library of my own objects, more than just the native fuel truck. I know how to create the objects, that won't be an issue, I think.

6. To accomplish number 5, to learn how it works I tried to just replace Pattern with CallDLibObj and it doesn't work, of course. Then I tried to do the same as I have seen in another dynamic scenery file, with puts the CallDLibObj command under a label ( :Lxxxxxx ) and that crashed FS. I tried different variations of placing CallDLibObj, nothing worked.

7. I went looking for something that told me how the :Lxxxxxx worked, and found references in the SCASM Command Line Interface "suggests" that it can be anything withing a "block".

So, the question is:

A. Is there anything more detaild than the SCASM 2.22 Dynamic Scenery Reference that would explain how to call a library for a dynamic scenery sca?

B. How does SCASM decide which xxxxxx to name all the :Lxxxxxx? I tried a few different ones, but I couldn't figure out which numbers were valid, and I can't tell whether their position in the code sequence is relevant.

Any hints will be much appreciated. Thanks

Fern
 
Last edited:
Back
Top