FSDeveloper Community

Go Back   FSDeveloper Community > Microsoft Flight Simulator development > Scenery Design - Airport Design > BGLComp XML, AFCAD, SceneGenX

BGLComp XML, AFCAD, SceneGenX Use this forum to discuss issues related to airport design with BGLComp XML code or design tools supporting this format (for example SceneGenX, AFCAD)

Reply
 
Thread Tools Display Modes
  #21  
Old 18 Dec 2011, 21:49
SKIDZ SKIDZ is offline
  us-california
Join Date: Dec 2011
Posts: 25
Exclamation

C:\Program Files\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environmen
t Kit\BGL Compiler SDK>"C:\Program Files (x86)\Microsoft Games\Microsoft Flight
Simulator X SDK\SDK\Environment Kit\BGL Compiler SDK\BglComp.exe"world7.xml
The system cannot find the path specified.

C:\Program Files\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environmen
t Kit\BGL Compiler SDK> (this is just the new line they gave me to try again) Btw my bglcomp.exe file is in my fsx sdk folder
Reply With Quote
  #22  
Old 18 Dec 2011, 21:50
ollyau ollyau is offline
  us-california
Join Date: Jan 2008
Posts: 464
You need the entire path to your file. Not only the file name and extension.
Reply With Quote
  #23  
Old 18 Dec 2011, 22:03
SKIDZ SKIDZ is offline
  us-california
Join Date: Dec 2011
Posts: 25
"C:\Program Files (x86)\Microsoft Games\Microsoft Flight
Simulator X SDK\SDK\Environment Ki
C:\Program Files\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environmen
t Kit\BGL Compiler SDK>"C:\Program Files (x86)\Microsoft Games\Microsoft Flight
The system cannot find the path specified.

C:\Program Files\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environmen
t Kit\BGL Compiler SDK>Simulator X SDK\SDK\Environment Kit\BGL Compiler SDK\BglC
omp.exe"\My Computer\Desktop\world7.xml
'Simulator' is not recognized as an internal or external command,
operable program or batch file.

Note i went and ran really quickly in run box (Bglcomp.exe) system could not find it ..so does that mean my accel disk did not put it on my system or what?
Reply With Quote
  #24  
Old 19 Dec 2011, 02:19
SKIDZ SKIDZ is offline
  us-california
Join Date: Dec 2011
Posts: 25
here it is folks university med center, see if you can convert it or not lol dont forget to send it back if its works hahaha it looks awesome in fsx preview praying it converts
Attached Files
File Type: zip world7.zip (1.8 KB, 184 views)
Reply With Quote
  #25  
Old 19 Dec 2011, 06:30
Tejal Bernardo Tejal Bernardo is offline
  spain
Location: GCXO
Join Date: Mar 2011
Posts: 2,187
The xml file was compiled perfectly, so must be something wrong with the installation, I use the drag and drop process
__________________
Bernardo
Reply With Quote
  #26  
Old 19 Dec 2011, 06:40
Golf-HotelDelta Golf-HotelDelta is online now
  unitedkingdom
Location: Harton Village
Join Date: Dec 2004
Posts: 8,180
This is what I get when compiling your file:
__________________
George

Last edited by Golf-HotelDelta; 04 Feb 2012 at 05:38.
Reply With Quote
  #27  
Old 19 Dec 2011, 06:43
JRobinson JRobinson is offline
  unitedstates
Location: -
Join Date: Aug 2007
Posts: 584
Yep, worked for me too, are you sure you don't have a "world7.bgl" in the same folder you got the .xml out of?

Nice job on the hospital, BTW.

Jim

EDIT: Attached the .bgl
Attached Files
File Type: zip world7.zip (1.0 KB, 81 views)

Last edited by JRobinson; 19 Dec 2011 at 06:51.
Reply With Quote
  #28  
Old 19 Dec 2011, 06:51
Tejal Bernardo Tejal Bernardo is offline
  spain
Location: GCXO
Join Date: Mar 2011
Posts: 2,187
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[/QUOTE]

It's a good hint, it's how I work with those commands, if not would be crazy
__________________
Bernardo
Reply With Quote
  #29  
Old 19 Dec 2011, 13:22
SKIDZ SKIDZ is offline
  us-california
Join Date: Dec 2011
Posts: 25
Wink

thanks all for the help and support, i am going to be content with this one thing i created for now ...i honestly don t get path's or any of the other technicality involved in scenery design i hope you guys like it..as for me hopefully one day microsoft will release an sdk for dummies haha i think... i may have stepped out my league..just a lil this whole bglcomp madness has givin me heart palpetations
Maybe one day i will be able to compile my own..Merry Christmas
Reply With Quote
  #30  
Old 19 Dec 2011, 14:15
bobbyjack's Avatar
bobbyjack bobbyjack is offline
  unitedstates
Location: Denver
Join Date: Oct 2007
Posts: 1,523
Skidz

What tool did you use to make your XML? Can it output in a format that ModelConverterX(available on this forum) can use? It doesn't have to be real difficult to get objects into FS.

Bob
Reply With Quote
  #31  
Old 19 Dec 2011, 14:20
n4gix n4gix is offline
  unitedstates
Location: Hammond, Indiana
Join Date: Sep 2006
Posts: 8,553
Honestly, I'll never understand why MS insists on using such rediculously LONG path names, and then provides only command prompt tools...

That is precisely WHY I always install to simple paths:

D:\FSX
D:\FSX_SDK
__________________
Bill Leaming
3d Modeler Max/GMax
C & XML Gauge Programmer
Eaglesoft Development Group
http://eaglesoftdg.com

Intel® Core™ i7-3770k 4.2GHz - Crucial 16GB DDR3 - Dual Radeon HD770 1GB DDR5 (Crossfire) - Eco II Watercooling - Win7 64bit
Intel® Core™ i7-2600k 3.4GHz - Crucial 4GB DDR3 - NVIDIA GeForce GTX550Ti 1GB - Win7 64bit
Intel® Core™ i7-860 2.8GHz - Crucial 8GB DDR3 - NVIDIA GeForce GTS240 1GB - Win8 64bit
NOTE: Unless explicitly stated otherwise, everything written by my hand is MY opinion. I do NOT speak for any company, real or imagined...
Reply With Quote
  #32  
Old 19 Dec 2011, 15:03
SKIDZ SKIDZ is offline
  us-california
Join Date: Dec 2011
Posts: 25
i used the object placement tool in fsx tool box....yea all that path junk is pretty confusing if you dont know what you are doing..like me..
Reply With Quote
  #33  
Old 19 Dec 2011, 17:20
JRobinson JRobinson is offline
  unitedstates
Location: -
Join Date: Aug 2007
Posts: 584
Paths are just folders inside of folders, "C:\Program Files (x86)\Microsoft Games" begins on drive C:\ which is your hard drive, think of it as a folder. Inside the C:\ "folder" you'll find another folder named "Program Files (x86)" and inside that folder you'll find a "Microsoft Games" folder. If you navigate to a particular folder in Windows Explorer (like the one that contains bglcomp.exe) all you need to do to get the path is click in the address bar and copy the path.

Don't give up, your hospital placement was quite nice, and you can find solutions to any problems you have right here. You might have a look at "Instant Scenery 2" for placing objects though. I've never used the built-in scenery placement tool, but with Instant Scenery 2 there's no compiling involved, you just place your objects and when you start the sim next time, the objects will be there.


Payware, but worth the money in my opinion:

http://www.flight1.com/products.asp?product=instscen2

Jim
Reply With Quote
  #34  
Old 19 Dec 2011, 22:31
SKIDZ SKIDZ is offline
  us-california
Join Date: Dec 2011
Posts: 25
thanks for the kind words regarding the scenery, i would like to develop a working relationship with one of you , just until i learn how myself, i make the scenery and maybe you convert for me...i appreciate the guidance.
Reply With Quote
  #35  
Old 20 Dec 2011, 06:35
mgh mgh is offline
  unitedkingdom
Join Date: Jan 2010
Posts: 770
The following snippet puts a wrapper round compiling an .xml file to .bgl. It's written in Borland C++ Builder 4 but the key statement shown in red is a Windows API call. Statements before that are building the command sting for system(): lines after are displaying the results of the compliation. Change those to suit your favourite C/C++ compiler, and call a file open dialog to get the .xml file name.

bglcomp.exe and bglcomp.xsd should be in the same folder as your application.

Code:
AnsiString s = "bglcomp.exe";
AnsiString Command;

// Build command string for system call
// XMLfileName is AnsiString ccontaining full path and name of .xml file 
// bglcomp.exe compilation report is written to disk file bgl.txt
Command = "bglcomp.exe \"" + XMLFileName + "\" > bgl.txt";
 
// Run bglcomp - c_str() converts AnsiString to zero-terminated C string 
system(Command.c_str());
   
// Display compilation result in TMemo memCompile
// Clear memCompile
memCompile->Lines->Clear();

// Read and display bgl.txt in memCompile
memCompile-> Lines->LoadFromFile("bgl.txt");  

// Delete file bgl.txt
if (FileExists("bgl.txt"))
    {
    DeleteFile("bgl.txt");
    }

Last edited by mgh; 20 Dec 2011 at 06:40.
Reply With Quote
  #36  
Old 21 Dec 2011, 21:56
SKIDZ SKIDZ is offline
  us-california
Join Date: Dec 2011
Posts: 25
okay this is my expansion to my original project was wondering someone could hook me up with one more xml-bgl convert.. Do share...
Attached Files
File Type: zip umc expansion.zip (2.1 KB, 146 views)
Reply With Quote
  #37  
Old 21 Dec 2011, 22:47
ollyau ollyau is offline
  us-california
Join Date: Jan 2008
Posts: 464
Quote:
Originally Posted by SKIDZ View Post
okay this is my expansion to my original project was wondering someone could hook me up with one more xml-bgl convert.. Do share...
http://www.mediafire.com/?459p6712la15pjo

But really, all it should take is dragging your XML file and dropping it on BglComp.exe. That's all I did, anyways.
Reply With Quote
  #38  
Old 22 Dec 2011, 02:29
SKIDZ SKIDZ is offline
  us-california
Join Date: Dec 2011
Posts: 25
Thumbs up

i trrrrrrryyyyyyyyeeeeeeed bro, that dragging effect does not work for me at all. maye there is a path error idk....i just know i am going to keep trying Unitil i get it, this scenery is just some thing to keep me occupied until i figure it out. In any case thank you////
Reply With Quote
  #39  
Old 22 Dec 2011, 07:11
mgh mgh is offline
  unitedkingdom
Join Date: Jan 2010
Posts: 770
Try this application. Download it into a folder that contains bglcomp.exe and bglcomp.xsd - both from the BGL Compiler SDK. The .bgl is created in the same folder as the .xml.
Attached Files
File Type: exe xml2bgl.exe (82.0 KB, 127 views)

Last edited by mgh; 22 Dec 2011 at 08:11.
Reply With Quote
  #40  
Old 22 Dec 2011, 15:33
JRobinson JRobinson is offline
  unitedstates
Location: -
Join Date: Aug 2007
Posts: 584
Hi Gerry, I'm getting this error with your xml2bgl app:

Quote:
The program can't start because Vcl40.bpl is missing from your computer
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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FSX KML will not compile into BGL funjet2011 FSX KML 6 14 Jan 2011 18:20
BGL Compiler SDK (FSX) davidkelvin Wiki Article Discussions 0 03 May 2009 05:11
On manipulating the FSX terrain.cfg file HolgerSandmann General 5 16 Oct 2008 12:44
Converting FSX Planner XML to FSX BGL UkPilots FSX Planner 1 26 Jul 2007 08:46
Locating FSX BGL files solution llivaudais BGLComp XML, AFCAD, SceneGenX 1 17 Dec 2006 13:38


All times are GMT -4. The time now is 02:09.

Kirsch designed by Andrew & Austin


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.