• 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 Groundpoly Autogen Problem

Messages
7
Country
austria
Hi,

I,ve made a Groundpoly with FS2002 Gamepack and tried the asm Tweak SCALE_AGL_ OBJECT_0_RETURN, 0, 0, 0, 0, 0, 0, 0, 0, 0 for keeping the Autogen around the Poly, but that Tweak wont work, when i filled in these Line in the asm_0, no bgl. will be generated with the BGLC.exe, without the Line the BGLC worked but all Autogen around disappears:(
Whats wrong , can anyone help me ?
I use the FS2004.

Thanks,
Thomas
 

Attachments

  • Lande_0.asm
    359.4 KB · Views: 435

arno

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

Normally I will put the dummy SCALE command in the main ASM file, not in the _0.ASM. Try to put it just under the call to your included _0 file.

Which error message did you get when the BGL was not compiled correctly? That should tell you what is going wrong.
 
Messages
7
Country
austria
Hi Arno,

When i put it into the asm. file like this
Code:
OBJECT_0_SCALE label    BGLCODE
    SCALE_AGL   OBJECT_0_RETURN, 10000, 1372, 131072, 0005107A5h, 098E4h, 0094065F1h, 0E43Dh, 0, 0
    BGL_CALL        OBJECT_0_BEGIN
OBJECT_0_RETURN label word
     SCALE_AGL OBJECT_0_RETURN, 0, 0, 0, 0, 0, 0, 0, 0, 0
BGL_RETURN
OBJECT_0_BEGIN label word
model_outside    label    BGLCODE
model_shadow label BGLCODE

LOD_0    label    BGLCODE
    BGL_JUMP_32    LOD_0L

model_inside  label    BGLCODE
    BGL_RETURN
the bgl. will be compilled but when loading the Scenery the FS freezed and crash.

Here´s the BGLC error Message
Any Idea ?
 

Attachments

  • BGLC error.jpg
    BGLC error.jpg
    67.5 KB · Views: 492

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
31,843
Country
netherlands
Try to put it one line higher. Now you end up in some sort of endless loop, since the label you jump to is before the command.
 
Messages
7
Country
austria
THAT WORKS ! fantastic:cool:, Polygon and all Autogen shown up now !, unbelievable !
Many, many Thanks Arno ! ! !
I´m a Newbie in Scenery Design and there´s a lot to learn for me, this forum is the best place to do this.

Thomas,
 

arno

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

I am glad to hear you got it working now :).
 
Messages
116
Hello Arno.
The code works well however it seems that when I arrive at the tweaked airport from another airport the autogen is not visible any longer. I have tried this several times. When starting at that airport again the whole autogen shows up perfectly. Would you have any adia what might be the cause? Thank you!
 
Messages
116
I have recheched the issue and every time I fly to the edited airport it unfortunately lacks the autogen. However when I load a flight at that airport the autogen is perfectly displayed... I would appreciate any suggestion on fixing the issue, if anyone has any :) Here is the code but it is made just as it should be, as far as I see...



;compile with BGLC /BGL D:\Design\XXX\EPBC_mapsat_10.asm
header label word
dw 0001 ; 00 World set number
dd 00058A7F6H ; 02 North bound
dd 00058990CH ; 06 South bound
dd 00EDEE9D7H ; 10 East bound
dd 00EDEE9D5H ; 14 West bound
dw 20 dup(0)
dd (offset OBJECT_DATA) - (offset header)
dw 33 dup(0)

OBJECT_DATA label word
db 21 ;;LATBAND_REL
dw 02C4Ch ;;lat min (inclusive) 512M units
dw 02C54h ;;lat max (exclusive)
dd (offset OBJECT_0) - (offset OBJECT_DATA)
db 0 ;;EOL
OBJECT_0 label BGLCODE
db 12 ; NEAR_FAR_HUGE_OBJECT_HEADER
dd 00058A081h,00EDEE9D6h ; latitude,longitude
db 100 ; image power
dd (offset OBJECT_0_END) - (offset OBJECT_0)
OBJECT_0_START label word
IFIN1 OBJECT_0_FAIL, image_complex, 2, 32767

ADDCAT OBJECT_0_SCALE, 10

OBJECT_0_FAIL label BGLCODE
BGL_JUMP_32 OBJECT_0_END
OBJECT_0_SCALE label BGLCODE
SCALE_AGL OBJECT_0_RETURN, 10000, 1909, 131072, 00058A081h, 00204h, 00EDEE9D6h, 009ECh, 0, 0
BGL_CALL OBJECT_0_BEGIN

SCALE_AGL OBJECT_0_RETURN, 0, 0, 0, 0, 0, 0, 0, 0, 0

OBJECT_0_RETURN label word
BGL_RETURN
OBJECT_0_BEGIN label word
model_outside label BGLCODE
model_shadow label BGLCODE

LOD_0 label BGLCODE
BGL_JUMP_32 LOD_0L

model_inside label BGLCODE
BGL_RETURN
LOD_0L label BGLCODE
include D:\Design\XXX\EPBC_mapsat_10_0.asm



OBJECT_0_END label word
EOF
 
Last edited:

arno

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

I have heard of such problems before and I think it is a limitation in FS (or in the tweak). I am not aware of workarounds.
 
Messages
116
Update: you should add to the tutorial (or the code description) that it can't be used with layers 8, 12, 16, 20 and 24 because it creates shimmering. All other layers are ok.
 
Last edited:

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
31,843
Country
netherlands
Thanks for sharing, that is new information for me as well.
 
Messages
116
It took me some time to figure that out :) . I have used layers 9-11 for quite a long time while working on some smaller airports and when I got to layer 16 it became, well, weird at least :) . Anyway those layers should not be used with that code, at least in my case (I hope someone could confirm that).
 
Messages
116
Glad I could help.
So the only remaining problem is that the autogen is not displayed when you arrive at the edited airport from another airport. It is displayed only when you start your flight there... Better then nothing though :)
 
Top