[download]l2 C4 Server Files

Dicussion On any other Games. <br />
Post Reply
Psycho
Member
Posts: 116
Joined: Sat Jan 24, 2004 2:56 pm

Post by Psycho »

GUIA PARA MONTAR UN SERVER C4 BY OURO [in outpost By YoKo][Ver1.1]
------------------------------------------------------------ -----------------------------

Para levantar un servidor necesitas:
Java <a href='http://java.sun.com/j2se/1.5.0/download.jsp' target='_blank'>http://java.sun.com/j2se/1.5.0/download.jsp</a> descargar el JDK 5.0 Update 6

Eclipse <a href='http://download.eclipse.org/eclipse/dow ... s/R-3.1-20' target='_blank'>http://download.eclipse.org/eclipse/dow ... -3.1-20</a> 0506271435/index.php (plataforma para windows)
Wampserver <a href='http://prdownloads.sourceforge.net/wamp ... 5_1.4.4.ex' target='_blank'>http://prdownloads.sourceforge.net/wamp ... .4.4.ex</a> e
Navicat <a href='http://www.navicat.com/download.html' target='_blank'>http://www.navicat.com/download.html</a> (para windows tambien)
Ahora la guia paso a paso:

Paso 1
Primero instalamos java y el navicat. y descomprimimos eclipse en la carpeta c:\eclipse

Despues de todo esto necesitamos 2 archivos: el programa del server y el datapack necesario. Asi que abrimos el eclipse c:\eclipse\eclipse.exe
Al abrirlo te preguntara lo tipico, si aceptamos la condiciones bla bla bla bla.... y el directorio del workspace.. quedaos muy bien en donde se pone.
Después que tengas la ventana te vas al menú help > software updates > find and install
Después selecciona: "Search new features to install" aparece un menú nuevo... Click en: New Remote Site e introduce:

Name: subeclipse
URL: <a href='http://subclipse.tigris.org/update' target='_blank'>http://subclipse.tigris.org/update</a>

Cuando des ok selecciona subeclipse y después el típico next.. next... yes ,finalizar.. next, next, finish......
Esto instalará subeclipse para poder manejar los repositorios SVN para esto te preguntaran si vas a reiniciar eclipse pulsa en yes... y si no se vuelve a abrir el puto eclipse simplemente vuelvelo a abrir manualmente....
Dificil? No cuentes royos... segunda parte....

PASO 2

Abrimos eclipse... menú Window > Preferences > Java > Installed Jres
Deselecciona el Jre y selecciona el JDK después dale ok, si no te sale el JDK simplemente le das a search y pones para que busque en C:, si no os sale nada esque no teneis instalado el JDK !!! brutos!!!
Seguimos...
Menú Window > Show view > Other > SVN > SVN Repository

Después te aparece un area.. que esta en blanco.. click boton derecho en ella: NEW > NEW repository location

Despues rellena los campos de la siguiente manera:

URL: <a href='https://opensvn.csie.org/L2J_Datapack/trunk' target='_blank'>https://opensvn.csie.org/L2J_Datapack/trunk</a> Aceptamos

Expande la opción +https://opensvn.csie.org/L2J_Datapack/trunk, click derecho en la opción datapack_development > Check out as project..( o check out..) te saldra otra ventana, nos fijamos que este en workspace y le dais a finalizar.
Después de un rato (Toma un tiempo bien largo por favor sé paciente) se verá en una ventana llamada navigate.. "Datapack_development" expandelo y busca el archivo build.xml
click con el boton derecho Run > 1 Ant Build
Después tendremos por fin el DATAPACK COMPILADO buscalo en la carpeta de workspace\datapack_development\build con el nombre de l2j-datapack.zip
Bien tenemos el datapack, ni se os ocurra tocarlo todavia!

PASO 3

Necesitaremos el archivo del server... para ello tambien vamos a compilar paso a paso...
Ejecuta el eclipse.. window > show view > svn repository
Click en la parte en blanco de la "ventana" del svn repository NEW > Repository Location
Rellena los campos con:
URL: <a href='https://opensvn.csie.org/l2jc4/trunk/' target='_blank'>https://opensvn.csie.org/l2jc4/trunk/</a>
User: anonymous ( Hace falta que repita que Quizas ESTO NO SALGA??, finalizar...)
Expande +https://opensvn.csie.org/l2jc4/trunk/ click derecho en L2_Gameserver > Checkout as project (ejem... puede que pase lo mismo que con el datapack, es mas que posible de hecho)
Despues de un rato(paciencia, este es mas corto) te vas a la ventana de navegación...
Expandimos L2_Gamseserver, buscamos el archivo build.xml click derecho > Run > 1 Ant Build

Felicidades tenemos el segundo archivo la ultima versión del SERVER L2J Se encuentra en
workspace\L2_GameServer\build con el nombre de l2j-server.zip
Ahora la cosa se complica:

PASO 4

Descomprimimos el l2j-server.zip en la carpeta: c:\server lineage, después descomprimimos el l2j_Datapack.zip sobre la carpeta Gameserver que esta dentro de "server lineage" (vas a renombrar los archivos que te pide.. asi que le das yes to all)...
Bien.. despues de todo esto.. tenemos que instalar el wampserver....
Así que lo abrimos
Le ponemos siguiente, aceptar la licencia, siguiente, nos preguntara el directorio.. lo dejamos como está,siguiente y nos pregunta si queremos arrancar wamp cada vez que se ejecute windows, lo seleccionamos siguiente, al terminar de instalar nos pregunta algo de carpetas.. no hacemos nada... lo dejamos como esta solo le apretamos en aceptar, despues nos pedira seleccionar el archivo del explorer (normalmente en c:\windows\) despues aceptar, si, yes, oh yeah y finalizar...
Corremos el wamp server Menu inicio > Programas > Wampaserver > wampserver start o algo así
Abrimos navicat
Click derecho en el campo de connections y le damos en New Connection
Luego ponemos los datos
hostname: localhost
puerto: 3306
usuario: root
password: EL PASSWORD DE LA BASE DE DATOS (ver mas abajo)
Volvemos a la ventana de connections seleccionamos localhost y hacemos click en manage users.
Seleccionamos el usuario root@localhost y hacemos click en edit user
Dejamos los datos como están excepto el password que lo vas a cambiar NOTA PARA REALMENTE ESTUPIDOS
ESTE PASSWORD NO SE LES VAYA A OLVIDAR QUE ES NECESARIO PARA ADMINISTRAR EL SERVER.. POR LO CUAL PIDO QUE SE HAGAN CON UNA CONTRASEÑA SEGURA Y SE LO ANOTEN EN ALGUNA PARTE INTIMA (LO SIENTO PARA USUARIOS QUE NO TENGAN IMAGINACIÓN ILUSTRATIVA PERO ES NECESARIO) ESTE PASSWORD LO LLAMARÉ

"EL PASSWORD DE LA BASE DE DATOS" ¿OK?

Despues click derecho en localhost > New Database
Y ponemos en la primera linea:
l2jdb
y pulsamos ok
Cerramos navicat

PASO 5

Vamos a la carpeta del server (c:\server lineage\) y nos dirigimos a la carpeta tools... ahi hay un archivo llamado: database_installer.bat, lo abrimos con un editor de textos (por ejemplo block de notas) para los queno saben como... menu de inicio > programas > accesorios > block de notas; despues en menú archivo > abrir.. seleccionamos en tipo "Todos los archivos" y buscamos el archivo Database_intaller.bat que esta en la carpeta c:\server lineage\tools\ O mas facil. pinchamos el database_installer.bat y clic con el boton derecho y editar...

Despues aparecerá algo así:
@echo off

REM ############################################
REM ## You can change here your own DB params ##
REM ############################################
REM MYSQL BIN PATH
set mysqlBinPath=C:\Program Files\MySQL\MySQL Server 4.1\bin<------------------ponemos C:\wamp\mysql\bin

REM LOGINSERVER
set lsuser=root
set lspass=PASSWORD DE LA BASE DE DATOS
set lsdb=l2jdb
set lshost=localhost

REM GAMESERVER
set gsuser=root
set gspass=PASSWORD DE LA BASE DE DATOS
set gsdb=l2jdb
set gshost=localhost
REM ############################################
------------------------------------------------------------ ----------------------

Lo demás lo dejamos como está, a continuación guardamos el archivo (menú archivo > guardar) cerramos block de notas
Y después ejecutamos el archivo Database_intaller.bat y seleccionamos las opciones F,F, Y.
hasta aqui todo bien?NO???? PUES REVISAR TODO!

Paso 6

Abrimos la carpeta del server y nos vamos a Gameserver/config... abrimos el archivo server.properties con el block de notas. Tendremos algo así:

# 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=82.28.82.28 <-------- esto es un ejemplo, aqui colocar vuestra ip WAM

# 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 <----- otro ejemplo, aqui vuestra ip LAN; si tienes modem Tu IP siempre es WAM

# 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<----------esto solo se debe cambiar por la ip WAM si tienes modem

# This is the server id that the gameserver will request (i.e. 0 is Bartz)
RequestServerID = 0
# 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/passw ord=
Login=root
Password= PASSWORD DE LA BASE DE DATOS
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=.*

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

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

Debug = False
Assert = False
Developer = False
# if true the server will be a test server (listed by clients setted up to list testserver)
TestServer = False

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

# Setting for serverList
# Displays [] in front of server name
ServerListBrackets = False
# Displays a clock next to the server name
ServerListClock = False
# If true, the server will be set as gm only at startup
ServerGMOnly = False

# Minimum and maximum protocol revision that server allow to connect.
# You must keep MinProtocolRevision <= MaxProtocolRevision.
MinProtocolRevision = 560
MaxProtocolRevision = 659<------------ Ponerlo en 999 para aseguraros.

# Rate control, float values
RateXp = 1.
RateSp = 1.
RatePartyXp = 1.
RatePartySp = 1.
RateDropAdena = 1.
RateConsumableCost = 1.
RateDropItems = 1.
RateDropSpoil = 1.
RateQuestsReward = 1.
RateKarmaExpLost = 1
RateSiegeGuardsPrice = 1

# Player Drop Rate control, values are the percent values
PlayerDropLimit = 3
PlayerRateDrop = 5
PlayerRateDropItem = 70
PlayerRateDropEquip = 25
PlayerRateDropEquipWeapon = 5

# Karma Drop Rate control, values are the percent values
KarmaDropLimit = 10
KarmaRateDrop = 70
KarmaRateDropItem = 50
KarmaRateDropEquip = 40
KarmaRateDropEquipWeapon = 10

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

# This is setting of experimental Client <--> Server Player coordinates synchronization,
# 0 - no synchronization at all
# 1 - parcial synchronization Client --> Server only * using this option it is difficult for players to bypass obstacles
# 2 - parcial synchronization Server --> Client only
# 3 - full synchronization Client <--> Server
# -1 - Old system: will synchronize Z only
CoordSynchronize = -1

# 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
AllowWear = True
#Enable tests
AllowLottery = False
AllowRace = False
AllowWater = False

#Enable pet for rent(wyvern&strider) from pet managers
AllowRentPet = False

# 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 <------------ si no cambiais esto por True no os hareis GM`s

# 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, AllowL2Wal
------------------------------------------------------------ ------------------
------------------------------------------------------------ ------------------
Ni que decir tiene que guardeis no?
Lo demás son opciones del server que debes de poner a tu gusto. Aunque no son muy importantes.Luego volvemos atras y atras, y entramos en login/config y en loginserver.properties y nos encontraremos con esto:

# 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 <---------poned vuestra ip WAM

# 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 <------- poned vuestra ip LAN, o WAM para los que tengan modem.

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

# 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 <----------PONER ESTO EN TRUE: ESTO NOS A TRAIDO CAIDA DE CABEZAS....

# If false, the licence (after the login) will not be shown
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/passw ord=
Login=root
Password= PASSWORD DE LA BASE DE DATOS
MaximumDbConnections=10

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

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

Debug = False
Assert = False
Developer = False


Y ahora viene un truquito By Ouro.
Nos vamos a la carpeta Gamserver >data y abrimos con editar el servername.xml y el primer server el Bartz lo cambiamos por otro a nuestro gusto..." Ouro Worl", luego nos vamos a loginserver> servername.xml y tambien lo cambiamos igual. Luego a loginserver> registerservername.bat y ponemos 0. Se os creara un archivo llamado hexid 0] o algo asi, pues este archivo lo copiamos y lo ponemos en gameserver> config y le cambiamos el nombre por hexid y ya tenemos el nombre de nuestro server cambiado!

Y YA TENEMOS EL SERVER COMPLETADO!


Ahora lo unico que queda es abrir los puertos, que ya lo explique en una pagina de estas..... y aparte de los puertos 7777,80,2106 abrid tambien el 9014.
Para administrar el server hacerlo desde el navicat.. desde alli esta todo. Y que no se os olvide tener activado el WAMP.
Para clientes C4 dejar que actualice Una vez o hasta que sea mas o menos necesario, y luego modificar el host, que se encuentra en C:\WINDOWS\system32\drivers\etc. y la parte de abajo os deveria quedar asi:
ip WAN o LAN L2authd.lineage2.com
ip WAN o LAN L2testauthd.lineage2.com
Esto es como si fuera vuestro parche para jugar vuestro server.

El eclipse es para tener actualizado vuestro server.. asi que una vez cada semana mas o menos copiais el Datapck nuevo y le dais a upgrade en el database_installer.bat. Esto es muy importante para correjir bugs y mas o menos se corrigen o añaden cosas nuevas 3 veces al dia gracias al *** team y *** team of Datapack.
Espero que haya salido todo bien.
Saludos.

[Guia actualizada By Ouro -- in outpost By YoKo ;) ]





<img src='http://img145.imageshack.us/img145/3999/firma1an0.jpg' border='0' alt='user posted image' />
Slayer
&lt;3 bd long time
Posts: 947
Joined: Thu Mar 17, 2005 9:08 pm

Post by Slayer »

There is nothing special about these files. You can get them anywhere.. L2J sucks..
<img src='http://i9.tinypic.com/2vs292h.jpg' border='0' alt='user posted image' />
Post Reply