How is the time delay between walk packets being calculated?
Hello, did anyone figured out how delay between walk packets is calculated. My approximation is something like 920/4 * length of previous step, but it's not enough. Weird thing is that delay is varying even thought step length is not changing.
After many tries i looked up at NosWings server source code, made a little change to monster movement delay equation and ended up with stepDelay = stepSize / (speed / 2.0f) * 1250. I don't have any idea if it's similar to what client does, but it works
As an example :
My character got a movementspeed of 23.
(x;y) are my coordonate. If I go straight ahead, (x+8;y), (x-8;y), (x;y+8), (x;y-8) are all the possibilities. 8 is the traveled distance in a straight line.
If I am running diagonally, my possibilities are (x±6;y±6). What is my distance here ? 12 ? So the timing will be lower than before ?
=> Straight line : 8*2500/23 = 869
=> Diagonally : 12*2500/23 = 1300 ? I guess this is too large. Maybe 1300/2 = 650 ? Or sqrt(12)*2500/23 = 376. Guess that is too short.
Clientside, what is the way to get the distance ? (Currently I am using a fixe distance of 4)
public static double Octile(int iDx, int iDy)
{
int min = Math.Min(iDx, iDy);
int max = Math.Max(iDx, iDy);
return min * SQRT_2 + max - min;
}
With iDx the diff in x and IDy the diff in y
Note: you can use any math distance formula
How to walk in kalOnline with walk animation. 07/28/2016 - Kal Online - 8 Replies Hello guys.
before anything i used search function to find what i want but i just found this topic http://www.elitepvpers.com/forum/kal-hacks-bots-ch eats-exploits/236214-tut-walk-packets.html
and as all see this is't complete topic.
maybe the supplement of this topic in German language and i translated it .
and i read Bakabug kalhack11 source code and i understood how it work.
but i was trying to find walk function with ollydbg to make realtime walk. but really its seems hard thing.
i...
Packets packets packets... 10/06/2012 - CO2 Private Server - 13 Replies I have been struggling to understand what is a Packet how could i create one with the data i want then send it to my server
So please any one tell if as example i want to send some info from my client to my server, then handle them from the server
how could i do that
: i have my socket server, also i don't wanna copy and paste codes i want to UNDERSTAND.
My PacketReader.cs