- Messages
- 180
- Country

Well I got through the modification of the .asm files. I made a test poly, and it worked. Now, I went back and created a runway, of just a single texture, and one plane. (It's just the surface, no lines yet).
However, I am now getting an error when I go to run BGLC on the file.
Fatal Error A1000: cannot open file *insert long location here*\rnwysurface_0.asm
BGLC: Error!
So here is the .asm, I think I have done everything right.
and the *_0.asm
So have I missed something?
Thanks for the help!
However, I am now getting an error when I go to run BGLC on the file.
Fatal Error A1000: cannot open file *insert long location here*\rnwysurface_0.asm
BGLC: Error!
So here is the .asm, I think I have done everything right.
Code:
;compile with BGLC /BGL C:\gmax\gamepacks\plugins\rnwysurface.asm
header label word
dw 0001 ; 00 World set number
dd 00041A2E9H ; 02 North bound
dd 0004198A9H ; 06 South bound
dd 0A98AF9CCH ; 10 East bound
dd 0A98AF9CAH ; 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 020CCh ;;lat min (inclusive) 512M units
dw 020D2h ;;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 000419DC9h,0A98AF9CBh ; 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, 8
OBJECT_0_FAIL label BGLCODE
BGL_JUMP_32 OBJECT_0_END
OBJECT_0_SCALE label BGLCODE
SCALE_AGL OBJECT_0_RETURN, 10000, 1312, 131072, 000419DC9h, 0E408h, 0A98AF9CBh, 099FFh, 0, 0
BGL_CALL OBJECT_0_BEGIN
OBJECT_0_RETURN label word
BGL_RETURN
OBJECT_0_BEGIN label word
model_outside label BGLCODE
BGL_CALL model_crash
model_shadow label BGLCODE
LOD_0 label BGLCODE
BGL_JUMP_32 LOD_0L
model_inside label BGLCODE
BGL_RETURN
model_crash label BGLCODE
BGL_CRASH_START model_crash_end, 2623
BGL_CRASH_OCTTREE crash_end_1
dw CRASH_FLAG_OBJECT ; crash type
dw 1 ; nodes used
real4 -46.000000,0.000000,-2622.000000 ; Box x,y,z
real4 1748.000000,1748.000000,5244.000000 ; Box w,h,d
dw 1, 1, 1, 1, 1, 1, 1, 1 ; base offset into node table, one for each top-level branch
; So if you take branch 2 (count from 0), you add 1 to indices you encounter on that branch
; Nodes (254=empty 255=full, else an index into branch)
OCTTREE_NODE 254, 254, 254, 254, 254, 254, 254, 254 ; node 0
crash_end_1 label word
model_crash_end label word
BGL_RETURN
LOD_0L label BGLCODE
include C:\gmax\gamepacks\plugins\rnwysurface_0.asm
OBJECT_0_END label word
EOF
and the *_0.asm
Code:
;--------- WARNING - WARNING - WARNING - WARNING - WARNING - WARNING ---------
;
; This file was automatically generated from C:\gmax\gamepacks\plugins\rnwysurface.x
; using the MakeMDL tool. Do not edit by hand, re-run the
; tool instead.
;
; generated on 05/21/08 15:27:53
;
;--------- WARNING - WARNING - WARNING - WARNING - WARNING - WARNING ---------
; BGL model for C:\gmax\gamepacks\plugins\rnwysurface.x
;
; $Header:$
;
;----------------------------------------------------------------------------
;
; Final Status: 2 polys
; Alpha Status: 0 polys
; Light Status: 0 polys
; Library Status: 0 polys
;
; Start Time: 05/21/08 15:27:53
; Stop Time : 05/21/08 15:27:54
;
; Modeling units = 2.0000
; Radius = 1311.2018
; Radius in meters = 1311.2018
; Radius in modeling units = 2623
;
rnwysurface_top label BGLCODE
BGL_BEGIN 0800h ; version = 8.00
TEXTURE_LIST_BEGIN
TEXTURE_DEF TEXTURE_AIRCRAFT , <255,255,255,255>, 51.542884, "RNWYPIECE.BMP" ; 0
TEXTURE_DEF TEXTURE2_NIGHT , <255,255,255,255>, 51.542884, "RNWYPIECE_LM.BMP" ; 1
TEXTURE_LIST_END
MATERIAL_LIST_BEGIN
MATERIAL_DEF 1.000000,1.000000,1.000000,1.000000, 0.392157,0.392157,0.392157, 0.000000,0.000000,0.000000, 0.000000,0.000000,0.000000, 0.000000 ; 0
MATERIAL_LIST_END
VERTEX_LIST_BEGIN
VERTEX_DEF -46.000004, 0.000000, 2622.000244, 0.000000, 1.000000, 0.000000, 0.024668,24.000000 ; 0 part= 1 prim=0
VERTEX_DEF -46.000004, 0.000000,-2622.000244, 0.000000, 1.000000, 0.000000, 0.024654,0.000500 ; 1 part= 1 prim=0
VERTEX_DEF 46.000004, 0.000000, 2622.000244, 0.000000, 1.000000, 0.000000, 0.970515,24.000000 ; 2 part= 1 prim=0
VERTEX_DEF 46.000004, 0.000000,-2622.000244, 0.000000, 1.000000, 0.000000, 0.970501,0.000500 ; 3 part= 1 prim=0
VERTEX_LIST_END
; NonAlpha
rnwysurface_NonAlpha label BGLCODE
MATERIAL 0,0 ; <255,255,255,255> RNWYPIECE.BMP;RNWYPIECE_LM.BMP;;
DRAW_TRI_BEGIN 0, 4
DRAW_TRI 3, 2, 1 ; poly=2 part=1
DRAW_TRI 0, 1, 2 ; poly=1 part=1
DRAW_TRI_END
BGL_END
BGL_RETURN
;--------- WARNING - WARNING - WARNING - WARNING - WARNING - WARNING ---------
;
; This file was automatically generated from C:\gmax\gamepacks\plugins\rnwysurface.x
; using the MakeMDL tool. Do not edit by hand, re-run the
; tool instead.
;
; generated on 05/21/08 15:27:53
;
;--------- WARNING - WARNING - WARNING - WARNING - WARNING - WARNING ---------
So have I missed something?
Thanks for the help!
