Page 1 of 1

BGLCOMP_SDK problem

PostPosted: Sat Oct 09, 2004 7:51 am
by Glitch
I am trying to create an entrie for an elevated helipad in FS9 using Jeffrey Stanyards tutorial I have created and edited the XML file but when I try to compile it using bglcomp.exe the .bgl is not created within the folder. I have followed the tut instructions:

"Now , copy and paste the XML file you have created to the FS2004SDK\BGLCOMP_SDK  Folder on your Hard Drive.

In this folder you will see a file called " bglcomp.exe ", drag your XML file over this icon and it will compile your file and you will have a file called MYTESTPAD.BGL  . All you need to do now is to cut and paste this BGL file to the scenery folder of your project and when you create a new flight in FS9 and type in the Ident code, your Helicopter will appear on the Pad without falling through." Direct quote from Jeffrey's tut

Does bglcomp.exe place the bgl in another folder? Or am I doing something wrong?
I know the bglcomp.exe is working because I see the dos window flash when I drop the xml file on it. I have tried to use the sample xmls that come with the SDK but they do not become .bgl files either.

Glitch

Re: BGLCOMP_SDK problem

PostPosted: Sat Oct 09, 2004 11:00 am
by Firestriker
BOTH the *.mdl and the *.xml file must be in the same directory and this is where the *.bgl will be made if the compile is successful. Bglcomp.exe must either be in your Windows search path OR in the directory with the *.mdl and the *.xml file. It works best if you open a Command Prompt window in the the folder where your *.xml file is and type in:

Bglcomp.exe *.xml

(replace the * with the correct name of your file of course)

Using the "Drag and Drop" method WILL NOT tell you if there are any problems whereas, any errors will be displayed in the window using the Command Prompt method..

By having Bglcomp.exe in your Windows search path, example:

C:\Windows OR C:\WINNT

you can call it from anywhere in a Command Prompt window or using a simple batch file to run the executable. Using a batch file is handy if you will be compiling many times. To make a batch file, use notepad and put the same line in it as you would at the Command Prompt with one addition like this:

Bglcomp.exe *.xml

pause


Save it in the directory with your *.xml file as compile.bat, then when you want to compile, just double click on it in Windows Explorer.

Lou

Re: BGLCOMP_SDK problem

PostPosted: Sat Oct 09, 2004 7:01 pm
by Glitch
Roger that! Got it going thanks!