2002-12-03 15:40:32 +00:00
|
|
|
TerraSync
|
|
|
|
=========
|
|
|
|
|
|
|
|
Usage:
|
|
|
|
|
|
|
|
terrasync -p <port> [ -s <rsync_source> ] -d <rsync_dest>
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2003-12-05 02:11:51 +00:00
|
|
|
$ fgfs --atlas=socket,out,1,localhost,5500,udp --fg-scenery=/usr/local/FlightGear/data/scenery:/data1/Scenery-0.9.2
|
|
|
|
$ nice terrasync -p 5500 -d /data1/Scenery-0.9.2
|
2002-12-03 15:40:32 +00:00
|
|
|
|
|
|
|
Requirements:
|
|
|
|
|
|
|
|
- rsync util installed in your path.
|
|
|
|
- mkdir util installed in your path.
|
|
|
|
|
2003-12-05 02:11:51 +00:00
|
|
|
NOTE!!!! Do not run terrasync against the default
|
|
|
|
$FG_ROOT/data/Scenery/ directory. I recommend creating a separate
|
|
|
|
scenery directory and specifying both in your ~/.fgfsrc file or via
|
|
|
|
the command line.
|
|
|
|
|
2002-12-03 15:40:32 +00:00
|
|
|
TerraSync is a utility that is intended to run as a light weight
|
|
|
|
background process. It's purpose is to monitor the position of a
|
|
|
|
FlightGear flight and pre-fetch scenery tiles from a remote server
|
|
|
|
based on the current FlightGear position.
|
|
|
|
|
|
|
|
This allows you to do a base install of FlightGear with no add on
|
|
|
|
scenery. Now just go and fly anywhere. Scenery is fetched "just in
|
|
|
|
time" and accumulated on your HD so it is already there next time you
|
|
|
|
fly. You can fly anywhere and essentially just the scenery you need
|
|
|
|
is auto-installed as you fly.
|
|
|
|
|
|
|
|
Terrasync runs as a separate process and expects the --atlas=port
|
|
|
|
format to be sent from fgfs. The fgfs output tells the terrasync util
|
|
|
|
where FlightGear is currently flying. Terrasync will then issue the
|
|
|
|
appropriate commands to rsync the surrounding areas to your local
|
|
|
|
scenery directory. The user need to choose a port for
|
|
|
|
FlightGear->TerraSync communication and then specify the server
|
|
|
|
location and destation scenery tree.
|
|
|
|
|
|
|
|
As you fly, terrasync will periodically refresh and pull any new
|
|
|
|
scenery tiles that you need for your position from the server.
|
|
|
|
|
|
|
|
This also works if the scenery on the scenery server is updated.
|
2003-12-05 02:11:51 +00:00
|
|
|
Rsync will pull any missing files, or any newly updated files.
|
2002-12-03 15:40:32 +00:00
|
|
|
|
|
|
|
There is a chicken/egg problem when you first start up in a brand new
|
|
|
|
area. FlightGear is expecting the scenery to be there *now* but it
|
|
|
|
may not have been fetched yet. I suppose without making a more
|
2003-12-05 02:11:51 +00:00
|
|
|
complex protocol, the user will need to be aware of this. For now I
|
|
|
|
suggest exiting FlightGear after terrasync gets caught up, and
|
|
|
|
restarting FlightGear. The second time FlightGear starts up
|
|
|
|
everything should be good.
|
2002-12-03 15:40:32 +00:00
|
|
|
|
|
|
|
Final notes:
|
|
|
|
|
2003-12-05 02:11:51 +00:00
|
|
|
I have set up the scenery server at
|
|
|
|
scenery.flightgear.org::Scenery-0.9.2. This is the latest 0.9.2 build
|
|
|
|
of the world.
|
2006-01-25 02:08:39 +00:00
|
|
|
|
|
|
|
Note to self:
|
|
|
|
|
|
|
|
nice ./terrasync -p 5500 -s baron.flightgear.org:/stage/fgfs05/curt/Scenery-1.0 -d /stage/catalina3/Scenery-1.0/
|