• 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.

Issue with XML editing

G

george7378

Guest
So, I need to accomplish a simple task. I've drawn my shorelines the wrong way around (clockwise rather than anticlockwise) and I need to reverse the order of the coordinates. It's a simple enough task to grab reverse the coordinates, and if I could just edit the XML code of my vector object it would be simple to copy them in. It says here:

http://www.airportdesigneditor.co.uk/ade_005.htm

...that with a prokey I should be able to edit the XML code. How do I do this?

I also tried exporting the existing shoreline as an XML, copying the reversed coordinates in using notepad and saving it as an XML, which seemed to work until I tried to import the XML. Here's the list of errors I got:

Code:
ScruffyDuck Scenery Design Engine Compiling
Using BglComp....


Parsing document: C:\MSFS\FS Design Tools\Airport Design Editor\FSX\work\loadFrom.xml

INTERNAL COMPILER ERROR:  #C2033: XML Parse Error (line, column, error)

ERROR: 1, 11, The element 'shoreline' is used but not declared in the DTD/Schema.

INTERNAL COMPILER ERROR:  #C2309: shoreline is NOT a valid token!
INTERNAL COMPILER ERROR:  #C2016: Invalid element found <shoreline>, skipping!
INTERNAL COMPILER ERROR:  #C2032: XML Parse Error!  Element tree follows:

ERROR:
INTERNAL COMPILER ERROR:  #C2033: XML Parse Error (line, column, error)

ERROR: 2, 9, The element 'guid' is used but not declared in the DTD/Schema.

INTERNAL COMPILER ERROR:  #C2309: guid is NOT a valid token!
INTERNAL COMPILER ERROR:  #C2016: Invalid element found <guid>, skipping!
INTERNAL COMPILER ERROR:  #C2032: XML Parse Error!  Element tree follows:

ERROR:

ERROR: Unexpected data Line:3 Column:45 Count:44INTERNAL COMPILER ERROR:  #C2309: guid is NOT a valid token!
INTERNAL COMPILER ERROR:  #C2023: Improper ending element <guid>.  Stopping!
INTERNAL COMPILER ERROR:  #C2034: XML Parse Fatal Error (line, column, error)

ERROR: 4, 10, Unspecified error

INTERNAL COMPILER ERROR:  #C2430: Unrecoverable error parsing XML!
INTERNAL COMPILER ERROR:  #C2006: Parse failed  (0x80004005)
INTERNAL COMPILER ERROR:  #C2003: Failed to process file: C:\MSFS\FS Design Tools\Airport Design Editor\FSX\work\loadFrom.xml

So, how do I proceed? How do I use the function to edit XML in ADE?

Thanks.
 

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
34,854
Country
unitedkingdom
The edit XML refers to XML for airport features. I am sorry that there is not editable XML for Terrain elements. Importing XML imports source XML for airport features and not for terrain. The Edit XML feature in the ProKey is called the Raw Data View and actually allows you to directly edit properties of objects in ADE. You can access the vertex coordinates for terrain polys and lines there but there is no simple way to reverse the order. The ProKey has a 15 day trial period so you can try it out and see if any of those features would be useful to you.
 
Messages
8,893
Jon

All Shorelines have a front and back just like wire fences and blast fences. You coded a reverse direction option for those type vertex.

Is it possible to have an option to do the same inside the .ad3 project file for the shoreline vertex since those type vertex are compiled with shp2vec.
 
G

george7378

Guest
Thanks for the replies, it only took a few minutes to redraw the shorelines manually in the end. Of course, as jvile said, a 'reverse direction' option would be good but I could also fix this problem by not making the mistake in the first place!
 
Top