12.05.2008, 07:52
|
#4
|
Пользователь
Регистрация: 10.05.2008
Возраст: 40
Сообщений: 28
Отблагодарили 2 раз(а)
Рейтинг мнений:
|
Нажимаем любую клавишу... инсталяция завершена окно будет закрыто.
2) Далее находим папку Login затем заходим в папку Config открываем и ищем файл loginserver.properties открываем его с помощью блокнота и видим следующий текст:
# 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=127.0.0.1 < ----------- Прописываем свой внешний IP для игры через интернет
# This is transmitted to the client from the same network, so it has to be a local IP or resolvable hostname
InternalHostname=127.0.0.1 <------------- Оставляем по умолчанию 127.0.0.1 если вы хотите играть один на сервере. или прописываем свой внутрений 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.SQLServerDriv er
URL=jdbc:mysql://localhost/l2jdb
#URL=jdbc:hsqldb:hsql://localhost/l2jdb
#URL=jdbc:sqlserver://localhost/database=l2jdb/user=sa/password=
Login=root
Password= <------------------------------------------------------------ Сдесь прописываем свой пароль к базе.
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=False
#FloodProtection. time in ms
EnableFloodProtection=True
FastConnectionLimit=15
После того как всё было сделано сохраняем и закрываем файл.
3)Далее находим папку Gameserver открываем потом открываем папку Config в ней находим файл: server.properties и открываем его с помощью блокнота, появляется следующий текст :
# 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=127.0.0.1 < ----------- Прописываем свой внешний IP для игры через интернет
# 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=127.0.0.1 <------------- Оставляем по умолчанию 127.0.0.1 если вы хотите играть один на сервере. или прописываем свой внутрений 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.SQLServerDriv er
URL=jdbc:mysql://localhost/l2jdb
#URL=jdbc:hsqldb:hsql://localhost/l2jdb
#URL=jdbc:sqlserver://localhost/database=l2jdb/user=sa/password=
Login=root
Password= <------------------------------------------------------------ Сдесь прописываем свой пароль к базе.
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 = 828
MaxProtocolRevision = 828
После того как всё было сделано сохраняем и закрываем файл.
4) Возвращаемся в папку Login и запускаем следующий ярлык : RegisterGameServer.bat появилось окно для создания файла hexid.txt ставим значение 1 и нажимаем Enter
и у вас должен появится файл hexid(server 1).txt переименовываем его в hexid.txt после чего копируем и открываем папку Gameserver далее Сonfig и вставляем файл hexid.txt
Установка сервера закончена,
теперь запускаем startLoginServer.bat и startGameServer.bat ждем окончательной загрузки, после которой в окне startLoginServer появится следующий текст :
Login Server ready on *:2106
Updated Gameserver [1] Bartz IP's:
InternalIP: 127.0.0.1
ExternalIP: 127.0.0.1
и в окне startGameServer :
GameServer Started, free memory 477 Mb of 762 Mb
Connecting to login on 127.0.0.1:9014
Maximum Numbers of Connected Players: 100
Telnet server is currently disabled.
Registered on login as Server 1 : Bartz
Всё сервер запущен приятной вам игры.
|
|
|