Jump to content

Recommended Posts

 

 

The sequence was successfully removed

But there was a bug that I fixed

 

The buffer was not stable players after 15 days open server  enough enough kick and problems with kick

 

let's see what the solution is..............

 

1. OPEN SERVER SOURCE
2. OPEN DESC.CPP
3. SEARCH:
if (!packet_encode (m_lpOutputBuffer, c_pvData, iSize))
			{
				m_iPhase = PHASE_CLOSE; // PLAYER KICK WHY BUFFER IN FULL
			}


4. CHANGE WITH
  
if (!packet_encode (m_lpOutputBuffer, c_pvData, iSize))
			{
				//m_iPhase = PHASE_CLOSE;  // NOW DISABLED KICK
  				//PLAYER REMOVE BUFFER AND NOT KICK WHY REMOVE BUFFER? FOR STOP GAME.CORE PLAYER
  				// the player must exit from game  if the player does not exit the game then the game will give game.core
  				// So we made the player clear the buffer and not exit the game
  				buffer_delete(m_lpOutputBuffer); // Player not phase_closed for exit game ;)  buffer has removed
				buffer_reset(m_lpOutputBuffer); // Player not phase_closed for exit game ;)  buffer has removed
  
			}

5) OPEN PROTOCOL.H
  REMOVED

  	if (buffer_has_space (pbuf) < length)
	{
		sys_err ("buffer length exceeded buffer size: %d, encoding %d bytes (%s:%d)", buffer_size (pbuf), length, file, line);
		return false;
	}

 

You should put in specific server files

SAFE_BUFFER_DELETE(m_lpOutputBuffer);  and not                 buffer_delete(m_lpOutputBuffer);    buffer_reset(m_lpOutputBuffer);

 

Edited by Draveniou1
  • Metin2 Dev 3
  • kekw 8
  • Facepalm 1
Link to comment
https://metin2.dev/topic/30664-buffer-after-phase_closed/
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.