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

Build 2824 XML Problems

Messages
490
Country
brazil
Hi, Jon

My original XML file has 150 kb and it can be compiled to a bgl, using SDE or BGLcomp.exe without problems.

HTML:
ScruffyDuck Scenery Design Engine Compiling
Using FSX BglComp....

Parsing document: G:\FSX\SDE\work\APX_SBES.xml

Parse complete!

When I decompile that bgl with SDE, the XML grows to 191 kb and can't be recompiled.

HTML:
INTERNAL COMPILER ERROR:  #C2032: XML Parse Error!  Element tree follows:

ERROR: <FSData 
ERROR: 	version = 9.0
ERROR: >
ERROR: 	<Airport 
ERROR: 		country = Brazil
ERROR: 		city = Sao Pedro Da Aldeia
ERROR: 		name = Sao Pedro Da Aldeia
ERROR: 		lat = -22.8161110728979
ERROR: 		lon = -42.0919445157051
ERROR: 		alt = 18.59M
ERROR: 		magvar = 22
ERROR: 		trafficScalar = 0.7
ERROR: 		airportTestRadius = 5000.0M
ERROR: 		ident = SBES
etc, etc, etc

Could the decompiled file became corrupted?

If you want, I may send the XML code so you can reproduce the prroblem.

Regards,

José

PS:

I document all objects using one line, such as:

<!--gen_hangar_edwards_CENTRO -->

The file decompiled supress those information.

José
 
Last edited:

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
34,857
Country
unitedkingdom
My original XML file has 150 kb and it can be compiled to a bgl, using SDE or BGLcomp.exe without problems.

When I decompile that bgl with SDE, the XML grows to 191 kb and can't be recompiled.

Could the decompiled file became corrupted?

If you want, I may send the XML code so you can reproduce the prroblem.

Please can you send me the XML file so that I can check what is happening?


I document all objects using one line, such as:

<!--gen_hangar_edwards_CENTRO -->

The file decompiled supress those information.

OK that is a 'feature' :eek: SDE does not read in comments in the XML. I will add that to the list.
 

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
34,857
Country
unitedkingdom
Hi Jose

OK I have the problem. It relates to empty region tags and I mention it in the documentation. This happens quite often and I will see if I can now fix it given the original XML and that generated by SDE. That is a big help. Thank you.


I don't think the size difference in the XML is significant. Probably more to do with the way that it is formatted by SDE.

EDIT

OK there is a bug and I have found it. The program was not handling the decode of fix Regions correctly for certain ranges of letters. I think it is OK now.
 
Last edited:
Messages
490
Country
brazil
Hi, Jon

That is a big help. Thank you.
Don't mention it.

I don't think the size difference in the XML is significant.
So do I. I reported it only for your knowledge.

OK there is a bug and I have found it. The program was not handling the decode of fix Regions correctly for certain ranges of letters. I think it is OK now.
That's ok. Let's wait for the next build.

scruffyduck said:
SDE does not read in comments in the XML. I will add that to the list.

Please, don't forget!

Thanks for your attention,

José
 
Top