Closed Tibia-Servers closed 4 years ago
In config.lua, change serverName to otservbr
make sure config.php and config.lua connect to same database.
my config.php
// Gameserver info is used for client 11+ loginWebService $config['login_web_service'] = true; // loginWebService for client 11+ enabled? $config['gameserver'] = array( 'ip' => '127.0.0.1', 'port' => 7172, 'name' => 'otservbr' // Must be identical to config.lua (OT config file) server name. );
my config .lua
-- Map -- NOTE: set mapName WITHOUT .otbm at the end -- NOTE: unzip the map world.rar mapName = "otservbr" mapAuthor = "OTServBR"
Install this Lua script for loginWebService: https://github.com/Znote/ZnoteAAC/blob/master/LUA/TFS_10/revscriptsys/znote_login.lua
Place it in data/scripts/znote_login.lua and restart your OT. And test if it works.
When you start OT server, you will get message like this:
I can't connect with the character yet
Loaded all modules, server starting up... OTServBR-Global Server Online!
Map size: 34143x33812. Duplicate unique id: 25031 Map loading time: 0.063 seconds. [Network error - Connection::parseHeader] Invalid Client Login! Server Name mismatch! [Network error - Connection::parseHeader] Invalid Client Login! Server Name mismatch! `
Ahh right, you also need latest login.php https://github.com/Znote/ZnoteAAC/blob/master/login.php
Solved thanx you!
[Network error - Connection::parseHeader] Invalid Client Login! Server Name mismatch!
<-- console problemuse otservbr
$config['port'] = 7171; // Port number to connect to your OT.
I have been working without problems in the other updates `>> Loading config