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

Traffic MDL TweakeR ?

Messages
104
Country
unitedstates
Hi Arno,any chance of making an aircraft mdl tweaker for AI use? This would be helpfull for AI ships to set a lesser viZ range for them to appear or ceartain conditions,,or is there a way in TTools to limit visibility for AI..probably not..
 
Hi,

I don't think MDL Tweaker will be able to read aircraft MDL files soon, as they have a different internal format. I don't think I would have the time to add the aircraft format as well and besides that I am a scenery guy, so I don't know that much of the aircraft specific stuff as well.
 
ThankX arno,,your scenery MDL tweaker is tops!..and makes all the difference..I just wonder why the aircraft have the same extension (Mdl) I just thought the format might be close,,and would be a big hit if figured out,,CheerZ
 
Hi,

Well, we have a lot of different BGL formats as well and they all have the same extension. Maybe it is possible to let MDL Tweaker read aircraft MDL files as well (would be cool), but there are scenery features that have a higher priority on my todo list. So even if I take a look at it, it won't be soon.
 
Is there any code to edit in an asm file to change the visibility?? Below is a copy of an asm file..so far I can only change the scale of my AI boat..

; compile with BGLC /MDL C:\Documents and Settings\Owner\Desktop\BEST GAME\FS9\Scenery creators\FSDS X to MDL TESTING\AI_RJ_RIVER_BOAT.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 130
dd 0
dd 0
dd 156
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_f_canopy equ 152
dd 1,152,4, 09E5C1C91h, 0477FD1A9h, 0AD688CB7h, 056AFD464h
param_extension_dictionary_end label dword

db 'B','B','O','X'
dd bbox_end - $ - 4
df -24.196, -6.964, -91.454
df 22.599, 44.755, 128.801
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,130,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,130,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,130,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,130,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
model_shadow label BGLCODE

LOD_0 label BGLCODE
BGL_JUMP_32 LOD_0L

model_inside label BGLCODE
BGL_RETURN
LOD_0L label BGLCODE
include C:\Documents and Settings\Owner\Desktop\BEST GAME\FS9\Scenery creators\FSDS X to MDL TESTING\AI_RJ_RIVER_BOAT_0.asm



aircraft_model_end label BGLCODE
 
Hi,

I am not an expert on the aircraft ASM code (yet), so I might miss something, but I don't think it is possible to set the visibility. Maybe you could add a distance check like we do in the scenery (variable 033B for example), but I am not sure if that works on aircraft as well.

Normally the graphical engine of FS does the visibility for you. Maybe you can control it by defining a LOD?
 
Back
Top