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

FSX Decompiling Instant Scenery files with BGL2XML

Messages
310
Country
us-washington
Hi Folks,
This came very close to a request for help, but since I managed to solve the
issue, I thought I might take the liberty to post what I've found. The idea
was to be able to decompile my Instant Scenery files, do a find and replace
such that I replace proprietary objects with those of the same size that I
have made. A couple of the scenery areas I've made I have more than 40 or
50 instances of the same object (like a dock) so doing it manually would be a huge chore.
Initially BGL2XML failed to decompile my more complicated IS files, but it
would work on very simple ones. It turns out that the problem is the
presence of exclusion rectangles in the IS file. Remove them and BGL2XML works.

Thanks so much to Scruffyduck for this very useful program! So I would not forget I wrote a
little how-to for myself as follows:

Open the file using IS and remove any exclusion rectangles; replace them using a different file name.
Convert the IS .bgl file to xml using BGL2XML. It will not work if the file contains exclusion rectangles. BGL2XML considers IS files to be in FS9 format.
Assuming this is for FSX, convert the FSX GUIDs of both the object you wish to find and the one you wish to replace it with to FS9 format. MCX has a convenient tool to do this.
In Notepad++, find and replace all instances of the original FS9 GUID with the new one and recompile.
In the sim, all the original objects will now be replaced by new ones correctly scaled and positioned, and IS3 will still edit this file and allow you to manipulate the new objects.

*To make the replacement object, find the bounding box dimensions in MCX, both plus and minus from the datum, and size the new object in Sketchup to exactly this size such that the datum is in the same position as in the original. It should fit precisely.
I this appears to be right, but I've been wrong before!
 
Back
Top