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

compiling error tips needed, please..

Messages
5
Country
us-kentucky
Hi FSX gurus,

I decompiled a bgl file containing over 60 airports. I wanted to rename the old WWII UK airfields to the names used in the war and to fly to every airfield the RAF had. When I attempt to recompile I get the following errors. (I made absolutely sure I loded the SDK files in the order instructed by this forum for a FSX Deluxe/Acceleration user.) I sure hope you can decipher this. I have not found much on these specific error codes...

Parsing document: APX48130.xml
INTERNAL COMPILER ERROR: #C2577:
ERROR: This LEG is missing some of this required part (000049C1 00004BC1)
Missing: Theta,
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 = EGSS
ERROR: region =
ERROR: country = United Kingdom
ERROR: state = Essex
ERROR: city = London
ERROR: name = RAF Stansted Mountfitchet
ERROR: lat = N51 53.10001
ERROR: lon = E000 14.10000
ERROR: alt = 106.07M
ERROR: trafficScalar = 0.70
ERROR: airportTestRadius = 3000M
ERROR: magvar = 3.00
ERROR: >
ERROR: <Approach
ERROR: type = ILS
ERROR: gpsOverlay = FALSE
ERROR: runway = 23
ERROR: designator = NONE
ERROR: fixType = TERMINAL_WAYPOINT
ERROR: fixIdent = FI23
ERROR: fixRegion = EG
ERROR: heading = 223.15
ERROR: altitude = 2500.00F
ERROR: missedAltitude = 3000.00F
ERROR: >
ERROR: <Transition
ERROR: transitionType = FULL
ERROR: fixType = WAYPOINT
ERROR: fixRegion = EG
ERROR: fixIdent = LOREL
ERROR: altitude = 6000.00F
ERROR: >
ERROR: <TransitionLegs
ERROR: >
ERROR: <Leg
ERROR: type = CR
ERROR: recommendedType = VOR
ERROR: recommendedRegion = EG
ERROR: recommendedIdent = BKY
ERROR: magneticCourse = 136.0
ERROR: time = 0.00
ERROR: >
ERROR:
INTERNAL COMPILER ERROR: #C2033: XML Parse Error (line, column, error)
ERROR: 48219, 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 = EBOS
ERROR: region =
ERROR: country = Belgium
ERROR: state =
ERROR: city = Ostend-Brugge
ERROR: name = Ostend
ERROR: lat = N51 11.93333
ERROR: lon = E002 51.73334
ERROR: alt = 3.96M
ERROR: trafficScalar = 0.70
ERROR: airportTestRadius = 3000M
ERROR: magvar = 2.00
ERROR: >
ERROR: <Approach
ERROR: type = ILS
ERROR: gpsOverlay = FALSE
ERROR: runway = 26
ERROR: designator = NONE
ERROR: fixType = TERMINAL_WAYPOINT
ERROR: fixIdent = OM26
ERROR: fixRegion = EB
ERROR: heading = 257.23
ERROR: altitude = 2000.00F
ERROR: missedAltitude = 3000.00F
ERROR: >
ERROR: <MissedApproachLegs
ERROR: >
ERROR: <Leg
ERROR: type = VM
ERROR: fixType =
ERROR: fixRegion =
ERROR: fixIdent =
ERROR: turnDirection = R
ERROR: magneticCourse = 50.0
ERROR: altitudeDescriptor = A
ERROR: altitude1 = 3000.00F
ERROR: >
ERROR:
INTERNAL COMPILER ERROR: #C2033: XML Parse Error (line, column, error)
ERROR: 48373, 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 = EBOS
ERROR: region =
ERROR: country = Belgium
ERROR: state =
ERROR: city = Ostend-Brugge
ERROR: name = Ostend
ERROR: lat = N51 11.93333
ERROR: lon = E002 51.73334
ERROR: alt = 3.96M
ERROR: trafficScalar = 0.70
ERROR: airportTestRadius = 3000M
ERROR: magvar = 2.00
ERROR: >
ERROR: <Approach
ERROR: type = NDB
ERROR: gpsOverlay = FALSE
ERROR: runway = 26
ERROR: designator = NONE
ERROR: fixType = NDB
ERROR: fixIdent = ONO
ERROR: fixRegion = EB
ERROR: heading = 257.18
ERROR: altitude = 1360.00F
ERROR: missedAltitude = 3000.00F
ERROR: >
ERROR: <MissedApproachLegs
ERROR: >
ERROR: <Leg
ERROR: type = VM
ERROR: fixType =
ERROR: fixRegion =
ERROR: fixIdent =
ERROR: turnDirection = R
ERROR: magneticCourse = 50.0
ERROR: altitudeDescriptor = A
ERROR: altitude1 = 3000.00F
ERROR: >
ERROR:
INTERNAL COMPILER ERROR: #C2607: Compilation errors detected, compilation faile
d!
Parse complete!
C:\Users\Administrator\Desktop\Games Utilities\BGL Compiler SDK>
 
Well the error is in the leg types for approach codes. What did you use to decompile this file? BTW you do not need to decompile the stock file to rename airports and in fact that is really not the recommended way to do it.
 
Hello Scruffy,

I used BglAnalyzeX from winfriedorthmann@yahoo.com. I did not know of any other way to get at the text to change the airport names except to use Airport Design Editor 160 sixty plus times just to change the names on 60+ airports. I fully admit am not knowledgeable about your determination of the error. Is there a rewrite you can recommend for the leg types for approach codes? I will send you a personal email, too.
 
Hi Scruffy,

I got the file to compile.
Starting from scratch I used the Scruffyduck Software bgl2xml decompiler and was able to get a good decompile. I had to (again) go line by line to change the RAF airport names but, this time the subsequent compile was a success. I still don't have the depth of knowledge to recognize and fix compile errors but, your version of a decompiler gave a clean decompile where the BglAnalyzeX I got from the FLIGHSIM forum failed. Thanks for your help
 
OK - I am pleased that it worked for you
 
Back
Top