|
Post by warwickairport on Aug 3, 2007 7:30:28 GMT -5
Hello,
I modified a scenery add-on comprised of several buildings, which had flatned portions of the terrain, with more realistic terrain from FsGenesis . As a result, some of the buildings are now in mid air. I was wondering if there is a way to position the building back to the ground? Thank you for your help.
Walter
|
|
|
Post by ScruffyDuck on Aug 4, 2007 0:55:49 GMT -5
If these buildings are library objects then you need to make sure that in the XML the IsAGL flag is set to True and the altitude value is set to zero.
|
|
|
Post by warwickairport on Aug 4, 2007 11:52:28 GMT -5
Hi Jon,
I am new to scenery editing. I am very certain that these are not the default library objects given that I do not see any xml files which came with this scenery. One I find the xml files, if they are present, I was wondering whatprogram would I use to check if the IsAGL flag is set to true and the altitude value is set to zero? If there are no xml files, perhaps I could create a flatten file to lower the buildings? Thank you for your help.
Walter
|
|
|
Post by Dave3cu on Aug 4, 2007 15:58:08 GMT -5
Walter,
.xml files are plain text, view/edit with Notepad.
What is the download file name of the scenery add-on?
Dave
|
|
|
Post by warwickairport on Aug 4, 2007 16:28:13 GMT -5
Hi Dave,
The scenery add-on I am reffering to is the Aerosoft Manhattan scenery. The Aerosoft Manhatan scenery, as compared with Bill Lyon's excellent vintage scenery of NYC included with Golden WIngs, in correctly flattens the terrain of Manhattan. I have been able to merge the Aersoft Manhattan scenery with FsGenesis terrain; however, several buildings appear in the air because of the merger. Nonetheless, I now have both accurate terrain and highly detailed buildings albeit in the air. As I mentioned, I did not come across any xml files with this scenery so I am assume when Jon meant library objects he was reffering to default scenery objects. Thank you for your help.
Sincerley, Walter
|
|
|
Post by scubakobe on Aug 4, 2007 16:33:39 GMT -5
There won't be any XML files supplied with the scenery. What you will have to do is decompile the BGL scenery file to get the raw XML file. Edit the XML file as Jon said, then recompile.
To decompile the BGL, download the program BGLXML. To recompile, you will need to send it through BGLCOMP provided in the FS2004SDK.
|
|
|
Post by warwickairport on Aug 4, 2007 16:53:17 GMT -5
ok, I was able to open the scenery bgls using BGLAnalyze. I did not know they were FS2002 files as Aersoft market the scenery for FS2004! Do I still look for the ISAGL flag in these files? Thanks. Walter
|
|
|
Post by scubakobe on Aug 4, 2007 22:23:25 GMT -5
FS2002 files?
I'm probably not right, but it sounds like they were doing something with ground polys if it uses FS2002 code.
Use the tags and paste the XML source here. You may be looking at the wrong BGL, possible the one used for ground polygons, which is not what you want.
|
|
|
Post by warwickairport on Aug 5, 2007 2:57:02 GMT -5
Well, after going through all of the bgls, I did find two bgl files I could open in BGLXML. I have included the files here. I hope this does not get me in trouble with Aerosoft.
<!-- decoded by bglxml on 2007-08-04, 19:38:17
--> - <FSData version="9.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="bglcomp.xsd"> - <!-- Object type: 0x00000025 offset: 0x0000004C group count: 1 unknown1: 0x00000001 table size: 0x00000010
--> - <!-- LatInfo: 0x00835290, offset: 0x0000005C, length: 0x00000300, count: 16
--> - <!-- SceneryObject, offset 0x0000005C (92) --> - <SceneryObject lat="40 45.28338" lon="-74 0.37372" alt="0.000F" altitudeIsAgl="TRUE" pitch="0.00" bank="0.00" heading="0.00" imageComplexity="VERY_SPARSE"> <LibraryObject name="ba3d374c4b4084b613d61da30bd17ce9" scale="1.00" /> </SceneryObject> - <!-- SceneryObject, offset 0x0000008C (140) --> - <SceneryObject lat="40 42.07255" lon="-74 0.49801" alt="0.000F" altitudeIsAgl="TRUE" pitch="0.00" bank="0.00" heading="61.00" imageComplexity="VERY_SPARSE"> <LibraryObject name="6c84526046c33c0728930ea4f7697546" scale="1.00" /> </SceneryObject> - <!-- SceneryObject, offset 0x000000BC (188) --> - <SceneryObject lat="40 44.51832" lon="-73 58.28900" alt="0.000F" altitudeIsAgl="TRUE" pitch="0.00" bank="0.00" heading="0.00" imageComplexity="VERY_SPARSE"> <LibraryObject name="2c4e806d4736820fae08ca88144cd813" scale="1.00" /> </SceneryObject> - <!-- SceneryObject, offset 0x000000EC (236) --> - <SceneryObject lat="40 45.92926" lon="-74 0.03308" alt="14.764F" altitudeIsAgl="FALSE" pitch="0.00" bank="0.00" heading="119.20" imageComplexity="VERY_DENSE"> <LibraryObject name="5c8162304b5d10985cb6b2a8b822db66" scale="1.00" /> </SceneryObject> - <!-- SceneryObject, offset 0x0000011C (284) --> - <SceneryObject lat="40 45.25803" lon="-74 0.20718" alt="0.000F" altitudeIsAgl="TRUE" pitch="0.00" bank="0.00" heading="119.00" imageComplexity="VERY_DENSE"> <LibraryObject name="607edd4c4cdaa987b8959d9a27d3acf9" scale="1.20" /> </SceneryObject> - <!-- SceneryObject, offset 0x0000014C (332) --> - <SceneryObject lat="40 45.27499" lon="-74 0.22579" alt="0.000F" altitudeIsAgl="TRUE" pitch="0.00" bank="0.00" heading="119.00" imageComplexity="NORMAL"> <LibraryObject name="2f3e9a3840fb03370b136883609bc102" scale="1.20" /> </SceneryObject> - <!-- SceneryObject, offset 0x0000017C (380) --> - <SceneryObject lat="40 45.29243" lon="-74 0.22955" alt="0.000F" altitudeIsAgl="TRUE" pitch="0.00" bank="0.00" heading="119.00" imageComplexity="NORMAL"> <LibraryObject name="2f3e9a3840fb03370b136883609bc102" scale="1.20" /> </SceneryObject> - <!-- SceneryObject, offset 0x000001AC (428) --> - <SceneryObject lat="40 45.30440" lon="-74 0.20718" alt="0.000F" altitudeIsAgl="TRUE" pitch="0.00" bank="0.00" heading="119.00" imageComplexity="DENSE"> <LibraryObject name="0048a60f422360bb703ec9a75579ba94" scale="1.10" /> </SceneryObject> - <!-- SceneryObject, offset 0x000001DC (476) --> - <SceneryObject lat="40 45.31297" lon="-74 0.21190" alt="0.000F" altitudeIsAgl="TRUE" pitch="0.00" bank="0.00" heading="119.00" imageComplexity="DENSE"> <LibraryObject name="2f3e9a3840fb03370b136883609bc102" scale="1.20" /> </SceneryObject> - <!-- SceneryObject, offset 0x0000020C (524) --> - <SceneryObject lat="40 45.31844" lon="-74 0.17478" alt="0.000F" altitudeIsAgl="TRUE" pitch="0.00" bank="0.00" heading="119.00" imageComplexity="NORMAL"> <LibraryObject name="0048a60f422360bb703ec9a75579ba94" scale="1.00" /> </SceneryObject> - <!-- SceneryObject, offset 0x0000023C (572) --> - <SceneryObject lat="40 45.25395" lon="-74 0.22000" alt="0.000F" altitudeIsAgl="TRUE" pitch="0.00" bank="0.00" heading="119.00" imageComplexity="EXTREMELY_DENSE"> <LibraryObject name="0048a60f422360bb703ec9a75579ba94" scale="1.20" /> </SceneryObject> - <!-- SceneryObject, offset 0x0000026C (620) --> - <SceneryObject lat="40 45.21701" lon="-74 0.08959" alt="0.000F" altitudeIsAgl="TRUE" pitch="0.00" bank="0.00" heading="96.00" imageComplexity="VERY_DENSE"> <LibraryObject name="607edd4c4cdaa987b8959d9a27d3acf9" scale="1.20" /> </SceneryObject> - <!-- SceneryObject, offset 0x0000029C (668) --> - <SceneryObject lat="40 45.19104" lon="-73 58.55917" alt="0.000F" altitudeIsAgl="TRUE" pitch="0.00" bank="0.00" heading="27.00" imageComplexity="VERY_SPARSE"> <LibraryObject name="0b43631541291f9f8ddd41a51e49f1b1" scale="1.00" /> </SceneryObject> - <!-- SceneryObject, offset 0x000002CC (716) --> - <SceneryObject lat="40 41.84149" lon="-74 2.21291" alt="0.000F" altitudeIsAgl="TRUE" pitch="0.00" bank="0.00" heading="100.00" imageComplexity="DENSE"> <LibraryObject name="89c4646b48303ca0d3db9bb46bf4b2a8" scale="1.00" /> </SceneryObject> - <!-- SceneryObject, offset 0x000002FC (764) --> - <SceneryObject lat="40 41.91633" lon="-74 0.86528" alt="0.000F" altitudeIsAgl="TRUE" pitch="0.00" bank="0.00" heading="36.00" imageComplexity="VERY_DENSE"> <LibraryObject name="89c4646b48303ca0d3db9bb46bf4b2a8" scale="1.00" /> </SceneryObject> - <!-- SceneryObject, offset 0x0000032C (812) --> - <SceneryObject lat="40 41.29758" lon="-74 2.89177" alt="0.000F" altitudeIsAgl="TRUE" pitch="0.00" bank="0.00" heading="0.00" imageComplexity="NORMAL"> <LibraryObject name="b911eaed4d1cb095ecd82497d0cd6995" scale="1.00" /> </SceneryObject> </FSData>
<!-- decoded by bglxml on 2007-08-04, 20:00:24
--> - <FSData version="9.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="bglcomp.xsd"> - <!-- Object type: 0x00000027 offset: 0x00000070 group count: 1 unknown1: 0x00000003 table size: 0x00000010
--> - <!-- LatInfo: 0x00000002, offset: 0x000003B2, length: 0x000000AB, count: 1
--> - <!-- Object type: 0x00000003 offset: 0x00000060 group count: 1 unknown1: 0x00000001 table size: 0x00000010
--> - <!-- LatInfo: 0x00083529, offset: 0x00000080, length: 0x00000332, count: 1
--> - <!-- Airport, offset 0x00000080 (128) --> - <Airport ident="KJRB" name="Port Authority Downtown - Wall St Heliport" lat="40 42.03232" lon="-74 0.50643" magvar="13.30" alt="11.483F" city="New York" state="New York" country="United States" region="United States"> <Tower lat="40 42.07567" lon="-74 0.54068" alt="39.370F" /> - <Services> <Fuel type="100" availability="NO" /> </Services> <DeleteAirport deleteAllApproaches="FALSE" deleteAllAprons="TRUE" deleteAllFrequencies="TRUE" deleteAllHelipads="TRUE" deleteAllRunways="TRUE" deleteAllStarts="TRUE" deleteAllTaxiways="TRUE" /> <Helipad lat="40 42.03202" lon="-74 0.50635" alt="11.483F" surface="WATER" heading="61.00" length="55.774F" width="55.774F" closed="FALSE" transparent="TRUE" type="H" /> <Helipad lat="40 42.05018" lon="-74 0.49935" alt="11.483F" surface="WATER" heading="151.00" length="26.246F" width="26.246F" closed="FALSE" transparent="TRUE" type="H" /> <Helipad lat="40 42.05368" lon="-74 0.49071" alt="11.483F" surface="WATER" heading="151.00" length="26.246F" width="26.246F" closed="FALSE" transparent="TRUE" type="H" /> <Helipad lat="40 42.05718" lon="-74 0.48117" alt="11.483F" surface="WATER" heading="151.00" length="26.246F" width="26.246F" closed="FALSE" transparent="TRUE" type="H" /> <Helipad lat="40 42.06068" lon="-74 0.47336" alt="11.483F" surface="WATER" heading="151.00" length="26.246F" width="26.246F" closed="FALSE" transparent="TRUE" type="H" /> <Helipad lat="40 42.06485" lon="-74 0.46317" alt="11.483F" surface="WATER" heading="151.00" length="29.527F" width="29.527F" closed="FALSE" transparent="TRUE" type="H" /> <Helipad lat="40 42.05700" lon="-74 0.50702" alt="11.483F" surface="WATER" heading="331.00" length="26.246F" width="26.246F" closed="FALSE" transparent="TRUE" type="H" /> <Helipad lat="40 42.06151" lon="-74 0.49602" alt="11.483F" surface="WATER" heading="331.00" length="26.246F" width="26.246F" closed="FALSE" transparent="TRUE" type="H" /> <Helipad lat="40 42.06601" lon="-74 0.48535" alt="11.483F" surface="WATER" heading="331.00" length="26.246F" width="26.246F" closed="FALSE" transparent="TRUE" type="H" /> <Helipad lat="40 42.06968" lon="-74 0.47467" alt="11.483F" surface="WATER" heading="331.00" length="26.246F" width="26.246F" closed="FALSE" transparent="TRUE" type="H" /> <Helipad lat="40 42.07334" lon="-74 0.46617" alt="11.483F" surface="WATER" heading="331.00" length="29.527F" width="29.527F" closed="FALSE" transparent="TRUE" type="H" /> - <!-- Start, offset 0x0000027A (634) --> <Start type="HELIPAD" lat="40 42.05700" lon="-74 0.50702" alt="11.483F" heading="331.00" number="02" designator="NONE" /> - <!-- Start, offset 0x00000292 (658) --> <Start type="HELIPAD" lat="40 42.03202" lon="-74 0.50635" alt="11.483F" heading="61.00" number="01" designator="NONE" /> - <!-- Start, offset 0x000002AA (682) --> <Start type="HELIPAD" lat="40 42.05018" lon="-74 0.49935" alt="11.483F" heading="151.00" number="03" designator="NONE" /> - <!-- Start, offset 0x000002C2 (706) --> <Start type="HELIPAD" lat="40 42.05368" lon="-74 0.49069" alt="11.483F" heading="151.00" number="04" designator="NONE" /> - <!-- Start, offset 0x000002DA (730) --> <Start type="HELIPAD" lat="40 42.05718" lon="-74 0.48202" alt="11.483F" heading="151.00" number="05" designator="NONE" /> - <!-- Start, offset 0x000002F2 (754) --> <Start type="HELIPAD" lat="40 42.06485" lon="-74 0.46317" alt="11.483F" heading="151.00" number="07" designator="NONE" /> - <!-- Start, offset 0x0000030A (778) --> <Start type="HELIPAD" lat="40 42.05700" lon="-74 0.50702" alt="11.483F" heading="331.00" number="08" designator="NONE" /> - <!-- Start, offset 0x00000322 (802) --> <Start type="HELIPAD" lat="40 42.06151" lon="-74 0.49602" alt="11.483F" heading="331.00" number="09" designator="NONE" /> - <!-- Start, offset 0x0000033A (826) --> <Start type="HELIPAD" lat="40 42.06601" lon="-74 0.48535" alt="11.483F" heading="331.00" number="10" designator="NONE" /> - <!-- Start, offset 0x00000352 (850) --> <Start type="HELIPAD" lat="40 42.06968" lon="-74 0.47467" alt="11.483F" heading="331.00" number="11" designator="NONE" /> - <!-- Start, offset 0x0000036A (874) --> <Start type="HELIPAD" lat="40 42.07334" lon="-74 0.46617" alt="11.483F" heading="331.00" number="12" designator="NONE" /> - <!-- Com, offset 0x00000382 (898) --> <Com frequency="123.050" type="UNICOM" name="Port Authority - Wall St Heliport" /> </Airport> </FSData>
<!-- decoded by bglxml on 2007-08-04, 19:44:41
--> - <FSData version="9.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="bglcomp.xsd"> - <!-- Object type: 0x00000025 offset: 0x0000004C group count: 1 unknown1: 0x00000001 table size: 0x00000010
--> - <!-- LatInfo: 0x00835290, offset: 0x0000005C, length: 0x00000090, count: 3
--> - <!-- SceneryObject, offset 0x0000005C (92) --> - <SceneryObject lat="40 42.06000" lon="-74 0.47328" alt="11.483F" altitudeIsAgl="FALSE" pitch="0.00" bank="0.00" heading="327.00" imageComplexity="DENSE"> <LibraryObject name="e0cd473846df5c61256fed8123968876" scale="1.00" /> </SceneryObject> - <!-- SceneryObject, offset 0x0000008C (140) --> - <SceneryObject lat="40 44.51321" lon="-73 58.29406" alt="9.842F" altitudeIsAgl="FALSE" pitch="0.00" bank="0.00" heading="327.00" imageComplexity="DENSE"> <LibraryObject name="e0cd473846df5c61256fed8123968876" scale="1.00" /> </SceneryObject> - <!-- SceneryObject, offset 0x000000BC (188) --> - <SceneryObject lat="40 45.31806" lon="-74 0.35116" alt="9.842F" altitudeIsAgl="FALSE" pitch="0.00" bank="0.00" heading="256.00" imageComplexity="DENSE"> <LibraryObject name="35b89b8a4877d3b9c9c696adf6109d86" scale="1.00" /> </SceneryObject> </FSData>
|
|
|
Post by scubakobe on Aug 5, 2007 10:15:37 GMT -5
Ok in the first code there is one object that has:
altitudeIsAgl="FALSE"
As Jon said, change that to True and make sure the Altitude value is 0.
In the last code there are 3 of them with that same "FALSE" statement. Do the same with them.
Now save and recompile those XMLs with BGLComp.
Keep backup files!
|
|
|
Post by warwickairport on Aug 6, 2007 7:24:54 GMT -5
Ok, I will modify the xml files and change them to bgls when I get the chance. So, when I change the coding of the xml files the building will assume the elevation of the terrain? I am a little concerned that most of the bgls that came with the scenery were FS2002 files and I could not convert them to xmls execept for the scasm format. Perhaps the files that I was able to convert to xml are only for a couple of buildings,
|
|
|
Post by scubakobe on Aug 6, 2007 18:12:11 GMT -5
Go ahead and recompile the XMLs you got and let me know if it works. There is no need to worry about the FS2002 BGL's because I am pretty sure it's only for ground polygons.
|
|
|
Post by Dave3cu on Aug 6, 2007 19:54:13 GMT -5
|
|
|
Post by warwickairport on Aug 7, 2007 5:56:01 GMT -5
Hi Dave,
Yes, I was the person who created that thread. My username on that forum is walterconklin.
Walter
|
|