Jump to content

Buffer after phase_closed


Recommended Posts

  • Active Member

 

 

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 1
  • kekw 8
  • Facepalm 1
Link to comment
Share on other sites

Announcements



×
×
  • 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.