Tutoriale
Doriti să reactionati la acest mesaj? Creati un cont în câteva clickuri sau conectati-vă pentru a continua.



 
AcasaAcasa  Ultimele imaginiUltimele imagini  CăutareCăutare  ÎnregistrareÎnregistrare  ConectareConectare  

 

 Tutorial Instalare Server L2j

In jos 
AutorMesaj
Kenny
Sponsor
Sponsor
Kenny


Mesaje : 1077
Data de inscriere : 07/05/2008
Varsta : 33
Localizare : Liberty City

Tutorial Instalare Server L2j Empty
MesajSubiect: Tutorial Instalare Server L2j   Tutorial Instalare Server L2j Icon_minitimeSam Noi 22, 2008 3:27 pm

De ce aveti nevoie?

Java jdk se: donwload

Eclipse:Download

1. Instalati Java

Deschideti fisierul jdk-1_5_0_04-windows-i586-p.exe si instalati java pe calculatorul vostru

2. Instalati Eclipse

Extrageti fisierul eclipse-SDK-3.1-win32.zip

3. Rulati Eclipse

4. Apasati pe:
Tutorial Instalare Server L2j 26837425xz5

5. Search new features to install: dati click pe New Remote Site si scrieti:

Name:subeclipse
URL: http://subclipse.tigris.org/update
Tutorial Instalare Server L2j 28823919ll5

6. Apasati ok si finish, selectati subeclipse sa fie instalat si apasati next, acceptati termenii, next si finish

7. Acum eclipse downloadeaza subeclipse, aveti rabdare, cand termina apasati pe install all si pe urma pe yes cand va intreaba daca sa restartati eclipse

8. Acum subeclipse (modulul svn pentru eclipse) este instalat, apasati pe:
Tutorial Instalare Server L2j 89678348em6
Tutorial Instalare Server L2j 46385310qg3
[Completati campurile] Imaginile de mai jos arata adresa unui repository vechi, folositi linkul de mai jos:

Url: <a href=https://l2jserver.com/svn" target="_blank><a href=https://l2jserver.com/svn target=_blank><a href=https://l2jserver.com/svn target=_blank><a href=https://l2jserver.com/svn target="_blank><a href=https://l2jserver.com/svn target=_blank>https://l2jserver.com/svn</a></a></a></a></a>
sau incercati
<a href=http://l2jserver.com/svntarget=_blank><a href=http://l2jserver.com/svn target=_blank><a href=http://l2jserver.com/svn target=_blank><a href=http://l2jserver.com/svn target=_blank><a href="http://l2jserver.com/svn" target=_blank>http://l2jserver.com/svn</a></a></a></a></a>
daca primiti eroare la primul URL
User: anonymous
Tutorial Instalare Server L2j 41874040yc0
Tutorial Instalare Server L2j 97316368xa4

Tineti minte sa schimbati https in http daca primiti eroare de validare

9. Dati click pe Check out As Project pentru a incepe downloadarea codului sursa
Tutorial Instalare Server L2j 13073931lv7

10. Cand terminati (aveti rabdare, va dura ceva) veti vedea un nou proiect cu cel mai nou cod sursa svn pentru l2j

11. Acum va trebui sa va configurati java-ul pe care l-ati instalat mai devreme ca sa va compileze serverul. Acum va trebui sa deschideti Window > Preferences, si pe urma sa va uitati dupa:
Tutorial Instalare Server L2j 96554054uq4
Semnul + pentru java si apasati pe el pentru a aparea meniul. Uitati-va dupa "Installed JREs" si selectati-l. Acum trebuie sa va uitati pe lista dupa "jdk1.5.0_*" si sa setati drept calculatorul vostru.

Daca nu vedeti Java in aceasta lista, dati click pe butonul Search si cautati in harddiskul vostru fisier ul cerut. Daca tot nu gasiti inseamna ca nu ati instalat Java corect. Dupa asta pur si simplu dati click pe ok dupa ce ati selectat "jdk1.5.0_*"

12. Acum duceti-va in Window > Show View > Other > Ant
Tutorial Instalare Server L2j 16811708jk4
Tutorial Instalare Server L2j 10tn2

13. Acum o noua fereastra "Ant" ar trebui sa apara langa fereastra "Outline". Duceti-va pe ea si dati click pe icoana "Add buildfiles" L2_GameServer > build.xml. Pe urma dati click pe Ok.
Tutorial Instalare Server L2j 11cu2
Tutorial Instalare Server L2j 95459417hv9

14. Acum uitati-va in fereastra voastra Ant si ar trebui sa fie un grup nou. Dati click pe semnul + ca sa apara meniul si dati dublu click pe "Dist (Default)" si asta va va compila serverul.

15. Acum fiti atenti la urmatoarea fereastra deoarece va afisa unde a compilat un fisier zip important care reprezinta fisierele principale ale serverului. Duceti-va acolo si extrageti fisierele din l2j-server.zip in folderul l2j-server si scrieti peste fisierele vechi daca aveti o varianta anterioara.
Tutorial Instalare Server L2j 12mf5
Tutorial Instalare Server L2j 14kq7

16. Pentrua updata codul sursa de acum incolo dupa Checkout-ul initial:

In fereastra Navigator:
click dreapta pe L2_Gameserver.
Selectati Team.
Selectati Synchronize With Repository.
Click dreapta pe L2_Gameserver.
Click pe update.
Compilati si instalati din nou cum este descris in pasii 6 si 7 de mai jos

Cum setati Loginserver si Gameserver

Lista de fisiere necesare pentru a instala si rula serverul L2J

java 1.5 jdk:[url="https://sdlc6c.sun.com/ECom/EComActionServlet;jsessionid=40DD934623D6EAB727372E4C66B19BA3"]download[/url]
MySQL 5.x:download
Navicat:download
L2J Server:download
datapack:dowload


1. Instalarea MySQL:
-extrageti fisierul mysql-5.*.x-win.zip intr-o locatie temporara
-Instalati MySQL
Notati parola daca setati una
-dupa instalare restartati calculatorul

2. Preparati fisierele Serverului
-Extrageti fisierul L2J_Server-unstable.zip in folderul pe care il doriti
-Extrageti fisierul L2J_DataPack-unstable.zip in alt folder

3. Instalarea Navicat
-Rulati fisierul si instalati in locatia dorita.
-Rulati programul
-Selectati "New Connection" si completati campurile ca mai jos. Pe urma dati click pe ok.
Tutorial Instalare Server L2j 15wm6
-dati un singur click pe connection localhost (ar trebui sa devina verde), pe urma click dreapta pe localhost connection, si creati o noua baza de date cu numele l2jdb.
-inchideti programul navicat.

4. Introducerea datelor in baza de date

-cititi fisierul readme din data pack
-rulati database_installer.bat (Windows) sau database_installer.sh (Linux) si urmati pasii afisati
alegeti full install pentru baza de date noua/upgrade pentru baze de date deja existente folositi baza de date creata in pasul anterior

5. Java
Simplu, executati fisierul jdk-1_5_0_04-windows-i586-p.exe pentru a instala componentele java necesare.

Cititi cu atentie ce urmeaza

Instalarea serverelor

6. Instalarea Loginserver
-copiati folderul /login/ din directorul vostru temporar l2j loginserver acolo unde vreti sa rulati loginserver.

7. Instalarea Gameserver

Pentru fiecare gameserver:
-Copiati folderul /gameserver/ din directorul vostru temporar l2j gameserver acolo unde vreti sa rulati gameserver.
-Copiati continutul fisierului l2j datapack in folderul /gameserver/ pe care tocmai l-ati creat.

8. Loginserver Setup

Aveti grija sa nu puneti spatii in plus la capatul liniilor cand terminati de editat.
Urmatorul text este un exemplu de fisier loginserver.properties aflat in folderul vostru loginserver /config.

Pentru loginserverul vostru, deschideti open /login/config/loginserver.properties si schimbati urmatoarele valori:
[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
# ======================================================================
============================
Sus In jos
http://muchisinau.sytes.net/
Kenny
Sponsor
Sponsor
Kenny


Mesaje : 1077
Data de inscriere : 07/05/2008
Varsta : 33
Localizare : Liberty City

Tutorial Instalare Server L2j Empty
MesajSubiect: Re: Tutorial Instalare Server L2j   Tutorial Instalare Server L2j Icon_minitimeSam Noi 22, 2008 3:27 pm

#================================================================
# 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 = ACCOUNTS ARE CRATED AUTOMATICALLY ON CLIENT LOGIN, FALSE = NEED SOME TOOL TO CREATE ACCOUNTS

# 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
# ==============================================================
<---- LEAVE THIS AS IS UNLESS YOU KNOW WHAT YOU'RE DOING---->
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[/code]

9. Setup Gameserver


Aveti grija sa nu puneti spatii in plus la capatul liniilor cand terminati de editat.

Urmatorul text este un exemplu de fisier server.properties(fisier gasit in folderul vostru din gameserver /config).

Pentru fiecare gameserver deschideti /gameserver/config/server.properties si schimbati urmatoarele valori.
Cod:
# 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 MULTIPLE 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 = 694 <<---  LOWER CLIENT VERSION COMPATIBLE WITH SERVER
MaxProtocolRevision = 709 <<--- HIGHER CLIENT VERSION COMPATIBLE WITH SERVER

12. Inregistrarea Gameserverlor

-pentru fiecare gameserver porniti /login/RegisterGameServer.bat (/login/RegisterGameServer.sh) si selectati numarul pe care vreti sa-l dati gameserverului si pe urma copiati fisierul "hexid(server-x).txt" in directorul /gameserver/config/ al serverului pe care tocmai l-ati inregistrat si schimbati-i numele in hexid.txt.

11. Rulare
-pentru loginserver: porniti start /login/startLoginServer.bat (/login/startLoginServer.sh)
-pentru fiecare gameserver: start /gameserver/startGameServer.bat (/gameserver/startGameServer.sh)

Daca unele din gameservere au acelasi WAN IP trebuie sa folositi porturi diferite pentru acele servere.
Daca vreti sa activati telnet pentru loginserver sau gameserver trebuie sa folositi porturi diferite care nu sunt deja folosite pentru fiecare in parte.
Acum serverul este gata sa ruleze.

Acum porniti loginserver-ul si gameserver-ul.
Daca vreti sa fiti absolut siguri ca functioneaza, uitati-va ca output-ul gameserverului arata similar cu cel de mai jos:

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

Pentru a face setari avansate intrati in
Cod:
gameserve/config
si editati
Cod:
altsettings.properties
command-privileges.properties
extensions.properties
GMAccess.properties
idfactory.properties
l2jdp-version.properties
l2j-version.properties
olympiad.properties
options.properties
other.properties
pvp.properties
rates.properties
server.properties
sevensigns.properties
siege.properties
telnet.properties

[color:2419="red"]Client

Un client este folosit pentru a te conecta la server.

Il puteti lua de aici: <a href=http://www.lineage2.com/pds/pds_client.html target="_blank"><a href=http://www.lineage2.com/pds/pds_client.html target="_blank"><a href=http://www.lineage2.com/pds/pds_client.html target="_blank"><a href=http://www.lineage2.com/pds/pds_client.html target="_blank"><a href=http://www.lineage2.com/pds/pds_client.html target=_blank>http://www.lineage2.com/pds/pds_client.html</a></a></a></a></a>

Downloadati-l si instalati-l.

Deschideti LineageII.exe si lasati sa se updateze.
O idee buna este sa dati pe "Check Files button" pentru a asigura un update complet.
Dupa ce ati updatat o data folositi L2.exe in directorul /system pentru a rula jocul. Faceti un shortcut la acest fisier si stergeti-l pe cel deja existent pe desktop.

Cat timp jocul este updatat este o idee buna sa editati fisierul hosts

Fisierul se gaseste intr-o locatie diferita in functie de sistemul vostru de operare.
Cod:
Windows XP = /windows/system32/drivers/etc
Windows 2K = /winnt/system32/drivers/etc
Win 98ME = /windows

In fisierul hosts va trebui sa editati ultima linie astfel incat sa arate ca:

123.123.123.123 L2authd.lineage2.com

Introduceti IP-ul serverului acolo unde este 123.123.123.123 .

Daca folositi clientul PTS(Public Test Server) trebuie sa inlocuiti L2authd.lineage2.com cu L2testauthd.lineage2.com.

Trebuie sa folositi IP-ul de lan sau 127.0.0.1 daca jucati pe server.

Aici este o copie dupa un fisier hosts: <a href="http://www.microsoft.com/technet/images/pr...rd/wildca27.gif target=_blank><a href=http://www.microsoft.com/technet/images/pr...rd/wildca27.gif target="_blank><a href=http://www.microsoft.com/technet/images/pr...rd/wildca27.gif target=_blank><a href=http://www.microsoft.com/technet/images/pr...rd/wildca27.gif target=_blank><a href=http://www.microsoft.com/technet/images/pr...rd/wildca27.giftarget=_blank>http://www.microsoft.com/technet/images/pr...rd/wildca27.gif</a></a></a></a></a>

Tot ce treceti in fisier trebuie sa fie de forma:
adresaip numelehost-ului

de exemplu:

192.168.1.1 L2authd.lineage2.com

Adresa IP trebuie sa fie din cifre . Numele Host-ului nu trebuie sa contina simboluri de genul /,http://, etc.
Puteti folosi semnul # pentru a face comentarii.

Daca aveti instalat MSN messenger cautati fisierul hosts.msn si daca exista editati-l pe acesta in locul celui default de la Windows.

Daca aveti probleme cand va conectati la server aveti grija cum scrieti account-ul si parola.

Daca tot nu va conectati in command prompt tastati "ping L2authd.lineage2.com". Daca vedeti "Pinging L2authd.lineage2.com [206.127.151.66] with 32 bytes of data:" atunci va conectati la NCSoft. Daca vedeti "Pinging L2authd.lineage2.com [Server_IP] with 32 bytes of data:" atunci va conectati la serverul vostru.
Vedeti ca in fisierul hosts sa apara o linie cu "Server_IP L2authd.lineage2.com" si numai o referire la "L2authd.lineage2.com". Verificati ca nu cumva sa fi creat un fisier hosts.txt ci doar hosts fara nici o extensie.
Aveti grija sa aveti programe anti-spyware instalate. Deschideti Regedit si cautati "HKEY_LOCAL_MACHINE/SYSTEM/Current/ControlSet/Services/Tcpip/Parameters". Verificati ca "DataBasePath" sa contina urmatoarele date "%SystemRoot%/System32/drivers/etc".
In command prompt scrieti "ipconfig /flushdns" si pe urma incercati sa va conectati.

Daca tot primiti eroare faceti din nou fisierul hosts.
Sus In jos
http://muchisinau.sytes.net/
 
Tutorial Instalare Server L2j
Sus 
Pagina 1 din 1
 Subiecte similare
-
» Instalare server Counter Strike Source pe Windows XP
» [PHP]Instalare PHP
» Tutorial Tentacul
» Tutorial Schita
» Tutorial C++ Part 1

Permisiunile acestui forum:Nu puteti raspunde la subiectele acestui forum
Tutoriale :: Alte jocuri Online :: Cum sa faci server de LineAge 2-
Mergi direct la: