FS2004 Groundpoly Autogen Problem

#1
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

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#2
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.
 
#3
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

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#4
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.
 
#5
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
#6
Hi Thomas,

I am glad to hear you got it working now :).
 
#7
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!
 
#8
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
#9
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.
 
#11
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:
#13
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).
 
#15
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