ChatServer error

Results 1 to 4 of 4
  1. #1
    Enthusiast lobaosao is offline
    MemberRank
    Jun 2007 Join Date
    34Posts

    ChatServer error

    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


  2. #2
    Server Developer luiz45 is offline
    MemberRank
    Apr 2006 Join Date
    233Posts

    Re: ChatServer error

    check your .ini config
    and be sure they are in the same dir of Exe
    Chat/.ini
    Auth/.ini
    Game/.ini

  3. #3
    Apprentice theoddprince is offline
    MemberRank
    Jun 2014 Join Date
    20Posts

    Re: ChatServer error

    No the problem here is different , look at SendEnterChat function you will see there the code :
    Code:
    app->db->prepare("SELECT CharID,CharName,OnlineID FROM characters WHERE AccountID = ? AND OnlineID = ?");
    when you Login the gameserver sets this field to some number , in my case it was 6 . now if you look at
    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 .

  4. #4
    DBO Developer Nicolas321 is offline
    MemberRank
    May 2014 Join Date
    482Posts

    Re: ChatServer error

    That not the solution.

    - - - Updated - - -

    The right solution, ONLY FOR NOW, is doing this.

    Go to ChatServer.cpp

    Change the current AcquireSerialId for this

    Code:
    RwUInt32 AcquireSerialId(void)
    {
        if(m_uiSerialId++)
        {
            if(m_uiSerialId == 0xffffffff)//INVALID_SERIAL_ID)
                m_uiSerialId = 0;
        }
    
    
        return m_uiSerialId+5;
    }
    - - - Updated - - -

    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.



Advertisement