![]() |
How to build a Lineage 2 private server
How to build a Lineage 2 private server, by PyroMaker
Hello. In this tutorial I'll be explaining how to build a Lineage 2 private server. This applies to C4, C5 and Interlude "official" servers, afterall all the C5 and Interlude servers are mere C4 PTS servers with extenders, given the fact C5 and Interlude official files were never leaked. That being said, let's begin. 1. The basics: The first thing you have to understand is that Lineage 2 OFF servers consume a shitload of resources and if you are opening a serious server, it sure will cost you an average amount of money. So from own experience, I can suggest these pre-requisites for required and recommended specs: Required: Athlon 64 4200+ Processor 4GB RAM 200GB HDD 10mbit dedicated connection Microsoft Windows 2003 Server x64 Recommended: Dual Intel Xeon 2.8Ghz 8GB or 16GB RAM 2x or 3x 200GB 10k+ RPM HDDs (SCSi) 100mbit dedicated connection Microsoft Windows 2003 Server x64 Make sure the operating system is a 64-bits system, since L2Server won't work in a 32-bits system. With the "Required" specs you'll be able to get about 300 ~ 500 players with no lag. Anything above that will cause unwanted lag. With the "Recommended" specs you'll be able to get about 1000 ~ 1500 players with 8GB RAM and with 16GB RAM it should take on 2000 ~ 3000 players without major problems. I suggest you either buy a server machine with those specs by yourself (Dell, ebay, etc) and colocate it in a datacenter like FDCServers.net or rent a dedicated machine at a datacenter like NGZ-Servers.de 2. Understanding the server: Before I start explaining furthermore, first you'll need to understand how the server works. Lineage 2 OFF servers database system is SQL. All kinds of information about characters, accounts etc. are stored in the SQL database. Therefore, you'll need MSSQL, which can be downloaded below. There's something else you also need to know. Lineage 2 OFF servers basically consist of the following: AuthD (Login Server) CacheD (Acts like a bridge between L2Server.exe and SQL) L2Server.exe (Game Server) L2NPC.exe (Loads all NPCs in the Game Server) Besides that, there are several folders with all several types of files. The most important folders, that means... Those you will be dealing with all the time to edit items, NPCs, skills, terrain issues, quests and so on are the following: Script HTML Geodata All of this can be found in the PPC Release. 3. Server files: Alright, so you already got your server? That's great. Now we need to get some files. There is a developing community forum called PostPacific. This is the place where most Lineage 2 OFF developers gather around from all over the world. These guys have worked together for a long while, and with shares from everybody PostPacific now is glad to introduce its PPC Interlude Release (not ready yet) which consists of an Interlude server pack free for all developers who want to open their own servers or simply for study purposes. You'll need to download the following files: PPC Release Microsoft SQL Server 2005 x64 CacheD Serial Generator 4.1. Configuring the Database: 1. Install MSSQL server to any folder of your choice. It's a very basic installation, you'll mainly just choose "Yes" all the time. When it asks you for what kind of installation, choose "Complete". This should avoid any problems in the future. When it asks for what user to choose, leave it as "sa" and choose whatever password you wish. 2. Once it's finished installing, go on start menu and look for the SQL Server Management Studio. Open it. It should prompt a connection window. If the connection name isn't "localhost", type it down there and click on "Connect" 3. Click on "New Query", then go to your PPC Release folder and look for a folder named DBScript. Open the file "0_create-db.sql" with notepad then copy and paste all content to the New Query window, right click and press "Execute Query". You can also simply click 0_create-db.sql twice and it'll automatically perform the query. After you've done that, all databases and tables should be created. (lin2world, lin2db etc.) 4. Close the New Query window. Look at the left side for "Databases". Open it, then go to lin2db > tables. Right click on dbo.server and choose "Open Table". Now you'll configure the server settings in this table. Code: Code:
ID: 1 (2, 3, 4 and so on for more servers)This should be piece of cake. You'll have to configure your OBDC in order for this to function correctly. 1. Go on Start > Administrative Tools > Data Sources (OBDC): Изображение 2. Go to "File DSN" tab and click on "Set Directory": Изображение 3. Write the adress that appears in this window somewhere for your own records and then press "Yes" to set that directory as default for OBDC file DSNs: P.S: It usually is always the same: 'C:\Program Files\Common Files\OBDC\Data Sources' 4. Go to that place in your computer, and create two file DSNs: lin2world.dsn lin2db.dsn After you do that, open the DSNs with notepad and insert this: lin2world.dsn: Code: Code:
[ODBC]Code: Code:
[ODBC]5. Go back to Start > Administrative Tools > Data Sources (OBDC), then go to "File DSN" tab. The DSNs you've just created should be listed there. If they still do not list up, click on "Add", choose "SQL Server", browse the DSNs where they are located and press OK. It should then look like this: Изображение Congratulations, you've successfully configured your OBDC! 5. Building the Server: Now that you understand how the server works, I'll be explaining this with a bit more technical terms. If you fail to understand any of this, feel free to read again the section "Understanding the Server". Let's get to work. 1. Unzip the PPC Release to any folder of your choice in your server. 2. Go to Start > Run, type cmd and press enter. A new prompt window will be showed. Type ipconfig /all and press enter. You'll see a bunch of text like this: Code: Code:
C:\Documents and Settings\Administrator>ipconfig /all3. Open the CacheD Serial Generator you've downloaded earlier. It should look like this: Изображение Insert the Mac Adress and the Machine Name (Host name) you've found in ipconfig /all in that CacheD Generator and generate the serial number. Once you've done that, open CacheD.exe. It'll open a box asking for you to insert the Serial Number in. Insert the generated serial number in there. Close it and restart it. It should ask for three things: Code: Code:
Database: You'll type lin2world here. If it's already "linworld", change it to "lin2world".4. Go to the PPC release folder > AuthD. Open config.txt. Make sure it looks like this: Code: Code:
serverPort = 2104DevConnectOuter=true DevServerIP="insert_your_WAN_ip_here" Lines with the ; signal before them can be removed if you'd like, since they're just comments. Make sure DevConnectOuter is set as true, and at DevServerIP you have to insert the WAN IP here. (Click to learn it!) Code: Code:
Database: You'll type lin2db here. If it's already "lindb", change it to "lin2db".6. Go to PPC Release folder > L2NPC. Open l2npc.ini. Make sure the first four lines are line this: Code: Code:
[server]Code: Code:
[CacheD]6. Correct order to load server processes: Make sure you always load the processes in this order: 1/2. AuthD. 2/1. CacheD. 3. L2Server. 4. L2NPC. AuthD rarely ever crashes, and you can also reload it whenever you want, it should not affect the server in general, except that people won't be able to login while it's being reloaded. Since CacheD acts as a bridge to the database, if you close it, L2Server will also shutdown along with L2NPC. If you close L2Server, L2NPC is also going to close. L2NPC rarely ever crashes aswell, but if it does, you'll be able to reload it. However, it always takes about 10-15 minutes to fully load all NPCs. 7. Server security: If you want to stay on track, you'll need to have a secure server. Otherwise people will jump in your server, burn it and destroy all of your work with no mercy. Apart from protection DLLs, such as Depmax and Amped which can be found in this PPC release you'll also need to configure your Firewall to block certain ports or else you'll be susceptible to SQL/CacheD injections, and that's not good. Filter the following ports in your firewall: (windows firewall, for example) 1433 (SQL) (only local area network access / closed) 2002 (only local area network access / closed) 2008 (only local area network access / closed) 2012 (only local area network access / closed) 2106 (auth) (open to the public / open) 7777 (l2server) (open to the public / open) 8. Have fun with your own server! ;D Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Дата в снимке: 05-30-2009, 10:34 PM. Часовой пояс взят из страницы. Открыть источник. |
How to build a Lineage 2 private server
Very nice guide Smile +1
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Дата в снимке: 05-30-2009, 11:00 PM. Часовой пояс взят из страницы. Открыть источник. |
How to build a Lineage 2 private server
Video install server http://files.mail.ru/FHBY13
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Дата в снимке: 05-31-2009, 12:26 AM. Часовой пояс взят из страницы. Открыть источник. |
How to build a Lineage 2 private server
WIKI'd.
:3 Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Дата в снимке: 05-31-2009, 08:17 AM. Часовой пояс взят из страницы. Открыть источник. |
How to build a Lineage 2 private server
Thank you FidoW
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Дата в снимке: 05-31-2009, 10:53 AM. Часовой пояс взят из страницы. Открыть источник. |
How to build a Lineage 2 private server
Awesome guide, thanks pyromaker/fidow.
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Дата в снимке: 05-31-2009, 11:20 AM. Часовой пояс взят из страницы. Открыть источник. |
How to build a Lineage 2 private server
Yep thx to pyromaker and fidow Big Grin
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Дата в снимке: 05-31-2009, 11:30 AM. Часовой пояс взят из страницы. Открыть источник. |
How to build a Lineage 2 private server
Hm, we might as well convert the entire Tutorial section to Wiki then link to discussion here
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Дата в снимке: 05-31-2009, 07:16 PM. Часовой пояс взят из страницы. Открыть источник. |
How to build a Lineage 2 private server
Quote:
Originally Posted by kold Hm, we might as well convert the entire Tutorial section to Wiki then link to discussion here That, sir, is what I started doing ;| Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Дата в снимке: 05-31-2009, 08:34 PM. Часовой пояс взят из страницы. Открыть источник. |
How to build a Lineage 2 private server
Is nice idea the wiki, however, i never fill one, just to get info, but dont look hard to do Wink
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Дата в снимке: 05-31-2009, 11:51 PM. Часовой пояс взят из страницы. Открыть источник. |
| All times are GMT. The time now is 17:03. |