177
edits
Chris blues (talk | contribs) m (→SIDs and STARs: add indentation after bash-code-block) |
Chris blues (talk | contribs) m (→SIDs and STARs: corrected paths) |
||
Line 59: | Line 59: | ||
* If you have Ruby installed on your computer, you can use [http://files.goneabitbursar.com/fg/install-navdat.rb this renaming script]. | * If you have Ruby installed on your computer, you can use [http://files.goneabitbursar.com/fg/install-navdat.rb this renaming script]. | ||
* Another possibility, using [https://www.python.org/ Python] 3, is this [http://people.via.ecp.fr/~flo/python_dumping_ground/short_scripts/extract-navdata.py extract-navdata.py script], which can install the files from a directory or directly from a tarball. Run <tt>extract-navdata.py --help</tt> or <tt>python3 extract-navdata.py --help</tt> for instructions. You may need to use <tt>py -3</tt> instead of <tt>python3</tt> on Windows, cf. [https://docs.python.org/3/using/windows.html Using Python on Windows]. | * Another possibility, using [https://www.python.org/ Python] 3, is this [http://people.via.ecp.fr/~flo/python_dumping_ground/short_scripts/extract-navdata.py extract-navdata.py script], which can install the files from a directory or directly from a tarball. Run <tt>extract-navdata.py --help</tt> or <tt>python3 extract-navdata.py --help</tt> for instructions. You may need to use <tt>py -3</tt> instead of <tt>python3</tt> on Windows, cf. [https://docs.python.org/3/using/windows.html Using Python on Windows]. | ||
* You could also use a small bash-script to do the work for you. Bash is a shell, native on Linux, also exists on Macs. Copy the following code into a new file, name it "convert.sh". Put it into the lowest directory, where all the xml-files are stored. | * You could also use a small bash-script to do the work for you. Bash is a shell, native on Linux, also exists on Macs. Copy the following code into a new file, name it "convert.sh". Put it into the lowest directory, where all the xml-files are stored. (.../Level-D Simulations/navdata/) | ||
:<syntaxhighlight lang="bash" enclose="div">#!/bin/bash | :<syntaxhighlight lang="bash" enclose="div">#!/bin/bash | ||
Line 74: | Line 74: | ||
done | done | ||
</syntaxhighlight> | </syntaxhighlight> | ||
:Now it's time to fire up a terminal and navigate to the files: <code>cd /path/to/ | :* Now it's time to fire up a terminal and navigate to the files: <code>cd /path/to/Level-D Simulations/navdata</code> | ||
:* To make the script executable type: <code>chmod +x convert.sh</code> | |||
:When the script is done, you will find a new folder on your hard-disk: "/path/to/LevelD/Airports" which contains the files in our "I/C/A/ICAO.procedures.xml fashion". | :* Now you're ready to run the script! <code>./convert.sh</code> | ||
:When the script is done, you will find a new folder on your hard-disk: "/path/to/LevelD/Airports" which contains the files in our "I/C/A/ICAO.procedures.xml fashion". You can now copy this Airports-folder into a new scenery-folder and add it to your scenery-list. | |||
Next time you start FlightGear, you can load the routes through the route manager interface. | Next time you start FlightGear, you can load the routes through the route manager interface. |
edits