Make sure that all out-going packets don't have two seals and have the right one. A good solution is to add TQServer before sending the data and to remove TQClient before processing the data.
The problem is not in the packet processing of jumping. The problem most likely lies in your packet itself. Check the packets to be sure there correct.
See that's the thing though Jack, I can't find out where the client bombs cause it gets through the entire jump handler without any exception, it just dcs at the end.
@Ian
Code:
public static short GetDistance(ushort X, ushort Y, ushort X2, ushort Y2)
{
return (short)Math.Max(Math.Abs(X - X2), Math.Abs(Y - Y2));
}
Yeah, so you never modify the TQstring at the end of the packet, so the client sends the packet with TQClient, and you send it back without changing it to TQServer, so the client receives an invalid packet and disconnects.
Atleast thats what it looks like from here, unless its somewhere in this.RealPacket.
You write an additional 8 bytes onto the end of the packet without modifying the length, any packet sent from the server requires TQServer, other than that you dont need to worry about it since its not a proxy.
Code:
public static byte[] TQServer = Encoding.ASCII.GetBytes("TQServer");
Dump that somewhere and memcpy onto the end of the packet everytime you send.
[Problem] Jumping and Walking being Viewed 08/04/2010 - CO2 Private Server - 2 Replies Hey! I fixed Character Spawning...
but there's a problem with walking and jumping.
It does it right for the character running or walking; but when the walking action is being viewed, the viewed character is just standing there... but he's supposed to be walking and is walking.
Same with jump. They appear in the screen - not even in a half jump... and then they jump out to the top right no matter where you jump.
public static byte Walk(int Direction, int UID)
{
...
anyone has this problem? ms jumping very fast 11/05/2008 - Dekaron - 5 Replies ok i was wondering if anyone has this problem. everything was working fine at the start. but after a few hours i started to have this problem. whenever i went into the game, the ms would keep increasing from 200 to 20000 and ill just dc. its impossible for me to trainn like this. even when i restart my computer and stuff, its still occuring. My internet connection has no problem so it should not be the cause.
Does anyone else face this problem too, and can anyone teach me how to fix this? help...
Jumping problem 01/19/2006 - Conquer Online 2 - 7 Replies I get a jumping problem after reinstalling conquer last night. I used to jump my two legs togheter, but now, I jump like if i was walking in the air, the two legs moving and I also see other players jumping like that.Can anyone help me?(I also feel that im jumping slower this way)Thank you in advance for anyone who could help!
Jumping problem 12/08/2005 - Conquer Online 2 - 0 Replies OK, here is what happened, after CO2 came out, too many errors and glitches happened, so I decided to redownload and reinstall the whole game all over again, after reinstalling, everything is fine, but once i logged into my tro, i realize it jumps totally different than it used to be. I have a small male tro. Before, it jumps with its leg close together, you guys should know what i mean. But now, it jumps like a small male tao, or a female tao, it jumps with its legs moving back and forth. The...