Atlas: Difference between revisions

Jump to navigation Jump to search
3,229 bytes added ,  8 April 2011
Added how to run Atlas over a network with two computers.
m (User-controlled Bot: table syntax updated)
(Added how to run Atlas over a network with two computers.)
Line 93: Line 93:
Once you have Atlas and FlightGear set to use the same port number (5500 by default), run FlightGear. As you fly around in FlightGear, Atlas will update your position on the map several times per second.
Once you have Atlas and FlightGear set to use the same port number (5500 by default), run FlightGear. As you fly around in FlightGear, Atlas will update your position on the map several times per second.


===Running Atlas Over A Network===
If you installed atlas on a computer, but want to run it from a different one, follow this procedure:
For Windows, on your first computer (the one with FlightGear and Atlas) enable file sharing. After doing this, if you have a firewall, go to your second computer and open the Command Prompt (Windows + R, then type "CMD") and type:
  "ipconfig"
and note the IPv4 Address (along the lines of 192.168.1.XX) and add a firewall rule on your first computer to let that IP address through the firewall. Then set up the files for file sharing. Go to your FlightGear program files folder (C:\Program Files (x86)\FlightGear) and right click and select properties. Select the "Sharing" tab and click "Advanced Sharing". Click the checkbox for "Share this folder" and push "OK" on both windows. Do the same for the Atlas program folder (C:\Program Files (x86)\Atlas).
On your first computer, open the CMD and do "ipconfig" and note the IPv4 address. Go to your second computer and right click the "My Computer" and select "Map Network Drive". Leave the drive setting alone, Windows will configure that itself. In the "Path" box, type without the "":
  "\\XXX.XXX.X.XX\FlightGear"
The "X" representing the numbers of the first computers IPv4 address.
Repeat this for the Atlas folder by changing "\FlightGear" to "\Atlas". Also note the \\. It is REQUIRED you do that and not //.
Once you have done this write a ".CMD" file in Notepad which would read:
  title Atlas.exe
  cls
  @echo off
  cls
  ipconfig
  pause
  "W:\bin\win32\atlas.exe" "--fg-root=X:\Data" "--path=W:\data\Atlas" --udp=5500
The "W" drive is the Atlas folder in this example, change it to whatever Windows sets as your Atlas drive.
The "X" drive is the FlightGear folder in this example, change it to whatever Windows sets as your FlightGear drive.
The first line sets the CMD window name. The second line clears the window. The third line turns off the echo (if it was left on, the CMD would repeat what the batch file tells it, for example, if it was off, the cmd would run and say C:\Documents and Settings\User> title atlas.exe). The fourth line clears the window. The fifth line gives the IP address. The sixth line pauses and reads "Push any key to continue...". The seventh line executes the atlas program with the specified settings.
Once you are done with the script, click "File>Save As..." and save it as Start Atlas.bat (or .cmd).
You will need the scenery analyzed by the map.exe first. So if that is done, execute the file and wait for it to tell you the IPv4 address. Go to your first computer and configure your flight. On the final page, select the Atlas checkbox and enter the IPv4 address of the second computer and the UDP (default "5500") to what you set as the final part of the seventh line of coding. On the second computer, push any key and the Command Prompt will load the Atlas database can take some time if you are using all of the scenery maps. When the atlas window opens, activate the flight on the second computer and you have the second computer tracking the flight of the first. (don't worry the FlightGear App defaults to the e0 n0 co-ordinates at startup without loading the map graphics.)


=== Keys ===
=== Keys ===

Navigation menu