- Joined
- Oct 4, 2007
- Messages
- 173
- Reaction score
- 74
Ok, so... Main.exe or something dont like 127.0.0.1. It working with local ip.
ps. got auto crash when waiting on server select...
sMain->GetString("GameServer.Version", "") - we want here setting GameServer.Version and second argument is default value if we dont get anything from db
Ok, so in gameserver.conf we have GameServer.Code = 0.
Then in void MainApplication::Load() we load default settings for all servers
Ok, it's working, w8 a couple minutes i will upload all i have
My repo
With my current db, files and other.
Account in database user 123456
@Mulegend btw, can you give us any item_bag value? Or server by himself can make example?
So, it's about character_base table
ps. got auto crash when waiting on server select...
Because of this code...Now, i need help with gameserver, it closes right after it open
I changed server code in db and gameserver config, i cant even see logs to know what's wrong
Code:
void GameServer::LoadCommonSettings()
{
sLog->outInfo(LOG_DEFAULT, "Loading Common Settings...");
uint32 oldMSTime = getMSTime();
sMain->Load();
this->SetMaxConnectionsPerIP(sMain->GetInt32("Network.MaxConnectionPerIP", 0));
std::string temp_client_version = sMain->GetString("GameServer.Version", "");
char temp_client_version_buff[8];
memset(temp_client_version_buff, 0, 8);
memcpy(temp_client_version_buff, temp_client_version.c_str(), temp_client_version.size() > 8 ? 8 : temp_client_version.size());
Tokens tokens(temp_client_version_buff, '.');
this->SetGameServerVersion(0, tokens[0][0]);
this->SetGameServerVersion(1, tokens[1][0]);
this->SetGameServerVersion(2, tokens[1][1]);
this->SetGameServerVersion(3, tokens[2][0]);
this->SetGameServerVersion(4, tokens[2][1]);
sMain->GetString("GameServer.Version", "") - we want here setting GameServer.Version and second argument is default value if we dont get anything from db
Ok, so in gameserver.conf we have GameServer.Code = 0.
Then in void MainApplication::Load() we load default settings for all servers
and than settings for current serverQueryResult result1 = GameServerDatabase.Query("SELECT `key`, `value` FROM settings WHERE server_id = -1");
QueryResult result2 = GameServerDatabase.PQuery("SELECT `key`, `value` FROM settings WHERE server_id = '%u'", sGameServer->GetServerCode());
Ok, it's working, w8 a couple minutes i will upload all i have
My repo
You must be registered to see links
With my current db, files and other.
Account in database user 123456
@Mulegend btw, can you give us any item_bag value? Or server by himself can make example?
Oh ok... thinking2021-03-11_11:46:14 ERROR [ CHARACTER SELECT ] [SRV 0 -- 1501 - IP: 192.168.1.60 - MAC: B4:2E:99:C75:A3 - Account: 1-user - Character: 1-test] has wrong world 0.
So, it's about character_base table
Attachments
You must be registered for see attachments list
Last edited: