Howto:Carrier: Difference between revisions

Update with information on the various carrier command line options in different FG versions
(Update with information on the various carrier command line options in different FG versions)
Line 1: Line 1:
Over the years, [[FlightGear]] has been equipped with a vast amount of [[aircraft carrier]]s that allow pilots to simulate the entire range of carrier operations, from catapult takeoffs, to "controlled crashes".
Over the years, [[FlightGear]] has been equipped with a number of different [[aircraft carrier]]s that allow pilots to simulate the entire range of carrier operations, from catapult take-offs, to "controlled crashes".


==Features==
==Features==
Line 11: Line 11:
* Land on the deck and be halted by the arrestor cables
* Land on the deck and be halted by the arrestor cables
* Taxi onto the deck elevators, operate them and park on the hangar deck
* Taxi onto the deck elevators, operate them and park on the hangar deck
* To help practise - start from either final approach to the flight deck, or from the "abeam" or "180" position.


== Start at a carrier ==
== Start at a carrier ==
Note that several FlightGear aircraft are carrier capable, but the [[Hawker Seahawk|Seahawk]] is possibly the easiest to fly to begin with. You can start FlightGear with the command line or a GUI.
Note that several FlightGear aircraft are carrier capable, but the [[Hawker Seahawk|Seahawk]] is possibly the easiest to fly to begin with. You can start FlightGear with the command line or a GUI.


=== From commandline ===
=== From the launcher (Version 2020.1 and later) ===
To position your [[aircraft]] on the carrier at startup, use the following [[Command Line Parameters|command line options]] beside your normal options ([[$FG_ROOT|fg-root]] etc.). Note the upper-case "N" in Nimitz and the fact that the scenario comes in front of carrier! You can copy-paste this (the slash will make it look like one line):
On the Location screen, click on the "boat" button on the top left.  This will display a list of available carriers, and allow you to set the start position - either on deck or in the air.


For versions before than 2019.1 (e.g. 2018.3.5):
 
=== From command line (Versions older than 2019.1) ===
To position your [[aircraft]] on the carrier at startup, use the following [[Command Line Parameters|command line options]] beside your normal options ([[$FG_ROOT|fg-root]] etc.).  
 
Note the upper-case "N" in Nimitz and the fact that the scenario comes in front of carrier! You can copy-paste this (the slash will make it look like one line):


  --ai-scenario=nimitz_demo
  --ai-scenario=nimitz_demo
  --carrier=Nimitz
  --carrier=Nimitz
  --aircraft=seahawk
  --aircraft=seahawk
The following (optional) start positions are available:
--parkpos=cat-1
--parkpos=cat-2
--parkpos=cat-3
--parkpos=cat-4
--parkpos=park-1
Note
* If you also specify an airport (e.g. --airport=KSFO) then the carrier will be available, but your flight will start at the chosen airport!
* Uppercase N in <tt>--carrier=Nimitz</tt>.
=== From command line (Version 2019.1) ===


For versions 2019.1 and later:
For versions 2019.1 and later:
Line 28: Line 46:
  --aircraft=seahawk
  --aircraft=seahawk


Please observe that if you also specify an airport (e.g. --airport=KSFO) then the carrier will be available, but your flight will start at the chosen airport!
The following (optional) start positions are available:
--carrier-position=cat-1
--carrier-position=cat-2
--carrier-position=cat-3
--carrier-position=cat-4
--carrier-position=park-1


Please note the uppercase N in <tt>--carrier=Nimitz</tt>.
Note
* If you also specify an airport (e.g. --airport=KSFO) then the carrier will be available, but your flight will start at the chosen airport!
* Uppercase N in <tt>--carrier=Nimitz</tt>.
 
 
=== From command line (Version 2020.1 and later) ===
 
For versions 2019.1 and later:
--carrier=Nimitz
--aircraft=seahawk


The following (optional) start positions are available:
The following (optional) start positions are available:
  --parkpos=cat-1
  --carrier-position=cat-1
  --parkpos=cat-2
  --carrier-position=cat-2
  --parkpos=cat-3
  --carrier-position=cat-3
  --parkpos=cat-4
  --carrier-position=cat-4
  --parkpos=park-1
  --carrier-position=park-1


=== Mac OS X launcher ===
You can also start at the 180 "abeam" positition (--carrier-position=abeam) or on the final approach to land (--carrier-position=FLOLS).  In both cases, you will need to set an offset distance, e.g. --offset-distance=1
If you are using the OSX launcher to run FlightGear, you should find a text entry box in the gui that allows you to specify command line options, add the above mentioned commands there.


=== Windows launcher ===
Note
As of FlightGear 1.0.0 there comes a special box for the carriers on the airport selection page of the wizard. Type <tt>Nimitz</tt> in the carrier box and select <tt>nimitz_demo</tt> in the scenario list on the next page.
* If you also specify an airport (e.g. --airport=KSFO) then the carrier will be available, but your flight will start at the chosen airport!
* Uppercase N in <tt>--carrier=Nimitz</tt>.


== Takeoff ==
== Takeoff ==