Well i know theres a few guides on this but i dont think people are paying attention to them for whatever reason. So i decided to make one of my own for all the people out the wanting to make thier own server.
Step 1- Downloads
First off is to download the things you are going to need to get your server going. These are the server files, the datapack, MySQL and Navicat (GUI for MySQL). The links for these can be found below:
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
After you have downloaded these files move on to step 2
Step 2- Installing MySQL
When the download for MySQL has been completed run the setup for it. Follow the on screen prompts and you shouldnt have a problem. When asks for your password, choose a password you like and remember it (important for later). Write it down if you dont think you will remember it. Once MySQL has been installed move to step 3.
Step 3- Installing Navicat
Run the setup for Navicat you downloaded and just follow the on screen prompts to install. Once installed move to step 4.
Step 4- Datapack and Server Files
First off make a folder on your desktop and name it something that is associated with the server (i named mine L2J). After you have done this, extract the files (i reccomend using WinRAR for this, if you dont have winRAR google it) to the folder you just made. When you have done this move to step 5.
Step 5- Connecting in Navicat and Making your database
Open up Navicat and click the "Connection" button and enter this data:
Connection Name: localhost
Host name/ip address: local host
User Name: root
Password: The password you set in the MySQL setup
When you have done this double click your new connection, then right click it. Go to "New Databse" and name it l2jdb and click "OK". When you have done this move to step 6.
Step 6- Installing Your Database Files
Next is to install the database files you will use for the server. Go into your folder where you extracted the server and datapack folder. Go inside datapack and then to tools. Run database_installer.bat. Follow onscreen instructions. When you get to the install part type f then hit enter this will do a full install for your gameserver and loginserver. When you have done this move to step 7.
Step 7- Setting your IP
Go into your folder and go into the Server folder. First go into the gameserver folder then into config. Locate server.properties and open it with notepad. Locate where it says Exteranl Hostname, here you need to put your WAN IP address. If you dont know it you can check it here: [Only registered and activated users can see links. Click Here To Register...]. Then locate where it says Internal Hostname, here write your LAN IP Address, if you dont know this go to start>run>type cmd and hit enter. Then type ipconfig and your LAN IP Address will come up. Next locate where it says Password (theres two of these use ctrl+f and type password in and hit enter). Here you need to enter your database password (the one you set in MySQL setup). Save and exit. Do the same for loginserver.properties (located in server/login/config). When you have done this move to step 8.
Step 8- Registering your Game Server
Ok next is to register the Game Server you will be playing on. Go to server/login and run RegisterGameServer.bat. If you want a list of Server Names type/help and it will bring it up (make sure server_name.xml is in your login folder). Choose the one you want and enter the number of it and hit enter. When you have done this you should see a file called hexid(server #(where # is the server id)). Move this file into your gameserver/config folder and rename it to hexid. When you have done this move to step 9.
Step 9- Creating your account
Go to your login folder and run startSQLAccountManager.bat. When it comes up just follow the onscreen prompts (when it asks for access level put in 100). When you have done this move to step 10.
Step 10- Opening Ports
To open your ports first go to your command prompt (start>run>cmd) and type ipconfig again. This time locate the default gateway ip and enter this number in your web browser. This is the part where its up to you as all routers are different. Locate the port forwarding(or something like that) option and open ports 3306, 7777 and 2106 (if your router asks for a range of ports just enter 2106 as the minimum and 7777 as the maximum). When you have done this move to step 11.
Step 11- Connecting the client to your server
This is the important bit and its not too hard to do. First search forums for a program called l2encdec download this and extract it to ur system folder. The search for a program called L2FileEdit [Int-Kamael] download this and extract to desktop. Go to your system folder and run "patcher" let it finish. When its finished go to L2fileedit then up at top you will see throne click it and change to interlude. The open ur l2.ini and where it says ServerAddrr= enter your WAN IP address. Save it and encrypt.
Step 12- Host File
Next is to set the host file. The host file is located in C:\Windows\System32\Drivers\etc. Open it with notepad and enter this in:
127.0.0.1 localhost
WAN IP l2authd.lineage2.com
WAN IP l2authd.lineage2.com
216.107.250.194 nprotect.lineage2.com
Obviously where it says WAN IP add in yours that you got from whatismyip. Save and Exit. When you have done this move to step 13
Step 13- Logging In and Making a GM
This will be the last step you do for setting up your server. First go to server/login and run startLoginServer.bat. Then go to server/gameserver and run startGameServer.bat. If you have done everything correctly they should start without a problem. Log in with your account you made earlier and create a character. Then log out and go to your MySQL and go to the characters table. Your character will show up in the table now. Then scroll across until you see Access Level and set it to 100. Congratz you now have your own server with a GM =).
When youve done all this feel free to mess around and experiment with the config files in server/gameserver. Here is all the things you need for your server (like exp rates and adena rates).
Thanks for your time and i hope you all enjoy your servers!
Step 1- Downloads
First off is to download the things you are going to need to get your server going. These are the server files, the datapack, MySQL and Navicat (GUI for MySQL). The links for these can be found below:
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
After you have downloaded these files move on to step 2
Step 2- Installing MySQL
When the download for MySQL has been completed run the setup for it. Follow the on screen prompts and you shouldnt have a problem. When asks for your password, choose a password you like and remember it (important for later). Write it down if you dont think you will remember it. Once MySQL has been installed move to step 3.
Step 3- Installing Navicat
Run the setup for Navicat you downloaded and just follow the on screen prompts to install. Once installed move to step 4.
Step 4- Datapack and Server Files
First off make a folder on your desktop and name it something that is associated with the server (i named mine L2J). After you have done this, extract the files (i reccomend using WinRAR for this, if you dont have winRAR google it) to the folder you just made. When you have done this move to step 5.
Step 5- Connecting in Navicat and Making your database
Open up Navicat and click the "Connection" button and enter this data:
Connection Name: localhost
Host name/ip address: local host
User Name: root
Password: The password you set in the MySQL setup
When you have done this double click your new connection, then right click it. Go to "New Databse" and name it l2jdb and click "OK". When you have done this move to step 6.
Step 6- Installing Your Database Files
Next is to install the database files you will use for the server. Go into your folder where you extracted the server and datapack folder. Go inside datapack and then to tools. Run database_installer.bat. Follow onscreen instructions. When you get to the install part type f then hit enter this will do a full install for your gameserver and loginserver. When you have done this move to step 7.
Step 7- Setting your IP
Go into your folder and go into the Server folder. First go into the gameserver folder then into config. Locate server.properties and open it with notepad. Locate where it says Exteranl Hostname, here you need to put your WAN IP address. If you dont know it you can check it here: [Only registered and activated users can see links. Click Here To Register...]. Then locate where it says Internal Hostname, here write your LAN IP Address, if you dont know this go to start>run>type cmd and hit enter. Then type ipconfig and your LAN IP Address will come up. Next locate where it says Password (theres two of these use ctrl+f and type password in and hit enter). Here you need to enter your database password (the one you set in MySQL setup). Save and exit. Do the same for loginserver.properties (located in server/login/config). When you have done this move to step 8.
Step 8- Registering your Game Server
Ok next is to register the Game Server you will be playing on. Go to server/login and run RegisterGameServer.bat. If you want a list of Server Names type/help and it will bring it up (make sure server_name.xml is in your login folder). Choose the one you want and enter the number of it and hit enter. When you have done this you should see a file called hexid(server #(where # is the server id)). Move this file into your gameserver/config folder and rename it to hexid. When you have done this move to step 9.
Step 9- Creating your account
Go to your login folder and run startSQLAccountManager.bat. When it comes up just follow the onscreen prompts (when it asks for access level put in 100). When you have done this move to step 10.
Step 10- Opening Ports
To open your ports first go to your command prompt (start>run>cmd) and type ipconfig again. This time locate the default gateway ip and enter this number in your web browser. This is the part where its up to you as all routers are different. Locate the port forwarding(or something like that) option and open ports 3306, 7777 and 2106 (if your router asks for a range of ports just enter 2106 as the minimum and 7777 as the maximum). When you have done this move to step 11.
Step 11- Connecting the client to your server
This is the important bit and its not too hard to do. First search forums for a program called l2encdec download this and extract it to ur system folder. The search for a program called L2FileEdit [Int-Kamael] download this and extract to desktop. Go to your system folder and run "patcher" let it finish. When its finished go to L2fileedit then up at top you will see throne click it and change to interlude. The open ur l2.ini and where it says ServerAddrr= enter your WAN IP address. Save it and encrypt.
Step 12- Host File
Next is to set the host file. The host file is located in C:\Windows\System32\Drivers\etc. Open it with notepad and enter this in:
127.0.0.1 localhost
WAN IP l2authd.lineage2.com
WAN IP l2authd.lineage2.com
216.107.250.194 nprotect.lineage2.com
Obviously where it says WAN IP add in yours that you got from whatismyip. Save and Exit. When you have done this move to step 13
Step 13- Logging In and Making a GM
This will be the last step you do for setting up your server. First go to server/login and run startLoginServer.bat. Then go to server/gameserver and run startGameServer.bat. If you have done everything correctly they should start without a problem. Log in with your account you made earlier and create a character. Then log out and go to your MySQL and go to the characters table. Your character will show up in the table now. Then scroll across until you see Access Level and set it to 100. Congratz you now have your own server with a GM =).
When youve done all this feel free to mess around and experiment with the config files in server/gameserver. Here is all the things you need for your server (like exp rates and adena rates).
Thanks for your time and i hope you all enjoy your servers!