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

P3D v1 How to extract objects from bgl file?

Messages
293
Country
us-virginia
I am redoing an airport, originally done for FS9, for my own personal use in P3D. The buildings work in P3D but all the ground polys are messed up, so I have the idea to do my own airport layout using ADE and then recycle the buildings from the FS9 scenery. My problem is Instant Scenery 3 won't recognize the bgl files from the FS9 scenery, so I thought I would extract all the objects from the bgl files and make a new object library that I can use for my airport. I'm not sure what the best way is to extract the models. Can someone please recommend a good utility to do that and tell me how to go about using it to achieve what I want? Thanks!

Todd
 
Hi Todd,

With modelconverterx you should be able to read the objects and save them as a mdl object.
 
Is there a special way to open the bgl file with MCX? Will MCX work with FS9 bgl files?

Edit: I tried dragging the various bgl files into MCX and it didn't work.

Todd
 
Hi,

Dragging them in should just work.

Are there any messages in the event log? Maybe the bgl you tried to open doesn't contain any models.
 
I get this message trying to import what I believe to be the major object library file:

An error occured during importing the selected file

Message:
Byte array for GUID must be exactly 16 bytes long.

StackTrace:
at System.Guid..ctor(Byte[] b)
at ASToFra.ObjectReader.BGL9Reader.ReadSection10Object(Int64 pos)
at ASToFra.ObjectReader.BGL9Reader.DecodeToSCA()
at ASToFra.ObjectReader.BGL9Reader.Read(String filename)
at ASToFra.ObjectReader.BGLReader.Read(String filename)
at ASToFra.ObjectReader.AllObjectReader.Read(String fileName)
at ASToFra.ModelConverterX.MainWindow.bwImporter_DoWork(Object sender, DoWorkEventArgs e)


Todd
 
Last edited:
I also get this message in the event log on one file:

2:12 PM BGL9Reader Warning Unknown BGL opcode ED


I get this on another file:

2:13 PM BGLDecoder Warning Unknown BGL opcode 1483 at position 2
2:13 PM BGL9Reader Warning Unknown BGL opcode F1
2:13 PM SCASMReader Information Starting reading of subobject 0
2:13 PM SCASMReader Warning This is an empty object!
2:13 PM SCASMReader Information Finished reading of subobject 0
2:13 PM BGL9Reader Information Finished reading file


A couple other files are basically information only, which seems self-explanatory.

Todd
 
Last edited:
Hi,

Sounds like you have encountered a bug. Maybe you can send me the BGL file so that I can test it?
 
Hi,

No, not yet. I have been very busy recently (fsdevconf last weekend and also at my work it is very busy now).
 
Back
Top