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

BGL fsx..

Messages
25
Country
us-california
hello, all i am new to fsdeveloper and just looking for help getting my fsx sdk bgl
compiler to work..all i get is a quick flash and that's it!! i have a awesome new hospital but i cant use it yet lol ..will share the work in exchange for help with the conversion thanks..Mike..:rolleyes::rolleyes:
 
Hi,

This is how it's supposed to work, it's a command line application so the window closes as soon as the processing is finished. To get the window to stay, you need to run it from a command prompt window. Hit start->run->, type cmd, and hit enter. Navigate to the directory of the BGL compiler using the cd command, than type the name of the program and the arguments, and press enter. Voila! The output will print to the window without disappearing!

For more information, look here: http://fsdeveloper.com/wiki/index.php?title=Command_Prompt_Window
 
yes, it's a good process because the window will report any problem could be with the compilation, but I don`t understand very well, what are the bgl for, and what is the entirely process. normally if the windows close in such manner is because there is some problem with the file. have you sdk tools in the inside fsx tools menu.
 
Yeah, it's a console program and won't stay open unless you launch it from the command prompt.

However, the quickest way to run bglcomp is to drag a placement XML onto it. This way, it should automatically generate a BGL file based on the XML you gave it. If it doesn't create a BGL file, you should open it from the command prompt and give the path to your placement XML as a command line argument, then you'll be able to view the output.
 
thanks a million for the feedback, but i am still confused ! i managed to get the command window open, but from there i have no clue what to do? wats an argument?what would the program name be fsx?? i do use windows 7, so the cmd powertoy wont work for me, please i am kinda slow can i get a visual of what i have to type after i get to the command window open :confused: I don't even know what or where the path would be?
 
Last edited:
Drag the XML file onto the bglcomp program. It should create a BGL file. If it doesn't, bglcomp doesn't like the file and you need to run it from the command line to see the error.
 
but i dont know how to , i dont know anything about command lines... i am trying desperately to learn however lol
 
Ignore everything about the command line (for now).

Just drag your XML file and drop it onto bglcomp and see if it produces a BGL.
 
Okay, well bglcomp didn't like your XML file.

Go to the folder containing bglcomp, and right click any blank space in the folder while holding the shift key. You should see an option, "Open command window here". Select that option. Type the following in the command window:

Code:
bglcomp.exe "C:\FSX\randomfile.xml"

Replace C:\FSX\randomfile.xml with the path to your XML file. Press enter, and see what the error bglcomp is giving you.
 
Last edited:
EDIT: I see now that ollyau was suggesting running the command from the bglcomp folder which is a good suggestion. I usually run mine from the folder containing the .xml which is why I suggested the option below. Either way will work.

[strike]...but unless you have a copy of bglcomp.exe in the same folder as your .xml, use the full path to bglcomp.exe, by default that would be:[/strike]

Code:
"C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\BGL Compiler SDK\BglComp.exe" myfile.xml

[strike]Yours may vary, make sure the path is correct for your own installation.[/strike] Keep the quotes in place. When you run it and bglcomp throws an error, you'll be able to see what line in the .xml is causing the problem so you can fix it.

Another useful trick for troubleshooting .xml is to drag them into an Internet Explorer window then double click the little yellow exclamation point icon in the lower left corner. This will pop up a window that should also show you which line the error is on.

Jim
 
Last edited:
it gave me a reply of ------

C:\Program Files\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environmen
t Kit\BGL Compiler SDK>bglcomp.exe -"C:\FSX\randomfile.xml"
INTERNAL COMPILER ERROR: #C2001: Unknown command line switch will be ignored: -
C:\FSX\randomfile.xml
Build: Sep 26 2007 14:38:38

Try something like

bglcomp file:///drive:/path/file.xml
Options
/Verbose Verbose mode (display XML as it's parsed)
/ErrorPrefix:<string> Output <string> before all errors
/WarningPrefix:<string> Output <string> before all warnings
Good luck!


C:\Program Files\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environmen
t Kit\BGL Compiler SDK> /Build23
 
First, where is bglcomp.exe on your computer? If it's in the following location:

"C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\BGL Compiler SDK\BglComp.exe"

type:

"C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\BGL Compiler SDK\BglComp.exe" "full\path\to\my xml file.xml"

...replacing the part in red with the actual path to and filename of the .xml file that's giving you fits.

"C:\FSX\randomfile.xml" was just an example. Also, don't know where you got the "BGL Compiler SDK>bglcomp.exe -", but the ">" should have been a "\", and the hyphen shouldn't have been there at all.

Hint: compose your command in Notepad, copy & paste the paths and filenames as needed. When you have the command correct in Notepad, copy it and right click>paste at the command prompt. That saves a lot of typing and eliminates some typo errors!

Jim
 
Last edited:
whats ths (x86) in the equation I havn't seen that variable at all??, could hat be the issue hahaha :o
 
Last edited:
"C:\FSX\randomfile.xml" was just an example. Also, don't know where you got the "BGL Compiler SDK>bglcomp.exe -", but the ">" should have been a "\", and the hyphen shouldn't have been there at all.
Oops, yeah, I added a hyphen in my example by mistake. Sorry! Fixed now.
 
Back
Top