- Messages
- 153
- Country

Hi,
I recently wanted to import a flatten polygon, which I first extracted with the tool CVX Extractor, available in this forum.
CVX extractor
The reason is stupid. I made a flatten for a terrain spike near an airport i modified and deleted the poly afterwards, renamed the CVX.bgl and no longer had the source code, when I later wanted to put all terrain fixing flattens into one bgl.
The extracted file looks like this:
It produces following error
I changed the XML file to look like ADE is showing the ShapePoly in Raw mode
But also this file was not loadable.
I typed all five points manualy into another 5 edged poly and got my result. But what if I have 100 points?
How does the format of the XML file has to be to be imported by ADE?
Thanks
Dan
I recently wanted to import a flatten polygon, which I first extracted with the tool CVX Extractor, available in this forum.
CVX extractor
The reason is stupid. I made a flatten for a terrain spike near an airport i modified and deleted the poly afterwards, renamed the CVX.bgl and no longer had the source code, when I later wanted to put all terrain fixing flattens into one bgl.
The extracted file looks like this:
<?xml version="1.0" encoding="utf-8"?>
<Vectors>
<VectorType name="AirportBounds">
<Vector TextureGuid="{47D48287-3ADE-4FC5-8BEC-B6B36901E612}" TextureName="Airport_Backgrounds_Flatten" FileOffsetHex="A4">
<QMID u="426" v="524" l="11" />
<Shapes>
<Shape Index="0" DrawType="Polygon" FileOffsetHex="B6">
<Points>
<Point Longitude="-80.0180912017822" Latitude="-2.21888959407806" Altitude="1.75381922721863" />
<Point Longitude="-80.018355846405" Latitude="-2.21391141414642" Altitude="0.08595360070467" />
<Point Longitude="-80.0238704681396" Latitude="-2.21432447433472" Altitude="6.91012096405029" />
<Point Longitude="-80.0240850448608" Latitude="-2.21801519393921" Altitude="4.82041215896606" />
<Point Longitude="-80.0180912017822" Latitude="-2.21888959407806" Altitude="1.75381922721863" />
</Points>
</Shape>
</Shapes>
</Vector>
</VectorType>
</Vectors>
<Vectors>
<VectorType name="AirportBounds">
<Vector TextureGuid="{47D48287-3ADE-4FC5-8BEC-B6B36901E612}" TextureName="Airport_Backgrounds_Flatten" FileOffsetHex="A4">
<QMID u="426" v="524" l="11" />
<Shapes>
<Shape Index="0" DrawType="Polygon" FileOffsetHex="B6">
<Points>
<Point Longitude="-80.0180912017822" Latitude="-2.21888959407806" Altitude="1.75381922721863" />
<Point Longitude="-80.018355846405" Latitude="-2.21391141414642" Altitude="0.08595360070467" />
<Point Longitude="-80.0238704681396" Latitude="-2.21432447433472" Altitude="6.91012096405029" />
<Point Longitude="-80.0240850448608" Latitude="-2.21801519393921" Altitude="4.82041215896606" />
<Point Longitude="-80.0180912017822" Latitude="-2.21888959407806" Altitude="1.75381922721863" />
</Points>
</Shape>
</Shapes>
</Vector>
</VectorType>
</Vectors>
It produces following error
ScruffyDuck Scenery Design Engine Compiling
Using BglComp....
Parsing document: E:\MSFS\FS Design Tools\Airport Design Editor 179 Test\P35\work\loadFrom.xml
INTERNAL COMPILER ERROR: #C2033: XML Parse Error (line, column, error)
ERROR: 2, 9, Das Element 'Vectors' wird verwendet, aber es ist im DTD/Schema nicht deklariert .
INTERNAL COMPILER ERROR: #C2309: Vectors is NOT a valid token!
INTERNAL COMPILER ERROR: #C2016: Invalid element found <Vectors>, skipping!
INTERNAL COMPILER ERROR: #C2032: XML Parse Error! Element tree follows:
ERROR:
INTERNAL COMPILER ERROR: #C2033: XML Parse Error (line, column, error)
ERROR: 3, 35, Das Element 'VectorType' wird verwendet, aber es ist im DTD/Schema nicht deklariert .
INTERNAL COMPILER ERROR: #C2309: VectorType is NOT a valid token!
INTERNAL COMPILER ERROR: #C2016: Invalid element found <VectorType>, skipping!
INTERNAL COMPILER ERROR: #C2032: XML Parse Error! Element tree follows:
ERROR:
INTERNAL COMPILER ERROR: #C2033: XML Parse Error (line, column, error)
ERROR: 4, 126, Das Element 'Vector' wird verwendet, aber es ist im DTD/Schema nicht deklariert .
INTERNAL COMPILER ERROR: #C2309: Vector is NOT a valid token!
INTERNAL COMPILER ERROR: #C2016: Invalid element found <Vector>, skipping!
INTERNAL COMPILER ERROR: #C2032: XML Parse Error! Element tree follows:
ERROR:
INTERNAL COMPILER ERROR: #C2033: XML Parse Error (line, column, error)
ERROR: 5, 37, Das Element 'QMID' wird verwendet, aber es ist im DTD/Schema nicht deklariert .
INTERNAL COMPILER ERROR: #C2309: QMID is NOT a valid token!
INTERNAL COMPILER ERROR: #C2016: Invalid element found <QMID>, skipping!
INTERNAL COMPILER ERROR: #C2032: XML Parse Error! Element tree follows:
ERROR:
INTERNAL COMPILER ERROR: #C2309: QMID is NOT a valid token!
INTERNAL COMPILER ERROR: #C2023: Improper ending element <QMID>. Stopping!
INTERNAL COMPILER ERROR: #C2034: XML Parse Fatal Error (line, column, error)
ERROR: 5, 37, Unbekannter Fehler
INTERNAL COMPILER ERROR: #C2430: Unrecoverable error parsing XML!
INTERNAL COMPILER ERROR: #C2006: Parse failed (0x80004005)
INTERNAL COMPILER ERROR: #C2003: Failed to process file: E:\MSFS\FS Design Tools\Airport Design Editor 179 Test\P35\work\loadFrom.xml
Using BglComp....
Parsing document: E:\MSFS\FS Design Tools\Airport Design Editor 179 Test\P35\work\loadFrom.xml
INTERNAL COMPILER ERROR: #C2033: XML Parse Error (line, column, error)
ERROR: 2, 9, Das Element 'Vectors' wird verwendet, aber es ist im DTD/Schema nicht deklariert .
INTERNAL COMPILER ERROR: #C2309: Vectors is NOT a valid token!
INTERNAL COMPILER ERROR: #C2016: Invalid element found <Vectors>, skipping!
INTERNAL COMPILER ERROR: #C2032: XML Parse Error! Element tree follows:
ERROR:
INTERNAL COMPILER ERROR: #C2033: XML Parse Error (line, column, error)
ERROR: 3, 35, Das Element 'VectorType' wird verwendet, aber es ist im DTD/Schema nicht deklariert .
INTERNAL COMPILER ERROR: #C2309: VectorType is NOT a valid token!
INTERNAL COMPILER ERROR: #C2016: Invalid element found <VectorType>, skipping!
INTERNAL COMPILER ERROR: #C2032: XML Parse Error! Element tree follows:
ERROR:
INTERNAL COMPILER ERROR: #C2033: XML Parse Error (line, column, error)
ERROR: 4, 126, Das Element 'Vector' wird verwendet, aber es ist im DTD/Schema nicht deklariert .
INTERNAL COMPILER ERROR: #C2309: Vector is NOT a valid token!
INTERNAL COMPILER ERROR: #C2016: Invalid element found <Vector>, skipping!
INTERNAL COMPILER ERROR: #C2032: XML Parse Error! Element tree follows:
ERROR:
INTERNAL COMPILER ERROR: #C2033: XML Parse Error (line, column, error)
ERROR: 5, 37, Das Element 'QMID' wird verwendet, aber es ist im DTD/Schema nicht deklariert .
INTERNAL COMPILER ERROR: #C2309: QMID is NOT a valid token!
INTERNAL COMPILER ERROR: #C2016: Invalid element found <QMID>, skipping!
INTERNAL COMPILER ERROR: #C2032: XML Parse Error! Element tree follows:
ERROR:
INTERNAL COMPILER ERROR: #C2309: QMID is NOT a valid token!
INTERNAL COMPILER ERROR: #C2023: Improper ending element <QMID>. Stopping!
INTERNAL COMPILER ERROR: #C2034: XML Parse Fatal Error (line, column, error)
ERROR: 5, 37, Unbekannter Fehler
INTERNAL COMPILER ERROR: #C2430: Unrecoverable error parsing XML!
INTERNAL COMPILER ERROR: #C2006: Parse failed (0x80004005)
INTERNAL COMPILER ERROR: #C2003: Failed to process file: E:\MSFS\FS Design Tools\Airport Design Editor 179 Test\P35\work\loadFrom.xml
I changed the XML file to look like ADE is showing the ShapePoly in Raw mode
<airportBounds>
<guid>
{47d48287-3ade-4fc5-8bec-b6b36901e612}
</guid>
<coordinates>
-80.0180912017822,-2.21888959407806,5.684
-80.018355846405,-2.21391141414642,5.684
-80.0238704681396,-2.21432447433472,5.684
-80.0240850448608,-2.21801519393921,5.684
-80.0180912017822,-2.21888959407806,5.684
-80.0180912017822,-2.21888959407806,5.684
</coordinates>
</airportBounds>
<guid>
{47d48287-3ade-4fc5-8bec-b6b36901e612}
</guid>
<coordinates>
-80.0180912017822,-2.21888959407806,5.684
-80.018355846405,-2.21391141414642,5.684
-80.0238704681396,-2.21432447433472,5.684
-80.0240850448608,-2.21801519393921,5.684
-80.0180912017822,-2.21888959407806,5.684
-80.0180912017822,-2.21888959407806,5.684
</coordinates>
</airportBounds>
But also this file was not loadable.
I typed all five points manualy into another 5 edged poly and got my result. But what if I have 100 points?
How does the format of the XML file has to be to be imported by ADE?
Thanks
Dan
