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

Extract .mdl from bgl

Messages
225
Country
unitedkingdom
So I have never had any trouble extracting mdls before but then I came across SCASM
Does anyone know how to extract the macros or mdls from a SCASM compiled object library bgl?

It is literally driving me nuts haha
 
Use BGLANA to convert the BGL to .SCA and then open .SCA from Modelconverterx. Depending on the sca file it could be anywhere from 1 to hundreds of objects when imported into mdlconverterx.
 
Hello:

You may need to utilize the older version of Winfried Orthmann's utility - BGLAnalyze version 3.1 to generate the SCA file for import into Arno's ModelConverterX (aka "MCX"):

NOTE: The above program should not be confused with a later version "BglAnalyze for FS9 and FSX" ...by the same author. ;)

http://library.avsim.net/esearch.php?CatID=fs2002sd&DLID=27375


CAVEAT
: Some larger files de-compiled with BGLAnayze v3.1 into SCA files may require re-formatting of lines to insert carriage returns at correct positions (due to line-wrapping errors in the formatted ASCII text output into the SCA file)


NOTE: Some legacy BGLs may also yield better results if decompiled with Takuya Murakami's SCASM Dis-assembler version 2.3 (aka "ScDis23"):

http://sourceforge.net/projects/freesc/files/scdis/scdis 2.3/


FYI: Arno's "MCX" does also have the ability to directly import "many" SCASM BGL files containing legacy code for 3D models which are non-MDL-based. :wizard:


However, not 'all' SCASM BGL files can be directly imported by MCX, for example, certain SCASM files containing legacy code for 3D models which are non-MDL-based ... that utilize more complex 'conditional display' code are, IMHO, often either mis-interpreted or certain code sub-sections are seemingly 'ignored' by MCX ...with or without a completely informative status report for certain such sub-sections. :banghead:


In such latter cases, one must manually edit the SCA file to disable the often MANY lines of code involved in the conditional 3D model display routines ...before then importing that SCA file into MCX. :coffee:



BTW: For more info about miscellaneous MSFS de-compilers (and the compilers which create various MSFS BGL files one may de-compile) see:

http://www.fsdeveloper.com/forum/th...porting-vector-data.432918/page-3#post-707856



Hope this helps ! :)

GaryGB
 
Last edited:
Hi,

MCX can probably load the BGL directly, no need to first decompile it. SCASM generated files don't contain mdl files directly, they have a very different structure.
 
Back
Top