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

MSFS20 Requesting help on crashing code (XML) for ILS

Messages
18
Country
netherlands
Hi everyone,

Jon pointed me to FSDevelopers for some help regarding ILS code, it seems the smart people are on this forum :-)

I’ve been able to use the sample navdata xml to get RNAV to work on my airport successfully.
However for some reason I’m not able to get ILS to work without the game to crash if I select ILS as approach on the map or when using it “ingame” on the mcdu.

Would someone be willing to have a quick look and see if you notice a mistake on my side?

<Ils lat="51.46264214643296" lon="5.38847719873592" alt="16" heading="35" frequency="109.750" magvar="0.0" ident="EHZ" width="5.0" name="ILS 03"/>
<Ils lat="51.43754817602908" lon="5.36035286546155" alt="16" heading="215" frequency="109.750" magvar="0.0" ident="EHO" width="5.01" name="ILS 21"/>

<Waypoint lat="51.408056" lon="5.327500" magvar="0.0" waypointType="NAMED" waypointRegion="EH" waypointIdent="EH558"/>
<Waypoint lat="51.540000" lon="5.475556" magvar="0.0" waypointType="NAMED" waypointRegion="EH" waypointIdent="EH567"/>
<Waypoint lat="51.564167" lon="5.502778" magvar="0.0" waypointType="NAMED" waypointRegion="EH" waypointIdent="EH568"/>
<Waypoint lat="51.621944" lon="5.202500" magvar="0.0" waypointType="NAMED" waypointRegion="EH" waypointIdent="EH582"/>
<Waypoint lat="51.511389" lon="5.443333" magvar="0.0" waypointType="NAMED" waypointRegion="EH" waypointIdent="EH584"/>
<Waypoint lat="51.341111" lon="5.859167" magvar="0.0" waypointType="NAMED" waypointRegion="EH" waypointIdent="EH585"/>
<Waypoint lat="51.504444" lon="5.896944" magvar="0.0" waypointType="NAMED" waypointRegion="EH" waypointIdent="EH589"/>
<Waypoint lat="51.603333" lon="5.856389" magvar="0.0" waypointType="NAMED" waypointRegion="EH" waypointIdent="EH591"/>
<Waypoint lat="51.620000" lon="5.345000" magvar="0.0" waypointType="NAMED" waypointRegion="EH" waypointIdent="EH594"/>
<Waypoint lat="51.510556" lon="5.706667" magvar="0.0" waypointType="NAMED" waypointRegion="EH" waypointIdent="EH596"/>
<Waypoint lat="51.546639" lon="5.646175" magvar="0.0" waypointType="NAMED" waypointRegion="EH" waypointIdent="GEMTI"/>

<Approach type="RNAV" runway="21" fixType="TERMINAL_WAYPOINT" fixRegion="EH" fixIdent="EH567" altitude="2000.0F" heading="215" missedAltitude="3000.0F">
<ApproachLegs>
<Leg type="IF" fixType="WAYPOINT" fixRegion="EH" fixIdent="GILIV" altitudeDescriptor="+" altitude1="2000.0F"/>
<Leg type="TF" fixType="TERMINAL_WAYPOINT" fixRegion="EH" fixIdent="EH567" flyOver="FALSE" magneticCourse="0.0" altitudeDescriptor="+" altitude1="2000.0F"/>
<Leg type="TF" fixType="RUNWAY" fixRegion="EH" fixIdent="RW21" flyOver="TRUE" magneticCourse="0.0" altitudeDescriptor="A" altitude1="26.0F"/>
</ApproachLegs>
<MissedApproachLegs>
<Leg type="CA" magneticCourse="95.0" altitudeDescriptor="+" altitude1="2000.0F"/>
<Leg type="DF" fixType="WAYPOINT" fixRegion="EH" fixIdent="EH558" flyOver="TRUE" turnDirection="R" altitudeDescriptor="+" altitude1="3000.0F"/>
<Leg type="HM" fixType="WAYPOINT" fixRegion="EH" fixIdent="EH558" turnDirection="R" magneticCourse="214" distance="4.0N" altitudeDescriptor="+" altitude1="3000.0F"/>
</MissedApproachLegs>

</Approach>
<Approach type="ILS" runway="21" fixType="TERMINAL_WAYPOINT" fixRegion="EH" fixIdent="EH584" altitude="1330.0F" heading="215" missedAltitude="5000.0F">
<ApproachLegs>
<Leg type="IF" fixType="WAYPOINT" fixRegion="EH" fixIdent="EH568" recommendedType="LOCALIZER" recommendedRegion="EH" recommendedIdent="EHO" theta="215" rho="7.9N" altitudeDescriptor="I" altitude1="2000.0F" altitude2="2000.0F"/>
<Leg type="CF" fixType="TERMINAL_WAYPOINT" fixRegion="EH" fixIdent="EH584" flyOver="FALSE" recommendedType="LOCALIZER" recommendedRegion="EH" recommendedIdent="EHO" theta="215" rho="7.300000000000001N" magneticCourse="215" distance="4.0N" altitudeDescriptor="A" altitude1="1330.0F"/>
<Leg type="CF" fixType="RUNWAY" fixRegion="EH" fixIdent="RW21" flyOver="TRUE" recommendedType="LOCALIZER" recommendedRegion="EH" recommendedIdent="EHO" theta="215" rho="1.4000000000000001N" magneticCourse="215" distance="5.9N" altitudeDescriptor="A" altitude1="16.0F"/>
</ApproachLegs>
</Approach>

so while RNAV in this the code above does work, ILS doesn’t and crashes the game.
It’s pretty much a copy of the sample xml file for navdata, so I’m not sure where I’m failing?



Just for your information, I'm currently building Eindhoven Airport which is missing from the game, using Custom designed buildings (no googlemaps copies)
obaj0ffp3ll51.jpgb9pw09ep3ll51.jpg6fwwpcfp3ll51.jpg
 
It’s a bit of a guess, I did have something like this years ago in FSX and it was an issue with a clash with another object in the sim. Now I can’t remember if it was frequency or Ident, but it turned out something else nearby was clashing with what I had set. Given that the new sim seems to have assigned lots of ICAO codes incorrectly, it’s possible theyve done the same thing with frequencies or idents
 
So I found out what caused these crashes to happen finally last night, but it raised another;

By moving the waypoints to after </airport> but before </fsdata>
It did not crash my game anymore when selecting ILS as approach during the flightplanning process.

However it did start another issue;
When I had the waypoints in <airport> data, upon approach the ATC would tell me to do an RNAV landing or give me the option to do another approach like ILS (though that one caused a crash).
However when i moved the waypoints to after </airport> ATC would only give me Visual Approach as option during landing, but I was able to select ILS approach on flightplanning.

So as you can read, by moving it I fixed one thing but broke another
Last but not least, if I open the airport in dev mode (project and open the scene), when saving the scene it removes the waypoints as they are after </airport>

I'm very confused
 
I believe that specifying an approach leg as fixType TERMINAL_WAYPOINT implies that the <Waypoint> is defined within the <Airport> stanza, whereas WAYPOINT implies it is a top-level <Waypoint> outside of an <Airport>.

So if you straighten that out, I suspect that might fix the problem.
 
so how how did you do to get it to work ? my game crashes when i select for example ils 14 as approach
 
Hi everyone,

I just found this post because I am having the same issue with all my ILS. All were working perfectly until I add Arrivals to my first airport with its associated waypoints. Then, after having changed the initial fix of the first ILS approach to the last waypoint of an arrival, all ILS remained selectable, but the ATC always give me visual approach in game. I tried to delete all my changes and got back the initial file, ATC still give me visual approach for my ILS. According to me, everything is the same as the previous working version of the file. But maybe there is something I missed as I just spent 9 hours to try to find the reason. Here is the code, everything is in the Airport element :

XML:
<Runway groupIndex="1921" lat="30.30708563628368" lon="104.42537160110443" alt="442.00001336820424" heading="22.16500473022461" length="4028.17089843750000" width="60.00000000000000" patternAltitude="304.79998779296875" surface="{2E0DE83F-B79A-4435-905C-DCBBEAC55C59}" transparent="FALSE" number="01" designator="NONE" primaryLanding="TRUE" primaryTakeoff="TRUE" primaryPattern="LEFT" secondaryLanding="TRUE" secondaryTakeoff="TRUE" secondaryPattern="RIGHT" primaryMarkingBias="0.00000000000000" secondaryMarkingBias="0.00000000000000" groundMerging="TRUE" excludeVegetationAround="TRUE">
    <Ils lat="30.29287730540600" lon="104.41870710655347" alt="430" end="PRIMARY" range="50017" ident="CTF" magvar="357.8" heading="25" frequency="108.9" width="5.0" name="ILS RWY01" backCourse="FALSE">
        <Dme lat="30.29463900000000" lon="104.41947399999999" alt="430" range="60000"/>
        <GlideSlope lat="30.29463900000000" lon="104.41947399999999" alt="430" pitch="3.0" range="40000"/>
    </Ils>
    <Ils lat="30.32128555906044" lon="104.43203034494982" alt="430.00452850293368" end="SECONDARY" range="50017" ident="CTU" magvar="357.8" heading="205" frequency="108.95" width="5.0" name="ILS RWY19" backCourse="FALSE">
        <Dme lat="30.31935000000000" lon="104.43111600000000" alt="430" range="60000"/>
        <GlideSlope lat="30.31935000000000" lon="104.43111600000000" alt="430" pitch="3.000000" range="40000"/>
    </Ils>
</Runway>
<Runway groupIndex="1922" lat="30.29099523693573" lon="104.44475513479007" alt="442" heading="22.13757705688477" length="3235.87841796875000" width="45.00000000000000" patternAltitude="304.79998779296875" surface="{2E0DE83F-B79A-4435-905C-DCBBEAC55C59}" transparent="FALSE" number="02" designator="NONE" primaryLanding="TRUE" primaryTakeoff="TRUE" primaryPattern="RIGHT" secondaryLanding="TRUE" secondaryTakeoff="TRUE" secondaryPattern="LEFT" primaryMarkingBias="0.00000000000000" secondaryMarkingBias="0.00000000000000" groundMerging="TRUE" excludeVegetationAround="TRUE">
    <Ils lat="30.28010578421759" lon="104.43963855059955" alt="390" end="PRIMARY" range="50017" ident="ZTF" magvar="357.8" heading="25" frequency="111.3" width="5.0" name="ILS RWY02" backCourse="FALSE">
        <Dme lat="30.29097000000000" lon="104.44473700000000" alt="390" range="60000"/>
        <GlideSlope lat="30.29097000000000" lon="104.44473700000000" alt="390" pitch="3.0" range="40000"/>
    </Ils>
    <Ils lat="30.30187516178756" lon="104.44985986892563" alt="390" end="SECONDARY" range="50017" ident="ZTU" magvar="357.8" heading="205" frequency="111.35" width="5.0" name="ILS RWY20" backCourse="FALSE">
        <Dme lat="30.29097000000000" lon="104.44473700000000" alt="390" range="60000"/>
        <GlideSlope lat="30.29097000000000" lon="104.44473700000000" alt="371" pitch="3.000000" range="40000"/>
    </Ils>
</Runway>

<Waypoint lat="30.19241146870410" lon="104.37140833238600" magvar="357.8" waypointType="FAF" waypointRegion="TF" waypointIdent="TF502"/>
<Waypoint lat="30.09179600000000" lon="104.32429100000000" magvar="357.8" waypointType="NAMED" waypointRegion="TF" waypointIdent="TF503"/>
<Waypoint lat="30.42177286446640" lon="104.47929345150200" magvar="357.8" waypointType="FAF" waypointRegion="TF" waypointIdent="TF102"/>
<Waypoint lat="30.52236686446640" lon="104.52644645150200" magvar="357.8" waypointType="NAMED" waypointRegion="TF" waypointIdent="TF103"/>
<Waypoint lat="30.17959701010760" lon="104.39241111166100" magvar="357.8" waypointType="FAF" waypointRegion="TF" waypointIdent="TF702"/>
<Waypoint lat="30.07898154140350" lon="104.34529377927500" magvar="357.8" waypointType="NAMED" waypointRegion="TF" waypointIdent="TF703"/>
<Waypoint lat="30.40238393589760" lon="104.49708730786500" magvar="357.8" waypointType="FAF" waypointRegion="TF" waypointIdent="TF302"/>
<Waypoint lat="30.50299940460170" lon="104.54420464025100" magvar="357.8" waypointType="NAMED" waypointRegion="TF" waypointIdent="TF303"/>

<Approach type="ILS" runway="01" fixType="TERMINAL_WAYPOINT" fixRegion="TF" fixIdent="TF502" altitude="5000.0F" heading="024.495" missedAltitude="5000.0F">
    <ApproachLegs>
        <Leg type="IF" fixType="TERMINAL_WAYPOINT" fixRegion="TF" fixIdent="TF503" recommendedType="LOCALIZER" recommendedRegion="TF" recommendedIdent="CTF" theta="024.495" rho="14.05N" altitudeDescriptor="I" altitude1="5000.0F" altitude2="5000.0F"/>
        <Leg type="CF" fixType="TERMINAL_WAYPOINT" fixRegion="TF" fixIdent="TF502" flyOver="FALSE" recommendedType="LOCALIZER" recommendedRegion="TF" recommendedIdent="CTF" theta="024.495" rho="7.55N" magneticCourse="024.495" distance="6.5N" altitudeDescriptor="A" altitude1="5000.0F"/>
        <Leg type="CF" fixType="RUNWAY" fixRegion="TF" fixIdent="RW01" flyOver="TRUE" recommendedType="LOCALIZER" recommendedRegion="TF" recommendedIdent="CTF" theta="024.495" rho="1.05N" magneticCourse="024.495" distance="6.5N" altitudeDescriptor="A" altitude1="442M"/>
    </ApproachLegs>
    <MissedApproachLegs>
        <Leg type="CA" magneticCourse="024.495" altitudeDescriptor="+" altitude1="5000.0F"/>
        <Leg type="DF" fixType="TERMINAL_WAYPOINT" fixRegion="TF" fixIdent="TF102" flyOver="TRUE" turnDirection="L" altitudeDescriptor="A" altitude1="5000.0F"/>
        <Leg type="HM" fixType="TERMINAL_WAYPOINT" fixRegion="TF" fixIdent="TF102" turnDirection="L" magneticCourse="204.495" time="1.0" altitudeDescriptor="A" altitude1="5000.0F"/>
    </MissedApproachLegs>
</Approach>
<Approach type="ILS" runway="19" fixType="TERMINAL_WAYPOINT" fixRegion="TF" fixIdent="TF102" altitude="3500.0F" heading="204.495" missedAltitude="5000.0F">
    <ApproachLegs>
        <Leg type="IF" fixType="TERMINAL_WAYPOINT" fixRegion="TF" fixIdent="TF103" recommendedType="LOCALIZER" recommendedRegion="TF" recommendedIdent="CTU" theta="204.495" rho="14.05N" altitudeDescriptor="I" altitude1="3500.0F" altitude2="3500.0F"/>
        <Leg type="CF" fixType="TERMINAL_WAYPOINT" fixRegion="TF" fixIdent="TF102" flyOver="FALSE" recommendedType="LOCALIZER" recommendedRegion="TF" recommendedIdent="CTU" theta="204.495" rho="7.55N" magneticCourse="204.495" distance="6.5N" altitudeDescriptor="A" altitude1="3500.0F"/>
        <Leg type="CF" fixType="RUNWAY" fixRegion="TF" fixIdent="RW01" flyOver="TRUE" recommendedType="LOCALIZER" recommendedRegion="TF" recommendedIdent="CTU" theta="204.495" rho="1.05N" magneticCourse="204.495" distance="6.5N" altitudeDescriptor="A" altitude1="442M"/>
    </ApproachLegs>
    <MissedApproachLegs>
        <Leg type="CA" magneticCourse="204.495" altitudeDescriptor="+" altitude1="5000.0F"/>
        <Leg type="DF" fixType="TERMINAL_WAYPOINT" fixRegion="TF" fixIdent="TF502" flyOver="TRUE" turnDirection="R" altitudeDescriptor="A" altitude1="5000.0F"/>
        <Leg type="HM" fixType="TERMINAL_WAYPOINT" fixRegion="TF" fixIdent="TF502" turnDirection="R" magneticCourse="024.495" time="1.0" altitudeDescriptor="A" altitude1="5000.0F"/>
    </MissedApproachLegs>
</Approach>
<Approach type="ILS" runway="02" fixType="TERMINAL_WAYPOINT" fixRegion="TF" fixIdent="TF702" altitude="3500.0F" heading="024.4676" missedAltitude="5000.0F">
    <ApproachLegs>
        <Leg type="IF" fixType="TERMINAL_WAYPOINT" fixRegion="TF" fixIdent="TF703" recommendedType="LOCALIZER" recommendedRegion="TF" recommendedIdent="ZTF" theta="024.4676" rho="14.05N" altitudeDescriptor="I" altitude1="3500.0F" altitude2="3500.0F"/>
        <Leg type="CF" fixType="TERMINAL_WAYPOINT" fixRegion="TF" fixIdent="TF702" flyOver="FALSE" recommendedType="LOCALIZER" recommendedRegion="TF" recommendedIdent="ZTF" theta="024.4676" rho="7.55N" magneticCourse="024.4676" distance="6.5N" altitudeDescriptor="A" altitude1="3500.0F"/>
        <Leg type="CF" fixType="RUNWAY" fixRegion="TF" fixIdent="RW02" flyOver="TRUE" recommendedType="LOCALIZER" recommendedRegion="TF" recommendedIdent="ZTF" theta="024.4676" rho="1.05N" magneticCourse="024.4676" distance="6.5N" altitudeDescriptor="A" altitude1="442M"/>
    </ApproachLegs>
    <MissedApproachLegs>
        <Leg type="CA" magneticCourse="024.4676" altitudeDescriptor="+" altitude1="5000.0F"/>
        <Leg type="DF" fixType="TERMINAL_WAYPOINT" fixRegion="TF" fixIdent="TF302" flyOver="TRUE" turnDirection="R" altitudeDescriptor="A" altitude1="5000.0F"/>
        <Leg type="HM" fixType="TERMINAL_WAYPOINT" fixRegion="TF" fixIdent="TF302" turnDirection="R" magneticCourse="204.4676" time="1.0" altitudeDescriptor="A" altitude1="5000.0F"/>
    </MissedApproachLegs>
</Approach>
<Approach type="ILS" runway="20" fixType="TERMINAL_WAYPOINT" fixRegion="TF" fixIdent="TF302" altitude="3500.0F" heading="204.4676" missedAltitude="5000.0F">
    <ApproachLegs>
        <Leg type="IF" fixType="TERMINAL_WAYPOINT" fixRegion="TF" fixIdent="TF303" recommendedType="LOCALIZER" recommendedRegion="TF" recommendedIdent="ZTU" theta="204.4676" rho="14.05N" altitudeDescriptor="I" altitude1="3500.0F" altitude2="3500.0F"/>
        <Leg type="CF" fixType="TERMINAL_WAYPOINT" fixRegion="TF" fixIdent="TF302" flyOver="FALSE" recommendedType="LOCALIZER" recommendedRegion="TF" recommendedIdent="ZTU" theta="204.4676" rho="7.55N" magneticCourse="204.4676" distance="6.5N" altitudeDescriptor="A" altitude1="3500.0F"/>
        <Leg type="CF" fixType="RUNWAY" fixRegion="TF" fixIdent="RW02" flyOver="TRUE" recommendedType="LOCALIZER" recommendedRegion="TF" recommendedIdent="ZTU" theta="204.4676" rho="1.05N" magneticCourse="204.4676" distance="6.5N" altitudeDescriptor="A" altitude1="442M"/>
    </ApproachLegs>
    <MissedApproachLegs>
        <Leg type="CA" magneticCourse="204.4676" altitudeDescriptor="+" altitude1="5000.0F"/>
        <Leg type="DF" fixType="TERMINAL_WAYPOINT" fixRegion="TF" fixIdent="TF702" flyOver="TRUE" turnDirection="L" altitudeDescriptor="A" altitude1="5000.0F"/>
        <Leg type="HM" fixType="TERMINAL_WAYPOINT" fixRegion="TF" fixIdent="TF702" turnDirection="L" magneticCourse="024.4676" time="1.0" altitudeDescriptor="A" altitude1="5000.0F"/>
    </MissedApproachLegs>
</Approach>

Many thanks for your help
 
Back
Top