-
Couldn't load subscription status.
- Fork 18
Installing
If you wish to install the game server you will need to have Java 6 installed in your computer. The emulator is developed to be compatible with any Java 6 JVM, that includes Oracle JVM (the "official" one) and OpenJDK.
- Download any Java Runtime, preferable Oracle's proprietary at http://www.java.com/
- Install the JVM (see Java.com instructions)
Note: JDK is recommended!
L2JServer2 is written supporting multiple database engines, however at this stage only 2 engines are available: H2 and MySQL5. If you wish to use H2 you will have to compile from source (see Compiling), this instructions will only consider MySQL5 databases.
- Download MySQL5 binaries at http://www.mysql.com/ and install them
Now you have all the environment needed to run the server. Let's proceed to the configuration part.
Note: At this early stage of development there is no install and no guarantee of compatibility between versions. In order to start running your server there's not much that need to be done. Once you have MySQL and Java installed it is easy:
-
Create a new MySQL database for login server;
-
Assign a new username and password to the database (optional);
-
Download the patched binary from GitHub;
-
Extract login server binary and edit
login/config/loginserver.propertiesfile replacing highlighted fields:URL = jdbc:mysql://localhost/
database name hereLogin =
username herePassword =
password here
You can change localhost to your database server address if your database is not located in the same machine.
-
Create a new MySQL database for game server;
-
Assign a new username and password to the database (optional);
-
Extract game server binary and edit
config/database.propertiesfile replacing highlighted fields:jdbc.url = jdbc:mysql://localhost/
database name herejdbc.driver = com.mysql.jdbc.Driver
jdbc.username =
username herejdbc.password =
password here
You don't have to change jdbc.driver field.
-
To start the login server you will need to execute
StartLoginServer.shin GNU/Linux orStartLoginServer.batin Windows. -
To start the game server you need to create a
start.sh(for GNU/Linux) or astart.bat(for Windows) with the following content:java -jar l2j2-gameserver-2.0.0.jar
-
Don't forget do give execution permission if you are using GNU/Linux:
chmod +x start.sh