• 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.

Error on exporting from gmax with effects

JonPatch

Resource contributor
Messages
443
Country
ca-britishcolumbia
What does this mean? The model compiles fine without the effect as a scenery model, but I get this error if I compile as an aircraft model . . . and it compiles fine as an aircraft model without the effect.

Jon
------------------------------------------------------
Running model

Start! (C:\My Documents\1_Jon\Flight simulator\Development Projects\Victoria Cruise Ships V1.0 (VICENH04)\Scenery\pacific_pilot)
Loading X C:\My Documents\1_Jon\Flight simulator\Development Projects\Victoria Cruise Ships V1.0 (VICENH04)\Scenery\pacific_pilot...
Processing...
Model units are 1024.00 units/meter
Sorting by Material...
Optimize Parts...
Welding...
Generate BGL...
Assertion failed: file .\SceneGraph.cpp, line 546 (m_uBGLMatrixIndex != 0)
Done!
Generate crash tree 1 (88 bytes)
Assembling: C:\My Documents\1_Jon\Flight simulator\Development Projects\Victoria Cruise Ships V1.0 (VICENH04)\Scenery\pacific_pilot.azm
C:\My Documents\1_Jon\Flight simulator\Development Projects\Victoria Cruise Ships V1.0 (VICENH04)\Scenery\pacific_pilot_0.asm(1512) : error A2054: forced error : value not equal to 0 : 65536
ERRS16(1): Macro Called From
BGL_ATTACHPOINT_ENTRY(5): Macro Called From
C:\My Documents\1_Jon\Flight simulator\Development Projects\Victoria Cruise Ships V1.0 (VICENH04)\Scenery\pacific_pilot_0.asm(1512): Include File
Error!
 
Hi Jon,

I would have to see the source to be sure, but it looks like some sections are too long, causing some jumps to be bigger then 64kB (which some commands can't take).
 
Hi Arno,

I don't know what "sections" are or how they could be too long, would you explain? ... this is a fairly simple model, and even if i try a single effect I get this error. I suspect it's something very simple that I've missed.

Here's the .asm:

; compile with BGLC /MDL C:\My Documents\1_Jon\Flight simulator\Development Projects\Victoria Cruise Ships V1.0 (VICENH04)\Scenery\test.asm
db 'R','I','F','F'
dd aircraft_model_end - $ - 4
db 'M','D','L','8'

db 'M','D','L','H'
visual_model_header label dword
dd visual_model_header_end - $ - 4
dd 0
dd 0
dd 12
dd 0
dd 0
dd 154
db 'F','S','8','0'
dd 2304
visual_model_header_end label dword

db 'D','I','C','T'
param_extension_dictionary label dword
dd 28
dict_0_crash_check equ 152
dd 4,152,2, 00EECADB4h, 041C61724h, 07AD877B9h, 0E844954Ch
param_extension_dictionary_end label dword

db 'B','B','O','X'
dd bbox_end - $ - 4
df -2.417, 0.003, -11.081
df 2.642, 8.563, 11.202
bbox_end label word

db 'I','S','F','T'
dd ver_end - $ - 4
db "MakeMDL - FS90 (9.00.030612.02)",0
ver_end label word

db 'B','G','L',' '
dd aircraft_model_end - $ - 4
aircraft_model label BGLCODE
VPOSITION no_model,0,12,AIRCRAFT_PARAMS.llapbh.lla
VFILE_MARKER AIRCRAFT_PARAMS.texture_dir

IFMSK inside,AIRCRAFT_PARAMS.gen_model,GEN_MODEL_OUTSIDE+GEN_MODEL_DISPLAY
BGL_CALL shadow
VPOSITION no_model,0,12,AIRCRAFT_PARAMS.llapbh.lla
SUPER_SCALE no_model,0,0,6
VINSTANCE_CALL model_outside,AIRCRAFT_PARAMS.llapbh.pbh
no_model label BGLCODE
BGL_RETURN
shadow label BGLCODE
BGL_IF AIRCRAFT_PARAMS.gen_model,GEN_MODEL_NOSHADOW
BGL_RETURN
BGL_ENDIF
SHADOW_VPOSITION AIRCRAFT_PARAMS.llapbh.lla
SUPER_SCALE shadow_out,0,12,6
SHADOW_VICALL model_shadow,AIRCRAFT_PARAMS.llapbh.pbh
shadow_out label BGLCODE
BGL_RETURN

inside label BGLCODE
IFMSK inside2,AIRCRAFT_PARAMS.gen_model,GEN_MODEL_FRONT
inside1 label BGLCODE
BGL_RETURN
inside2 label BGLCODE
IFMSK inside3,AIRCRAFT_PARAMS.gen_model,GEN_MODEL_DOWNWARD
BGL_CALL shadow
BGL_RETURN
inside3 label BGLCODE
VPOSITION no_model,0,12,AIRCRAFT_PARAMS.llapbh.lla
SUPER_SCALE no_model,0,0,6
VINSTANCE_CALL model_inside,AIRCRAFT_PARAMS.llapbh.pbh
BGL_RETURN

model_outside label BGLCODE
IFMSK model_crash_skip,dict_0_crash_check,-1
BGL_CALL model_crash
model_crash_skip label BGLCODE
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, 11519
BGL_CRASH_OCTTREE crash_end_1
dw CRASH_FLAG_AIRCRAFT ; crash type
dw 5 ; nodes used
real4 -2474.934326,2.910208,-11347.366211 ; Box x,y,z
real4 7605.938477,8766.152344,22817.814453 ; Box w,h,d
dw 1, 1, 1, 1, 2, 3, 4, 4 ; 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 255, 255, 254, 0, 0, 0, 254, 0 ; node 0
OCTTREE_NODE 255, 254, 254, 254, 255, 254, 255, 254 ; node 1
OCTTREE_NODE 255, 255, 255, 255, 254, 254, 254, 254 ; node 2
OCTTREE_NODE 255, 255, 255, 255, 254, 254, 254, 254 ; node 3
OCTTREE_NODE 255, 254, 254, 254, 254, 254, 254, 254 ; node 4
crash_end_1 label word
model_crash_end label word
BGL_RETURN

LOD_0L label BGLCODE
include C:\My Documents\1_Jon\Flight simulator\Development Projects\Victoria Cruise Ships V1.0 (VICENH04)\Scenery\test_0.asm



aircraft_model_end label BGLCODE


Jon
 
Last edited:
Hi Jon,

It is in the _0.asm file. If you mail them to me I can take a look where the error happens.
 
Hi Arno, looking at Lou's suggestions in another forum I realize that the error is likely caused by my ignorance of how to create effects in an aircraft. I've not found anything in the SDKs on this.

I further realize my ignorance when Lou suggests I create a "bounding box" and delete the geometry. What is this? I have tried to create a box, linked to a very simple object that represents my light, attached an effect to that box, but I get the error I note above.

So I'd benefit from a tutorial on how to create effects in an aircraft.

Jon
 
Jon,

You can not use the attach tool in an aircraft model and you can't use the makemdl.parts.xml in scenery. Wish it weren't so! Sure would come in handy if you could.

Any fx stuff for an aircraft must be defined in the aircraft.cfg file and in this case with your boat lights you loose the kind of control we were trying to establish with the code in the makemdl.parts.xml file. There might be a third way around it tho. But that would require a panel with special xml "gauges". Still not sure how that would interact with AI tho.

Lou
 
Last edited:
So, do ya think maybe that's why I can't find it in the SDKs or a tutorial? :rotfl:

Ah, the learning curve! I do tend to make assumptions without supporting data. :banghead:

Jon
 
Back
Top