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

FS2004 Compiling - Stumped

Messages
109
I have a real weird situation...compiling with MakeMDL and using the small parts distortion workaround tutorial, e.g., with separate exterior and interior projects that are exported into .x files. These are then compiled in MakeMDL with certain options checked to keep files including .asm which is edited to "resize" the project, run through BGLC9 and the resultant .bgl file renamed to become the .mdl file. The aircraft compiles nicely, except for one problem...it seems anything included in the exterior model becomes part of the interior model. I have a pilot figure that is required in the exterior view but the virtual cockpit is to remain pilot-free. Worse still being, with the pilot present, none of the switches work in the virtual cockpit (they do however work when the pilot is removed). Is there any way to get around this? The compiled model looks sharp with no distortion, so I'd really like to get this sorted out. I also originally had the pilot display conditionally when electrical system is enabled, however it makes no difference whether this feature is kept or not, the pilot remains in the VC. Many thanks once again.
 
@CAFedm, can you post the modified ***.asm file? (***_0.asm and ***_1.asm" should not be changed!)
Seems like a missing BGL-RETURN or something, and then simulator reads both internal and external model when in VC mode.
 
I think that at the very bottom of the file are mistakenly replaced JUMP's with CALL's. You may have accidentally made ​​some changes related to the "unlimited export"?

Replace all three BGL_CALL_32 with BGL_JUMP_32 and it should work properly.

Also, you should see a little better FPS because it will not draw unnecessary models several times :)

Code:
model_outside    label    BGLCODE
model_shadow label BGLCODE

LOD_0    label    BGLCODE
    BGL_JUMP_32    LOD_0L	; ### BGL_JUMP_32 instead of BGL_CALL_32 !!! ###

model_inside  label    BGLCODE

INSIDE_0   label    BGLCODE
    BGL_JUMP_32    INSIDE_0L	; ### BGL_JUMP_32 instead of BGL_CALL_32 !!! ###

Landing_Lights   label    BGLCODE
    BGL_JUMP_32    FS9_GRIZZLY_AA_L_2	; ### BGL_JUMP_32 instead of BGL_CALL_32 !!! ###

LOD_0L    label    BGLCODE
    include    C:\Flight Simulator\SDK_FS9\makemdl SDK\FS9_GRIZZLY_AA_1.asm

INSIDE_0L  label    BGLCODE
    include    C:\Flight Simulator\SDK_FS9\makemdl SDK\FS9_GRIZZLY_AA_0.asm

aircraft_model_end label     BGLCODE

Also, although not critical, but I think it's the wrong model-radius at the beginning of the file. Put here 10 instead of 161.

Code:
    db  'M','D','L','H'
visual_model_header  label dword
    dd  visual_model_header_end - $ - 4
    dd  0
    dd  0
    dd  10	; ### ex 161 ###
    dd  0
    dd  0
    dd  328
    db  'F','S','8','0'
    dd  2304
visual_model_header_end  label dword

Hope this helps.
 
Also, if you have a pilot 'in' the VC, and you are 'in' his body (vision placement), then you cannot click on things in the cockpit because of polygons blocking you.

Any polygons between you and your clickpoints will cause a block. They can even be backwards (invisible from behind) and still block you.



Bill
 
Lionheart, you must be the one & the same as he who devised the small parts workaround tutorial. Thank you for your effort as it's been hugely helpful. I tried following the tutorial through but obviously something went south with my interpretation somewhere.

Luka, with your assistance I finally got it all going properly! It's amazing all the tremendous resources available here for free, oftentimes I feel I should be offering you all something to show my gratitude. It's supremely appreciated. Many thanks everyone, now I can get back to completing this project.
 
Just pass on your learnings to someone else that comes along.

And screenshots! Lots of project screenshots. :)


Thanks to Luka for most of this. He was the way to ingeniously figure out how to squash things back down, rework scales and get the planes to export into one package in the right scale.
 
Happy to oblige...here is a screen of the cockpit (FS9 version), everything complete with this part of the project now.
 

Attachments

  • planepitsmaller.png
    planepitsmaller.png
    770.3 KB · Views: 462
Back
Top