Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Nostale
You last visited: Today at 13:25

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



How is the time delay between walk packets being calculated?

Discussion on How is the time delay between walk packets being calculated? within the Nostale forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2012
Posts: 5
Received Thanks: 5
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.
lemon250 is offline  
Old 03/15/2019, 12:40   #2
 
elite*gold: 0
Join Date: Jan 2017
Posts: 36
Received Thanks: 16
_movetime = ServerManager.RandomNumber(400, 3200);
GGGGame is offline  
Old 03/15/2019, 17:12   #3

 
FI0w's Avatar
 
elite*gold: 50
Join Date: Jul 2014
Posts: 1,699
Received Thanks: 1,165
Quote:
Originally Posted by GGGGame View Post
_movetime = ServerManager.RandomNumber(400, 3200);
What a shiit
its the Time for OpenNos to Move the Monsters....
FI0w is offline  
Old 03/15/2019, 18:35   #4
 
elite*gold: 0
Join Date: Dec 2018
Posts: 70
Received Thanks: 28
Funny, I was looking for this two days ago. I did a :
std::ceil(speed/4)
but I think that is not that. (Got some buggy movespeed)
Nortank is offline  
Old 03/16/2019, 14:14   #5
 
elite*gold: 0
Join Date: Jan 2012
Posts: 5
Received Thanks: 5
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
lemon250 is offline  
Thanks
1 User
Old 03/18/2019, 01:14   #6
 
elite*gold: 0
Join Date: Nov 2017
Posts: 7
Received Thanks: 1
Quote:
Originally Posted by FI0w View Post
What a shiit
its the Time for OpenNos to Move the Monsters....
Hi Flow I need talk You please add Discord Jes#8034
jinsun is offline  
Old 03/18/2019, 03:51   #7
 
0Lucifer0's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,005
Received Thanks: 1,019
Distance*2500/speed = timeofwalk
0Lucifer0 is offline  
Thanks
2 Users
Old 03/18/2019, 12:55   #8
 
elite*gold: 0
Join Date: Dec 2018
Posts: 70
Received Thanks: 28
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)
Nortank is offline  
Old 03/18/2019, 20:05   #9
 
0Lucifer0's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,005
Received Thanks: 1,019
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
0Lucifer0 is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
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



All times are GMT +1. The time now is 13:26.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.