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

FS crashing on CAT objects

Messages
288
Country
argentina
Hi!
I'm build an hangar with animated doors but seems like I did something wrong... export the model from Gmax to *.asm, then put thought CAT and finally get the CAT *.mdl and *.asm files, but when I put this file into the BGLc_9, the result BGL crashed my FS as startup (Out of memry or something like that)

This is the asm file, maybe somenone can tell whats is wrong.

Thanks guys

; compile with BGLC /MDL F:\FS9\Addon Scenery\EscuelitaSW\Carmelohng.asm
db 'R','I','F','F' ; RIFF file identifier
dd bgl_data_end - $ - 4 ; size of RIFF data
db 'M','D','L','9' ; file identifire (FS9 model)

db 'M','D','L','H'
dd visual_model_header_end - $ - 4
dd visual_model_header_end - $ - 4
dd 0
dd 0
dd 28
dd 0
dd 0
dd 152
db 'F','S','8','0'
dd 2304
visual_model_header_end label dword

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

bounding_box_riff_start label word
db 'B','B','O','X'
dd bounding_box_riff_end - $ - 4
real4 -3.467, 0.000, -17.997
real4 22.603, 12.040, 17.443
bounding_box_riff_end label word


model_outside label BGLCODE
model_shadow label BGLCODE
model_inside label BGLCODE
crash_riff_start label BGLCODE
db 'C','R','A','S'
dd crash_riff_end - $ - 4
BGL_CRASH_START model_crash_end, 26
BGL_CRASH_OCTTREE crash_end_1
dw CRASH_FLAG_BUILDING_PLANE ; crash type
dw 53 ; nodes used
real4 -3.467250,0.000000,-17.996763 ; Box x,y,z
real4 26.070770,12.040268,35.439682 ; Box w,h,d
dw 1, 6, 11, 18, 25, 34, 39, 46 ; base offset into node table, one for each top-level branch
; So if you take branch 2 (count from 0), you add 11 to indices you encounter on that branch
; Nodes (254=empty 255=full, else an index into branch)
OCTTREE_NODE 0, 0, 0, 0, 0, 0, 0, 0 ; node 0
OCTTREE_NODE 1, 254, 2, 254, 3, 254, 4, 254 ; node 1
OCTTREE_NODE 254, 255, 254, 255, 254, 254, 254, 254 ; node 2
OCTTREE_NODE 254, 255, 254, 255, 254, 254, 254, 254 ; node 3
OCTTREE_NODE 254, 255, 254, 255, 254, 254, 254, 254 ; node 4
OCTTREE_NODE 254, 255, 254, 255, 254, 254, 254, 254 ; node 5
OCTTREE_NODE 254, 1, 254, 2, 254, 3, 254, 4 ; node 6
OCTTREE_NODE 255, 254, 255, 254, 254, 254, 254, 254 ; node 7
OCTTREE_NODE 255, 254, 255, 254, 254, 254, 254, 254 ; node 8
OCTTREE_NODE 255, 254, 255, 254, 254, 254, 254, 254 ; node 9
OCTTREE_NODE 255, 254, 255, 254, 254, 254, 254, 254 ; node 10
OCTTREE_NODE 1, 2, 3, 255, 4, 5, 6, 255 ; node 11
OCTTREE_NODE 254, 255, 255, 255, 254, 254, 254, 255 ; node 12
OCTTREE_NODE 254, 254, 255, 255, 254, 254, 255, 255 ; node 13
OCTTREE_NODE 254, 255, 254, 254, 254, 255, 254, 254 ; node 14
OCTTREE_NODE 254, 255, 254, 255, 254, 254, 254, 255 ; node 15
OCTTREE_NODE 254, 254, 255, 255, 254, 254, 255, 255 ; node 16
OCTTREE_NODE 254, 255, 254, 254, 254, 255, 254, 254 ; node 17
OCTTREE_NODE 1, 2, 255, 3, 4, 5, 255, 6 ; node 18
OCTTREE_NODE 254, 254, 255, 255, 254, 254, 255, 255 ; node 19
OCTTREE_NODE 255, 254, 255, 255, 254, 254, 255, 254 ; node 20
OCTTREE_NODE 255, 254, 254, 254, 255, 254, 254, 254 ; node 21
OCTTREE_NODE 254, 254, 255, 255, 254, 254, 255, 255 ; node 22
OCTTREE_NODE 255, 254, 255, 254, 254, 254, 255, 254 ; node 23
OCTTREE_NODE 255, 254, 254, 254, 255, 254, 254, 254 ; node 24
OCTTREE_NODE 1, 2, 3, 4, 5, 6, 7, 8 ; node 25
OCTTREE_NODE 254, 255, 254, 255, 254, 254, 254, 255 ; node 26
OCTTREE_NODE 254, 254, 254, 254, 254, 254, 255, 254 ; node 27
OCTTREE_NODE 254, 255, 254, 255, 254, 255, 254, 254 ; node 28
OCTTREE_NODE 254, 254, 254, 254, 255, 254, 254, 254 ; node 29
OCTTREE_NODE 254, 255, 254, 255, 254, 255, 254, 255 ; node 30
OCTTREE_NODE 254, 254, 255, 254, 254, 254, 255, 254 ; node 31
OCTTREE_NODE 254, 255, 254, 255, 254, 255, 254, 255 ; node 32
OCTTREE_NODE 255, 254, 254, 254, 255, 254, 254, 254 ; node 33
OCTTREE_NODE 254, 1, 254, 2, 254, 3, 254, 4 ; node 34
OCTTREE_NODE 255, 254, 255, 254, 254, 254, 254, 254 ; node 35
OCTTREE_NODE 255, 254, 255, 254, 254, 254, 254, 254 ; node 36
OCTTREE_NODE 255, 254, 255, 254, 255, 254, 255, 254 ; node 37
OCTTREE_NODE 255, 254, 255, 254, 255, 254, 255, 254 ; node 38
OCTTREE_NODE 1, 2, 3, 255, 4, 5, 6, 255 ; node 39
OCTTREE_NODE 254, 255, 254, 255, 254, 254, 254, 255 ; node 40
OCTTREE_NODE 254, 254, 255, 255, 254, 254, 255, 255 ; node 41
OCTTREE_NODE 254, 255, 254, 254, 254, 255, 254, 254 ; node 42
OCTTREE_NODE 254, 255, 254, 255, 254, 255, 254, 255 ; node 43
OCTTREE_NODE 254, 254, 255, 255, 254, 254, 255, 255 ; node 44
OCTTREE_NODE 254, 255, 254, 254, 254, 255, 254, 254 ; node 45
OCTTREE_NODE 1, 2, 255, 3, 4, 5, 255, 6 ; node 46
OCTTREE_NODE 254, 254, 255, 255, 254, 254, 255, 255 ; node 47
OCTTREE_NODE 255, 254, 255, 254, 254, 254, 255, 254 ; node 48
OCTTREE_NODE 255, 254, 254, 254, 255, 254, 254, 254 ; node 49
OCTTREE_NODE 254, 254, 255, 255, 254, 254, 255, 255 ; node 50
OCTTREE_NODE 255, 254, 255, 254, 255, 254, 255, 254 ; node 51
OCTTREE_NODE 255, 254, 254, 254, 255, 254, 254, 254 ; node 52
crash_end_1 label word
model_crash_end label word
BGL_RETURN
crash_riff_end label BGLCODE

exterior_riff_start_0 label BGLCODE
db 'E','X','T','E'
dd exterior_riff_end_0 - $ - 4
LOD_0L label BGLCODE
include F:\FS9\Addon Scenery\EscuelitaSW\Carmelohng_cat_0.asm
exterior_riff_end_0 label BGLCODE



bgl_data_end label BGLCODE
 
Problem solved, it's my english skills the mayor problem here :D
ARNO, yo did a GREAT Tool!!
 
Back
Top