[Guide]How to make a L2OFF server Part 1

Go down

[Guide]How to make a L2OFF server Part 1

Post  [Developer]DevZeuS* on Sat Aug 01, 2009 1:52 am

[quote author=Koyfo link=topic=20041.msg130899#msg130899 date=1204401447]
[size=16pt]How to build a Lineage 2 private server, by PyroMaker[/size]

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.

[size=14pt]1. The basics:[/size]

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:


    [li]Athlon 64 4200+ Processor[/li]
    [li]4GB RAM[/li]
    [li]200GB HDD[/li]
    [li]10mbit dedicated connection[/li]
    [li]Microsoft Windows 2003 Server x64[/li]


    [li]Dual Intel Xeon 2.8Ghz[/li]
    [li]8GB or 16GB RAM[/li]
    [li]2x or 3x 200GB 10k+ RPM HDDs (SCSi)[/li]
    [li]100mbit dedicated connection[/li]
    [li]Microsoft Windows 2003 Server x64[/li]

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

[size=14pt]2. Understanding the server:[/size]

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:

    [li]AuthD (Login Server)[/li]
    [li]CacheD (Acts like a bridge between L2Server.exe and SQL)[/li]
    [li]L2Server.exe (Game Server)[/li]
    [li]L2NPC.exe (Loads all NPCs in the Game Server)[/li]

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:


All of this can be found in the PPC Release.

[size=14pt]3. Server files:[/size]

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:

    [li]PPC Release[/li]
    [li]Microsoft SQL Server 2005 x64[/li]
    [li]CacheD Serial Generator[/li]

[size=14pt]4.1. Configuring the Database:[/size]

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. ([url=http://whatsmyip.org]Click to learn it![/url])
inner_ip: Insert your localhost ( IP here.
ageLimit: 0
pk_flag: 1
kind: 0
port: 7777
region: 0 (1, 2, 3 and so on for more servers)

[size=14pt]4.2. Configuring the OBDC:[/size]

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):

[img width=585 height=480]https://2img.net/h/i4.photobucket.com/albums/y105/koyfo/Various/Various2/obdc1.jpg[/img]

2. Go to "File DSN" tab and click on "Set Directory":

[img width=585 height=480]https://2img.net/h/i4.photobucket.com/albums/y105/koyfo/Various/Various2/obdc2.jpg[/img]

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:


After you do that, open the DSNs with notepad and insert this:


APP=Microsoft Data Access Components


APP=Microsoft Data Access Components

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:

[img width=585 height=480]https://2img.net/h/i4.photobucket.com/albums/y105/koyfo/Various/Various2/obdc4.jpg[/img]

Congratulations, you've successfully configured your OBDC!

[size=14pt]5. Building the Server:[/size]

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:

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. . . . . . . . . . . . :
Subnet Mask . . . . . . . . . . . :
Default Gateway . . . . . . . . . :
DHCP Server . . . . . . . . . . . :
DNS Servers . . . . . . . . . . . :
. . . . . . . . . . . . . . . . . . . . :
Lease Obtained. . . . . . . . . . : Montag, 4. Februar 2008 22:02:41
Lease Expires . . . . . . . . . . : Dienstag, 5. Februar 2008 00:02:41
L2-Dota-Foc-Cs Mod/Admin
L2-Dota-Foc-Cs Mod/Admin

Posts : 93
Join date : 2009-08-01
Age : 22
Location : OLympos

View user profile http://l2exploiters.forumakers.com/

Back to top Go down

Back to top

Permissions in this forum:
You cannot reply to topics in this forum