Hi PakMac
I ran into a problem with editing the _0.asm file. It wasn't as 'clean' as yours. Here is what it has in the part I am to edit.
================================
PAPI_04_064_MasterScale_2 label BGLCODE
BGL_FTAG "MasterUnitConve", 0.00 ; Node 2
; Node 2 - MasterUnitConversion transform:
BGL_SET_MATRIX_INDIRECT 12
BGL_FTAG "RotateAroundX", 0.00 ; Node 3
; Node 3 - RotateAroundX transform:
BGL_SET_MATRIX_INDIRECT 13
BGL_FTAG "PAPI_1W", 0.00 ; Node 5
; Node 5 - PAPI_1W transform:
BGL_SET_MATRIX_INDIRECT 14
IFMSK nolgt_1, dict_0_g_lightStates, LIGHT_NAV_MASK
BGL_LIGHT LIGHT_NAV, -0.025, 0.017, -0.000, 20, 0.60, 0.40, 0FFFDFDFDh, 0.000000, 0.000000, 1.000000 ; source poly num = 13
nolgt_1 label BGLCODE
BGL_FTAG "PAPI_1R", 0.00 ; Node 6
; Node 6 - PAPI_1R transform:
BGL_SET_MATRIX_INDIRECT 15
IFMSK nolgt_2, dict_0_g_lightStates, LIGHT_NAV_MASK
BGL_LIGHT LIGHT_NAV, -0.025, 0.017, -0.000, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 14
nolgt_2 label BGLCODE
BGL_FTAG "PAPI_1R01", 0.00 ; Node 8
; Node 8 - PAPI_1R01 transform:
BGL_SET_MATRIX_INDIRECT 16
IFMSK nolgt_3, dict_0_g_lightStates, LIGHT_NAV_MASK
BGL_LIGHT LIGHT_NAV, -0.025, 0.017, -0.000, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 903
nolgt_3 label BGLCODE
BGL_FTAG "PAPI_1W01", 0.00 ; Node 9
; Node 9 - PAPI_1W01 transform:
BGL_SET_MATRIX_INDIRECT 17
IFMSK nolgt_4, dict_0_g_lightStates, LIGHT_NAV_MASK
BGL_LIGHT LIGHT_NAV, -0.025, 0.017, -0.000, 20, 0.60, 0.40, 0FFFDFDFDh, 0.000000, 0.000000, 1.000000 ; source poly num = 904
nolgt_4 label BGLCODE
BGL_FTAG "PAPI_1R02", 0.00 ; Node 12
; Node 12 - PAPI_1R02 transform:
BGL_SET_MATRIX_INDIRECT 18
IFMSK nolgt_5, dict_0_g_lightStates, LIGHT_NAV_MASK
BGL_LIGHT LIGHT_NAV, -0.025, 0.017, -0.000, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 1805
nolgt_5 label BGLCODE
BGL_FTAG "PAPI_1W02", 0.00 ; Node 13
; Node 13 - PAPI_1W02 transform:
BGL_SET_MATRIX_INDIRECT 19
IFMSK nolgt_6, dict_0_g_lightStates, LIGHT_NAV_MASK
BGL_LIGHT LIGHT_NAV, -0.025, 0.017, -0.000, 20, 0.60, 0.40, 0FFFDFDFDh, 0.000000, 0.000000, 1.000000 ; source poly num = 1806
nolgt_6 label BGLCODE
BGL_FTAG "PAPI_1R03", 0.00 ; Node 16
; Node 16 - PAPI_1R03 transform:
BGL_SET_MATRIX_INDIRECT 20
IFMSK nolgt_7, dict_0_g_lightStates, LIGHT_NAV_MASK
BGL_LIGHT LIGHT_NAV, -0.025, 0.017, -0.000, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 2707
nolgt_7 label BGLCODE
BGL_FTAG "PAPI_1W03", 0.00 ; Node 17
; Node 17 - PAPI_1W03 transform:
BGL_SET_MATRIX_INDIRECT 21
IFMSK nolgt_8, dict_0_g_lightStates, LIGHT_NAV_MASK
BGL_LIGHT LIGHT_NAV, -0.025, 0.017, -0.000, 20, 0.60, 0.40, 0FFFDFDFDh, 0.000000, 0.000000, 1.000000 ; source poly num = 2708
nolgt_8 label BGLCODE
BGL_RETURN
=============================
and here is my best guess at editing it per the tutorial:
==============================
PAPI_04_064_MasterScale_2 label BGLCODE
BGL_FTAG "MasterUnitConve", 0.00 ; Node 2
; Node 2 - MasterUnitConversion transform:
BGL_SET_MATRIX_INDIRECT 12
BGL_FTAG "RotateAroundX", 0.00 ; Node 3
; Node 3 - RotateAroundX transform:
BGL_SET_MATRIX_INDIRECT 13
BGL_ZBIAS 1
SEPARATION_PLANE WrongSide, -29300, 0, -14672, 32768
SEPARATION_PLANE below1, 1398, 32737, 297, 32768
BGL_FTAG "PAPI_1W", 0.00 ; Node 5
; Node 5 - PAPI_1W transform:
BGL_SET_MATRIX_INDIRECT 14
BGL_LIGHT LIGHT_NAV, -0.025, 0.017, -0.000, 20, 0.60, 0.40, 0FFFDFDFDh, 0.000000, 0.000000, 1.000000 ; source poly num = 13
BGL_JUMP_32 above1
below1 label BGLCODE
BGL_FTAG "PAPI_1R", 0.00 ; Node 6
; Node 6 - PAPI_1R transform:
BGL_SET_MATRIX_INDIRECT 15
BGL_LIGHT LIGHT_NAV, -0.025, 0.017, -0.000, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 14
above1 label BGLCODE
SEPARATION_PLANE below2, 1448, 32728, 725, 32768
BGL_FTAG "PAPI_1R01", 0.00 ; Node 8
; Node 8 - PAPI_1R01 transform:
BGL_SET_MATRIX_INDIRECT 16
BGL_LIGHT LIGHT_NAV, -0.025, 0.017, -0.000, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 903
BGL_JUMP_32 above2
below2 label BGLCODE
BGL_FTAG "PAPI_1W01", 0.00 ; Node 9
; Node 9 - PAPI_1W01 transform:
BGL_SET_MATRIX_INDIRECT 17
BGL_LIGHT LIGHT_NAV, -0.025, 0.017, -0.000, 20, 0.60, 0.40, 0FFFDFDFDh, 0.000000, 0.000000, 1.000000 ; source poly num = 904
above2 label BGLCODE
SEPARATION_PLANE below3, 1619, 32718, 811, 32768
BGL_FTAG "PAPI_1R02", 0.00 ; Node 12
; Node 12 - PAPI_1R02 transform:
BGL_SET_MATRIX_INDIRECT 18
BGL_LIGHT LIGHT_NAV, -0.025, 0.017, -0.000, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 1805
BGL_JUMP_32 above3
below3 label BGLCODE
BGL_FTAG "PAPI_1W02", 0.00 ; Node 13
; Node 13 - PAPI_1W02 transform:
BGL_SET_MATRIX_INDIRECT 19
BGL_LIGHT LIGHT_NAV, -0.025, 0.017, -0.000, 20, 0.60, 0.40, 0FFFDFDFDh, 0.000000, 0.000000, 1.000000 ; source poly num = 1806
above3 label BGLCODE
SEPARATION_PLANE below4, 1789, 32707, 896, 32768
BGL_FTAG "PAPI_1R03", 0.00 ; Node 16
; Node 16 - PAPI_1R03 transform:
BGL_SET_MATRIX_INDIRECT 20
BGL_LIGHT LIGHT_NAV, -0.025, 0.017, -0.000, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 2707
BGL_JUMP_32 above4
below4 label BGLCODE
BGL_FTAG "PAPI_1W03", 0.00 ; Node 17
; Node 17 - PAPI_1W03 transform:
BGL_SET_MATRIX_INDIRECT 21
BGL_LIGHT LIGHT_NAV, -0.025, 0.017, -0.000, 20, 0.60, 0.40, 0FFFDFDFDh, 0.000000, 0.000000, 1.000000 ; source poly num = 2708
above4 label BGLCODE
WrongSide label BGLCODE
BGL_RETURN
========================================
So, first I am not sure if I got that right.
Second, I don't have BGL9.exe so I copied FSX's BGLComp.exe and Bglcomp.xsd to the folder containing .mdl, .asm etc. and ran it in a DOS window at the same location. It did not create a .bgl file. Also I read somewhere else that I should run bglcomp for the .xml file and it came up with errors:
..and here I am stabbing in the dark... ref the error messages the .xsd file does appear to define 'name':
=================================
.....
<xs:group name="grpFSDataChildren">
<xs:choice>
<xs:element name="Airport" type="ctAirport" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="Marker" type="ctMarker" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="Waypoint" type="ctWaypoint" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="Boundary" type="ctBoundary" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="Vor" type="ctVor" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="Ndb" type="ctNdb" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="SceneryObject" type="ctSceneryObject" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="ExtrusionBridge" type="ctExtrusionBridge" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="ModelData" type="ctModelData" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="Geopol" type="ctGeopol" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="ExclusionRectangle" type="ctExclusionRectangle" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="Reward" type="ctReward" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="TimeZone" type="ctTimeZone" minOccurs="0" maxOccurs="unbounded" />
</xs:choice>
</xs:group>
.........
======================================
... if that means anything.
Can you tell me if you see anything wrong here?
thanks
klem