• 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 Compile ASM files ?

Messages
502
Country
unitedstates
Morn'n Folks,

I've searched the WIKI and the Forums - really - for the life of me - I can't figure out how to compile your modified (ASM) files back into something useable... It doesn't seem to be an option on MakeMDL... Any help appreciated...

Regards,
Scott
 
ASM files are compiled by the BGLC compiler. BGLC is not BGLComp, but is a machine language compiler. For FS9, we have BGLC_9 which is hacked from MakeMDL:

BGLC

Dick
 
Thanks Dick - LOL - I never realized the myriad of tools necessary to improve an airport...
:)

Thanks for the assist - sir...

Regards,
Scott
 
Sorry guys - really a newb - back again - not much info on the use of said BGLC_9...

Here is what I am doing...

1) Used MakeMDL to process my (X) file with the option to "SAVE Files"... This produced my normal (MDL) and two (ASM) files...

2) I took these two (ASM) files and moved them to a new working directory... For the test run I didn't make any modifications...

3) I copied the "BGLC_9" files to a directory of their own...

4) I figured out that if - for an (ASM) file - you select "Open With" and choose the BGLC_9 compiler - then choose the (ASM) file without the "_0" on the end it will produce a new (BGL)...

*** I looked at the command line options for BGLC_9.exe and there are only two "/BIN or /BGL" neither of which appears to make a (MDL)...

Problem is - what do I do with this (BGL) - I need to convert it back to a model so I can make it into an object library - right ??? Is there an option to export (MDL) files ??? In addition - I didn't make all the tweaks by hand - so if I had a (MDL) I could then use "Model Tweaker" to make the remaining changes ??? I should probably figure out how to do all the necessary changes by hand instead ???

Thanks...
:)

Regards,
Scott
 
Last edited:
IIRC you can use /MDL in the command line and bglc_9 will output a .mdl instead of a .bgl.

(I'd guess Dick probably knew that :D )

Jim
 
LOL - I have it making models now - however - they can't be opened by either Model Tweaker or Library maker...

Is it my model - or - my compile procedure ???

OBTW: My ASM files are the direct output of MakeMDL - I didn't change them at all...

Batch File:

"C:\Program Files (x86)\FS2004SDK\BGLC_9\BGLC_9.exe" /MDL .\Dec01f15_0.asm

Regards,
Scott
 

Attachments

Last edited:
I compiled it and opened it in MDLTweaker, but when I added rotate to user it didn't show up in the sim anymore. I think this is because I'm looking at the back (transparent) side of the tree. Need to either rotate the tree 180° on the Z axis or flip normals on the tree plane I think. I was able to get the model to show without the rotate to user tweak (unifying normals and removing shadow with MDLTweaker).

Are you actually getting a .mdl out of bglc_9 then? If not try leaving the .\ off "Dec01f15_0.asm", I think that means "same folder" (where ..\ means "up one level"). I don't think it hurts anything, but either way it's not necessary if you're running the command from the folder containing the .asm.


I took these two (ASM) files and moved them to a new working directory... For the test run I didn't make any modifications...

If you move the .asm from the folder it was originally output to, you'll need to open Dec01f15.asm in notepad and change the line:

Code:
include    C:\Users\N63503\Desktop\Apps\Games\MSFS\Scenery Design\Model Work\Dec01f15_0.asm

to:

Code:
include    Dec01f15_0.asm

Jim
 
Hi Jim,

THANKS !!!

I didn't realize the absolute file path was hard coded in the ASM file...
:)

Let me try to build some trees...

Regards,
Scott
 
Hi...

OK - I found some references and figured out the ASM tweaks for the following:

1) Remove Shadows

2) Unify Normals

3) Change seasonal textures on a specific day x 6 seasons...

4) Face User

I have the previous working - last thought before I work on a complete set of production trees...

LOD's ???

My cross form trees have 8 Polys/4 Faces - would I really seen any performance gain to swap them out with 2 Poly/1 Face (Rotate to User) trees at a given distance ???

Are the default visible distances appropriate (LOD 100.000) appropriate for autogen-like trees or should this really be changed ???

Regards,
Scott
 
Last edited:
There are a few tree libraries already in the public domain. The AVSIM library has most of them. Is there a real need to re-invent the wheel?

Dick
 
Hi Dick,

LOL - and none of them match the seasons of KMGJ...
:)

Actually - this whole effort is just part of a learning experience... I usually jump in with both feet - as I normally don't start building unless it's actually something I want to use myself... If I'm going to spend my time making something - I want it to be the best I can do - and - I want to make it right... Since I'm Making it - I just figured I'd make a decent package and share the results...

Regards,
Scott
 
Back
Top