Hi i fixed my problem with log in but now i have other problem now is the chat i can't write anything and when i go in console show this error :
thanks
Hi i fixed my problem with log in but now i have other problem now is the chat i can't write anything and when i go in console show this error :
thanks
check your .ini config
and be sure they are in the same dir of Exe
Chat/.ini
Auth/.ini
Game/.ini
No the problem here is different , look at SendEnterChat function you will see there the code :
when you Login the gameserver sets this field to some number , in my case it was 6 . now if you look atCode:app->db->prepare("SELECT CharID,CharName,OnlineID FROM characters WHERE AccountID = ? AND OnlineID = ?");
this->GetavatarHandle() , this function returns a number that its not equal to the AccountID field , in that case the query will return nothing .
you can delete AND OnlineID = ? and rebuild , this will solve your problem for now .
That not the solution.
- - - Updated - - -
The right solution, ONLY FOR NOW, is doing this.
Go to ChatServer.cpp
Change the current AcquireSerialId for this
- - - Updated - - -Code:RwUInt32 AcquireSerialId(void) { if(m_uiSerialId++) { if(m_uiSerialId == 0xffffffff)//INVALID_SERIAL_ID) m_uiSerialId = 0; } return m_uiSerialId+5; }
Anyway is wrong, because the chatserver have a problem. The problem is when you Close the GameServer and reopen, you can't do that. You have to Close Both at the sametime.
Last edited by Nicolas321; 17-07-14 at 08:57 PM.