Czego będziemy potrzebować przed instalacja??Java JDK 6 Update 17Download:
http://java.sun.com/javase/downloads/MySQL 5.1.41 - serwer bazodanowy
Download:
http://dev.mysql.com/downloads/mysql/5.1.htmlNavicat 8.2.16 for MySQL - klient MySQL
Download:
http://www.navicat.com/download.htmlL2J Server - skompilowany serwer
Download:
http://www.l2jserver.com/nightly/L2J DataPack - paczka z danymi dla serwera
Download:
http://www.l2jdp.com/nightly/ Zaczynamy1. Instalacja MySQL * Rozpakuj archiwum mysql-5.*.x-win.zip.
* Uruchom instalator, instalacja jest bezproblemowa, starczy dawać Next, i ustawić hasło (o ile zechcemy je posiadać), gdy zostaniemy o nie poproszeni.
* Po instalacji wymagany będzie restart.
2. Przyszykowanie plików serwera * Rozpakuj archiwum L2J_Server-unstable.zip.
* Rozpakuj archiwum L2J_DataPack-unstable.zip.
3. Instalacja programu Navicat * Uruchom instalator, i zainstaluj aplikacje we wskazanym przez siebie folderze.
* uruchom program.
* Wybierz "Nowe połączenie"/"New Connection", potem ustaw dane jak na obrazku poniżej oraz hasło jeśli zostało ustawione przy instalacji bazy danych MySQL.

* Kliknij na "localhost" (lewe okienko) - powinien zrobic sie zielony, następnie kliknij na "localhost" prawym przyciskiem myszy i wybierz "Nowa Baza Danych"/"New Database" i nazwij ja l2jdb.
* Możesz już wyłączyć Navicata.
4. Wczytanie danych do twojej bazy danych MySQL * Wracamy teraz do wcześniej rozpakowanego archiwum L2j_Datapack
* Czytamy zawarte tam plik tekstowy Readme, oczywiście jeśli kogoś to interesuje

* Następnie udajemy się do katalogu "tools" i uruchamiamy database_installer.bat (dla Windows'a) lub database_installer.sh (dla Linux'a) oraz wybieramy odpowiednią opcję - full install for new databases (pełna instalacja dla nowej bazy danych)
* Odpowiadamy na podane pytania jak nazwa bazy danych, w większości, poza hasłem możemy dać enter pozostawiając default (wartość domyślną).
5. Instalacja środowiska Java * Proste, uruchamiamy wcześniej pobrany plik jdk-*.exe i instalujemy odpowiednie komponenty.
6. Loginserver - instalacja * Skopiuj folder "login" z wcześniej wypakowanego archiwum L2j_Server i umieść w odpowiednim dla Ciebie miejscu na dysku np. C:\L2j\Loginserver.
7. Gameserver - instalacja * Skopiuj folder "gameserver" z wcześniej wypakowanego archiwum L2j_Server i umieść w odpowiednim dla Ciebie miejscu na dysku np. C:\L2j\Gameserver.
* Skopiuj zawartość wypakowanego wcześniej archiwum L2j_Datapack w folderze "Gameserver" (zostaniesz poproszony o potwierdzenie zamiany plików, co potwierdzi poprawność lokalizacji, kliknij tak) . Powinno to wyglądać mniej więcej tak C:\L2j\Gameserver\data i dalej np. html itp.
8. Loginserver - konfiguracja * Wejdź do folderu z loginserver'em, a następnie w katalog "config" i otwórz jakiś edytorem tekstu plik "loginserver.properties"
* Zmień wartości według instrukcji poniżej:
# 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= <---- TUTAJ USTAW ZEWNĘTRZNE IP (WAN)
JEŚLI CHCESZ POGRAĆ SAMEMU STARCZY USTAWIĆ 127.0.0.1
# This is transmitted to the client from the same network, so it has to be a local IP or resolvable hostname
InternalHostname= <---- TUTAJ USTAW WEWNĘTRZNE IP, MOŻESZ DAĆ 127.0.0.1
JEŚLI CHCESZ POGRAĆ Z KOLEGAMI Z SIECI LAN USTAW SWOJE LAN 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= <---- TUTAJ USTAW HASŁO DO BAZY DANYCH MYSQL
MaximumDbConnections=10
# Useable values: "true" - "false", use this option to choose whether accounts will be created
# automatically or not.
AutoCreateAccounts=true
# 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
9. Gameserver - konfiguracja * Wejdź do folderu z gameserver'em, a następnie w katalog "config" i otwórz jakiś edytorem tekstu plik "server.properties"
* Zmień wartości według instrukcji poniżej:
# 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= <---- TUTAJ USTAW ZEWNĘTRZNE IP (WAN)
JEŚLI CHCESZ POGRAĆ SAMEMU STARCZY USTAWIĆ 127.0.0.1
# 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= <---- TUTAJ USTAW WEWNĘTRZNE IP, MOŻESZ DAĆ 127.0.0.1
JEŚLI CHCESZ POGRAĆ Z KOLEGAMI Z SIECI LAN USTAW SWOJE LAN IP
# The Loginserver host and port
LoginPort=9014
LoginHost=127.0.0.1
# 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= <---- WSTAW HASŁO DO BAZY DANYCH MYSQL
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 = 146
MaxProtocolRevision = 146
10. Rejestracja Gameserver'a * Każdy gameserver, jaki będziemy chcieli posiadać, trzeba zarejestrować: uruchom /login/RegisterGameServer.bat (dla linux'a /login/RegisterGameServer.sh) i wybierz numer jaki chcesz mu nadać (np. 0 Bartz), zostanie utworzony plik o nazwie "hexid(server-x).txt"
* Skopiuj "hexid(server-x).txt" do katalogu /gameserver/config/ i zmień jego nazwę na "hexid.txt".
11. Uruchomienie serwera * Aby uruchomić loginserver: uruchamiamy /login/startLoginServer.bat (/login/startLoginServer.sh)
* Aby uruchomić gameserver: uruchamiamy /gameserver/startGameServer.bat (/gameserver/startGameServer.sh)
Jeśli wszystko przebiegło poprawnie zobaczymy coś takiego: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@5e179a [ conn
ectionPoolDataSource -> 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
Gratulacje, postawiłeś swój pierwszy serwer L2
Źródło: http://www.l2jserver.com/trac/wiki/L2J_Install