Lineage2Developer Lineage2Developer
High Quality everytime !
 
FAQ :: Search :: Memberlist :: Usergroups :: Register
Profile :: Log in to check your private messages :: Log in

[Tutorial] Cum Faci un server de Lineage2

 
Post new topic   Reply to topic    Lineage2Developer Forum Index -> Server
View previous topic :: View next topic  
Author Message
xXVaRcoLaCXx
MasTer Of The Server
MasTer Of The Server
xXVaRcoLaCXx

Joined: 04 Nov 2007
Posts: 11
Location: Giran Town

PostPosted: 25/11/2007 11:37    Post subject: [Tutorial] Cum Faci un server de Lineage2 Reply with quote

How to set up Loginserver and Gameserver ¶




Preparation ¶



List of files needed to install and run the L2J server:

Basic:
click HERE to get the java 1.5 jdk file.
click HERE to get the MySQL 5.x file.
click HERE to get the Navicat trial file.
click HERE to get the L2J Server file.
click HERE to get the datapack. (Made by L2J-Datapack Team)


1. Installing MySQL ¶
a. Extras the mysql-5.*.x-win.zip file to a temporary location.
b. Install MySQL to the location you want it to go.
Write down the password if you set one.

c. After installation, reboot your system.
2. Prepare server files ¶
a. Extract the L2J_Server-unstable.zip file to a new folder of your choice.
b. Extract the L2J_DataPack-unstable.zip file to a new folder (different form folder choosed at step "a") of your choice.
3. Installing Navicat ¶
a. Execute the file and install it to the location where you want it to go.
b. Now run the program.
c. Select "New Connection", and fill in the fields like shown on the picture. Then click OK.

[Tutorial] Cum Faci un server de Lineage2 [Tutorial] Cum Faci un server de Lineage2

d. Single click the connection localhost (it should turn green), then right click on your new localhost connection, and create a new database with the name l2jdb.
e. Close the Navicat program.
4. Getting the data in your database ¶
a. Read the readme file of the datapack.
b. Run the database_installer.bat (Windows) or database_installer.sh (Linux) and follow onsceen steps - choose full install for new databases/upgrade for existing databases - use database created in previous step.
5. Java ¶
a. Simple, just execute the jdk-1_5_0_04-windows-i586-p.exe file to install the needed java components.



Now you have everything prepared, read carefully next.




Servers installation ¶




6. Loginserver installation ¶



a. Copy the folder /login/ from your l2j loginserver temporary directory to the PC and folder you want to run the loginserver from.



7. Gameserver installation ¶

For each gameserver:


a. Copy the folder /gameserver/ from your l2j gemeserver temporary directory to the PC and folder you want to run the gameserver from.
b. Copy the the contents of your l2j datapack temporary directory to the /gameserver/ folder you just created (you will know that you copied it to the correct location if you are asked if you want to replace/overwrite existing files - choose yes)



Servers setup ¶




8. Loginserver setup ¶



Note: Take care not to insert extra spaces at end of line when you edit.
DO NOT COPY AND PASTE SAMPLE FILES, THEY ARE FOR ILLUSTRATIVE PURPOSES ONLY.
The following text is an example of an actual loginserver.properties file located in your loginserver /config folder. (To view or change the content, use your favorite text editor)
a. For your loginserver, open /login/config/loginserver.properties and change the following values:

_____________________________________________________

# 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 !!!
# ================================================================

# This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname
ExternalHostname=82.28.82.28 <<----YOUR LOGINSERVER WAN IP GOES HERE

# This is transmitted to the client from the same network, so it has to be a local IP or resolvable hostname
InternalHostname=192.168.1.100 <<----YOUR LOGINSERVER LAN IP GOES HERE

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

# 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
ShowLicence = True

# Database info
Driver=com.mysql.jdbc.Driver
#Driver=org.hsqldb.jdbcDriver
URL=jdbc:mysql://localhost/l2jdb <<----YOUR LOGINSERVER MYSQL LAN IP AND DATABASE NAME GO HERE
#URL=jdbc:hsqldb:hsql://localhost/l2jdb
Login=root <<----YOUR LOGINSERVER MYSQL LOGIN USERNAME GOES HERE
Password= <<----YOUR LOGINSERVER MYSQL LOGIN PASSWORD GOES HERE
MaximumDbConnections=10

# Useable values: "true" - "false", use this option to choose whether accounts will be created
# automatically or not.
AutoCreateAccounts=true <<TRUE>
Debug = False
Assert = False
Developer = False

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

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

9. Gameserver setup &para;
Note: Take care not to insert extra spaces at end of line when you edit.
DO NOT COPY AND PASTE SAMPLE FILES, THEY ARE FOR ILLUSTRATIVE PURPOSES ONLY.
The following text is an example of an actual server.properties file located in your gameserver /config folder. (To view or change the content, use your favorite text editor)
a. For each gameserver, open /gameserver/config/server.properties and change the following values:
_____________________________________________________

# 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 <<----YOUR GAMESERVER PORT GOES HERE IF USE NUMEROASE GAMESERVERS/IP MUST BE DIFFERENT FOR EACH ONE

# 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=82.28.82.28 <<----YOUR GAMESERVER WAN IP GOES HERE

# 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=192.168.1.100 <<----YOUR GAMESERVER LAN IP GOES HERE

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

# The Loginserver host and port
LoginPort=9014
LoginHost=127.0.0.1 <<----YOUR LOGINSERVER LAN IP GOES HERE

# This is the server id that the gameserver will request (i.e. 0 is Bartz)
RequestServerID = 0 <<----YOUR GAMESERVER NUMBER GOES HERE
# If set to true, the login will give an other id to the server if the requested id is allready reserved
AcceptAlternateID = True <<--- TRUE = ACCEPT OTHER ID IF SELECTED ONE IS NOT FREE, WILL GENERATE AUTOMATICALLY HEXID,
FALSE = FORCE TO SELECTED ID ONLY

# Database info
Driver=com.mysql.jdbc.Driver
#Driver=org.hsqldb.jdbcDriver
URL=jdbc:mysql://localhost/l2jdb <<----YOUR GAMESERVER MYSQL LAN IP AND DATABASE NAME GO HERE
#URL=jdbc:hsqldb:hsql://localhost/l2jdb
Login=root <<----YOUR GAMESERVER MYSQL LOGIN USERNAME GOES HERE
Password= <<----YOUR GAMESERVER MYSQL LOGIN PASSWORD GOES HERE
MaximumDbConnections=10

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

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

# Maximum number of chars per account - 0 = illimited
CharMaxNumber = 7 <<--- SELF EXPLANATORY

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

# Minimum and maximum protocol revision that server allow to connect.
# You must keep MinProtocolRevision <= MaxProtocolRevision.
MinProtocolRevision = 1 <<--- LOWER CLIENT VERSION COMPATIBLE WITH SERVER
MaxProtocolRevision = 999 <<HIGHER> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@4aeb
52 [ acquireIncrement -> 5, acquireRetryAttempts -> 0, acquireRetryDelay -> 500,
autoCommitOnClose -> true, automaticTestTable -> connection_test_table, breakAf
terAcquireFailure -> false, checkoutTimeout -> 0, connectionTesterClassName -> c
om.mchange.v2.c3p0.impl.DefaultConnectionTester, factoryClassLocation -> null, f
orceIgnoreUnresolvedTransactions -> false, identityToken -> 4aeb52, idleConnecti
onTestPeriod -> 60, initialPoolSize -> 3, maxIdleTime -> 0, maxPoolSize -> 10, m
axStatements -> 0, maxStatementsPerConnection -> 100, minPoolSize -> 1, nestedDa
taSource -> com.mchange.v2.c3p0.DriverManagerDataSource@cfec48 [ description ->
null, driverClass -> null, factoryClassLocation -> null, identityToken -> cfec48
, jdbcUrl -> jdbc:mysql://localhost/l2jdb2, properties -> {user=******, password
=******} ], preferredTestQuery -> null, propertyCycle -> 300, testConnectionOnCh
eckin -> true, testConnectionOnCheckout -> false, usesTraditionalReflectiveProxi
es -> false ], factoryClassLocation -> null, identityToken -> 5e179a, numHelperT
hreads -> 3 ]

etc....

etc....

etc....

IdFactory: Free ObjectID's remaining: 1878992804
GameServer Started, free memory 175 Mb of 512 Mb
Connecting to login on 127.0.0.1:9014
Maximum Numbers of Connected Players: 100
Telnet server is currently disabled.
GameServer listening on all available IPs on Port 7777
Registered on login as Server 0 : Bartz


Credits to l2jserver
_________________
L2JavaDeveloper

[Tutorial] Cum Faci un server de Lineage2 [Tutorial] Cum Faci un server de Lineage2
Back to top
View user's profile Send private message Send e-mail
WeeDBoY

WeeDBoY

Joined: 27 Nov 2007
Posts: 6

PostPosted: 27/11/2007 15:30    Post subject: Reply with quote

Pune si u kiturile sus ca sa putem downloada:D
Back to top
View user's profile Send private message
bth



Joined: 06 Nov 2007
Posts: 8

PostPosted: 28/11/2007 18:14    Post subject: :P Reply with quote

WebBoy dami add bladeofdragon_l2@yahoo.com
Back to top
View user's profile Send private message
WeeDBoY

WeeDBoY

Joined: 27 Nov 2007
Posts: 6

PostPosted: 28/11/2007 23:57    Post subject: Reply with quote

Gabrielv20@yahoo.com
Back to top
View user's profile Send private message
tzuyk

tzuyk

Joined: 18 Nov 2007
Posts: 20

PostPosted: 01/12/2007 19:02    Post subject: Reply with quote

navicat luati versiunea lite... e free (cealalta expira dupa 1 luna) si merge si asa f bn
Back to top
View user's profile Send private message
tzuyk

tzuyk

Joined: 18 Nov 2007
Posts: 20

PostPosted: 01/12/2007 19:10    Post subject: Reply with quote

http://rapidshare.com/files/48465793/Setup.exe <---MySQL
http://navicat.com/download.html <--- navicat
https://sdlc3d.sun.com/ECom/EComActionServlet;jsessionid=D127911F6042C6DFDFEA899659A4AC74 <---java
(dak nu aveti cont la sun faceti k este free)
apoi uite si linkurile de la serverul d la kre am plecat eu... poate unii spun k e mai nasol insa mie imi place mai mult asta
http://rapidshare.com/files/48462278/L2J_Server.zip <---server
http://rapidshare.com/files/48462735/L2J_DataPack.zip <---datapack
mai multe knd mai aflu k sunt la inceput d drum :-P
Back to top
View user's profile Send private message
WeeDBoY

WeeDBoY

Joined: 27 Nov 2007
Posts: 6

PostPosted: 02/12/2007 12:23    Post subject: Reply with quote

Am si eu o problema. Dupa ce porneste srvu incerc sa ma connectez si nu merge imi zice ca nu e parola buna desi am pus cu auto produs cont.Care ma ajuta :-)
Back to top
View user's profile Send private message
Khrone

Khrone

Joined: 30 Dec 2007
Posts: 2
Location: Miami

PostPosted: 30/12/2007 20:33    Post subject: reply Reply with quote

Ti-ai facut host sau l2.ini cu ipul tau ?
_________________
Everytime
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Lineage2Developer Forum Index -> Server All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



smartDark Style by Smartor
Powered by phpBB © 2001, 2002 phpBB Group