
Installing legatus:

Firstly, Legatus is a Java application. This version of the release with developed on a 1.5.01 jdk.
In order to run legatus you must have installed a JRE or JDK of at least the above revision level.

You can obtain a java download from http://java.sun.com

Legatus comes in two forms. A binary tar.gz or a source tar.gz.

Binary:
-------
Extract the tarball into a directory e.g. >tar -xvf legatus_PreAlpha_006.tar.gz
On windows use a utility like WinRaR which understands zipped tarballs.

Source:
-------
Extract the source into a directory using commands similar to the binary release only with the source tarball instead.

Legatus is developed using Eclipse. Available as a download from http;//eclipse.org
The version used for this release was Eclipse 3.2.2.

Using Eclipse:
Start eclipse and import the project into the workspace.
When eclipse has completed importing it will build the project.

Building with Ant:
------------------
You must have a working copy of ant installed. It is available from http://ant.apache.org/
From the legatus directory simply type ant. It will compile all the java files and the build legatus.jar. 
At this point you can choose whether to use the binary or development command lines because both should work.

Running legatus:
----------------
Binary:

Server command line:
java -cp .:legatus.jar:./lib/commons-logging.jar:./lib/log4j-1.2.8.jar:./lib/jdom.jar rl.server.Server

Client command line:
java -cp .:legatus.jar:./lib/commons-logging.jar:./lib/log4j-1.2.8.jar:./lib/jdom.jar rl.client.Client


Development (Source)

Server command line:
java -cp .:./lib/commons-logging.jar:./lib/log4j-1.2.8.jar:./lib/jdom.jar rl.server.Server

Client command line:
java -cp .:./lib/commons-logging.jar:./lib/log4j-1.2.8.jar:./lib/jdom.jar rl.client.Client

Helper files:
-------------
Some command shell scripts (batch files under windows) have been created with the above command lines included in them.

Binary release:

On windows Legatus.bat runs the client and LegatusServer.bat runs the server
On Linux/Mac legatusserver.sh runs the server and legatus.sh runs the client. Note that after install you will have to 
chmod +x both of the shell script files in order to execute them.

Developement (Source)

On windows RunClient.bat runs the client and RunServer.bat runs the server
On linux/mac runclient.sh runs the client and runserver.sh runs the server. Again these have to be chmodded +x to execute.

Any problems should be reported to dcleyne@sourceforge.net or in the forums at http://sourceforge.net/forum/?group_id=157674 

Playing multiplayer on one machine:

1. Start the server
2. Start the first client
3. Connect to the server. Call the player you connect with 'Player 1' (without quotes)
4. Start a new game. Give the game the name 'Test Game'  (without quotes). 
5. Select Centurion or Leviathan as the game type and click 'Ok'
6. On the scenario screen select a scenario and click Start Scenario
7. Start the second client
8. Connect to the server. Call the player you connect with 'Player 2' (without quotes)
9. Select the 'Test Game' game and click join game
10. On the player set-up screen change the side to Side Two (The renegade side). Then select the ready checkbox
11. Go back to the first client. Select the ready check box for the 'Player 1' line and the click 'Accept Players'

At this point both clients should load maps and allow you to place units...

