Ir para conteúdo

Erro: Warning - Protocol::RSA_decrypt] Not valid packet size

Featured Replies

Postado

E ae glra, é o seguinte...

eu estava fazendo edição nas source do meu OTserv para aumenta o campo de visão do player e tal... ai eu fiz as edições e segui as dicas de um tutorial...

 

esse tutorial:

 

In the server files under Protocolgame.cpp

I replaced

  1.  
  2.  
  3. void ProtocolGame::AddMapDescription(NetworkMessage_ptr msg, const Position& pos)
  4. {
  5.   msg->AddByte(0x64);
  6.   msg->AddPosition(player->getPosition());
  7.   GetMapDescription(pos.x - 8, pos.y - 6, pos.z, 18, 14, msg);
  8. }
  9.  

with
 

  1.  
  2. void ProtocolGame::AddMapDescription(NetworkMessage_ptr msg, const Position& pos)
  3. {
  4.   msg->AddByte(0x64);
  5.   msg->AddPosition(player->getPosition());
  6.   GetMapDescription(pos.x - 14, pos.y - 12, pos.z, 30, 26, msg);
  7. }
  8.  

As stated by Flatlander - the width and height of the map is x 2 that of the pos value PLUS 2.

I then replaced the appropriate values under "GetFloorDescription" and "AddMapDescription". Make sure you replace the current values with the ones you have set in "void ProtocolGame::AddMapDescription". You will be able to gauge what values need to replace the default values just by falling the trend. I also changed the values for the Spectators:
 

  1.  
  2.        getSpectators(list, destPos, false, true, 18, 18 14, 14);
  3.  

to
 

  1.  
  2.        getSpectators(list, destPos, false, true, 30, 30, 26, 26);
  3.  


In map.h

I replaced
 

  1.  
  2.   static const int32_t maxViewportX = 11; //min value: maxClientViewportX + 1
  3.   static const int32_t maxViewportY = 11; //min value: maxClientViewportY + 1
  4.   static const int32_t maxClientViewportX = 8;
  5.   static const int32_t maxClientViewportY = 6;
  6.  

with
 

  1.  
  2.   static const int32_t maxViewportX = 18; //min value: maxClientViewportX + 1
  3.   static const int32_t maxViewportY = 18; //min value: maxClientViewportY + 1
  4.   static const int32_t maxClientViewportX = 15;
  5.   static const int32_t maxClientViewportY = 11;
  6.  

That concludes the changes i made in the server files.

Now over to the client source files:

under map.cpp
 

  1.  
  2. void Map::resetAwareRange()
  3. {
  4.   AwareRange range;
  5.   range.left = 8;
  6.   range.top = 6;
  7.   range.bottom = 7;
  8.   range.right = 9;
  9.   setAwareRange(range);
  10. }
  11.  

was replaced with
 

  1.  
  2. void Map::resetAwareRange()
  3. {
  4.   AwareRange range;
  5.   range.left = 14;
  6.   range.top = 12;
  7.   range.bottom = 13;
  8.   range.right = 15;
  9.   setAwareRange(range);
  10. }
 
 
--------------------------------------------------------------
Fiz essas edições compilei as source deu tudo certo, so que quando fui ligar o server não estava mais conseguindo entrar aparecia esse erro do titulo e o TFS trava e pede pra ser encerrado...
 
Se alguém tiver ideia do que pode ter ocorrido me ajude ai pls.
 
obs1:Eu já tentei simplesmente desfazer as mudanças, porém o erro persiste!
obs2:O server funcionava perfeitamente antes disso!

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo