• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

ADE Import XML file INTERNAL COMPILER ERROR

Messages
153
Country
switzerland
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:
<?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>

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

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>

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
 

Attachments

ADE cannot read CVX.bgl files at all
 
ADE cannot read CVX.bgl files at all
Jon, that´s not you. Did you only read my first sentence? I try to read an .xml file. I need to know, how ADE needs an .xml file to be, that it can be read. See my initial post again please.

Dan
 
Sorry for answering the wrong question.

I assume you mean the XML format for polygons. The 'XML' for CVX elements is generated in ADE separately from the airport source because it uses a separate compiler. xml2shp.exe created by Winfried Orthmann. If you right click a shape poly in ADE then you can select Show XML and you will get something like this

1638957049122.png


ADE accumulates all the code of this type and sends it through xml2shp. There is no way to import this into ADE - it is separate from the XML generated for the airport. I can't think of any way to inject and external file of this into the ADE compiler function

Maybe you could create such a file and run xml2shp externally to ADE to get a a shape file for shp2Vec.exe. This is a download source for it. https://flyawaysimulation.com/downloads/files/1654/fsx-xml2shp-utility/ The list of the guids to use with it and they represent different poly types is included in the package


Still not sure I answered your question
 
Last edited:
Ok, I understand. ADE´s "Import XML" only imports XML scenery placement files. So a landclass or flatten polygon can not be imported, right?

I tried to import it in exactly the form, you have shown above. What is a pity, I can create a poligon and enter all values by hand in the raw editor mode of ADE. So if I dumb human can do it, why not the software? 😅

Regards

Dan
 
Back
Top