449
edits
Line 35: | Line 35: | ||
This should be all! The ramp marshall should be able to ''recognize'' the aircraft and guide it to the right position at the ramp! | This should be all! The ramp marshall should be able to ''recognize'' the aircraft and guide it to the right position at the ramp! | ||
== Adding Ramp Marshalls to an Airport == | |||
'''NOTE -''' In the future, this will change because ramp marshall positions are going to be connected to an airport's '''groundnet.xml''' file. | |||
[[File:ramp-marshall-arpt-1.png|thumb|320px]] | |||
[[File:ramp-marshall-arpt-2.png|thumb|320px]] | |||
1. Start up FlightGear with the '''ufo''' at the airport you want to place ramp marshalls. | |||
2. Hit the '''L''' key on the keyboard to bring up the model selection dialog and select '''$FGDATA/Models/Airport/Ramp/ramp.xml'''. Using the ufo's scenery editing tools, place (and adjust) ramp marshalls everywhere you want. To make it simpler, click on the exact position you want the airplane to come to a stop. This will usually be at the end of a parking ramp's taxiway lines. Then, you will only have to change the heading. | |||
3. Once you've finished placing all the models, hit the '''D''' key to dump the stg lines onto the console. (Do not close FlightGear yet) Copy the stg lines into a blank file. (name does not matter) | |||
4. Open up the Nasal console and execute the following function. | |||
<syntaxhighlight lang="javascript"> | |||
ramp_marshall.convert_stg(); | |||
</syntaxhighlight> | |||
5. Choose the stg file you pasted the dumped stg lines in to convert the file into a readable xml ramp position file. The converted file can be found '''$FGHOME/Export'''. | |||
6. Copy the exported file (it will be called '''ramps-export.xml''') to '''$FGDATA/AI/Airports/<icao>/ramps.xml'''. For example, if you want these ramps at Singapore Changi Intl. Airport (WSSS), you'd put it in '''$FGDATA/AI/Airports/<icao>/WSSS.xml'''. | |||
= Contributing to the Module = | = Contributing to the Module = |
edits