• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

L2J [Guide]Developers Guide

Newbie Spellweaver
Joined
Jan 29, 2007
Messages
25
Reaction score
0
What you need.
1 : Basic Computer Skills
2 : Good Internet Connection with Static IP if you dont have use http://www.no-ip.com
3 : Dual or Quad with more than 4GByte of RAM ( If you want to use Geodata then u need more)
4 : OS Windows XP or Vista Ultimate User -for my Guide.
5 : Programs : Java / My Sql 5.1 / Navicat for MySQL.


Java JDK : http://java.sun.com/javase/downloads/index.jsp
MySQL 5.1 : http://dev.mysql.com/downloads/
NAvicat : http://www.navicat.com/download.html
*** After download Install these programs and configurate
Mysql 5.1
follow the steps
WARNING : DONT USE PASS FOR YOUR FIRST TIME.

############ RESTART YOUR PC MySQL now run as a service ##############

Then choose your pack:
L2j Off for First time will be nice.
L2j Free Site : http://l2jfree.com

L2J Off : http://www.l2jdp.com/nightly/
well Download and extract in a folder named Server: ( c:/Server )
( you need Winrar : http://www.win-rar.com/download.html )
L2jdatapack_unstable.jar
L2jServer_unstable.jar

2nd part.
Open Navicat: Click on Connection
Host name : Localhost:
user: root
pass : <---<< Nothing
you ll see on connections an icon named localhost
Right Click on it and choose : NEW DATABASE
USe L2jdb for databases name.

3rd part.
Tools Folder find Database_installer.bat
NOTE: If you are use MySQL 5.1 you should give path for 5.1
c:\ProgramFiles\MySQL\MySQL Server 5.1\bin <---<<

F for Full Install.
Loginserver tables : DONE
GameServer tables : DONE
Note : If you have a problem with that reconfigurate installer.
simply by use R
Smile !! you have your server now ( not really )

Next step :
Run RegisterGameServer.bat
path: c:/server/login/registergameserver.bat
Choose 1
Will be created a file named :hexid(server1).txt
renamed to hexid.txt
copy hexid.txt and paste it in to your Gameserver config folder.
path : c:/server/gameserver/config

DONE!
Open Logins Config Folder :
path : c:/server/login/config/loginserver.properties <--<< open with Notepad
Code:
# This is the server configuration file. Here you can set up the connection for your server.
# Usually you have to change the ExternalHostname option to
# - 76.76.5.144 (if you want to play alone / testing purpose)
# - LAN IP* (if you want to play from another computer in the network)
# - WAN IP** (if you want to play with friends over internet)
# - Questions? => http://l2jserver.com
#
# * = If you want to get your LAN IP, simply choose "Start" => "Run..." then type "cmd" => "ipconfig"
# **= If you want to get you WAN IP, visit http://www.whatismyip.com
# ===================================================================================================

# ================================================================
# General server setting !!! REQUIRED to configure to everyone !!!
# ================================================================

# This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname
ExternalHostname=127.0.0.1  <---<< For Public use your External IP

# This is transmitted to the client from the same network, so it has to be a local IP or resolvable hostname
InternalHostname=127.0.0.1    <---<< For Public use your External IP

# Bind ip of the LoginServer, use * to bind on all available IPs
LoginserverHostname=*
LoginserverPort=2106
# How many times you can provide an invalid account/pass before the IP gets banned
LoginTryBeforeBan=10
# Time you won't be able to login back again after LoginTryBeforeBan tries to login. Provide a value in seconds. Default 10min. (600)
LoginBlockAfterBan=600
GMMinLevel=100

# The address on which login will listen for GameServers, use * to bind on all available IPs
LoginHostname=*

# The port on which login will listen for GameServers
LoginPort=9014

# If set to true any GameServer can register on your login's free slots
AcceptNewGameServer = False

# If false, the licence (after the login) will not be shown
# It is highly recomended for Account Security to leave this option as defalut (True)
ShowLicence = True

# Database info
Driver=com.mysql.jdbc.Driver
#Driver=org.hsqldb.jdbcDriver
#Driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
URL=jdbc:mysql://localhost/l2jdb
#URL=jdbc:hsqldb:hsql://localhost/l2jdb
#URL=jdbc:sqlserver://localhost/database=l2jdb/user=sa/password=
Login=root
Password=          <----<< Blank remember ?
MaximumDbConnections=10

# Useable values: "true" - "false", use this option to choose whether accounts will be created
# automatically or not.
AutoCreateAccounts=true   <---<< For Your First time

# The delay in minutes after which the login updates the gameservers IP's (usefull when their ip is dynamic)
IpUpdateTime=15


# ==============================================================
# Test server setting, shoudnt be touched in online game server
# ==============================================================

Debug = False
Assert = False
Developer = False

# Enforce GG Authorization from client
# Login server will kick client if client bypassed GameGuard authentication
ForceGGAuth=true

#FloodProtection. time in ms
EnableFloodProtection=True
FastConnectionLimit=15
NormalConnectionTime=700
FastConnectionTime=350
MaxConnectionPerIP=50

Then Open Gameservers config folder:
Path : c:/server/gameserver/config/server.properties <---<< Remeber Notepad!
Code:
# This is the server configuration file. Here you can set up the connection for your server.
# Usually you have to change the ExternalHostname option to
# - 127.0.0.1 (if you want to play alone / testing purpose)
# - LAN IP* (if you want to play from another computer in the network)
# - WAN IP** (if you want to play with friends over internet)
# - Questions? => http://l2jserver.com
#
# * = If you want to get your LAN IP, simply choose "Start" => "Run..." then type "cmd" => "ipconfig"
# **= If you want to get you WAN IP, visit http://www.whatismyip.com
# ===================================================================================================
 
# ================================================================
# General server setting !!! REQUIRED to configure to everyone !!!
# ================================================================

# Bind ip of the gameserver, use * to bind on all available IPs
GameserverHostname=*
GameserverPort=7777

# This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname
# If this ip is resolvable by Login just leave *
ExternalHostname=*

# This is transmitted to the client from the same network, so it has to be a local IP or resolvable hostname
# If this ip is resolvable by Login just leave *
InternalHostname=*

# The Loginserver host and port
LoginPort=9014
LoginHost=127.0.0.1   <----<< Your External IP

# This is the server id that the gameserver will request (i.e. 1 is Bartz)
RequestServerID = 1
# If set to true, the login will give an other id to the server  if the requested id is allready reserved
AcceptAlternateID = True

# Database info
Driver=com.mysql.jdbc.Driver
#Driver=org.hsqldb.jdbcDriver
#Driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
URL=jdbc:mysql://localhost/l2jdb
#URL=jdbc:hsqldb:hsql://localhost/l2jdb
#URL=jdbc:sqlserver://localhost/database=l2jdb/user=sa/password=
Login=root
Password=          <---<< What ? BLANK!!!
MaximumDbConnections=100

# Datapack root directory, defaults to current directory from which the server is started
# DatapackRoot = C:/Work/tmp/DataPack

# Define character name template
# Example to use only : CnameTemplate=[A-Z][a-z]{3,3}[A-Za-z0-9]*
# will allow names with first capital letter, next three small letters,
# and any (capital or not) letter or number, like ZbigN1eW
# Most rational to have CnameTemplate=[A-Z][a-z]*
# meaning names only of letters with first one capital, like Zbigniew
# Default .* - any namy of any symbols
CnameTemplate=.*
PetNameTemplate=.*

# Maximum number of chars per account - Default 7 (0 = unlimited [7 is the client limit])
CharMaxNumber = 7

# Define how many players are allowed to play simultaneously on your server.
MaximumOnlineUsers=100


# Minimum and maximum protocol revision that server allow to connect.
# You must keep MinProtocolRevision <= MaxProtocolRevision.
MinProtocolRevision = 1
MaxProtocolRevision = 999

Run StartLoginServer.bat
Run StartGamerserver.bat
Login path : c:/server/loginserver/StartLoginServer.bat
Gameserver path : path : c:/server/gameserver/StartGameServer.bat
If you ll see
Server Terminated Abnormally ( Will be your Nightmare)

Forget something ?

How Does it works.
The server consists of 2 main parts. The server java code itself, and the database. The server creates the environment/world. The database holds all the content..i.e. mobs, npc
 
Last edited:
Newbie Spellweaver
Joined
Jan 29, 2007
Messages
25
Reaction score
0
Host file
Your hosts file is in a different location depending upon your operating system.

Windows XP = /windows/system32/drivers/etc
Windows 2K = /winnt/system32/drivers/etc
Win 98ME = /windows


If your are using the PTS client (Public Test Server) you need to replace L2authd.lineage2.com with L2testauthd.lineage2.com

You need to use the lan IP or 127.0.0.1 if you play on the server. Players need to use your wan IP to play.

This is a copy of a hosts file:

--------------------------------------------------------------------------------
Code:
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost
***Your IP**  L2authd.lineage2.com
216.107.250.194      nProtect.lineage2.com  [COLOR="Red"]<---<< Official GameGuard[/COLOR]
--------------------------------------------------------------------------------

All entries in a HOSTS file must be in the format of:

ipaddress hostname For example: 192.168.1.1 mycomputer.mydomain.com

Notice that you must have a whitespace between the IP address and the hostname.
Also keep in mind that the hostname can not contain any symbols like /,,http://, etc.

The ip address must be numbers and the hostname must be a name.

As a last note, you can use the # symbol to make comments. Any line that starts with the # symbol will not be parsed by the operating system. You can therefore use this # symbol to make comments.

--------------------------------------------------------------------------------
<<< MSN >>>

MSN creates a hosts.msn file that hijacks your regular hosts file.

Either uninstall MSN and reinstall and tell it not to use hosts file, or

have your players use the hosts.msn as they would a regular hosts file.


Client part
The client is used to play the game.

You can get it at www.lineage2.com/pds/pds_client.html

------------------------------------------------

. Your server is now ready to run :D

If you are having problems with some of the applications L2J needs like MySQL or Java, be sure to read their documentation before asking for help in the forum.
 
Last edited:
Newbie Spellweaver
Joined
Jan 29, 2007
Messages
25
Reaction score
0
Keep It Clean Please.
Sorry if i forget something feel free to give us your help.
Sorry for My Bad english.
 
Last edited:
Junior Spellweaver
Joined
Aug 11, 2006
Messages
158
Reaction score
1
hmm i've read this before from Banished site along time ago.. good read to bad most of the items listed are no longer made (refering to the newegg links)
 
Custom Title Activated
Loyal Member
Joined
Jul 19, 2004
Messages
2,818
Reaction score
13
Old as hell, raw copy from somewhere else (don't remember well from where right now)m you should read your own posted guide...
You need to know how to copy/paste
Read, understand, and write something that fits the actual situation of L2J servers and stuff...

So, basically... fix it or gets deleted, coz right now how it is, it's just a bunch of crap...

Droppo.-
 
Skilled Illusionist
Joined
Nov 12, 2007
Messages
333
Reaction score
3
In the config files you should highlight the important things with red.
 
Junior Spellweaver
Joined
Mar 4, 2006
Messages
130
Reaction score
0
I know it very good :D i think this guide is very good for starting Administrators and Devs :) For setting up config files is better use some program, its better when u are starting your first server i think :)
 
Initiate Mage
Joined
Apr 20, 2009
Messages
1
Reaction score
0
hmm i've read this before from Banished site along time ago.. good read to bad most of the items listed are no longer made (refering to the newegg links)

Wow someone remembers me. That was a LONG time ago lol. Must have made a bad impression haha.

B-
 
Initiate Mage
Joined
Aug 24, 2006
Messages
0
Reaction score
0
I'm having problems with the "hexid" part, anyone mind helping a guy out? :]:thumbup1:
 
Back
Top