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

For those that drag and drop, bear in mind which file manager program you are using. If you are using something other than Windows Explorer, this can at times create a problem. I use Directory Opus and when I sometimes have problems with drag and drop I just try it in Windows Explorer and that usually cures the problem.
 
Hi Gerry, I'm getting this error with your xml2bgl app:



Win7 pro 64, what am I missing? Also what does a person use to compile the script you posted?

I've got "Visual C++ 6.0 run-time components" (vc6redistsetup_enu.exe) and "Visual Studio .NET 2003" (dotnetfx.exe, VS7.1sp1-KB918007-X86.exe, VS7.1sp1-KB958393-X86.exe) on a backup disk that I downloaded a while back but couldn't figure out what to do with. Am I in the ballpark?

Jim
Let me check and I'll report back.

EDIT

Is it Vcl40.bpi or Vcl40.bpl that is reported missing?
 
Last edited:
Ok. Try this version. for the problem, but I don't have a "vanilla" PC on which to test applications.
 

Attachments

That one runs Gerry, but I didn't get a .bgl out of it. I made an unusually named .xml and then did a full system search for the unusually named .bgl but didn't find it. The DOS window does pop open briefly, but it's too quick to read what's happening. The .xml does compile normally when dropped onto bglcomp, BTW.

EDIT: I managed to capture the DOS window in a screenshot, it says: "bglcomp.exe is not recognized as an internal or external command, operable program, or batch file." I have xml2bgl1.exe in the "C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\BGL Compiler SDK" folder alongside bglcomp.exe. I also tried moving bglcomp.exe, bglcomp.xsd, and xml2bgl1.exe to a folder on another drive but got the same error. Is it looking for bglcomp.exe in another folder, like up one level, or maybe in a subfolder?

EDIT again: SKIDZ may possibly have a problem with his MSXML4 installation, I think I've seen this before where dropping the xml onto bglcomp won't produce a .bgl and if I remember correctly the problem was a messed up installation of the MSXML core files. SKIDZ if you're still following this thread why don't you try reinstalling MSXML4

link:
http://www.microsoft.com/download/en/details.aspx?id=15697

Jim
 
Last edited:
Try not using the drag & drop.

I would try opening a command window, change to the directory containing the exe file and also have the xml file in that directory. Then use the ommand line input to specify the exe and the xml source.

Any messages will remain for you to see.

Paul
 
I will check again after Christmas. It runs fine on my PC.

EDIT

Does it work if all 4 files are in the same folder?

xml2bgl1.exe
bglcomp.exe
bglcomp.xsd
xxxxxxxxx.xml
 
Last edited:
Try this version. I now properly understand how the system() API works! The application called (in this case bglcomp.exe) must be in the current directory or in one of the directories listed in the PATH string in the environment. Opening an .xml file in another directory, makes that the current directory. I save the current directory name on starting xml2bgl and then restore it after opening the the .xml file.
 

Attachments

That one works Gerry, and in answer to your question the 2nd version works also if the .xml is in the same folder. Cool :cool:

Jim
 
I use the error txt file that the compiler will show.

Make a simple directory off the root such as

C:\temp

Copy the BGLcomp.exe and the bglcomp.xsd from the SDK to this folder. That is all you need.

Place your .xml into this C:\temp folder

Run your command prompt window and type the following

cd\temp <hit Enter>

BGLComp xxxx.xml >errors.txt <hit enter>

xxxx.xml is the name of your xml file

If the compiler found errors you now have a error.txt file in your C:\temp folder. Open with notepad and read it.

You can also set up a simple batch file for each of the compilers for FS9 and FSX, For FSX my bat file is in the Windows folder as 1.bat and reads

cd\

cd\Temp

BGLComp KHUT.xml >errors.txt

cd\
exit
 
Back
Top