- Messages
- 310
- Country

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!
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!
