Jump to content
Sign in to follow this  
Psyancy

How to Setup your own Lineage 2 Server!

Recommended Posts

Hello members of LordCraft, in this guide i will show you how to setup your own L2 Server. {Pictures Included}
So lets start...
You will need to download the following programms:


MySQL Server {Select your OS and download the right installer for it.}
Java Developer Kit [Click download at Java SE Development Kit (JDK) Bundles] {At Platform selection: Select your OS}
Navicat for MySQL

Also, you'll need the L2J Pack
-----------------
You will need to compile in order to get these folders.
For infos about how to compile, check this video.
-----------------

 

List with free L2J Projects can be found here.

Lets start installing! xD

Open JavaDeveloperKit Installer and watch the pictures carefully!
1-1.jpg
2-1.jpg
3-1.jpg

Open MySQL Installer and watch the pictures carefully!
4-1.jpg
5-1-1.jpg
6-2.jpg
7-2.jpg
8-2.jpg
9-2.jpg
11-1.jpg
12-1.jpg
13.jpg
14-1.jpg
15.jpg
15.jpg
16-1.jpg
17-1.jpg

Open Navicat Installer and watch the pictures carefully!
18.jpg
19.jpg
20.jpg
21.jpg
22.jpg
23.jpg
24.jpg

Now its time to configure the pack!
Extract L2J_DataPack & L2J-Server to one folder
Lets start...
Open Login folder->Config and then open loginserver.properties
And find this:

Login=root
Password=

 

Change it like that:

Login=root
Password=root

 

Save it and close it.

Now, go back
Open GameServer folder->Config and then open server.properties
If you want your server to be on INTERNET find this: GameserverHostname=* and replace * with your ip
If you want your server to be on LOCAL find this: GameserverHostname=* and replace * with your 127.0.0.1


Also find this:

Login=root
Password=

 

Change it like that:

Login=root
Password=root

 

Also find this: AcceptAlternateID = True
And replace it with this: AcceptAlternateID = false

Save it and close it.

Go back, and open folder TOOLS find database_installer.bat make a right click on it and edit

Find these:

REM LOGINSERVER
set lsuser=root
set lspass=
set lsdb=l2jdb
set lshost=localhost

REM GAMESERVER

set gsuser=root
set gspass=
set gsdb=l2jdb
set gshost=localhost

 

And replace them with these:

REM LOGINSERVER
set lsuser=root
set lspass=root
set lsdb=l2jdb
set lshost=localhost

REM GAMESERVER

set gsuser=root
set gspass=root
set gsdb=l2jdb
set gshost=localhost

 

Save and close the file grin.gif

Ok now go to Pack Folder and then Tools run database_installer.bat
It should say something like that:

WARNING: A full install (f) will destroy data in your
       
`accounts` and `gameserver` tables.
        Choose upgrade (u) if you already have an `accounts` table but no
        `gameserver` table (ie. your server is a pre LS/GS split version.)
        Choose skip (s) to skip loginserver DB installation and go to
        gameserver DB installation
/upgrade.
LOGINSERVER DB install type: (f) full or (s) skip or (q) quit?

 

Type F
And to this one:

WARNING: A full install (f) will destroy all existing character data.
GAMESERVER DB install type: (f) full install or (u) upgrade or (q) quit?

 

F again, and wait the install to be done.
To this one:

Do you want to update your database with files in update folder, which are alrea
dy included
in the main files? (RECOMMENDED: NO)
UPDATE your database: (y) yes or (n) no?

Type N

 

Now go back, and open Login folder, and then run RegisterGameServer.bat
It should say something like that: Your choice: type 1 and press enter.
Now in login folder these should be a file named hexid(server 1).txt rename it to hexid.txt and Cut or Copy to folder gameserver/config.
{Note: If you want to create your account go to Login folder and then run startSQLAccountManager.bat type 1 and then type your username & password and at access level type 100}

--- If you want to set GM Access to your character go to Navicat->Open l2jdb->characters->and find the field access and set it to your char to 1 ---

[if you want to run the server go to Login folder and open loginserver.bat and then go to gameserver folder and run gameserver.bat]


Credits for the Guide : uNiQue1337

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×