==[ Server installation instructions ]==

(the server only runs on Linux. If you're running your server on a VM make sure to configure the network interface in bridged mode in order to get an IP from your DHCP)
- make sure that you have Maven 3+, JDK 7+ and MySQL 5.5+ installed.
- Download "JCE Unlimited Strength" (from http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html) and put the JARs from inside the ZIP into <jre-home>/lib/security (it's used for the encryption).
<jre_home> is the JRE installation folder (e.g. /usr/local/java/jre1.7.0_45) or the "jre" folder inside the JDK installation folder (e.g. /usr/local/java/jdk1.7.0_45/jre) if that's what you're using
- clone the git repository
- go to the root directory (we'll call it <ROOT> from now on) of the repository that you just cloned
- run "mvn clean install" (in a console). It'll compile all the modules of the project so that they're available for the next steps.
- go to the "<ROOT>/login-server" directory
- edit the src/main/filters/jpa-database-mysql.properties file to match your MySQL details (you'll eventually need to create a database using your preferred MySQL GUI before proceeding)
- run "mvn install -DjunitGroups=be.demmel.jgws.svc.jpa.inject.InjectTests -Pmysql" (in a console). It'll inject an account and a character that you'll be able to use next.
- go to the "<ROOT>/game-server" directory
- edit the src/main/filters/jpa-database-mysql.properties file to match your MySQL details (you'll eventually need to create a database using your preferred MySQL GUI before proceeding)
- run "mvn install -DjunitGroups=be.demmel.jgws.svc.jpa.inject.InjectTests -Pmysql" (in a console). It'll inject the maps and other data needed to run the game server.

==[ Server configuration instructions ]==
- edit the <ROOT>/login-server/src/main/config/loginServerConfiguration.xml file to match your IP.
- edit the <ROOT>/game-server/src/main/config/gameServerConfiguration.xml file to match your IP.

==[ Server startup instructions ]==
- go to the "<ROOT>/login-server" directory
- run "mvn clean package exec:java" and wait until you see "The "Java Guild Wars (Login)Server" started" in the console (don't kill the process, just let it run)
- open a new terminal
- go to the "<ROOT>/game-server" directory
- run "mvn clean package exec:java" and wait until you see "The "Java Guild Wars (Game)Server" started" in the console (don't kill the process, just let it run)

==[ Client installation instructions ]==
- clone the launcher from the git repository (https://github.com/GameRevision/GWLP-R-Utils)
- open and build the "Launcher" solution in Visual Studio 2010+ (or check the repository for any precompiled version)
- copy all files (GWLP Launcher.exe,GWLP.dll,GWLP.xml) to your GW main folder.

==[ Client configuration instructions ]==
- edit the GWLP.xml file to enable encryption (<EncryptConnection>1</EncryptConnection>) and to change the IP of the login server
- create a shortcut for the GWLP Launcher.exe and edit it to add the "-oldauth" flag (e.g. "C:\Program Files (x86)\Guild Wars\GWLPR\GWLP Launcher.exe" -oldauth)

==[ Test ]==
- launch GW with the shortcut you just created
- check the login server's logs, you should see activity
- login using "root@root" as e-mail address (any password and character name will do).

==[ Extra ]==
mvn changes:changes-report
==> A report that shows you the evolution of the project
mvn site, then mvn site:stage
==> General info about the project (and subprojects) + info on the dependencies
