XML2BGL failure to compile

Hi there, just looking for a bit of help and knowledge please?

I decompiled the default data bgl BNXWorld1.bgl using BGL2XML quite satisfactorily.

The aim was to delete the default UK danger, prohibited and restricted areas so that I could replace them with accurate information in a new bgl from the current UK AIP.

I deleted the necessary boundaries, and then tried to recompile my amended file using XML2BGL.

It refused to compile, giving the following error(s).

ScruffyDuck Scenery Design Engine Compiling
Using ANY BglComp....
Parsing document: C:\Users\Kevin Admin\Desktop\BNXWorld1_amended.xml
INTERNAL COMPILER ERROR: #C2383: Bad GeoPol Type 'COASTLINE', should be Boundary or Coastline!
INTERNAL COMPILER ERROR: #C2031: Failed element parse <Geopol>
INTERNAL COMPILER ERROR: #C2032: XML Parse Error! Element tree follows:
ERROR: <FSData
ERROR: version = 9.0
ERROR: >
ERROR: <Geopol
ERROR: type = COASTLINE
ERROR: >
ERROR:

The same error was also reported for all further instances of <Geopol type="COASTLINE"> in the xml file.

All my deletions were above this section in the xml file and no errors were reported where I had made deletions. I made no amendments to the part of the decompiled xml where errors were reported at all. As a test, I decompiled the same bgl again and immediately attempted to recompile the output (with no changes at all) through XML2BGL, with exactly the same result.

Does anyone have any ideas as to why XML2BGL refused to handle this please?

Thanks K
 
kevinfirth

It is not the fault of xml2bgl. The problem is the SDK BGLComp.exe. As per the .xsd the geopol type should compile COASTLINE, BOUNDARY and DASHED_BOUNDARY.

Code:
<xs:simpleType name="stGeopolType">
  <xs:restriction base="xs:string">
  <xs:enumeration value="COASTLINE" />
  <xs:enumeration value="BOUNDARY" />
  <xs:enumeration value="DASHED_BOUNDARY" />
  </xs:restriction>
However the COASTLINE tag is not recognized by the compiler and generates a fault. There are several work arounds

1. Change COASTLINE to BOUNDARY or DASHED_BOUNDARY
2. Delete the Geopoltype= COASTLINE and all vertex prior to compiling

The BGLComp.exe compiler that Microsoft gave us in the FSX SDK and the one they used to compile bgl's are not the same compiler and I have run into other areas that are problems when compiling.
 
Thanks for that, raised it with LM 2 weeks ago they fixed it and it will be included in the 2.5 update coming out imminently :) Cheers K
 
Top