2,733
edits
m (fix typo) |
Red Leader (talk | contribs) (Finish cleanup) |
||
Line 1: | Line 1: | ||
{{FlightGearGitOn}} | {{FlightGearGitOn}} | ||
Line 54: | Line 53: | ||
Now msysGit will pull the entire [[fgdata]] package into your <code>FlightGear/data</code> directory. | Now msysGit will pull the entire [[fgdata]] package into your <code>FlightGear/data</code> directory. | ||
{{Note|Some files demand that CR/LF (carriage return/line feed) line breaks are preserved. To avoid errors or problems later, run these commands: | {{Note|Some files demand that CR/LF (carriage return/line feed) line breaks are preserved. To avoid errors or problems later, it is recommended that you run these commands: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
git config --global core.autocrlf true | git config --global core.autocrlf true | ||
Line 62: | Line 61: | ||
==== Method 2 ==== | ==== Method 2 ==== | ||
{{out of date}} | |||
Download <code>fgdata.bundle</code> from http://flightgear.mxchange.org/pub/fgfs/. | |||
You might want to use the <code>fgdata.bundle.torrent</code>, as this will give you pause and resume. | |||
After downloading, download the MD5 checksum, <code>fgdata.bundle.md5</code>, from the same site. | |||
Verify the checksum of your file using any free MD5 checking utility available on the internet like this one: http://www.bullzip.com/products/md5/info.php | |||
The generated checksum should match the downloaded one. If it doesn't, download it again. | |||
Open Git Bash via < | Copy this file to your <code>FlightGear/data</code> directory. | ||
Open Git Bash via <code>C:/Program Files/msysgit/Git Bash</code> (the shortcut) and run (replacing the path with your preferred path): | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
cd D:/FlightGear/data | cd D:/FlightGear/data | ||
Line 79: | Line 80: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Now msysGit will expand the entire fgdata.bundle package into < | Now msysGit will expand the entire <code>fgdata.bundle</code> package into <code>FlightGear/data/fgdata</code>. | ||
Wait for a few minutes until it is completed (the | Wait for a few minutes until it is completed (the flashing cursor will reappear after it is done). | ||
If | {{Note|If you get an error like this: | ||
<pre style="white-space:pre-wrap"> | |||
warning: unrecognized header: -deg" - /orientation/roll += "-deg" - /position/altitude += "-ft" - /position/altitude-agl += "-ft" - /position/latitude += "-deg" - /position/longitude += "-deg" - /radios | warning: unrecognized header: -deg" - /orientation/roll += "-deg" - /position/altitude += "-ft" - /position/altitude-agl += "-ft" - /position/latitude += "-deg" - /position/longitude += "-deg" - /radios | ||
/adf/frequencies/selected += "-khz" - /radios/adf/frequencies/standby += "-khz" - /radios/adf/rotation += "-deg" - /radios/nav1/* => /radios/nav[0]/* - /radios/nav2/* => /radios/nav[1]/* - /radios/nav[*] | /adf/frequencies/selected += "-khz" - /radios/adf/frequencies/standby += "-khz" - /radios/adf/rotation += "-deg" - /radios/nav1/* => /radios/nav[0]/* - /radios/nav2/* => /radios/nav[1]/* - /radios/nav[*] | ||
Line 91: | Line 92: | ||
/velocities/speed-north += "-fp | /velocities/speed-north += "-fp | ||
warning: remote HEAD refers to nonexistent ref, unable to checkout. | warning: remote HEAD refers to nonexistent ref, unable to checkout. | ||
</pre> | |||
run this command: | … run this command: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
cd fgdata | cd fgdata | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Next, do this command: | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
git checkout -b master origin/master | git checkout -b master origin/master | ||
</syntaxhighlight> | </syntaxhighlight> | ||
It should be fixed now. Go back to Flightgear/data. | It should be fixed now. Go back to <code>Flightgear/data</code>. | ||
}} | |||
Now pull from | Now, pull from Git to update to the latest files using: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
git pull git:// | git pull git://git.code.sf.net/p/flightgear/fgdata master | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== A first Git install ( | == A first Git install (user) == | ||
=== Obtaining data from Git === | === Obtaining data from Git === | ||
Before starting, confirm that the folder you're using '''does not''' contain an existing copy of FlightGear! | |||
Open Git BASH via <code>C:/Program Files/msysgit/Git Bash</code> (or via the shortcut) and run (replacing the path with the correct path on your system): | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
cd "D:/FlightGear/data" | cd "D:/FlightGear/data" | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Then, run the following command, to initialize a Git repository. This should create a <code>.git</code> folder in the <code>FlightGear/data</code> folder (although it may be a folder): | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
git init | git init | ||
Line 138: | Line 128: | ||
Add the following command and press Enter. | Add the following command and press Enter. | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
git pull --depth 1 git:// | git pull --depth=1 git://git.code.sf.net/p/flightgear/fgdata master | ||
</syntaxhighlight> | </syntaxhighlight> | ||
This can be | This can be 3 GB or more. Unfortunately, there is no way of doing pause and resume. | ||
When it is finished, you will have the entire data structure of FG, | When it is finished, you will have the entire data structure of FG, however you will only have ''just a few aircraft''. Others must be downloaded or obtained from [[FGAddon]]. | ||
== Getting the binary ( | == Getting the binary (all) == | ||
Now we've got all the data, we need to have a binaries | Now that we've got all the data, we need to have a binaries (<code>.exe</code> and <code>.dll</code> files) which contain the actual software that runs FlightGear. | ||
Go to http://download.flightgear.org/builds/nightly/ and download the one of the binaries. Run the installer and follow its instructions. Let it install the binary into your <tt>FlightGear/bin</tt> directory. The installer will detect whether you have a 32-bit or 64-bit system. | |||
{{Note|If your antivirus warns you of a Trojan horse, ignore it. AVG and avast! are known for false positives.}} | |||
== Running FlightGear (all) == | |||
Run <code>FlightGear/bin/fgrun.exe</code> to launch the [[FlightGear Wizard]], or run <code>FlightGear/bin/fgfs.exe</code> by commandline. | |||
If using [[FGRun]], you will have to use the {{button|Prev}} button to go back to the first page and change the paths for the FlightGear executable program and [[FG_ROOT]] to your new folders. Most of the time you can leave [[FG_SCENERY]] as it is. | |||
# Download the latest binary, as described | == Keeping your FlightGear up to date (all) == | ||
# Update your < | Of course you want to keep FlightGear up to date, to keep current with the latest developments. Otherwise, you don't have any reason to use the latest development version. | ||
## Open Git Bash and navigate to < | |||
## (Developers) | # Download the latest binary, as described [[#Getting the binary (all)|above]], and overwrite the old one in <code>FlightGear/bin</code>. | ||
## Run | # Update your <code>FlightGear/data</code> directory, to match it with the binary. For smooth operations, it is very important to have data and a binary from matching dates! | ||
## Open Git Bash and navigate to <code>FlightGear/data</code> directory. | |||
## '''(Developers only):''' Run this command: | |||
<syntaxhighlight lang="bash"> | |||
git reset --hard | |||
</syntaxhighlight> | |||
This will revert any changes that you have made to FlightGear. | |||
{{Caution|If you made local changes, make sure to backup those first, outside your FlightGear data directory! Otherwise, you will lose those changes. Or, even better, you can learn to commit your changes to your local Fit repository.}} | |||
## Run this command: | |||
<syntaxhighlight lang="bash"> | |||
git pull git://gitorious.org/fg/fgdata | |||
</syntaxhighlight> | |||
This may take a while, but not as long as the first time; it will only pull any changes made since the last time you made an update. | |||
== Commiting changes == | == Commiting changes == | ||
As a developer, you probably want to share your work with the world. For FlightGear, most developers do this by committing stuff to the Git repository. | As a developer, you probably want to share your work with the world. For FlightGear, most developers do this by committing stuff to the Git repository. You can find out more at [[FlightGear Git: data developers]] and/or [[FlightGear Git: core developers]]. | ||
== Related content == | == Related content == | ||
* [[FlightGear Git for laymen]] | |||
* [[FlightGear Git: data developers]] | * [[FlightGear Git: data developers]] | ||
* [[FlightGear Git: core developers]] | * [[FlightGear Git: core developers]] | ||
[[Category:Git]] | [[Category:Git]] | ||
[[pl:FlightGear Git na Windows]] | [[pl:FlightGear Git na Windows]] |