My Server not show current player online !

Results 1 to 12 of 12
  1. #1
    Gunz General Develop Gun[Lengend] is offline
    MemberRank
    Jan 2010 Join Date
    Gunz Viet NamLocation
    312Posts

    My Server not show current player online !

    My server not show current player online .
    Always show 0/500 player. Can anyone help me to fix.
    I build from gunz 1.5 Source.


  2. #2
    Currently Stoned ! Ronny786 is offline
    MemberRank
    Dec 2011 Join Date
    Lost WorldLocation
    984Posts

    Re: My Server not show current player online !

    Zzz Reestart everything !! SQL Server, Locator, Server !

  3. #3
    DarKGunZ Owner WooAf is offline
    MemberRank
    Dec 2007 Join Date
    CanadaLocation
    485Posts

    Re: My Server not show current player online !

    You probly fucked something on your source.

  4. #4
    Gunz General Develop Gun[Lengend] is offline
    MemberRank
    Jan 2010 Join Date
    Gunz Viet NamLocation
    312Posts

    Re: My Server not show current player online !

    Zzz Reestart everything !! SQL Server, Locator, Server !
    Thank for support Ronny but i think it not from it.
    You probly fucked something on your source.
    Yes i know, but i not edit something relate with Current player.
    But with match server, i comment out where error occured like Unitest++, MMonitor.h :D
    So how to fix ?

  5. #5
    Currently Stoned ! Ronny786 is offline
    MemberRank
    Dec 2011 Join Date
    Lost WorldLocation
    984Posts

    Re: My Server not show current player online !

    Quote Originally Posted by Gun[Lengend] View Post
    Thank for support Ronny but i think it not from it.

    Yes i know, but i not edit something relate with Current player.
    But with match server, i comment out where error occured like Unitest++, MMonitor.h :D
    So how to fix ?
    Doesnt matter with MMonitor or Unittest ... Check whther if ur matchserver is showing CLIENTCOUNT.. if it is showing then ur source is correct... check DB.. Serverstatus.. if serverstatus still shows 0 even clientcount is 1 ..then that is db error. !

  6. #6
    Gunz General Develop Gun[Lengend] is offline
    MemberRank
    Jan 2010 Join Date
    Gunz Viet NamLocation
    312Posts

    Re: My Server not show current player online !

    Code:
    [09/07/12 23:03:27]  MMatchDBMgr::ExceptionHandler
    ErrSQL( {CALL spUpdateServerStatus_Netmarble (0, 0, 1)} ), ErrCode( -1 )
    ErrMsg - Could not find stored procedure 'spUpdateServerStatus_Netmarble'.
    State:37000,Native:2812,Origin:[Microsoft][ODBC SQL Server Driver][SQL Server]
    
    [09/07/12 23:03:27] [CRITICAL ERROR] DB Connection Lost.
    
    [09/07/12 23:03:27] DBMS connected
    
    [09/07/12 23:03:57] GARBAGE SESSION CLEANING : m_This(02), ClientCount=0, SessionCount=1, AgentCount=1, CommandPool=2, objHistoryCount=1
    
    
    [09/07/12 23:03:57]  MMatchDBMgr::ExceptionHandler
    ErrSQL( {CALL spUpdateServerStatus_Netmarble (0, 0, 1)} ), ErrCode( -1 )
    ErrMsg - Could not find stored procedure 'spUpdateServerStatus_Netmarble'.
    State:37000,Native:2812,Origin:[Microsoft][ODBC SQL Server Driver][SQL Server]
    
    [09/07/12 23:03:57]  MMatchDBMgr::ExceptionHandler - Disconnect
    [09/07/12 23:03:57]  MMatchDBMgr::ExceptionHandler - Reconnect
    [09/07/12 23:03:57]  MMatchDBMgr::ExceptionHandler - This(27036760)
    [09/07/12 23:03:57] [CRITICAL ERROR] DB Connection Lost.
    
    [09/07/12 23:03:57] DBMS connected
    
    [09/07/12 23:03:57] [CRITICAL ERROR] UpdateServerStatusDB - Shutdown
    
    [09/07/12 23:03:57] MatchServer Shutting down...
    That from Server log, and i sure that DB Error, but i using DB of emisand ?

    in DB the Proceduce of ServerStatus table is : [GunzDB].[dbo].[spUpdateServerStatus]
    but in the log, it call spUpdateServerStatus_Netmarble @@!
    Is that problem ?

  7. #7
    Currently Stoned ! Ronny786 is offline
    MemberRank
    Dec 2011 Join Date
    Lost WorldLocation
    984Posts

    Re: My Server not show current player online !

    Quote Originally Posted by Gun[Lengend] View Post
    Code:
    [09/07/12 23:03:27]  MMatchDBMgr::ExceptionHandler
    ErrSQL( {CALL spUpdateServerStatus_Netmarble (0, 0, 1)} ), ErrCode( -1 )
    ErrMsg - Could not find stored procedure 'spUpdateServerStatus_Netmarble'.
    State:37000,Native:2812,Origin:[Microsoft][ODBC SQL Server Driver][SQL Server]
    
    [09/07/12 23:03:27] [CRITICAL ERROR] DB Connection Lost.
    
    [09/07/12 23:03:27] DBMS connected
    
    [09/07/12 23:03:57] GARBAGE SESSION CLEANING : m_This(02), ClientCount=0, SessionCount=1, AgentCount=1, CommandPool=2, objHistoryCount=1
    
    
    [09/07/12 23:03:57]  MMatchDBMgr::ExceptionHandler
    ErrSQL( {CALL spUpdateServerStatus_Netmarble (0, 0, 1)} ), ErrCode( -1 )
    ErrMsg - Could not find stored procedure 'spUpdateServerStatus_Netmarble'.
    State:37000,Native:2812,Origin:[Microsoft][ODBC SQL Server Driver][SQL Server]
    
    [09/07/12 23:03:57]  MMatchDBMgr::ExceptionHandler - Disconnect
    [09/07/12 23:03:57]  MMatchDBMgr::ExceptionHandler - Reconnect
    [09/07/12 23:03:57]  MMatchDBMgr::ExceptionHandler - This(27036760)
    [09/07/12 23:03:57] [CRITICAL ERROR] DB Connection Lost.
    
    [09/07/12 23:03:57] DBMS connected
    
    [09/07/12 23:03:57] [CRITICAL ERROR] UpdateServerStatusDB - Shutdown
    
    [09/07/12 23:03:57] MatchServer Shutting down...
    That from Server log, and i sure that DB Error, but i using DB of emisand ?

    in DB the Proceduce of ServerStatus table is : [GunzDB].[dbo].[spUpdateServerStatus]
    but in the log, it call spUpdateServerStatus_Netmarble @@!
    Is that problem ?


    Add this to spUpdateServerStatus (REPLACE) :

    USE [GunzDB]
    GO
    /****** Object: StoredProcedure [dbo].[spUpdateServerStatus] Script Date: 09/05/2012 12:12:57 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    /* ¼­¹ö µ¿Á¢ÀÚ »óÅ */
    ALTER PROC [dbo].[spUpdateServerStatus]
    @CurrPlayer smallint,
    @ServerID int
    AS
    SET NOCOUNT ON
    UPDATE ServerStatus
    Set CurrPlayer=@CurrPlayer, Time=GETDATE()
    WHERE ServerID=@ServerID

  8. #8
    Gunz General Develop Gun[Lengend] is offline
    MemberRank
    Jan 2010 Join Date
    Gunz Viet NamLocation
    312Posts

    Re: My Server not show current player online !

    I have script like this on spUpdateServerStatus :|.
    So Match Server calling wrong Procedure ?
    It call spUpdateServerStatus_Netmarble, if i rename, have error : Procedure or function spUpdateServerStatus_Netmarble has too many arguments specified.

  9. #9
    Currently Stoned ! Ronny786 is offline
    MemberRank
    Dec 2011 Join Date
    Lost WorldLocation
    984Posts

    Re: My Server not show current player online !

    post that thing please?

  10. #10
    Gunz General Develop Gun[Lengend] is offline
    MemberRank
    Jan 2010 Join Date
    Gunz Viet NamLocation
    312Posts

    Re: My Server not show current player online !

    If i rename spUpdateServerStatus_Netmarble :

    Serverlog :
    Code:
    [09/07/12 23:55:55]  MMatchDBMgr::ExceptionHandler
    ErrSQL( {CALL spUpdateServerStatus_Netmarble (0, 0, 1)} ), ErrCode( -1 )
    ErrMsg - Procedure or function spUpdateServerStatus_Netmarble has too many arguments specified.
    State:37000,Native:8144,Origin:[Microsoft][ODBC SQL Server Driver][SQL Server]
    
    [09/07/12 23:55:55] [CRITICAL ERROR] DB Connection Lost.
    
    [09/07/12 23:55:55] DBMS connected
    if I not rename, i get error :
    Code:
    [09/08/12 00:00:15]  MMatchDBMgr::ExceptionHandler
    ErrSQL( {CALL spUpdateServerStatus_Netmarble (0, 0, 1)} ), ErrCode( -1 )
    ErrMsg - Could not find stored procedure 'spUpdateServerStatus_Netmarble'.
    State:37000,Native:2812,Origin:[Microsoft][ODBC SQL Server Driver][SQL Server]
    
    [09/08/12 00:00:15] [CRITICAL ERROR] DB Connection Lost.
    in spUpdateServerStatus :
    Code:
    set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    GO
    /* ¼­¹ö µ¿Á¢ÀÚ »óÅ */
    ALTER PROC [dbo].[spUpdateServerStatus]
    @CurrPlayer smallint,
    @ServerID int
    AS
    SET NOCOUNT ON
    UPDATE ServerStatus 
    Set CurrPlayer=@CurrPlayer, Time=GETDATE() 
    WHERE ServerID=@ServerID
    I build in Korea Release publish

  11. #11
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Re: My Server not show current player online !


  12. #12
    Gunz General Develop Gun[Lengend] is offline
    MemberRank
    Jan 2010 Join Date
    Gunz Viet NamLocation
    312Posts

    Re: My Server not show current player online !

    oh Sorry i'm find in my source and i was fix for myself, thank Ronny and Vusion to help, like both of you :

    Here that a fix :
    MMatchServer.cpp
    Find and comment out like me :
    Code:
    #ifdef LOCALE_KOREA		
    		int nNatePlayer = 0;
    
    		for(MMatchObjectList::iterator iter = m_Objects.begin(); iter != m_Objects.end(); iter++) 
    		{
    			MMatchObject* pObj = (MMatchObject*)iter->second;
    			if( pObj->GetAccountInfo()->m_nCCode == 30 ) { nNatePlayer++; }
    		}
    
    //		bResult = m_MatchDBMgr.UpdateServerStatus(MGetServerConfig()->GetServerID(), nCurPlayer, nNatePlayer);//Gun edit DB error
    //#else
    		bResult = m_MatchDBMgr.UpdateServerStatus(MGetServerConfig()->GetServerID(), nCurPlayer);
    #endif
    Oh so amazing that i found different way Vusion :D



Advertisement