Προς το περιεχόμενο

Pws na dimiourgisw l2 server


TZOUMERKA

Προτεινόμενες αναρτήσεις

Δημοσ.

Re paidia xerie kaneis ton tropo na dimiourgisw k egw enan l2 server i an xerete kapoia seida na mou peite...http://www.inforum.gr/index.php?showtopic=3017 mpeite na detite k edw.Egw dokimasa alla den ta katafera

EYXARISTW PANTWS GIA OLA!!!

Δημοσ.
Re paidia xerie kaneis ton tropo na dimiourgisw k egw enan l2 server i an xerete kapoia seida na mou peite...http://www.inforum.gr/index.php?showtopic=3017 mpeite na detite k edw.Egw dokimasa alla den ta katafera

EYXARISTW PANTWS GIA OLA!!!

 

mporw na se voithisw alla pistepse me den xreiazete na beis ston kopo na to kaneis, ektos an exeis sta sxedia sou na plirwseis gia to stisimo tou.

Δημοσ.

AMD64 X2 4200+, Radeon X1600XT PCI-E, 2GB DDR2 RAM, 3x Western Digital Sata 120GB, 2x Western Digital 80Gb IDE, Maxtor SATAII 160GB.

ean ennoeis oti xreiazete ayta gia na trexei o server ta exw sto pc mou alla to stisimo den katalabenw plz hlp twra oso gia ta lefta den xerw

Δημοσ.
AMD64 X2 4200+, Radeon X1600XT PCI-E, 2GB DDR2 RAM, 3x Western Digital Sata 120GB, 2x Western Digital 80Gb IDE, Maxtor SATAII 160GB.

ean ennoeis oti xreiazete ayta gia na trexei o server ta exw sto pc mou alla to stisimo den katalabenw plz hlp twra oso gia ta lefta den xerw

 

To pc sou den exei kamia sxesi...

 

Lineage 2 server = 200Euro to mina, elaxisto....

 

Endiaferese akomi?

 

Milame panta gia enan normal server o opoios pernei polloi kosmo...

 

AN twra thes na paizeis me trelo lag esi kai alla 2 atoma, tote allazei to pragma.

Δημοσ.

Tespa afou ekanes tin arxi lew na grapsw ton odigo....

 

Εχουμε και λέμε λοιπόν....

Πριν ξεκινήσεις χρειάζεσε τα εξης:

 

-> JDK: http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=jdk-1.5.0_04-oth-JPR&SiteId=JSC&TransactionId=noreg

 

->MySQL 5,x: http://dev.mysql.com/downloads/mysql/5.0.html

 

->Navicat: http://www.navicat.com/download/navicat_trial.exe

 

->Server Files: (C5) http://l2jserver.com/nightly/

 

->Datapack: http://l2jdp.com/nightly/

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

1. Installing MySQL

 

* a. Extract 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.

 

navicat12vm9.jpg

 

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

 

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

 

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)

 

 

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)

 

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

 

9. Gameserver 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 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 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

10. Registering Gameservers

 

* a. For every gameserver: start /login/RegisterGameServer.bat (/login/RegisterGameServer.sh) and select the number you wish to assign to the gameserver then copy the "hexid(server-x).txt" file to the /gameserver/config/ directory for the gameserver you have just registered and rename it "hexid.txt".

 

11. Running

 

* a. For your loginserver: start /login/startLoginServer.bat (/login/startLoginServer.sh)

* b. For every gameserver: start /gameserver/startGameServer.bat (/gameserver/startGameServer.sh)

 

Notes

 

If any of your gameservers have the same WAN IP you must use different ports for those gameservers with the same WAN IP.

If you want to enable telnet for your loginserver and gameservers, you must use different ports that are not already in use for each one.

Your server is now ready to run.

 

Kapoios moderator as diorthwsei ta endiamesa post.... To proigoumeno keimenw den ginete edit otan vriskete se ena post. To mono pou mporeis na kaneis einai na patiseis add reply kai to keimeno me tis allages...

 

Giati ginete ayto??? :???:

Δημοσ.

EDIT: sorry alla diavasa oti koliseis sto vima 8, lol...

 

Gia to Vima 4 loipon: Mesa sto fakelo tou gameserver (an thimamai kala, psa3e kalitera den einai tosa polla ta arxeia) yparxei ena arxeio, to opoio onomazete database_installer.bat Vresto kai ektelese to. Ekei tha sou vgalei mia erwtisi, opou tha dwseis tin dieythinsi stin opoia einai egatestimeni i database, p.x. C:/Program files/MySQL 5.5/L2J

 

Kai emeis eixame ekei provlima... Epeidi rwtouse an einai ekei dieythinsi, apantousame emeis Y(yes) i N(no) alla san apantisi prepei na dwseis tin dietyhinsi diskou.

 

Katopin tha perasei tin database mono tou mesa.

 

 

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

Gia to vima 8:

 

Vres to arxeio loginserver.properties .

 

Anoi3e to me ton epe3ergastei keimenou, kai des twn kwdika pou exw panw. Siblirwse ola ta stoixeia pou xreiazontai kai apothikeyse ton. Prosoxi ston LAN IP kai to WAN IP, mporei na einai diaforetika. Nomizw leei pws na ta vreis.

 

To LAN IP, vriskete apo to Enar3i->Ektelesi->cmd opou dineis tin endoli "ipconfig"

 

To WAN IP, apo to http://www.whatismyip.com

 

I to antitheto de thimamai sigoura :)

 

Ean tre3ete ton server, kai pesei i sindesis sas sto internet, i kleisete to pc, tote to IP sas allazei, opote tha prepei na 3anallazete ta panw arxeia vazontas to neo sas IP.

 

Episis mia simvouli akoma, ta arxeia tou server, kalo tha itan na ta valete p.x. sto C:/server oxi se diadromes diskou pou exoune ellinika grammata (p.x. epifaneia ergasias ktlp).

 

Episis gia na boresw na sas voithisw perissotero, vgalte screenshot tin othoni me to provlima, i peite leptomerws pio einai to provlima sas.

 

Epeidi to panw post den mporw na to kanw edit,(provlima tou forum) peste pio simeio thelete gia metafrasi kai tha sas to grapsw.

Δημοσ.

:( den ta katafernw. Kollaw se blakeioules.dld den borw na katalavw ti leei sto 6 k sto 7.pffff dld sto 6 leei na adigrapsoume to fakelo \login\ kapou pou den katalabainw alla k pou tha ton vre auton ton fakelo

se zalizw e? :(

panw mas exeis dwsei kapoia link na katevasoume kapoia arxeia.egw sta arxeia pou katevasa exoun k ta 2 fakelo log in.ta exw berdepsei e?!

Αρχειοθετημένο

Αυτό το θέμα έχει αρχειοθετηθεί και είναι κλειστό για περαιτέρω απαντήσεις.

Επισκέπτης
Αυτό το θέμα είναι πλέον κλειστό για περαιτέρω απαντήσεις.
  • Δημιουργία νέου...