Google-Code-Fork / tibiaapi

Automatically exported from code.google.com/p/tibiaapi
MIT License
0 stars 0 forks source link

Proxy.cs creates an error on Line 447 #83

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Login

What is the expected output? What do you see instead?
This line produces an error after I select a character:
Array.Copy(dataServer, offset, packet, 0, packetlength);
Here is some information about the arguments above when the error came.
Dataserver.length = 8192
Offset = 0
Packet.length = 9974
Packetlength = 9974

It's wierd. This packet I'm getting from the server says its 9974 bytes 
but the packet length is only 8192.

What version of the product are you using? On what operating system?
I updated tibiaAPi before I submitted this ticket.

Please provide any additional information below.
I'm connecting to the real tibia server.

Original issue reported on code.google.com by jared.ca...@gmail.com on 4 Dec 2008 at 8:30

GoogleCodeExporter commented 9 years ago
I noticed that this does not occur on every character I tried to log into. It 
would 
appear on some and not others. I'm not sure if this was due to the location I 
was in 
or not.

Original comment by jared.ca...@gmail.com on 4 Dec 2008 at 9:07

GoogleCodeExporter commented 9 years ago
Does this happen every time you login?

They error your describing is actually a very general error that you usually 
get when
a packet doesn't report its length correctly, so some very large number gets 
read as
the length. We need to create a better system for trapping and hopefully 
bypassing
these errors during execution.

Original comment by ian320 on 5 Dec 2008 at 1:50

GoogleCodeExporter commented 9 years ago
not normally. It started happening on just one of my characters. I'm guessing 
that 
the client will never send a packet larger than 8192bytes (8k). When the login 
packet is too large due to too many things around you, above you, and below you 
it 
splits the packet into 8k chunks. A place you can test this at is X:32613 
Y:31921 
Z:7.(this is in the corridor on the north side of the dwarf-bridge. It is at 
the 
point where the path splits) I have never been able to log in at this location. 
But 
if I log in regularly and move even 20 steps I can log in with the proxy. But 
as 
soon as I move back it breaks again.

Original comment by jared.ca...@gmail.com on 5 Dec 2008 at 5:50

GoogleCodeExporter commented 9 years ago
try out the last update please

Original comment by geancarl...@gmail.com on 7 Dec 2008 at 9:03

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
No change. Try testing your solution at those coordinates. It fails every time.

Original comment by jared.ca...@gmail.com on 8 Dec 2008 at 7:40

GoogleCodeExporter commented 9 years ago
Fixed.

Original comment by brunodun...@gmail.com on 17 Dec 2008 at 11:59