Compile Helper FSX

Hi Arno, i disassemble a bgl file from FSX /Scenery/0502/APX46180.BGL with BGLAnalyze X. This soft generate a xml file, and i drag and drop within the icon of CompileHelper in my desktop this is the result:

arsing document: F:\Users\Gerardo\Desktop\APX46180.xml

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

ERROR: 1573, 10, enumeration constraint failed.

The attribute: 'fixType' has an invalid value according to its data type.

INTERNAL COMPILER ERROR: #C2950: Invalid fixType tag ().
INTERNAL COMPILER ERROR: #C2031: Failed element parse <Leg>
INTERNAL COMPILER ERROR: #C2032: XML Parse Error! Element tree follows:

ERROR: <FSData
ERROR: version = 9.0
ERROR: >
ERROR: <Airport
ERROR: ident = LEBZ
ERROR: region =
ERROR: country = Spain
ERROR: state =
ERROR: city = Badajoz
ERROR: name = Talavera La Real
ERROR: lat = N38 53.47501
ERROR: lon = W006 49.27999
ERROR: alt = 185.62M
ERROR: trafficScalar = 0.70
ERROR: airportTestRadius = 3000M
ERROR: magvar = 4.00
ERROR: >
ERROR: <Approach
ERROR: type = ILS
ERROR: gpsOverlay = FALSE
ERROR: runway = 31
ERROR: designator = NONE
ERROR: fixType = TERMINAL_WAYPOINT
ERROR: fixIdent = FI31
ERROR: fixRegion = LE
ERROR: heading = 305.64
ERROR: altitude = 2500.00F
ERROR: missedAltitude = 1750.00F
ERROR: >
ERROR: <MissedApproachLegs
ERROR: >
ERROR: <Leg
ERROR: type = VM
ERROR: fixType =
ERROR: fixRegion =
ERROR: fixIdent =
ERROR: magneticCourse = 310.0
ERROR: altitudeDescriptor = A
ERROR: altitude1 = 1750.00F
ERROR: >
ERROR:
INTERNAL COMPILER ERROR: #C2033: XML Parse Error (line, column, error)

ERROR: 1683, 10, enumeration constraint failed.

The attribute: 'fixType' has an invalid value according to its data type.

INTERNAL COMPILER ERROR: #C2950: Invalid fixType tag ().
INTERNAL COMPILER ERROR: #C2031: Failed element parse <Leg>
INTERNAL COMPILER ERROR: #C2032: XML Parse Error! Element tree follows:

ERROR: <FSData
ERROR: version = 9.0
ERROR: >
ERROR: <Airport
ERROR: ident = LEBZ
ERROR: region =
ERROR: country = Spain
ERROR: state =
ERROR: city = Badajoz
ERROR: name = Talavera La Real
ERROR: lat = N38 53.47501
ERROR: lon = W006 49.27999
ERROR: alt = 185.62M
ERROR: trafficScalar = 0.70
ERROR: airportTestRadius = 3000M
ERROR: magvar = 4.00
ERROR: >
ERROR: <Approach
ERROR: type = NDB
ERROR: gpsOverlay = FALSE
ERROR: runway = 31
ERROR: designator = NONE
ERROR: fixType = NDB
ERROR: fixIdent = BJZ
ERROR: fixRegion = LE
ERROR: heading = 308.11
ERROR: altitude = 1500.00F
ERROR: missedAltitude = 2500.00F
ERROR: >
ERROR: <MissedApproachLegs
ERROR: >
ERROR: <Leg
ERROR: type = VM
ERROR: fixType =
ERROR: fixRegion =
ERROR: fixIdent =
ERROR: magneticCourse = 312.0
ERROR: altitudeDescriptor = A
ERROR: altitude1 = 2500.00F
ERROR: >
ERROR:
INTERNAL COMPILER ERROR: #C2607: Compilation errors detected, compilation failed!


Parse complete!

Any suggestion ??? :confused:

Thanks,
Gerard
 

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
First it is possible that BglAnalyzeX is not getting all the information correct from the bgl file. No decompiler is perfect since we do not have access to the bgl file format and what we have has been gathered by the community.

Second can you confirm that you are passing the XML through the FSX Bgl Compiler and it has been updated to at least SP1a?

As a test I decompiled this file with my own tools (Bgl2Xml GUI) and then recompiled it (using Xml2Bgl as the shell but Compiler Helper will work just as well provided you are using the correct bgl compiler). I had no errors.
 
Solved

Hi Jon, my bglcompiler is from FSX Accelerate version. The problem is solved with your tool Bgl2XML. Thanks.

Only one think, when i de-compile and re-compile, the file result more little. It's normal ???

Thanks. Good Regards.
Gerard.
 

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
BglAnalyzeX has not been updated in some years as I recall. We often update our decompiler when we find it does not do what we expect. So we hope that it is more accurate than older ones :)

Stock Bgl files have duplicated data in them for reasons we do not understand. So a recompiled file may be smaller than the original. The only real test is to ensure that the recompiled file contains the same information as the original
 
Top