TerraSync: Difference between revisions

Jump to navigation Jump to search
216 bytes removed ,  21 April 2011
m
Cleanup "troubleshooting".
m (Cleanup "troubleshooting".)
Line 1: Line 1:
To see the terrain below your aircraft, you have to install the respective [[scenery]]. This can happen by downloading certain bits of scenery before flying as described in the article [[Installing Scenery]].  
To see the terrain below your [[aircraft]], you have to install the respective [[scenery]]. This can happen by downloading certain bits of scenery before flying as described in the article [[Howto: Install scenery|installing scenery]].  


Alternatively, if you have a steady and reasonably fast internet connection, you can use '''TerraSync'''. It is a utility that automatically downloads the newest version of the needed [[FlightGear]] [[scenery]] while the simulator is running. TerraSync runs in the background in a separate process, monitors your position, and downloads (or updates) the latest greatest scenery from the master scenery server "just in time".
Alternatively, if you have a steady and reasonably fast internet connection, you can use '''TerraSync'''. It is a utility that automatically downloads the newest version of the needed [[FlightGear]] [[scenery]] while the simulator is running. TerraSync runs in the background in a separate process, monitors your position, and downloads (or updates) the latest greatest scenery from the master scenery server "just in time".


The master repository for terrasync, i.e. the online resource from which TerraSync downloads its files, is synchronized with the [http://scenemodels.flightgear.org/ FlightGear Scenery Database] once a day. So when using TerraSync, you will always have 1) the latest [[File Formats#.2A.stg|.stg-files]], which tell FlightGear where to place an object and 2) the latest '''static''' models for objects. (Static models define unique objects that exist in one place only, such as famous buildings or landmarks.)  
The master repository for TerraSync, i.e. the online resource from which TerraSync downloads its files, is synchronized with the [http://scenemodels.flightgear.org/ FlightGear Scenery Database] once a day. So when using TerraSync, you will always have  
# the latest [[File Formats#.2A.stg|.stg-files]], which tell FlightGear where to place an object  
# the latest '''static''' models for objects. (Static models define unique objects that exist in one place only, such as famous buildings or landmarks.)  


As of March 2011, TerraSync also downloads '''shared''' models, at least when it first runs.  (Shared models are generic models used more than once in different places, each can represent many different objects, like generic houses or ships.It does not, however, install the shared models, and until they are installed in the right place, you won't see any objects that are based on them. You will need to copy all the files from the Models directory inside your TerraSync directory to <code>[[$FG_ROOT]]/Models</code>, replacing the files that are already there. (If for some reason you suspect your models are not up-to-date, you can also manually download the newest [http://scenemodels.flightgear.org/download/SharedModels.tgz '''shared''' models archive] from the [http://scenemodels.flightgear.org/ FlightGear Scenery Database]. Unpack it to <code>$FG_ROOT/Models</code>. See also: [[Howto: Animated jetways#Usage]].)
As of March 2011, TerraSync also downloads '''shared''' models (generic models used more than once in different places, each can represent many different objects, like generic houses or ships), at least when it first runs. It does not, however, install the shared models, and until they are installed in the right place, you won't see any objects that are based on them. You will need to copy all the files from the Models directory inside your TerraSync directory to <code>[[$FG_ROOT]]/Models</code>, replacing the files that are already there. If for some reason you suspect your models are not up-to-date, you can also manually download the newest [http://scenemodels.flightgear.org/download/SharedModels.tgz '''shared''' models archive] from the [http://scenemodels.flightgear.org/ FlightGear Scenery Database]. Unpack it to <code>[[$FG_ROOT]]/Models</code>.


It is recommended to use a separate scenery directory for TerraSync (i.e. do not run have it store its downloaded files in your main scenery directory) because network interruptions may upset the synchronization protocol and garble what is stored there. If/when that happens the easiest solution is to delete the affected subdirectory and let terrasync download it again.
It is recommended to use a separate scenery directory for TerraSync (i.e. do not run have it store its downloaded files in your main scenery directory) because network interruptions may upset the synchronization protocol and garble what is stored there. If/when that happens the easiest solution is to delete the affected subdirectory and let terrasync download it again (see [[Howto:_Animated_jetways#Usage]].


=== Usage example (for POSIX compliant [[command line]] shell) ===
=== Usage example (for POSIX compliant [[command line]] shell) ===
Line 19: Line 21:
Start FlightGear:
Start FlightGear:


  <code>% fgfs --atlas=socket,out,1,localhost,5500,udp --fg-scenery="$FG_ROOT/Scenery/:$HOME/fgfsScenery"</code>
  <code>% fgfs --atlas=socket,out,1,localhost,5500,udp --fg-scenery="[[$FG_ROOT]]/Scenery/:$HOME/fgfsScenery"</code>


The full documentation and source for TerraSync is located in the FlightGear source distribution (in <code>utils/TerraSync/</code>).
The full documentation and source for TerraSync is located in the FlightGear source distribution (in <code>utils/TerraSync/</code>).


=== Start TerraSync from fgrun.exe (Wizard in Windows) in FlightGear 1.9.1 ===
=== Start TerraSync from [[FGRun]] in FlightGear 1.9.1 ===
 
# Make sure you are in the first screen where you can set up directories. To get there, start fgrun.exe. You'll first be in the Aircraft selection screen, then hit "Back". You are now here:<br/>[[File:TerraSync 1.png]]
1. Make sure you are in the first screen where you can set up directories. To get there, start fgrun.exe. You'll first be in the Aircraft selection screen, then hit "Back". You are now here:
# Select the destination folder for all files downloaded by terrasync. Usually the folder <code>[[$FG_ROOT]]\terrasync</code> already exists and you only have to add it to the list (as in the above example). Insure that it is positioned '''above''' your standard scenery folder (here that is <code>FlightGear191\scenery</code>) and all other directories over which the terrasync folder is supposed to have priority. When two directories contain information for the same region, FlightGear will take the information from the directory higher in the list. On Linux make sure the directory does not only to have a T, but also is the topmost folder.
 
# For TerraSync to know where to deposit the downloaded files, you have to tell the program which folder is the destination folder. In the above example, it is the 3<sup>rd</sup> in the list.
[[File:TerraSync 1.png]]
# Finally, go to the last screen. There you have to activate TerraSync as in the following screenshot. Now TerraSync should work.<br />[[File:TerraSync 2.png]]
 
2. Select the destination folder for all files downloaded by terrasync. Usually the folder <code>[FG_ROOT]\terrasync</code> already exists and you only have to add it to the list (as in the above example). Insure that it is positioned '''above''' your standard scenery folder (here that is <code>FlightGear191\scenery</code>) and all other directories over which the terrasync folder is supposed to have priority. When two directories contain information for the same region, FlightGear will take the information from the directory higher in the list. On Linux make sure the directory does not only to have a T, but also is the topmost folder.
 
3. For TerraSync to know where to deposit the downloaded files, you have to tell the program which folder is the destination folder. In the above example, it is the 3<sup>rd</sup> in the list.
 
4. Finally, go to the last screen. There you have to activate TerraSync as in the following screenshot. Now TerraSync should work.
 
[[File:TerraSync 2.png]]


''Note: Expect your firewall to block it the first time you run it; just tell the firewall to allow TerraSync to use the port.''
''Note: Expect your firewall to block it the first time you run it; just tell the firewall to allow TerraSync to use the port.''


 
== Troubleshooting ==
= Troubleshooting =


=== Problem ===
=== Problem ===
If you get an error similar to the following in the console (black dialog):


If you get an error similar to the following in the command line window;
Airports/L ... failed:
 
Can't move 'C:\FlightGear\terrasync\Airports\L\E\.svn\tmp\entries' to 'C:\FlightGear\terrasync\Airports\L\E\.svn\entries': The file or directory is corrupted and unreadable.
<code>Airports/L ... failed:
Can't move 'C:\FlightGear\terrasync\Airports\L\E\.svn\tmp\entries' to 'C:\FlightGear\terrasync\Airports\L\E\.svn\entries': The file or directory is corrupted and unreadable.</code>


This thing pops up in my taskbar:
and possibly the following popup appears:


[[File:TerraSync Taskbar Error.png]]
[[File:TerraSync Taskbar Error.png]]


These errors pop up in the command line window:
you can probably fix the error by upgrading to Windows 7 Home Premium Service Pack 1.
 
[[File:TerraSync Download Error Screen Version 6 Good Version.png]]
 
=== Solution ===
 
Upgrade to Windows 7 Home Premium Service Pack 1.
 
PLEASE READ THIS FORUM VERY CAREFULLY:
 
http://www.flightgear.org/forums/viewtopic.php?f=17&t=11353&p=118393#p118393
 


See [[Installing Scenery]]
== Related content ==
* [[Howto: Install scenery]]


[[Category:Software]]
[[Category:Software]]

Navigation menu