Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 17:35

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Help] AccountServer [Crash]

Discussion on [Help] AccountServer [Crash] within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2012
Posts: 66
Received Thanks: 4
Exclamation [Help] AccountServer [Crash]

Hello everyone, so here is my concern my AccountServer.exe crash constantly when I look rpt file and I did a search in the map file I found this...:

Code:
0001:0001d1b0      ?Fetch@CBuffer2@@QAEPAV1@PAPAV1@KPAVCRC32@@@Z 0041e1b0 f   buffer.obj
then the file buffer.cpp I have this:

Code:
CBuffer2* CBuffer2::Fetch( CBuffer2** ppRecvBuffer, DWORD dwBytes, CRC32* pcrc )
{

    crc( pcrc );    // m_pcrc

    m_pTail        += dwBytes;
    ASSERT( m_pTail <= m_lpBufMax );
    
    int nRemnant;
    LPBYTE ptr    = GetReadableBuffer( &nRemnant );

    CBuffer2* pOld    = NULL, *pBuffer;
    u_long uPacketSize;

    DWORD dwCrc, dwDataSize;
    byte digest[4];
    u_long uHdrSize    = CBuffer2::GetHdrSize( (BOOL)pcrc );

    while( 1 )
    {
        if( nRemnant < (int)( uHdrSize ) )
        {
            if( cb > 0 ) {
                pOld    = *ppRecvBuffer;
                pOld->m_pTail    -= nRemnant;    // remove remnant from old buffer
                pBuffer    = new CBuffer2;
                
                ASSERT( pBuffer->m_pTail + nRemnant <= pBuffer->m_lpBufMax );
                memcpy( pBuffer->m_pTail, ptr, nRemnant );
                pBuffer->m_pTail    +=    nRemnant;
                *ppRecvBuffer    = pBuffer;
            }
            return pOld;
        }
        else
        {
            if( pcrc )
            {
                dwCrc    = *(UNALIGNED LPDWORD)ptr;
                dwDataSize    = ntohs( *(UNALIGNED LPWORD)( ptr + sizeof(DWORD) ) ) -2;
                pcrc->Restart();
                pcrc->Update( (const byte*)( &dwDataSize ), sizeof(DWORD) );
                pcrc->Final( digest );
                if( *(UNALIGNED LPDWORD)digest != dwCrc )
                {
                    WSASetLastError( ERROR_BAD_NET_NAME );
                    return NULL;
                }
                dwCrc    = *(UNALIGNED LPDWORD)( ptr + sizeof(DWORD) + sizeof(WORD) );
                uPacketSize        = uHdrSize + dwDataSize;
            }
            else
            {
                uPacketSize    = uHdrSize + ntohs( *(UNALIGNED LPWORD)ptr ) - 2;
            }
            if( nRemnant < (int)( uPacketSize ) )
            {
                if( (int)( uPacketSize ) > (*ppRecvBuffer)->GetSize() )
                {
                    pOld    = *ppRecvBuffer;
                    pBuffer    = new CBuffer2( uPacketSize );
                }
                else
                {
                    if( (*ppRecvBuffer)->cb > 0 )
                    {
                        pOld    = *ppRecvBuffer;
                        pBuffer    = new CBuffer2;
                    }
                }

                if( pOld )
                {
                    ASSERT( pBuffer->m_pTail + nRemnant <= pBuffer->m_lpBufMax );
                    memcpy( pBuffer->m_pTail, ptr, nRemnant );
//                    if( nRemnant > 0 )
//                    {
//                        ASSERT( CBuffer::IsHeader( *ptr ) );
//                    }
                    pBuffer->m_pTail    +=    nRemnant;
                    *ppRecvBuffer    = pBuffer;
                }

                return pOld;
            }
            else    // completion
            {
                if( pcrc )
                {
                    pcrc->Restart();
                    pcrc->Update( (const byte*)( ptr + uHdrSize ), dwDataSize );
                    pcrc->Final( digest );
                    if( *(UNALIGNED LPDWORD)digest != dwCrc )
                    {
                        WSASetLastError( ERROR_BAD_NET_NAME );
                        return NULL;
                    }
                }
                (*ppRecvBuffer)->cb++;
                nRemnant    -= ( uPacketSize );
                ptr        += ( uPacketSize );
            }
        }
    }
    return NULL;
}
if someone could help me it would be nice

*sorry for my English, translate with google.
KenshiRe is offline  
Old 08/25/2013, 16:53   #2
 
elite*gold: 0
Join Date: Feb 2012
Posts: 66
Received Thanks: 4
up
KenshiRe is offline  
Reply

Tags
accountserver, crash


Similar Threads Similar Threads
better accountserver
08/19/2013 - Zero - 0 Replies
http://www.elitepvpers.com/forum/eo-pserver-guides -releases/650379-release-account-server-v8-4-witho ut-virus.html
(need Help)AccountServer Version 6.127-1 Crash
03/15/2010 - EO PServer Hosting - 1 Replies
i wan to setup on Vista.. but when i wan to open AccountServer Version 6.127-1.. its automatic close and say it applicationcrash.. how i wan to make a private???
DB connect error/AccountServer.exe crash
04/19/2009 - EO PServer Hosting - 4 Replies
When loading up the account server.exe i get a error "DB real connect error: access denied for user: 'ODBC@Localhost' (using password:NO). However, the account server will load up, but after loading the MSG.exe and the NPC.exe and then logging into the game server (private server) my account server crashes and I get a stop error (windows asks me if i want to search for reasons why on the net, or stop the program). My operating system is Windows Vista 64 bit, I am using Mysql 5 and Wamp...



All times are GMT +1. The time now is 17:35.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.