BGLC_9 isn't compiling

Hello guys

I recently made a plane with Gmax, and tweaked the .asm files as explained here but when tried to compile with the BGLC_9, nothing happened because there is no .bgl file generated

Here my tweaked .asm code

;compile with BGLC /BGL G:\gmax\gamepacks\fs2002\Escenarios\SVMI\SVMI_Photoreal.asm
header label word
dw 0001 ; 00 World set number
dd 000120FAFH ; 02 North bound
dd 00011E8A9H ; 06 South bound
dd 0D0586D20H ; 10 East bound
dd 0D0586D1EH ; 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 008F4h ;;lat min (inclusive) 512M units
dw 00908h ;;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 00011FC2Ch,0D0586D1Fh ; 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, 1, 32767
ADDCAT OBJECT_0_SCALE, 8
OBJECT_0_FAIL label BGLCODE
BGL_JUMP_32 OBJECT_0_END
OBJECT_0_SCALE label BGLCODE
SCALE_AGL OBJECT_0_RETURN, 10000, 4995, 131072, 00011FC2Ch, 073FFh, 0D0586D1Fh, 0EDC4h, 0, 0
BGL_CALL OBJECT_0_BEGIN
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 G:\gmax\gamepacks\fs2002\Escenarios\SVMI\SVMI_Photoreal_0.asm



OBJECT_0_END label word
EOF
I made the same plane again, tweaked again, and tried to compile again, but still nothing

And made another plane polygon, compiled the plane and nothing, but... when compiling an old .asm file I have, it compiled successfully, it's very weird because I didn't see diference between the two codes, compare both codes

;compile with BGLC /BGL G:\gmax\gamepacks\fs2002\Escenarios\SVSA\SVSA_Photoreal.asm
header label word
dw 0001 ; 00 World set number
dd 0000D4FA2H ; 02 North bound
dd 0000D44E8H ; 06 South bound
dd 0CC7CC5DDH ; 10 East bound
dd 0CC7CC5DBH ; 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 006A2h ;;lat min (inclusive) 512M units
dw 006A8h ;;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 0000D4A45h,0CC7CC5DCh ; 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, 1, 32767
ADDCAT OBJECT_0_SCALE, 8
OBJECT_0_FAIL label BGLCODE
BGL_JUMP_32 OBJECT_0_END
OBJECT_0_SCALE label BGLCODE
SCALE_AGL OBJECT_0_RETURN, 10000, 1373, 131072, 0000D4A45h, 02C3Eh, 0CC7CC5DCh, 0A6EEh, 0, 0
BGL_CALL OBJECT_0_BEGIN
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 G:\gmax\gamepacks\fs2002\Escenarios\SVSA\SVSA_Photoreal_0.asm



OBJECT_0_END label word
EOF
I don't understand, what I'm doing wrong :confused:?
 
Last edited:

rhumbaflappy

Moderator
Staff member
Resource contributor
Just a guess... But

G:\gmax\gamepacks\fs2002\Escenarios\SVMI\SVMI_Phot oreal_0.asm

contains a space, and that won't compile.

Dick
 
Hi Dick, thank you for your reply, I checked the .asm files and that space is not included, I don't know why that space appears here because it isn't in the .asm files
 
OMG, shame on me :eek:, the bgl always was there

Sorry about that

Please delete this thread
 

n4gix

Resource contributor
For some odd reason, this forum software does strange things to paths and/or filenames when put in a "Quotes" box:

G:\gmax\gamepacks\fs2002\Escenarios\SVMI\SVMI_Photoreal_0.asm
but not when placed in a "Code" box:

Code:
G:\gmax\gamepacks\fs2002\Escenarios\SVMI\SVMI_Photoreal_0.asm
 
Top