Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Compile xml to bgl in FSX SBK SP2

Featured Replies

I've added scenery objects to the Grants Pass,OR airport for my own amusement and can't figure out how to compile the xml file to a bgl file.I'm on FSX SP2 with SDK SP2.In the environments kit folder there is a bglcomp but no bglcomp.exe.What do I do? Uncle Greg

Also make sure you do not have a check mark in the "hide extensions for known file types" - in the Tools/Folder Options/View dialogue.

  • Author

Thanx,Opa,for the tip.Now I see the bglcomp.exe but am at a loss what to do next.The SDK manual says to drop the xml into the bglcomp and out pops a bgl file.What exactly do I do?I really appreciate all the help I've been getting. Uncle Greg

Thanx,Opa,for the tip.Now I see the bglcomp.exe but am at a loss what to do next.The SDK manual says to drop the xml into the bglcomp and out pops a bgl file.What exactly do I do?I really appreciate all the help I've been getting. Uncle Greg
What that means is that you Left click (and hold down the button) on the xml file, and then "drag" it over the BglComp.exe file and release your button.If the xml file is correctly written (no errors), in a moment you should see that a bgl with the same name as the xml has been created in that same folder. i.e. an xml file named opa.xml would result in a file named opa.bgl.Hope that helps.
  • Author

Opa,Thank you so much.It worked like a charm,and I learned something new.It's a good day! Uncle Greg

  • 2 weeks later...

Hi unclegreg..I also use XML for creating scenery. A batch file will make it much easier hen using BGLComp.FS9 (& FSX) are on a separate partition from my 'Scenery Edit' partition,which makes compiling rather tiresome if using separate commands to compile,moving the file and restarting FS. So I use a batch file to compile, stopFS, delete the 'old' BGL, move my new BGL to the scenery folder, andrestart FS. This works in XP, Vista, on FS9 and FSX.I usually have FS9 (or FSX) open in a 'half size' window, zoomed into my new scenery item, my code listing open in Notepad, and a shortcut tothe batch file 'Move.bat' below but visible on the desktop.FS needs to be closed and restarted to update the BGL files, and thisbatch file does that for me.'Taskkill' is an Windows internal command that works in XP and Vista.Here's the batch file, 'Move.bat'. It saves an awful lot ofkeystrokes/mouse clicks:cls@echo off:Redobglcomp.exe static.txtrem pauseecho Static.bgl compiled !taskkill /IM FS9.exe >nulrem echo Let's wait a moment..del "D:\FS2004\Scenery\UK\Woodvale Static\Scenery\static.bgl" >nulrem if error goto redoecho Previous Static.bgl deleted !move "E:\Scenery Edit FS9\static.bgl" "D:\FS2004\Scenery\UK\Woodvale Static\Scenery" >nulecho Static.bgl moved !pause >nulstart D:\FS2004\FS9.exeAfter I hit the 'Move' shortcut, the batch file does the followingactions:1. Compiles the temporary file 'Static.txt' which includes my new XML code2. Exits FS so that the 'old' bgl can be deleted3. Deletes the old BGL4. Transfers my new BGL to the scenery folder5. Restarts FS.I rename the BGL from its temporary 'Static.txt' later - when that particularscenery item has been finished.The fifth line 'rem pause' is there for when compiling hits a problem.I remove the 'rem' to read any error message.The 'Static' filename is simply a temporary filename to enable the batch to doits job without constant editing.I find that editing the XML in this way enables a more accurate placingof fences/walls & other scenery items without all the keypresses.Hope that helps.Bill

i7-3770K 4.2GHz, 16GB, GTX 970 4GB, Win 7 64bit, LG 38GL950G, CH Yoke/Pedals, T.16000M, GenX UK, UK2000 EGGP & EGCC, AeroSoft Gibraltar, FSC 9.5, FSL A320X, 737NGX A318/A319/A320/A321, A2A Cherokee/JF Hawk T1/Dino's EF2000, Iris Grob Tutor
 

 

This can be done without the batch. Just copy the xml and paste into the bglcomp.exe. the bgl will be in the folder where the xml is. copy the bgl to the scenery folder and in FSX in the drop down menu click on the world- scenery library and then click OK to rebuild the scenery.What you see next is the scenery you just designed. You must use the same name for the xml each time. This makes the bgl the same name each time so that it overwrites the old one.Joe W

Joe Watson

Lake Placid, Florida

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.