AI Scenarios: Difference between revisions

Jump to navigation Jump to search
m
(droptank_hunter_demo complemented)
Line 148: Line 148:
==Special Tools ==
==Special Tools ==
There are two great tools for making flight plans.  You can use Oscar’s Flightplan Generator or redneck’s Flightplan Generator.  They work very differently, but can be used together to further enhance your AI scenarios.  Oscar’s Flightplan Generator uses a Google Maps interface in which you simply click on the location you want to place a waypoint at, and enter the rest of the data (speed, altitude, on-ground, etc.).  redneck’s Flightplan Generator is a custom FlightGear logger.  Simply start FG with the logger, using the --generic=file,out,0.1,path/to/flightplan/file,dgrecord2 command.  If you have named the logger something other than dgrecord2, then subsitute the actual name for dgrecord2.  This won’t work in FGRun’s interface, so just tack it on to the executable line, being sure to add a space between the executable and the command.  Then, just fly the flight you want the AI aircraft to fly.  Once finished, close FG, and check the flightplan file.  You will find your once blank file is suddenly filled with all the necessary data, plus some useless data points.  You will need to trim off the waypoints with KTAS < 10 so that your AI model can get off the ground in some reasonable amount of time. Both tools can be found at the Official FlightGear Forum.
There are two great tools for making flight plans.  You can use Oscar’s Flightplan Generator or redneck’s Flightplan Generator.  They work very differently, but can be used together to further enhance your AI scenarios.  Oscar’s Flightplan Generator uses a Google Maps interface in which you simply click on the location you want to place a waypoint at, and enter the rest of the data (speed, altitude, on-ground, etc.).  redneck’s Flightplan Generator is a custom FlightGear logger.  Simply start FG with the logger, using the --generic=file,out,0.1,path/to/flightplan/file,dgrecord2 command.  If you have named the logger something other than dgrecord2, then subsitute the actual name for dgrecord2.  This won’t work in FGRun’s interface, so just tack it on to the executable line, being sure to add a space between the executable and the command.  Then, just fly the flight you want the AI aircraft to fly.  Once finished, close FG, and check the flightplan file.  You will find your once blank file is suddenly filled with all the necessary data, plus some useless data points.  You will need to trim off the waypoints with KTAS < 10 so that your AI model can get off the ground in some reasonable amount of time. Both tools can be found at the Official FlightGear Forum.
http://forum.flightgear.org/viewtopic.php?f=23&t=9151&hilit=Oscar%E2%80%99s+Flightplan+Generator
http://oscar.bouwmans.name/FlightGear/aiscenario/


==Common Issues ==
==Common Issues ==
476

edits

Navigation menu