|
[GUIDE] How to build a Lineage 2 OFF server
|
|
01-05-2010, 22:02
Post: #1
|
|||
|
|||
|
[GUIDE] How to build a Lineage 2 OFF 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:
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:
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:
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:ID: 1 (2, 3, 4 and so on for more servers) Name: Pick a 11 characters (no more, no less) name. IP: Insert the WAN IP here. (Click to learn it!) inner_ip: Insert your localhost (127.0.0.1) IP here. ageLimit: 0 pk_flag: 1 kind: 0 port: 7777 region: 0 (1, 2, 3 and so on for more servers) 4.2. Configuring the OBDC: 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:[ODBC] DRIVER=SQL Server UID=sa DATABASE=lin2world WSID=host_name APP=Microsoft Data Access Components Trusted_Connection=Yes SERVER=host_name lin2db.dsn: Code:[ODBC] DRIVER=SQL Server UID=sa DATABASE=lin2db WSID=host_name APP=Microsoft Data Access Components Trusted_Connection=Yes SERVER=host_name If you're going to use other tables such as l2comm and so on, simply make more DSN files with respective names and alter the DATABASE line. As you can see in WSID and SERVER lines you'll have to replace host_name with your actual computer Host Name, which can be found by performing ipconfig /all. To learn how to do that, go to 5. Building the Server. 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:C:\Documents and Settings\Administrator>ipconfig /all Windows IP Configuration Host Name . . . . . . . . . . . . : u8714 Primary Dns Suffix . . . . . . . : Node Type . . . . . . . . . . . . : Unknown IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No Ethernet adapter Local Area Connection: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : NVIDIA nForce Networking Controller #2 Physical Address. . . . . . . . . : 00-18-F3-DA-E8-21 DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes IP Address. . . . . . . . . . . . : 89.163.145.74 Subnet Mask . . . . . . . . . . . : 255.255.240.0 Default Gateway . . . . . . . . . : 89.145.78.6 DHCP Server . . . . . . . . . . . : 211.205.230.16 DNS Servers . . . . . . . . . . . : 216.192.221.194 . . . . . . . . . . . . . . . . . . . . : 89.166.247.171 Lease Obtained. . . . . . . . . . : Montag, 4. Februar 2008 22:02:41 Lease Expires . . . . . . . . . . : Dienstag, 5. Februar 2008 00:02:41 This basically shows all kinds of information regarding your network you'll need to know. Keep this window open, it'll be useful for many things beyond this point. 3. 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:Database: You'll type lin2world here. If it's already "linworld", change it to "lin2world". Username: You'll type sa or whatever user you set to MSSQL here. Password: You'll type the password you've chosen for your database here. Once you've inserted that and pressed OK, it should start CacheD. Congratulations, you've successfully configured CacheD. 4. Go to the PPC release folder > AuthD. Open config.txt. Make sure it looks like this: Code:serverPort = 2104 serverExPort = 2106 serverIntPort = 2108 worldport = 7777 DBConnectionNum=10 encrypt = true numServerThread = 2 numServerExThread = 2 numServerIntThread = 2 logDirectory="c:\work\log" ;30206 : l2, 30310 : Sl ProtocolVersion = 30810 ;8:lineage2, 4 halo GameID=8 DesApply=false PacketSizeType = 3 useForbiddenIPList=true ReadLocalServerList=false OneTimeLogOut=true CountryCode=2 DevConnectOuter=true DevServerIP="insert_your_WAN_ip_here" ;λÎΠηÎ� Î�Î�ΰÎâÎÎ Î� ÎÎÎ�ÎÎÎ�Î�Î�ÎÎÎ�ÎÎÎ�. ;SocketTimeOutÎ�ÎΠλΧÎÎΫÎ�Î�ΰÎâ ActionÎ�Î� Î�ÎÎÎ�ÎÎ ÎÎÎÎÎ�λÎÎΧ βηÎÎÎ� νÎ�ΰΣÎ�Î�ÎÎÎ�ÎÎÎ�. ;ηÎ�αÎ�Î�Î�Î�Î� ÎÎÎ�ÎÎΫ ÎÎÎ�ÎÎÎ�ÎÎÎÎÎ�Î� ΰÎâÎÎÎÎÎ�η Î�Î�ÎÎÎ�ΰÎ� Î�λ ÎÎΦÎ�ÎÎÎ�Î�αÎâ Î�ΧÎ�Î�Î�Î�ÎÎÎ�ÎÎÎ�. SocketTimeOut = 60 ;SocketLimitÎÎÎ� SocketLimit=5000 AcceptCallNum=1 ;UseOneIOCom=true UseOneIOCom=false AcceptThread=1 WaitingUserLimit=1000 dumppacket=true UserData=false UseLogD=false logdip="127.0.0.1" logdport=3999 logdconnectinterval=120 SupportReconnect=true ;(true=auth-main reconnect on/false=auth-main reconnect off) AutokickAccount = true NewEncrypt = false Pay extra attention to these two lines: DevConnectOuter=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:Database: You'll type lin2db here. If it's already "lindb", change it to "lin2db". Username: You'll type sa or whatever user you set to MSSQL here. Password: You'll type the password you've chosen for your database here. After you've inserted the correct information and pressed OK, AuthD should load. Congratulations, you've successfully configured AuthD. 6. Go to PPC Release folder > L2NPC. Open l2npc.ini. Make sure the first four lines are line this: Code:[server] address="127.0.0.1" port=2002 [CacheD] address="127.0.0.1" port=2008 7. Go to PPC Release > L2Server folder. Open l2server.ini. It should look like this: Code:[CacheD] address="127.0.0.1" port=2006 [AuthD] address="your_wan_ip_adress_here" port=2104 [LogD] address="127.0.0.1" port=3999 [World] WorldId=1 UserLimit=1000 LetBuilder=1 [PetitionD] address="127.0.0.1" port=2107 WorldName=LineageIV" ;world name have to exact 9 characters. DisableStart=5 DisableEnd=13 [Report] Interval=600 ;minute [Setting] UserPathFind=true WorldCollision=false ExceptionMailing = false MailServer=10.10.10.254 ExceptionMinidump = false IOBufferCount=30000 ;check age (0:don't, 1:korean, default is 0) AgeCheckType=0 AcceptEscapeCommand = true country=4 ; Korea=0, USA=1, Japan=2, Taiwan=3, China=4, Thailand=5 BOTLog = false BOTBlock = false gameguard=false gameguard_checkonly=false canrolldice=0 reconnectAuth=1 [FONTCHECK] fontcheck=0 ; enable=1, disable=0 filename=smallfont.gly [BBS] WriteLevel=10 WorldNames=";ÎÎÎ�Î�η;Î�ÎÎαÎ�Î�Î�ÎÎΣÎ�Î�;Î�ΫÎ�Î�;ÎÎÎ�ÎÎÎ�γÎͺ;ÎÎÎâÎÎÎ�Î�Ϋ;ΰÎ�νÎÎÎ�ÎÎ; ÎÎ Îâ¯ÎÎαÎÎÎ�ÎÎÎ�;Î�ÎÎÎÎ Îâ¯ÎÎÎ�Î�Î�;Î�Î�ÎÎÎ�;Î�Î�ÎÎÎÎ Î�η;ηΧγÎͺ;Î�ΫνÎÎÎ�ÎÎÎÎΣ;ÎÎÎ�Î�Î�ÎÎΰ ;νÎÎÎ�ÎÎÎÎÎ�νÎÎ;ÎÎÎÎÎÎÎ�ÎÎÎâ¬;Î�Îâ¬Î�Î�λÎÎÎÎΣ;ÎÎÎâÎÎΣÎ�Î�γÎͺ;ÎÎ Îâ¬ÎÎÎ�Î�ΰÎÎÎ�;νάÎ�Î�;νÎÎÎ�ΩÎÎγÎ�Î�ÎÎ Îâ¯;Î�Î� ÎÎÎ�Î�ΰÎÎÎ�νÎÎ;ÎÎÎ�Î�Î�ÎÎÎ�ÎÎÎ�;λÎÎÎ�ΩÎÎ Î�;Î�ÎÎÎ�ÎÎÎ�Î�;ÎÎÎ�ÎÎÎ�ÎÎÎ�;ÎÎÎâ νÎÎÎÎΣ;ÎÎÎâ¬Î�ΫÎΠΰÎÎÎ�;Î�Î�ÎÎÎ�γÎͺ;ÎÎÎÎηÎÎνÎ�;Î�ÎÎÎÎΣÎ�ΫÎ�Î�;Î�ΫÎΠΰÎÎÎ�;ηÎ�Î�Î�ÎÎΣ" [L2COMM] Address="127.0.0.1" Port=2010 Autoconnect=0 Usesvr=0 [BOT] block=0 [NPCPOS] extra_mob=off Leave it as it is, only replace the line "your_wan_ip_adress_here" with, well... Should be self-explanatory. Load L2Server.exe. It'll prompt a box window asking for a serial number. Use the serial number that you generated with Cached Serial Generator. It should start loading. If it loads fine, then you're all set! 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 [--------.com [img alt=Grin]http://www.--------.com/forum/Smileys/ellow_yellow_christmas_edition/grin.gif[/img]] 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)
8. Have fun with your own server! |
|||
|
01-05-2010, 22:37
Post: #2
|
|||
|
|||
|
Re: [GUIDE] How to build a Lineage 2 OFF server
Its a shame I have a crapy PC, otherwise this would be awsome.
It looks like an amazing guide. Just dont know if those "symbols" in the middle of it affect anything.
|
|||
|
01-07-2010, 00:24
Post: #3
|
|||
|
|||
|
Re: [GUIDE] How to build a Lineage 2 OFF server
I can say that's more than enough ... It was pleasure for me to read all of it
|
|||
|
01-15-2010, 13:27
Post: #4
|
|||
|
|||
|
Re: [GUIDE] How to build a Lineage 2 OFF server
<3 the best
st0rm |
|||
|
08-09-2010, 06:04
Post: #5
|
|||
|
|||
|
Re: [GUIDE] How to build a Lineage 2 OFF server
Awesome
|
|||
|
08-10-2010, 06:39
Post: #6
|
|||
|
|||
|
Re: [GUIDE] How to build a Lineage 2 OFF server
hmm this is nice, but almost all servers got l2java or l2emu...
|
|||
|
09-25-2010, 09:49
Post: #7
|
|||
|
|||
|
Re: [GUIDE] How to build a Lineage 2 OFF server
its a bit useless since if u need guides to start l2 off serv there will be no way for you to fix any bug ;]
|
|||
|
09-29-2010, 07:37
Post: #8
|
|||
|
|||
|
Re: [GUIDE] How to build a Lineage 2 OFF server
Great tutorial I can't wait to try it. THX for your hard work ;D
|
|||
|
10-07-2010, 11:37
Post: #9
|
|||
|
|||
|
Re: [GUIDE] How to build a Lineage 2 OFF server
Really tired of L2J servers ... Thx anw
|
|||
|
10-30-2010, 16:28
Post: #10
|
|||
|
|||
|
Re: [GUIDE] How to build a Lineage 2 OFF server
Thank you br0! helpfull!
|
|||
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads... | |||||
| Thread: | Author | Replies: | Views: | Last Post | |
| Lineage 2 Dreams botting | theasur | 1 | 1,582 |
09-12-2011 09:19 Last Post: Cbiscuit |
|
| Searching for a server | Huter | 23 | 1,048 |
08-29-2011 22:04 Last Post: fatalcc |
|
| [Guide] All Lineage Shortcut Keys and Chat Commands | mirjanc88 | 9 | 24,490 |
08-29-2011 19:33 Last Post: Thanis |
|
| L2 Dubai the worst l2 server | niggaelf | 49 | 3,413 |
06-21-2011 03:18 Last Post: slashash |
|
| LF NEW SERVER WITHOUT DONATE | kourou90s | 23 | 1,017 |
06-21-2011 02:58 Last Post: slashash |
|
User(s) browsing this thread: 1 Guest(s)






![[Image: obdc1.jpg]](http://i4.photobucket.com/albums/y105/koyfo/Various/Various2/obdc1.jpg)
![[Image: obdc2.jpg]](http://i4.photobucket.com/albums/y105/koyfo/Various/Various2/obdc2.jpg)
![[Image: obdc4.jpg]](http://i4.photobucket.com/albums/y105/koyfo/Various/Various2/obdc4.jpg)
![[Image: cached.jpg]](http://i4.photobucket.com/albums/y105/koyfo/Various/Various2/cached.jpg)
