You are Unregistered, please register to gain Full access.
    

L2Off Knowledge Base Discuss, [Guide] How to build a Lineage 2 private server at Lineage 2 - Official forum; Hello. In this tutorial I'll be explaining how to build a Lineage 2 private server. This applies to C4, C5 ...


RaGEZONE sponsored advertisment:

 
 
LinkBack Thread Tools
Old 06-09-2008   #1 (permalink)
~ MentaL's AnGeL ~
 
DaRkAnGeL's Avatar


Rank: Moderator
Join Date: Oct 2006
Location: DaRkZoNe
Posts: 5,015
Thanked 24 Times in 17 Posts

[Guide] How to build a Lineage 2 private server

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
Windows 2003 x64 Server OS

Recommended:

Dual Intel Xeon 2.8ghz
8GB or 16GB RAM
2x or 3x 200GB 10k+ RPM HDDs.
100mbit dedicated connection
Windows 2003 x64 Server OS

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.

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



3. Server files:

Alright, so you already got your server?

That's great. Now we need to get some files.

You'll need to download the following files:

1. Server Files
2. MSSQL server
[/URL] 3. 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.



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. (To get your WAN IP, click here)
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:
[ODBC]
DRIVER=SQL Server
UID=sa
DATABASE=lin2world
WSID=host_name
APP=Microsoft Data Access Components
Trusted_Connection=Yes
SERVER=host_name
lin2db.dsn:
[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.

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!
__________________



Software: Unix - Linux - Solaris - Minix - Windows

Language: Haskel, Prolog, C , C++ , Java



Last edited by DaRkAnGeL; 06-17-2008 at 12:51 PM.
DaRkAnGeL is offline   Reply With Quote

RaGEZONE sponsored advertisment:
Old 06-09-2008   #2 (permalink)
~ MentaL's AnGeL ~
 
DaRkAnGeL's Avatar


Rank: Moderator
Join Date: Oct 2006
Location: DaRkZoNe
Posts: 5,015
Thanked 24 Times in 17 Posts

Re: [Guide] How to build a Lineage 2 private server

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
click here and read 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:

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:

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:

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"
__________________



Software: Unix - Linux - Solaris - Minix - Windows

Language: Haskel, Prolog, C , C++ , Java


DaRkAnGeL is offline   Reply With Quote

Endorsement
Old 06-09-2008   #3 (permalink)
~ MentaL's AnGeL ~
 
DaRkAnGeL's Avatar


Rank: Moderator
Join Date: Oct 2006
Location: DaRkZoNe
Posts: 5,015
Thanked 24 Times in 17 Posts

Re: [Guide] How to build a Lineage 2 private server

All Credits to PyroMaker
__________________



Software: Unix - Linux - Solaris - Minix - Windows

Language: Haskel, Prolog, C , C++ , Java


DaRkAnGeL is offline   Reply With Quote

Endorsement
<a onclick="_gaq.push(['_trackEvent', 'Outgoing', 'click', '/outgoing/http_www_game_advertising_online_com_']);" rel="nofollow" href="http://www.game-advertising-online.com/" target=_blank>Game Advertising Online</a><br> banner requires iframes

Old 06-09-2008   #4 (permalink)
Member


Rank: Hobbit
Join Date: Nov 2006
Posts: 46
Thanked 0 Times in 0 Posts

Re: [Guide] How to build a Lineage 2 private server

i think with a AMD Athlon you can't do something, i think a Xeon dual core to start, and recomend a 2x(CPU) Xeon quad core, thx.
lokobar is offline   Reply With Quote
Old 06-09-2008   #5 (permalink)
~ MentaL's AnGeL ~
 
DaRkAnGeL's Avatar


Rank: Moderator
Join Date: Oct 2006
Location: DaRkZoNe
Posts: 5,015
Thanked 24 Times in 17 Posts

Re: [Guide] How to build a Lineage 2 private server

this guide is not by me. i agree with you intel xeon is better :)

i am using it for my server
__________________



Software: Unix - Linux - Solaris - Minix - Windows

Language: Haskel, Prolog, C , C++ , Java


DaRkAnGeL is offline   Reply With Quote
Old 06-10-2008   #6 (permalink)
Newbie


Rank: Hobbit
Join Date: Jun 2008
Location: Greece
Posts: 18
Thanked 0 Times in 0 Posts

Re: [Guide] How to build a Lineage 2 private server

Originally Posted by lokobar View Post
i think with a AMD Athlon you can't do something, i think a Xeon dual core to start, and recomend a 2x(CPU) Xeon quad core, thx.
cpu doesn't matter in l2 server, only sql needs it but even if you have more than 1.5k players online the cpu usage won't go over 20-30%
L2Temple is offline   Reply With Quote
Old 06-10-2008   #7 (permalink)
~ MentaL's AnGeL ~
 
DaRkAnGeL's Avatar


Rank: Moderator
Join Date: Oct 2006
Location: DaRkZoNe
Posts: 5,015
Thanked 24 Times in 17 Posts

Re: [Guide] How to build a Lineage 2 private server

if you have many servers and you try to restart them you will understand why you need the cpu.

also try to have siege in 2 servers in the same time athlon will have a problem.
__________________



Software: Unix - Linux - Solaris - Minix - Windows

Language: Haskel, Prolog, C , C++ , Java


DaRkAnGeL is offline   Reply With Quote
Old 06-17-2008   #8 (permalink)
Newbie


Rank: Hobbit
Join Date: Apr 2007
Posts: 4
Thanked 0 Times in 0 Posts

Re: [Guide] How to build a Lineage 2 private server

Sorry, but i am a noob in this......... What is PPC Release and where can I find it????????
marcele is offline   Reply With Quote
Old 06-17-2008   #9 (permalink)
~ MentaL's AnGeL ~
 
DaRkAnGeL's Avatar


Rank: Moderator
Join Date: Oct 2006
Location: DaRkZoNe
Posts: 5,015
Thanked 24 Times in 17 Posts

Re: [Guide] How to build a Lineage 2 private server

Originally Posted by marcele View Post
Sorry, but i am a noob in this......... What is PPC Release and where can I find it????????

post updated. these are the server files. you can find them in the download center section
__________________



Software: Unix - Linux - Solaris - Minix - Windows

Language: Haskel, Prolog, C , C++ , Java


DaRkAnGeL is offline   Reply With Quote
Old 06-17-2008   #10 (permalink)
Newbie


Rank: Hobbit
Join Date: Apr 2007
Posts: 4
Thanked 0 Times in 0 Posts

Re: [Guide] How to build a Lineage 2 private server

Originally Posted by DaRkAnGeL View Post
post updated. these are the server files. you can find them in the download center section

Sorry but I don't know what to search for...... Should I search for PPC release or wt should I dl????
marcele is offline   Reply With Quote
Old 06-17-2008   #11 (permalink)
~ MentaL's AnGeL ~
 
DaRkAnGeL's Avatar


Rank: Moderator
Join Date: Oct 2006
Location: DaRkZoNe
Posts: 5,015
Thanked 24 Times in 17 Posts

Re: [Guide] How to build a Lineage 2 private server

http://forum.ragezone.com/f344/ download c6 or c4 :) these are the files
__________________



Software: Unix - Linux - Solaris - Minix - Windows

Language: Haskel, Prolog, C , C++ , Java


DaRkAnGeL is offline   Reply With Quote
Old 06-18-2008   #12 (permalink)
Newbie


Rank: Hobbit
Join Date: Apr 2007
Posts: 4
Thanked 0 Times in 0 Posts

Re: [Guide] How to build a Lineage 2 private server

Thx man.... O.. and if u are using studio 2005 when u said the connection name do u mean server name??? If u do, I am getting an error, no idea why though!!!!!!

should i move/ copy and paste/ cut and paste the PPC Release folder i use for the MSSQL to the server?????

O... and where can i find a CacheD Serial Generator???????

and is MAC address same as ip address if so what should u type if u wana play in offline mode?????

Can someone plz answer me ASAP cuz I am sort of in a hurry...........

Last edited by marcele; 06-23-2008 at 01:02 AM.
marcele is offline   Reply With Quote
Old 06-29-2008   #13 (permalink)
Newbie


Rank: Hobbit
Join Date: Jul 2007
Posts: 16
Thanked 0 Times in 0 Posts

Re: [Guide] How to build a Lineage 2 private server

Originally Posted by lokobar View Post
i think with a AMD Athlon you can't do something, i think a Xeon dual core to start, and recomend a 2x(CPU) Xeon quad core, thx.
Totally wrong.

I've had 2000 players online on my server using an AMD Athlon 3700+.

Of course Dual CPU's are better but any 3Ghz processor works as a start.
IrTehd00d is offline   Reply With Quote
Old 06-29-2008   #14 (permalink)
Member


Rank: Hobbit
Join Date: Nov 2006
Posts: 46
Thanked 0 Times in 0 Posts

Re: [Guide] How to build a Lineage 2 private server

hahahaha u are jocking with me?!
AMD Athlon 3700+ dont exist man!
and you never will get this on athlon! you are mad?
lokobar is offline   Reply With Quote
Old 09-13-2008   #15 (permalink)
Newbie


Rank: Hobbit
Join Date: Apr 2007
Location: spain
Posts: 4
Thanked 0 Times in 0 Posts

Re: [Guide] How to build a Lineage 2 private server

y have a proplem i instal the mssql 2000 x86 version but when go to the service manager no have local y have tis YO-49CT61JOAMJX the name of my pc

y have windows server 2003 standard edition r2 x64

motherbord ASUS DSAN-DX

16 gb ram

2 procesor Procesador Quad-Core Intel
kalimocho is offline   Reply With Quote
Old 10-16-2008   #16 (permalink)
Newbie


Rank: Hobbit
Join Date: Jun 2008
Posts: 4
Thanked 0 Times in 0 Posts

Re: [Guide] How to build a Lineage 2 private server

Originally Posted by lokobar View Post
hahahaha u are jocking with me?!
AMD Athlon 3700+ dont exist man!
and you never will get this on athlon! you are mad?
Yes that is a real chip http://www.extremetech.com/article2/...1606607,00.asp
lightningz is offline   Reply With Quote
Old 10-30-2008   #17 (permalink)
Member


Rank: Hobbit
Join Date: Nov 2006
Posts: 46
Thanked 0 Times in 0 Posts

Re: [Guide] How to build a Lineage 2 private server

ok, now i see! but 2000 player looks something strange!
lokobar is offline   Reply With Quote
Old 12-09-2008   #18 (permalink)
Newbie
 
viliux14's Avatar


Rank: Hobbit
Join Date: Sep 2007
Posts: 9
Thanked 0 Times in 0 Posts

Re: [Guide] How to build a Lineage 2 private server

Hey guys i need your advice, shall i try to run l2off server on:
Intel Core 2 Quad Q6600, 2400 MHz
8GB of RAM
100 mbit dedicated connection
Windows 2003 x64 Server OS
Possible one pc? I have other Intel Pentium 4 but he is on same net "router"
__________________
viliux14 is offline   Reply With Quote
Old 12-09-2008   #19 (permalink)
~ MentaL's AnGeL ~
 
DaRkAnGeL's Avatar


Rank: Moderator
Join Date: Oct 2006
Location: DaRkZoNe
Posts: 5,015
Thanked 24 Times in 17 Posts

Re: [Guide] How to build a Lineage 2 private server

Originally Posted by viliux14 View Post
Hey guys i need your advice, shall i try to run l2off server on:
Intel Core 2 Quad Q6600, 2400 MHz
8GB of RAM
100 mbit dedicated connection
Windows 2003 x64 Server OS
Possible one pc? I have other Intel Pentium 4 but he is on same net "router"
yes you can :)

also you can open a group of servers in l2j :)
__________________



Software: Unix - Linux - Solaris - Minix - Windows

Language: Haskel, Prolog, C , C++ , Java


DaRkAnGeL is offline   Reply With Quote
Old 12-10-2008   #20 (permalink)
Newbie
 
viliux14's Avatar


Rank: Hobbit
Join Date: Sep 2007
Posts: 9
Thanked 0 Times in 0 Posts

Re: [Guide] How to build a Lineage 2 private server

on one pc i can run all the server? and how much players can handle ?
ty no, l2j is killing me ;]
__________________

Last edited by viliux14; 12-10-2008 at 11:13 AM.
viliux14 is offline   Reply With Quote
Old 01-16-2009   #21 (permalink)
Newbie


Rank: Hobbit
Join Date: Nov 2005
Location: kkk
Posts: 8
Thanked 0 Times in 0 Posts

Re: [Guide] How to build a Lineage 2 private server

Ok I have everything set up but your link for CacheD doesnt work. I have the Keygen and ran itbut I dont know where the CacheD is. Pls help =\
sibuis is offline   Reply With Quote
Old 03-17-2009   #22 (permalink)
Newbie


Rank: Hobbit
Join Date: Mar 2009
Posts: 1
Thanked 0 Times in 0 Posts

Re: [Guide] How to build a Lineage 2 private server

Yes,at the last step I need a Keygen(I found it) but I don't know how to get the Name at CacheD?Some one can help me?Thanks in advance
marya is offline   Reply With Quote
Old 04-10-2009   #23 (permalink)
Newbie


Rank: Hobbit
Join Date: Jul 2007
Posts: 2
Thanked 0 Times in 0 Posts

Re: [Guide] How to build a Lineage 2 private server

hey
i got 2 raptor hdd's in what raid configuration i need to set them ?
and if i buy a 3th hdd what raid settings do i need than ?
sory i'm new with raid systems.
thnx.
dasoldier is offline   Reply With Quote
 

Bookmarks

Thread Tools


LinkBacks (?)
LinkBack to this Thread: http://forum.ragezone.com/f345/guide-build-lineage-2-private-server-410435/
Posted By For Type Date
Lineage ][ port This thread Refback 06-17-2009 10:42 AM
Lineage ][ port This thread Refback 03-31-2009 01:53 AM



no new posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291