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

Compile Helper FSX

Messages
11
Country
spain
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
Messages
34,213
Country
unitedkingdom
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.
 
Messages
11
Country
spain
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
Messages
34,213
Country
unitedkingdom
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