Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Page Index Toggle Pages: 1
Send Topic Print
XML woes (Read 878 times)
Jul 11th, 2007 at 11:53am

Kaworu   Offline
Colonel
Powell, Ohio

Gender: male
Posts: 812
*****
 
Hello all

I've got a bit of a problem! Every time I try to make a exclude.xml document, and put it in the scenery folder of the scenery I'm developing, it doesn't work. Nothing happens, the tress and stuff are still there!

Here's the text:

<?xml version="1.0"?>
<FSData
   version = "9.0"
   xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
   xsi:noNamespaceSchemaLocation="bglcomp.xsd" >
   <ExclusionRectangle
       latitudeMinimum = "59.4502276161922"
       latitudeMaximum = "59.4538342067805"
       longitudeMinimum = "-146.306360621898"
       longitudeMaximum = "-146.305876924416"
      excludeAllObjects = "TRUE" />
</FSData>


Also, blgcomp isn't working either. I can't get it to put out anything! Help PLEASE!  Grin
 

AMD Phenom II X4 965 BE 3.6ghz, 4gb RAM, Palit GTX 460 1 gb, OCZ 750W, Windows 7 64bit
...
IP Logged
 
Reply #1 - Jul 11th, 2007 at 1:16pm

dave3cu   Offline
Colonel
Procrastinate now, don't
put it off.
3CU, Northern Wisconsin, USA

Gender: male
Posts: 3077
*****
 
From the .xml code it appears your using ExcbuilderV2..?

Putting the .xml file in the scenery folder won't do anything. It needs the .bgl file.

"... blgcomp isn't working either...".
..Does your Bglcomp folder contain both the 'bglcomp.exe' and 'bglcomp.xsd' files?
..Are you pointing Excbuilder 'Settings' to the correct location for 'bglcomp.exe'?
..Are you looking in the right place for the .bgl, in the same folder as Excbuilder saved the .xml.

Dave

I see your working at PAMD. What are you trying to exclude?

 

At that time [1909] the chief engineer was almost always the chief test pilot as well. That had the fortunate result of eliminating poor engineering early in aviation.          Igor Sikorsky

I intend to live forever....so far, so good.         Steven Wright

You know....you can just rip up a to-do list.
IP Logged
 
Reply #2 - Jul 11th, 2007 at 1:58pm

Kaworu   Offline
Colonel
Powell, Ohio

Gender: male
Posts: 812
*****
 
Sorry, everything is in place as needed, .xsd, and all. Thanks, but still the Excbuilder won't pop anything out.

I downloaded a new copy of bglcomp from M$, even then the sample xml files won't complile into bgl.

I am working with PAMD, as well as the rest of the island. I am building a town, fishing marina, other things like that, using RWY12. Should be very nice when finished.

Tongue
 

AMD Phenom II X4 965 BE 3.6ghz, 4gb RAM, Palit GTX 460 1 gb, OCZ 750W, Windows 7 64bit
...
IP Logged
 
Reply #3 - Jul 11th, 2007 at 5:18pm

Kaworu   Offline
Colonel
Powell, Ohio

Gender: male
Posts: 812
*****
 
This is ticking me off. Now FlatEx isn't working. It only says "Too East" or "Too West or "Too North" or "too south".

I've re-downloaded bglcomp, flatex, Excbuilder, nothing works. What the heck is going on. Everything worked before! Smiley
 

AMD Phenom II X4 965 BE 3.6ghz, 4gb RAM, Palit GTX 460 1 gb, OCZ 750W, Windows 7 64bit
...
IP Logged
 
Reply #4 - Jul 12th, 2007 at 9:24pm

Kaworu   Offline
Colonel
Powell, Ohio

Gender: male
Posts: 812
*****
 
Anyone got anything to say? Cry
 

AMD Phenom II X4 965 BE 3.6ghz, 4gb RAM, Palit GTX 460 1 gb, OCZ 750W, Windows 7 64bit
...
IP Logged
 
Reply #5 - Jul 13th, 2007 at 8:22am

dave3cu   Offline
Colonel
Procrastinate now, don't
put it off.
3CU, Northern Wisconsin, USA

Gender: male
Posts: 3077
*****
 
Sorry to here about your continuing troubles.....  Sad

"... It only says "Too East" or "Too West or "Too North" or "too south"....."

That message tells me: You may not be defining the NW and SE corners properly.

Excludes, and the flattex rectangular flatten, create a n/s-e/w oriented rectangle which you must define by the nw corner and se corner. If your sim (top-down) view and/or your ac are not North oriented then you could mistakenly be defining a skewed rectangle that, for example, has a 'southeast' corner that is actually more west than the 'northwest' corner.

This will cause an error: In Excbuilder, without a warning, the .xml will be created, but no .bgl (as the error occurs in Bglcomp). Apparently you're warned of the error in Flattex, as the code it would generate for the Scenery.cfg file would be in error.

To properly orient the sim goto top-down view. In the Views>View Options menu select North Oriented in the Map Orientation option.  To orient your ac, when you're in Slew mode press the Space bar to set the ac heading to N. This will make it much easier to keep the NW-SE relationship.

Hang in there...we'll get 'er done....  Wink
Dave

Append: Here's a method you can use to help troubleshoot your ExcBuilder/Bglcomp problems.

..Create a folder called Bglcomp and copy Bglcomp.exe and Bglcomp.xsd into the folder.
..Create a new Notepad file and paste the following text into it. Save as Compile.bat to the Bglcomp folder.


rem This batch file will convert XML files to BGL files

bglcomp *.xml

pause


..If ExcBuilder fails to generate the .bgl, copy the generated .xml file to the Bglcomp folder. (You have to uncheck 'Delete source after compilation?' or the .xml is automatically deleted).
..Double-click on Compile.bat and Bglcomp will run in a DOS window which will remain open so you can read any Bglcomp messages/errors.


« Last Edit: Jul 13th, 2007 at 11:33am by dave3cu »  

At that time [1909] the chief engineer was almost always the chief test pilot as well. That had the fortunate result of eliminating poor engineering early in aviation.          Igor Sikorsky

I intend to live forever....so far, so good.         Steven Wright

You know....you can just rip up a to-do list.
IP Logged
 
Reply #6 - Jul 13th, 2007 at 12:17pm

Kaworu   Offline
Colonel
Powell, Ohio

Gender: male
Posts: 812
*****
 
Well, it still doesn't work. I managed to get the FlatEx to take my coordinates, but the code does nothing. In ExcBuilder, Bglcomp still won't put out anything, including the sample XML's Microsoft provides.  If anyone wants to try and use this updated XML and see if it compiles for them, here you go:

<?xml version="1.0"?>
<FSData
   version = "9.0"
   xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
   xsi:noNamespaceSchemaLocation="bglcomp.xsd" >
   <ExclusionRectangle
       latitudeMinimum = "59.4507696413007"
       latitudeMaximum = "59.4542105991422"
       longitudeMinimum = "-146.306889996265"
       longitudeMaximum = "-146.307073274155"
      excludeBeaconObjects = "TRUE"
      excludeGenericBuildingObjects = "TRUE"
      excludeLibraryObjects = "TRUE"
/>
</FSData>


Thanks.  Tongue
 

AMD Phenom II X4 965 BE 3.6ghz, 4gb RAM, Palit GTX 460 1 gb, OCZ 750W, Windows 7 64bit
...
IP Logged
 
Reply #7 - Jul 13th, 2007 at 1:46pm

dave3cu   Offline
Colonel
Procrastinate now, don't
put it off.
3CU, Northern Wisconsin, USA

Gender: male
Posts: 3077
*****
 
...
It appears that your not defining your exclude rectangle properly.
...
If there's something else causing the problem, I don't see it.

Your first .xml example compiled fine.
This second example did not. I then swapped the longitudeMax and Min and it compiled fine.

Dave

« Last Edit: Jul 13th, 2007 at 3:08pm by dave3cu »  

At that time [1909] the chief engineer was almost always the chief test pilot as well. That had the fortunate result of eliminating poor engineering early in aviation.          Igor Sikorsky

I intend to live forever....so far, so good.         Steven Wright

You know....you can just rip up a to-do list.
IP Logged
 
Reply #8 - Jul 14th, 2007 at 10:01am

Kaworu   Offline
Colonel
Powell, Ohio

Gender: male
Posts: 812
*****
 
Thanks very much for the help Dave. It's appreciated. I'm going to North Carolina fora the week, so I'll work on it more soon. I still can't get anything, by me or Microsoft to compile.
 

AMD Phenom II X4 965 BE 3.6ghz, 4gb RAM, Palit GTX 460 1 gb, OCZ 750W, Windows 7 64bit
...
IP Logged
 
Reply #9 - Jul 30th, 2007 at 12:04pm

Kaworu   Offline
Colonel
Powell, Ohio

Gender: male
Posts: 812
*****
 
I would appear I fixed it! Thanks!  Grin
 

AMD Phenom II X4 965 BE 3.6ghz, 4gb RAM, Palit GTX 460 1 gb, OCZ 750W, Windows 7 64bit
...
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print