Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 16:54

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

Advertisement



(V17/VS19) Bug disconnection and reconnection (Login Server / Neuz)

Discussion on (V17/VS19) Bug disconnection and reconnection (Login Server / Neuz) within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2019
Posts: 9
Received Thanks: 0
Exclamation (V17/VS19) Bug disconnection and reconnection (Login Server / Neuz)

Hello Guys,



I work with Ketchup source v17 (vs19).

For some time I have had problems with reconnection disconnection.

That is to say I connect to my server and I disconnect and reconnect and the coming selection of characters I click on valid.

He tells me that the connection with the server has been interrupted.

Neuz/DPLoginClient.cpp :

Code:
void CDPLoginClient::SysMessageHandler( LPDPMSG_GENERIC lpMsg, DWORD dwMsgSize, DPID idFrom )
{
	switch( lpMsg->dwType )
	{
		case DPSYS_CREATEPLAYERORGROUP:
			m_fConn		= TRUE;
			break;

		case DPSYS_DESTROYPLAYERORGROUP:
			{
				#ifdef __INFO_SOCKLIB0516
				{
					LPDPMSG_DESTROYPLAYERORGROUP lpDestroyPlayer	= (LPDPMSG_DESTROYPLAYERORGROUP)lpMsg;
					m_lError = lpDestroyPlayer->dwFlags;
				}
				#endif

				CNetwork::GetInstance().OnEvent( LOGIN_DISCONNECT );

				m_fConn		= FALSE;
				g_DPlay.DeleteDPObject();

				if( m_bShowDisconnectMsg )
					g_WndMng.OpenMessageBoxUpper( prj.GetText(TID_DIAG_0023), MB_OK, TRUE );	//서버로부터 접속이 해제되었습니다.		  
				m_bShowDisconnectMsg = TRUE;
				break;
			}
	}
}
LoginServer/DPLoginSrvr.cpp :

Code:
void CDPLoginSrvr::SysMessageHandler( LPDPMSG_GENERIC lpMsg, DWORD dwMsgSize, DPID idFrom )
{
	switch( lpMsg->dwType )
	{
	case DPSYS_CREATEPLAYERORGROUP:
		{
			LPDPMSG_CREATEPLAYERORGROUP lpCreatePlayer = (LPDPMSG_CREATEPLAYERORGROUP)lpMsg;
			DPID dpid = lpCreatePlayer->dpId;

			CUser* pUser = new CUser( dpid ); 
		
			if( g_UserMng.AddUser( dpid, pUser ) )
			{
			}
			else
			{
				DestroyPlayer( dpid );
				safe_delete( pUser );
			}
			break;
		}
	case DPSYS_DESTROYPLAYERORGROUP:
		{
			LPDPMSG_DESTROYPLAYERORGROUP lpDestroyPlayer = (LPDPMSG_DESTROYPLAYERORGROUP)lpMsg;
			OnRemoveConnection( lpDestroyPlayer->dpId );
			break;
		}
	}
}
So I looked for the code that disconnects me and here it is my for a few days I can not progress more than that.


I am a beginner on the sources.
Sorry for english i used translate to help me.
cinki is offline  
Old 04/08/2020, 18:28   #2



 
- DK's Avatar
 
elite*gold: 7
Join Date: Sep 2012
Posts: 4,466
Received Thanks: 3,218
Quote:
Originally Posted by cinki View Post
Hello Guys,



I work with Ketchup source v17 (vs19).

For some time I have had problems with reconnection disconnection.

That is to say I connect to my server and I disconnect and reconnect and the coming selection of characters I click on valid.

He tells me that the connection with the server has been interrupted.

Neuz/DPLoginClient.cpp :

Code:
void CDPLoginClient::SysMessageHandler( LPDPMSG_GENERIC lpMsg, DWORD dwMsgSize, DPID idFrom )
{
	switch( lpMsg->dwType )
	{
		case DPSYS_CREATEPLAYERORGROUP:
			m_fConn		= TRUE;
			break;

		case DPSYS_DESTROYPLAYERORGROUP:
			{
				#ifdef __INFO_SOCKLIB0516
				{
					LPDPMSG_DESTROYPLAYERORGROUP lpDestroyPlayer	= (LPDPMSG_DESTROYPLAYERORGROUP)lpMsg;
					m_lError = lpDestroyPlayer->dwFlags;
				}
				#endif

				CNetwork::GetInstance().OnEvent( LOGIN_DISCONNECT );

				m_fConn		= FALSE;
				g_DPlay.DeleteDPObject();

				if( m_bShowDisconnectMsg )
					g_WndMng.OpenMessageBoxUpper( prj.GetText(TID_DIAG_0023), MB_OK, TRUE );	//서버로부터 접속이 해제되었습니다.		  
				m_bShowDisconnectMsg = TRUE;
				break;
			}
	}
}
LoginServer/DPLoginSrvr.cpp :

Code:
void CDPLoginSrvr::SysMessageHandler( LPDPMSG_GENERIC lpMsg, DWORD dwMsgSize, DPID idFrom )
{
	switch( lpMsg->dwType )
	{
	case DPSYS_CREATEPLAYERORGROUP:
		{
			LPDPMSG_CREATEPLAYERORGROUP lpCreatePlayer = (LPDPMSG_CREATEPLAYERORGROUP)lpMsg;
			DPID dpid = lpCreatePlayer->dpId;

			CUser* pUser = new CUser( dpid ); 
		
			if( g_UserMng.AddUser( dpid, pUser ) )
			{
			}
			else
			{
				DestroyPlayer( dpid );
				safe_delete( pUser );
			}
			break;
		}
	case DPSYS_DESTROYPLAYERORGROUP:
		{
			LPDPMSG_DESTROYPLAYERORGROUP lpDestroyPlayer = (LPDPMSG_DESTROYPLAYERORGROUP)lpMsg;
			OnRemoveConnection( lpDestroyPlayer->dpId );
			break;
		}
	}
}
So I looked for the code that disconnects me and here it is my for a few days I can not progress more than that.


I am a beginner on the sources.
Sorry for english i used translate to help me.
Use Blouflash Files. Its better!
- DK is offline  
Old 04/08/2020, 19:47   #3
 
elite*gold: 0
Join Date: Jan 2019
Posts: 9
Received Thanks: 0
Ok Thanks i go restarted on blouflash files thanks.

You think is bad ketchup files for beginner ?
cinki is offline  
Old 04/09/2020, 03:00   #4
 
Hyellow's Avatar
 
elite*gold: 0
Join Date: Feb 2020
Posts: 64
Received Thanks: 23
Quote:
Originally Posted by cinki View Post
Ok Thanks i go restarted on blouflash files thanks.

You think is bad ketchup files for beginner ?
No its not.
Hyellow is offline  
Old 04/09/2020, 06:32   #5
 
elite*gold: 0
Join Date: Jan 2013
Posts: 24
Received Thanks: 0
Check port and ip . did you use local ip ? 127.0.0.1 ?
because im using ketchup source . i dont have any problems
flyforall123 is offline  
Old 04/09/2020, 10:55   #6
 
elite*gold: 0
Join Date: Jan 2019
Posts: 9
Received Thanks: 0
Quote:
Originally Posted by flyforall123 View Post
Check port and ip . did you use local ip ? 127.0.0.1 ?
because im using ketchup source . i dont have any problems
I already checked the port and ip my my first connection could not work if it was that while it works is that when I mz connect a first time and I disconnect and reconnect that I have this worries as if the loginserver / neuz does not send the information that I am disconnected.
cinki is offline  
Old 04/12/2020, 10:59   #7



 
- DK's Avatar
 
elite*gold: 7
Join Date: Sep 2012
Posts: 4,466
Received Thanks: 3,218
Quote:
Originally Posted by cinki View Post
Ok Thanks i go restarted on blouflash files thanks.

You think is bad ketchup files for a beginner ?
That's it

Don't listen to other guys because I do the upgrade from v15 to V21 and it work fine... Basic start by V15 is important to learn it! Do an upgrade by yourself or u will find awesome bugs by the bad quality of other guys.
- DK is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Delete reset of buff time after reconnection
06/03/2018 - Flyff PServer Guides & Releases - 0 Replies
Hi When you've a buff with time > 60 Min, on reconnection the time is set to 60 min. Buff.cpp In this function : void IBuff::Serialize( CAr & ar, CMover* pMover ) remove this : #ifdef __WORLDSERVER if( IsCommon() && pMover && tmTotal >= MIN( 60 ) ) tmTotal = MIN( 60 ); #endif // __WORLDSERVER
automatic client reconnection
01/07/2016 - SRO Coding Corner - 3 Replies
so basically, im trying to create an automatic method that will simply detect if the current client is disconnected, and if so simply, reconnect it, and resume its current ongoing work, the part the im stuck at is how to "reconnect" part. for starters, i wanted to make it safe, so i just said, well, lets close everything, and i disposed all sockets and aborted all threads, but then i could not reconnect the gateway socket, due to port exhustion, or simply could not connect to the same ip/port,...
[HELP] Reconnection
12/21/2014 - Dekaron Private Server - 9 Replies
Guys i have a little problem some people in our server cant login because of this bug or what ever this is http://fs1.directupload.net/images/141214/yi9wchz t.jpg can someone tell me how to solve this ?
Help report bug disconnection
08/14/2008 - Dekaron - 19 Replies
can any1 help me with this I keep on disconnecting while vaccing with speed hack and monster speeed hack.



All times are GMT +1. The time now is 16:55.


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.