Manual L2Emu
Мануал по установке сервера L2emu
На примере установки сервера L2emu - gracia 2 – SHARE.
Надеюсь Navicat, MySQL и Java у Вас уже установленны. Если Вы не знаете что это, просто закройте мануал, поверьте он Вам не поможет.
Итак открываем Navicat и создаем базу данных l2emu_db,с этим пока все.Теперь перейдем к установке самой базы и сервера. Открываем папку с сервером и находим папку tools, в ней находим файлик vars.txt, открываем его например блокнотом и редактируем :
До редактирования
@set mysqlPath=
@set mysqlBinPath=
@set mysqldumpPath=
@set lsuser=
@set lspass=
@set lsdb=
@set lshost=
@set gsuser=
@set gspass=
@set gsdb=
@set gshost=
Что должно получится после
@set mysqlPath="C:\Server\MySQL\MySQL Server 4.1\bin\mysql"
@set mysqlBinPath="C:\Server\MySQL\MySQL Server 4.1\bin"
@set mysqldumpPath="C:\Server\MySQL\MySQL Server 4.1\bin\mysqldump"
@set lsuser=root
@set lspass= Ваш пароль к MySQL
@set lsdb=l2emu_db
@set lshost=localhost
@set gsuser=root
@set gspass= Ваш пароль к MySQL
@set gsdb=l2emu_db
@set gshost=localhost
P.S Пути к папке MySQL разумеется изменяете под свои.
C этим тоже разобрались, базу пока не устанавливаем, можете попробовать, кроме ошибки Вы ничего не увидите ). Потом топаем сюда --------> server\gameserver\config\main
и редактируем файл gameserver.properties:
# -----------------------
# Secton: Client Protocol
# -----------------------
# Minimum and maximum protocol revision that server allow to connect.
# You must keep MinProtocolRevision <= MaxProtocolRevision.
MinProtocolRevision = 1
MaxProtocolRevision = 999
# ------------------------
# Section: Server Capacity
# ------------------------
# Define how many players are allowed to play simultaneously on your server.
MaximumOnlineUsers = 1000
Потом сюда C:\server\gameserver\config\network редактируем файл network.properties
GameServerHostName = 127.0.0.1
GameServerPort = 7777
# this is the Loginserver host and port that this gameserver will try to connect to.
LoginPort = 9014
LoginHost = 127.0.0.1
# This is transmitted to the clients connecting from an external network,
# so it has to be a public IP or resolvable hostname.
ExternalHostname = Ваш внешний 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
В этом же файле ищем и изменяем:
# ----------------------------
# Section: Database Connection
# ----------------------------
# VCT section
DatabaseHost = localhost
DatabaseName = L2Emu_DB
# MySQL Driver we will use to connect to database
Driver= com.mysql.jdbc.Driver
# here are some other drivers :
# Driver= org.hsqldb.jdbcDriver
# Driver= com.microsoft.sqlserver.jdbc.SQLServerDriver
# URL to connect to database.
URL = jdbc:mysql://localhost/L2Emu_DB
# here are some other url's :
# URL = jdbc:hsqldb:hsql://localhost/L2Emu_DB
# URL = jdbc:sqlserver://localhost/database=L2Emu_DB/user=sa/password=
# your database login (by default MySQL uses = root, Warning: Not a Safe Setting! try to use your own login)
Login = root
# your database password (by default MySQL uses = root, Warning: Not a Safe Setting! try to use your own pass)
Password = Ваш пасс на MySQL
# define here how many connections are allowed at the same time.
MaximumDbConnections = 550 <--- число одновременных подключений ( пока можете не трогать, :) )
Далее тут же изменяем файл security.properties ,отключаем GG
# ------------------------
# Section: GG (Game Guard)
# ------------------------
# Enforce gameguard for clients
# GameGuardEnforce - enforces gameguard query on character login
# GameGuardProhibitAction - don't allow player to perform trade, talk with npc
# or move until gameguard reply is received.
GameGuardEnforce = ставим false
GameGuardProhibitAction = ставим false
Все, теперь топаем сюда ------>C:\server\login\config\main и редактируем файл loginserver.properties если нам нужно сделать авторегистрацию а также отключаем GG
# ------------------
# Section: Accounts
# ------------------
# Automatically Create Accounts.
# default = false
AutoCreateAccounts = ставим true
# ------------------------
# Section: GG (Game Guard)
# ------------------------
# Enforce Game Guard Authorization from Client.
# Login Server will kick client if client bypassed GameGuard authentication
# default = true
ForceGGAuth = ставим false
Потом сюда \login\config\network файл database.properties
# Define MySQL Driver URL.
URL = jdbc:mysql://localhost/L2Emu_DB
# here you have some more urls:
# URL = jdbc:hsqldb:hsql://localhost/L2Emu_DB
# URL = jdbc:sqlserver://localhost/database = L2Emu_DB/user = sa /password = (your pass)
# Your login to Database (default = root)
Login = root
# Your password to database (default = root)
Password = соответственно Ваш пасс
# Define how many connections are allowed on your database.
MaximumDbConnections = 550 (число одновременных подключений)
Тут же редактим файл network.properties вписываем наш IP
# Bind ip of the loginserver, use 0.0.0.0 to bind on all available IPs
LoginServerHostName = 127.0.0.1
LoginServerPort = 2106
# The port, ip on which login will listen for GameServers
LoginPort = 9014
LoginHostName = 127.0.0.1
Теперь топаем назад в папку tools и запускаем database_installer.bat, ждем завершения установки и проверяем появились ли таблицы нашей базы в Navicat , если появились , мои Вам поздравления ))), если нет, проверяем на ошибочки при редактировании файлов.
Осталась самая торжественная часть, регистрация сервера. Топаем в папку login и запускаем register_gameserver.bat, получившийся файл переименовываем в hexid.txt и закидываем его в gameserver\config\network.
На примере установки сервера L2emu - gracia 2 – SHARE.
Надеюсь Navicat, MySQL и Java у Вас уже установленны. Если Вы не знаете что это, просто закройте мануал, поверьте он Вам не поможет.
Итак открываем Navicat и создаем базу данных l2emu_db,с этим пока все.Теперь перейдем к установке самой базы и сервера. Открываем папку с сервером и находим папку tools, в ней находим файлик vars.txt, открываем его например блокнотом и редактируем :
До редактирования
@set mysqlPath=
@set mysqlBinPath=
@set mysqldumpPath=
@set lsuser=
@set lspass=
@set lsdb=
@set lshost=
@set gsuser=
@set gspass=
@set gsdb=
@set gshost=
Что должно получится после
@set mysqlPath="C:\Server\MySQL\MySQL Server 4.1\bin\mysql"
@set mysqlBinPath="C:\Server\MySQL\MySQL Server 4.1\bin"
@set mysqldumpPath="C:\Server\MySQL\MySQL Server 4.1\bin\mysqldump"
@set lsuser=root
@set lspass= Ваш пароль к MySQL
@set lsdb=l2emu_db
@set lshost=localhost
@set gsuser=root
@set gspass= Ваш пароль к MySQL
@set gsdb=l2emu_db
@set gshost=localhost
P.S Пути к папке MySQL разумеется изменяете под свои.
C этим тоже разобрались, базу пока не устанавливаем, можете попробовать, кроме ошибки Вы ничего не увидите ). Потом топаем сюда --------> server\gameserver\config\main
и редактируем файл gameserver.properties:
# -----------------------
# Secton: Client Protocol
# -----------------------
# Minimum and maximum protocol revision that server allow to connect.
# You must keep MinProtocolRevision <= MaxProtocolRevision.
MinProtocolRevision = 1
MaxProtocolRevision = 999
# ------------------------
# Section: Server Capacity
# ------------------------
# Define how many players are allowed to play simultaneously on your server.
MaximumOnlineUsers = 1000
Потом сюда C:\server\gameserver\config\network редактируем файл network.properties
GameServerHostName = 127.0.0.1
GameServerPort = 7777
# this is the Loginserver host and port that this gameserver will try to connect to.
LoginPort = 9014
LoginHost = 127.0.0.1
# This is transmitted to the clients connecting from an external network,
# so it has to be a public IP or resolvable hostname.
ExternalHostname = Ваш внешний 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
В этом же файле ищем и изменяем:
# ----------------------------
# Section: Database Connection
# ----------------------------
# VCT section
DatabaseHost = localhost
DatabaseName = L2Emu_DB
# MySQL Driver we will use to connect to database
Driver= com.mysql.jdbc.Driver
# here are some other drivers :
# Driver= org.hsqldb.jdbcDriver
# Driver= com.microsoft.sqlserver.jdbc.SQLServerDriver
# URL to connect to database.
URL = jdbc:mysql://localhost/L2Emu_DB
# here are some other url's :
# URL = jdbc:hsqldb:hsql://localhost/L2Emu_DB
# URL = jdbc:sqlserver://localhost/database=L2Emu_DB/user=sa/password=
# your database login (by default MySQL uses = root, Warning: Not a Safe Setting! try to use your own login)
Login = root
# your database password (by default MySQL uses = root, Warning: Not a Safe Setting! try to use your own pass)
Password = Ваш пасс на MySQL
# define here how many connections are allowed at the same time.
MaximumDbConnections = 550 <--- число одновременных подключений ( пока можете не трогать, :) )
Далее тут же изменяем файл security.properties ,отключаем GG
# ------------------------
# Section: GG (Game Guard)
# ------------------------
# Enforce gameguard for clients
# GameGuardEnforce - enforces gameguard query on character login
# GameGuardProhibitAction - don't allow player to perform trade, talk with npc
# or move until gameguard reply is received.
GameGuardEnforce = ставим false
GameGuardProhibitAction = ставим false
Все, теперь топаем сюда ------>C:\server\login\config\main и редактируем файл loginserver.properties если нам нужно сделать авторегистрацию а также отключаем GG
# ------------------
# Section: Accounts
# ------------------
# Automatically Create Accounts.
# default = false
AutoCreateAccounts = ставим true
# ------------------------
# Section: GG (Game Guard)
# ------------------------
# Enforce Game Guard Authorization from Client.
# Login Server will kick client if client bypassed GameGuard authentication
# default = true
ForceGGAuth = ставим false
Потом сюда \login\config\network файл database.properties
# Define MySQL Driver URL.
URL = jdbc:mysql://localhost/L2Emu_DB
# here you have some more urls:
# URL = jdbc:hsqldb:hsql://localhost/L2Emu_DB
# URL = jdbc:sqlserver://localhost/database = L2Emu_DB/user = sa /password = (your pass)
# Your login to Database (default = root)
Login = root
# Your password to database (default = root)
Password = соответственно Ваш пасс
# Define how many connections are allowed on your database.
MaximumDbConnections = 550 (число одновременных подключений)
Тут же редактим файл network.properties вписываем наш IP
# Bind ip of the loginserver, use 0.0.0.0 to bind on all available IPs
LoginServerHostName = 127.0.0.1
LoginServerPort = 2106
# The port, ip on which login will listen for GameServers
LoginPort = 9014
LoginHostName = 127.0.0.1
Теперь топаем назад в папку tools и запускаем database_installer.bat, ждем завершения установки и проверяем появились ли таблицы нашей базы в Navicat , если появились , мои Вам поздравления ))), если нет, проверяем на ошибочки при редактировании файлов.
Осталась самая торжественная часть, регистрация сервера. Топаем в папку login и запускаем register_gameserver.bat, получившийся файл переименовываем в hexid.txt и закидываем его в gameserver\config\network.
|