[Guide] Complete C3 server setup guide L2J 

Status
Not open for further replies.
help plz

:smileysex virus kand help me ai kand fund full_install.bat plz help wat is the tools file wer is it plz answer me
 
Hi

(sorry for my bad english :) )

I have problem with SQL

I run C:\server\start.bat
next i run C:\server\L2j\tools\database_installer.bat and i see:


Making a backup of the original loginserver database.
mysqldump: Got error: 2003: Can't connect to MySQL server on 'localhost' (10061)
when trying to connect

WARNING: A full install (f) will destroy data in your
`accounts` and `gameserver` tables.
Choose upgrade (u) if you already have an `accounts` table but no
`gameserver` table (ie. your server is a pre LS/GS split version.)
Choose skip (s) to skip loginserver DB installation and go to
gameserver DB installation/upgrade.


LOGINSERVER DB install type: (f) full or (u) upgrade or (s) skip or (q) quit? f
Deleting loginserver tables for new content.
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
Installling new loginserver content.
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)

Making a backup of the original gameserver database.
mysqldump: Got error: 2003: Can't connect to MySQL server on 'localhost' (10061)
when trying to connect


WARNING: A full install (f) will destroy all existing character data.
GAMESERVER DB install type: (f) full install or (u) upgrade or (s) skip or (q) q
uit? f
Deleting all gameserver tables for new content.
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
Installling new gameserver content.
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)


WARNING: Installing data_fix (y) may change game balance.
Install data_fix: (y) yes or (n) no or (q) quit? y
Making a backup of the default gameserver tables.
mysqldump: Got error: 2003: Can't connect to MySQL server on 'localhost' (10061)
when trying to connect
Installing new content.
FIX: Will lower chance to drop high grade stuff on lower level mobs (L2J Fortres
s).
C:\server\diskw\usr\local\mysql\bin\mysql: option '-D' requires an argument
FIX: Automatic set exp/sp base on HP stat (L2J Fortress).
C:\server\diskw\usr\local\mysql\bin\mysql: option '-D' requires an argument
FIX: Automatic respawn time base on HP stat (L2J Fortress).
C:\server\diskw\usr\local\mysql\bin\mysql: option '-D' requires an argument
FIX: Automatic set price and crystals of Enhanced weapons (Advi)
*** Only enable this fix if you don't use built in GMShop ***
C:\server\diskw\usr\local\mysql\bin\mysql: option '-D' requires an argument
FIX: NPC stats from l2wh.com (L2J Fortress)
C:\server\diskw\usr\local\mysql\bin\mysql: option '-D' requires an argument
C:\server\diskw\usr\local\mysql\bin\mysql: option '-D' requires an argument
C:\server\diskw\usr\local\mysql\bin\mysql: option '-D' requires an argument
FIX: Summoner stats (HellFire)
C:\server\diskw\usr\local\mysql\bin\mysql: option '-D' requires an argument
FIX: NPC Stats/Droplist/Spawnlist in Alligator Island, Worshipers Necropolis, Ne
cropolis of Sacrifice,
---- Patriots Necropolis and Heretics Catacomb (L2J Fortress)
C:\server\diskw\usr\local\mysql\bin\mysql: option '-D' requires an argument
FIX: Spawnlist in Dragon Valley Cave (czar)
*** User report that this fix spawn a lots stronger mob in DVC and make DVC is i
mpossible to come ***
C:\server\diskw\usr\local\mysql\bin\mysql: option '-D' requires an argument
FIX: NPC Stats (edinho_sp)
C:\server\diskw\usr\local\mysql\bin\mysql: option '-D' requires an argument
FIX: Towet of Insolence droplist (NewAge)
C:\server\diskw\usr\local\mysql\bin\mysql: option '-D' requires an argument

Script complete.
Naciśnij dowolny klawisz, aby kontynuować . . .



when i have windows xp server working correct but now i have win2k sp4


please help me !


EDIT: Problem solved, serwer works.
 
Last edited:
Making a L2 Server
Faq by Champloo


Before Starting You will need to make sure you have you have at least the minimum requirements if you would like to play Lineage II. I have included those specifications
below.

Minimum Req. Recommended Req.
CPU Pentium 3 800MHz Pentium 4 1GHz or better
RAM Higher than 256MB Higher than 512MB
GFX GeForce2 or better Geforce4 Ti or better




::Step 1::

*Note: You will need to have approximately 5 GB of free space available on your hard drive.*

Download and install the Lineage 2 Chronicle 3 client.

The client can be found here:



*Note: The downloading time takes about 2½ hours for 1.2 Mbps DSL users*



::Step 2::

*Note: If you already have Directx 9.0c installed skip to step 3*

Download and Install Directx 9.0c

Directx 9.0c can be found here:





::Step 3::

Download and install MySql

MySql can be found here:

*Note: Scroll halfway down the page and you will find the Windows downloads section. You will want to download the Windows (x86) 4.1.12 35.7M version.*

During the installation you will encounter a security setting for the root password. It will be the first of two check boxes. It is imperative you remember this password.
At some point the config process will give you the ability to allow it to begin on startup. Make sure you check that.


::Step 4::

Download and Install Navicat.

Navicat is a gui that lets you easily navigate the creation of Sql database's, tables, etc. Although it isn't necessary, I highly recommend it as it will make things easier for both new and advanced users. In this faq you will find I have provided two ways of installing the Sql databases, one with Navicat and one without it for those who prefer not to use it.

You can download Navicat here:




After installation, Navicat will ask you about the root password you set up during the installation of MySql. Input that password.



::Step 5::

Download and extract the required datafiles, L2J-DataPack_NIO.zip and l2j-server.zip into the folder. After you have done that, download l2jserver.jar and overwrite the old file located in the folder.

These files can be found here:

(EDITED by GreenHope, old link are link to L2JRU custom build and it outdated now)



::Step 6::

Configure the Server.cfg file.

# 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
ExternalHostname=ur.ip.ad.dress

# This is transmitted to the client from the same network, so it has to be a public IP or resolvable hostname
InternalHostname=ur.lan.ip.here


# Bind ip of the loginserver, use * to bind on all available IPs
LoginserverHostname=*

# Database info
Driver=com.mysql.jdbc.Driver
#Driver=org.hsqldb.jdbcDriver
URL=jdbc:mysql://localhost/l2jdb?cachePrepStmts=true&prepStmtCacheSize=50
#URL=jdbc:hsqldb:hsql://localhost/l2jdb
Login=root
Password=(your password)
MaximumDbConnections=5

#Datapack root directory, defaults to current directory from which the server is started
#DatapackRoot = C:\l2jru\

Where is Server.cfg located!? I dont know this with all guides i installed all but no server.cfg

I am a supernewblet help plz
 
Last edited:
help i made server coneting internal and all but cant seem to get external connection to happen ....i need some input on this plzs...... here what my server setup look like o and btw im using windows xp os..fire wall down...connecting to enternet threww another comp. with windows networking and this is my set up in server file

# ================================================================
# 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
ExternalHostname=70.178.199.110

# 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


# Bind ip of the loginserver, use * to bind on all available IPs
LoginserverHostname=*
LoginserverPort=2106
LoginTryBeforeBan=20

# Database info
Driver=com.mysql.jdbc.Driver
#Driver=org.hsqldb.jdbcDriver
URL=jdbc:mysql://localhost/l2jdb
#URL=jdbc:hsqldb:hsql://localhost/l2jdb
Login=root
Password=root
MaximumDbConnections=5

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

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

# 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=.*

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

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

Debug = False
Assert = False
Developer = False

# =================================================================
# Additional server setting, not required, can be left at defaults
# =================================================================

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

# Rate control, float values
RateXp = 1001.
RateSp = 1001.
RateDropAdena = 3000.
RateDropItems = 10.
RateDropSpoil = 10.
RateQuestsReward = 10.
RateDropEquipment = 1

# delete from world dropped reward items after n seconds. 0 - disabled
AutoDestroyDroppedItemAfter = 0

# If you are experiencing problems with Warehouse or Freight transactions,
# feel free to disable them here. (They are both enabled by default).
AllowWarehouse = True
AllowFreight = True

# Allow players to drop items on the ground
AllowDiscardItem = True

# If next switch set to true every created character will have access level 200.
EverybodyHasAdminRights = false

# Allow L2Walker client (Default False)
# Can be True, False, GM
# Note: L2Walker
AllowL2Walker = False
L2WalkerRevision = 552
# Ban account if account using l2walker and is not GM, AllowL2Walker = False
AutobanL2WalkerAcc = False

# Activate the position recorder
# valid 3D points will be recorded and written to data/universe.txt on shutdown
ActivatePositionRecorder = False

#Global/Trade Chat usablitly - ON, OFF, GM
GlobalChat=ON

# Logging ChatWindow
LogChat = True

# show level of character to others in Community Board
ShowLevelOnCommunityBoard = False
ShowStatusOnCommunityBoard = True

# Maximum range mobs can randomly go from spawn point
MaxDriftRange = 200

# Minimum and maximum variable in seconds for npc animation delay.
# You must keep MinNPCAnimation <= MaxNPCAnimation.
# "0" is default value.
MinNPCAnimation = 0
MaxNPCAnimation = 0

# You can choose NPC name either of client side one or server side one.
# Client side NPC name is useful for non english client.
# You can overwrite client side NPC name if you choose server side NPC name.
# Client side name is default value.
ServerSideNpcName = False
# Show L2Monster level and aggro, ServerSideNpcName must be enabled
ServerSideNpcNameWithLvl = False

AutoDeleteInvalidQuestData = False

# Day/Night Status
# Hours are from 0 - 23
DayStatusSunRiseAt = 6
DayStatusSunSetAt = 18
# Forces the client to change their day and night status
DayStatusForceClientUpdate = True

# The Size of the 3 Thread pools used for scheduled tasks
# The 3 thread pools have differant priorities (high, medium low)
# You should modify this with care, setting this too high could harm
# the server. This should be increased on multi-proc/core computers
# Default is 4, 10 and 4
ThreadPoolSizeHigh = 4
ThreadPoolSizeMed = 10
ThreadPoolSizeLow = 4

# P4(800) w. HT runs well with this
# ThreadPoolSizeHigh = 8
# ThreadPoolSizeMed = 20
# ThreadPoolSizeLow = 8

# For multi cpu's and multi core cpu's
# ThreadPoolSizeHigh = 12
# ThreadPoolSizeMed = 20
# ThreadPoolSizeLow = 16

any help will be greatfull......
ps thnx in advance
 
Well, i did all the steps and when i went to start the server i got this.


Code:
Starting L2J Game Server.

loading gameserver config
MLog clients using java 1.4+ standard logging.
Initializing c3p0-0.9.0 [built 08-??????-2005 15:47:30 +0400; debug? false; trac
e: 5]
Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@b2a2d8 [ conn
ectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@5e5a
50 [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 100
0, autoCommitOnClose -> true, automaticTestTable -> null, breakAfterAcquireFailu
re -> false, checkoutTimeout -> 0, connectionTesterClassName -> com.mchange.v2.c
3p0.impl.DefaultConnectionTester, factoryClassLocation -> null, forceIgnoreUnres
olvedTransactions -> false, identityToken -> 5e5a50, idleConnectionTestPeriod ->
 0, initialPoolSize -> 1, maxIdleTime -> 0, maxPoolSize -> 5, maxStatements -> 1
00, maxStatementsPerConnection -> 0, minPoolSize -> 1, nestedDataSource -> com.m
change.v2.c3p0.DriverManagerDataSource@91cee [ description -> null, driverClass
-> null, factoryClassLocation -> null, identityToken -> 91cee, jdbcUrl -> jdbc:m
ysql://localhost/l2jdb, properties -> {user=******, password=******** ], preferre
dTestQuery -> null, propertyCycle -> 300, testConnectionOnCheckin -> false, test
ConnectionOnCheckout -> false, usesTraditionalReflectiveProxies -> false ], fact
oryClassLocation -> null, identityToken -> b2a2d8, numHelperThreads -> 3 ]
L2J Server Version:    2011
L2J Server Build Date: 20051225_0008
Updated characters online status.
BitSet ID Factory could not be initialized correctly
java.sql.SQLException: Unknown column 'crest_id' in 'field list'
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2921)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1570)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1665)
        at com.mysql.jdbc.Connection.execSQL(Connection.java:2972)
        at com.mysql.jdbc.Connection.execSQL(Connection.java:2902)
        at com.mysql.jdbc.Statement.executeUpdate(Statement.java:929)
        at com.mchange.v2.c3p0.impl.NewProxyStatement.executeUpdate(NewProxyStat
ement.java:194)
        at net.sf.l2j.gameserver.idfactory.IdFactory.extractUsedObjectIDTable(Id
Factory.java:204)
        at net.sf.l2j.gameserver.idfactory.BitSetIDFactory.initialize(BitSetIDFa
ctory.java:85)
        at net.sf.l2j.gameserver.idfactory.BitSetIDFactory.<init>(BitSetIDFactor
y.java:73)
        at net.sf.l2j.gameserver.idfactory.IdFactory.<clinit>(IdFactory.java:101
)
        at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:191)
        at net.sf.l2j.gameserver.GameServer.main(GameServer.java:462)
IDFactory: 102912 id's avaliable.
Could not read object IDs from DB. Please Check Your Data.
Exception in thread "main" java.lang.Exception: Could not initialize the ID fact
ory
        at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:195)
        at net.sf.l2j.gameserver.GameServer.main(GameServer.java:462)

Server terminated abnormaly


server terminated

Press any key to continue . . .

Anyone know what might be wrong?
 
help
i have the client updated and pached and all ready to go when i run it i get this err

OS: Windows XP 5.1 (Build: 2600)
CPU: AuthenticAMD Unknown processor @ -817 MHz with 2047MB RAM
Video: NVIDIA GeForce 6600 GT (8195)

Negative delta time!

History: UGameEngine::Tick <- UpdateWorld <- MainLoop

if ne1 can help please do
 
To Elandir: When you run C:\server\start.bat does the browser open automatically and connects to your db?

To Punished Find file server.properties in C:\Server\l2j\gameserver\config

To spazo925 You have to do a little work.
First, you have to make changes to login.properties as well
Second, you must asssign a Lan IP to your computer
and port forward ports 7777,80,2106 to your IP through your adsl router.
Third, you should change InternalHostname=127.0.0.1
to InternalHostname=LAN.IP
Try all this and it should work.

To staticextasy: Your db seems corrupt. Try reinstalling everything.
 
Hi guys!
I got problem with server. I've started l2j with no special problems, but when i tried to connect i had error with Authentication (min 0). So I reinstall client, I do update. Then I simply try to change ini and now i got information "Files are corrupted!!! Please, full check". I'll be happy for any help/solution.
 
To Herunotenchi : Go to C:\Server\l2j\gameserver\config\server.properties and check
# Minimum and maximum protocol revision that server allow to connect.
# You must keep MinProtocolRevision <= MaxProtocolRevision.
MinProtocolRevision = 557
MaxProtocolRevision = 700

Don't mess with *ini files apart from L2.ini to put ur IP.

To staticextasy: Sry mate for delay, i've been busy.
No JAVA or NAvicat just delete server dir and reinstall server.
Then run start.bat
run database_installer
choose f (fullinstall)
then run startloginserver.bat
and startgameserver.bat

Have fun
 
hello,
hope someone can help me out

I have startet my login server and gameserver (with some errors)
Im working on lan so i try to conect from my second pc into server... i can't gat in..

i have this error:

Client is not using latest Authentication method. (Min is 0)


any idea?
thanks
 
ok back on my error when i start server everything is normall BUT when i go to i see server Offline(while server is online) and when i go to 127.0.0.1 i see server Online plz help me some with my server's page
 
Damn! Registeration Failed: Reason wrong hexid
Connecting to login on 127.0.0.1:9014
Damn! Registeration Failed: Reason wrong hexid
Connecting to login on 127.0.0.1:9014
Damn! Registeration Failed: Reason wrong hexid
Connecting to login on 127.0.0.1:9014
Damn! Registeration Failed: Reason wrong hexid
AutoSpawnHandler: Spawned NPC ID 7556 at 151680, -174891, -1782 (Near Dwarven Vi
llage) for 30 minutes(s).
Connecting to login on 127.0.0.1:9014
Damn! Registeration Failed: Reason wrong hexid
Connecting to login on 127.0.0.1:9014
Damn! Registeration Failed: Reason wrong hexid
Connecting to login on 127.0.0.1:9014
Damn! Registeration Failed: Reason wrong hexid
Connecting to login on 127.0.0.1:9014
Damn! Registeration Failed: Reason wrong hexid
Connecting to login on 127.0.0.1:9014
Damn! Registeration Failed: Reason wrong hexid

^^ :ranting2: ^^ :ranting2: ^^ ^^
Scuse me, I'm not english, and I don't speack very well someone can explayn me, why this?, appear when finish to load the game server.... plz help..
 
joeysonic: Your question has been answered by me at the other thread where you post it.

rickyyeaa:You have a wrong Hexid number.
check if you have a file hexid.txt in C:\Server\l2j\gameserver\config

Yoy are using GH pack correct?
 
Status
Not open for further replies.
Back