Menu

#2709 AI scenario files cause ALERT Missing END node

2020.4
Invalid
nobody
None
Low
2024-01-22
2022-02-10
No

My simple AI scenario files are getting errored although they all have a last waypoint named 'END'
Atached is one such, the last of four waypoints' entry is duplicated, same LAT, LON but with name 'END' ( the method I've been using for a while )

Breakpoint set at src/AIModel/AIFlightPLan #310 indicates the 'last' waypoint name is 'KFV'
The function getLastWaypoint() displays the 'waypoints' variable as a vector length
four.
Apparently my 'END' waypoint has not made it into the list, have I got the syntax wrong ? Thanks !

1 Attachments

Discussion

  • Gijs

    Gijs - 2024-01-22

    Your last waypoint should only contain a name:

    <wpt>
        <name>END</name>
    </wpt>
    

    By adding a duplicate lat/lon of the preceding waypoint, FlightGear actually ignores your END waypoint completely (if you set your log-level to debug you should get an error about that).

     
  • Gijs

    Gijs - 2024-01-22
    • status: New --> Invalid
     
  • Huntley Palmer

    Huntley Palmer - 2024-01-22

    When I first created these scenarios, quite a while ago, it was necessary to include the Lat/Lon in the 'End' waypoint or else the scenario failed. No big deal, it was a long time ago.

     

Log in to post a comment.