Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 01:26

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

Advertisement



Calculating velocity of characters?

Discussion on Calculating velocity of characters? within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2010
Posts: 27
Received Thanks: 1
Calculating velocity of characters?

I started a new project and I need the velocity of the characters in that program for example the movement. I've search a bit on google and I found a post of drew which he explained that he was also busy with that and he timed how long ik took for a character to move to an specific point and his conclusion was that if a character has a moving speed of 16.00 it took 13 seconds to get 16 units futher at one axe. so the velocity of the character with that speed is 1.23/unit.

But when I use 1.23 in my calculation it's too slow (and yes the character was in walking mode and not running which is 50.00)

Does someone know the exact way to calculate the velocity or is it somewhere in the client files?

Thanks in advance
sjaakie100 is offline  
Old 04/14/2011, 15:24   #2
 
kevin_owner's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,484
Received Thanks: 809
Well You could you a stopwatch and see how fast the character walks in an x amount of time.

Mabye just record the gameplay with as much fps as possible so you can get the exact time between 2 points.

So start recording -> walk -> stop recording and see how long it took to walk a certain distance
kevin_owner is offline  
Old 04/14/2011, 16:19   #3
 
bootdisk's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 134
Received Thanks: 41
The client should have something to predict movements. For instance, it's what is used in all the FPS since Quake times.

On FPS it was used to compensate lag problems.
It's called Client-side_prediction.

If you don't like reversing then you should try the human way: how that was acquired? how it works?

I don't think putting some random numbers will give you what you want. I'd try something more "mathematical". For instance, maybe starting with Linear Motion and then going on til you find a real way than magical numbers or timers.

And it's not because I'm a math-freaky or programming-freaky, but I'd say that I like to find out things or get the closest answer to a problem.

(I'd say my favourite part of programming is maths... I can waste more than 10 hours in a row thinking about something and not paying attention to anyone. xD)
bootdisk is offline  
Thanks
1 User
Old 04/15/2011, 01:32   #4
 
Oriya9's Avatar
 
elite*gold: 94
Join Date: Mar 2007
Posts: 569
Received Thanks: 1,497
The default movement speed (running) is 50, which is 5 units a second.
which means each speed "point" is 0.1 unit a second.
so if your movement speed is 16, you'll move a 1.6 unit a second.

the distance is a square root distance of course.. so either get the correct square root distance or just walk in a straight line (like x10,y0 to x55,y0).

you'll see it is 0.1 unit per speed "point" (square root!).
Oriya9 is offline  
Thanks
1 User
Old 04/15/2011, 08:51   #5
 
elite*gold: 0
Join Date: Dec 2010
Posts: 27
Received Thanks: 1
Thank you all for your answers.

i think i can make what i want with these answers

Thank you
sjaakie100 is offline  
Reply


Similar Threads Similar Threads
[LC US]Es gab doch mal so einen Velocity of Lught bug wie ging der?
09/16/2010 - Last Chaos - 4 Replies
hi, ich hab mal gehört es gibt einen Velocity of Light bug das sie nicht nach 5tagen oder so abbläuft wie ging der nomma? LG
Springt 6mal so hoch wie mit velocity
12/07/2007 - Flyff - 12 Replies
Hab hier ne res datei mal gemacht damit könnt ihr bei quickstep lvl 3 und lvl 4, 6mal so hoch springen wie mit scrolls of velocity. Ihr könnt auch einfach statt DST_SPEED, DST_JUMPING schreiben dann euren wunschwert dahinter schreiben wie mans mit speed auch macht. Als anhaltspunkt scroll of velocity gibt 150 bei mir sind es jetzt 800. RapidShare Webhosting + Webspace :) habs auch selbst herausgefunden also nich geleecht
Speedhack, Velocity oder Adrenaline
03/22/2006 - General Gaming Discussion - 0 Replies
Hat jemand ne Empfehlung und n Link zu noch vorhandenen Sites die Velocity oder Adrenaline haben ? Adrenaline am besten in den Versionen 3 und 4. Hintergrund ist ich brauche nen funktionierenden Speedhack für den Defiance Shard. Da scheinen derzeit ne handvoll Speedhacker undetected unterwegs zu sein und es ist jetzt genug mit "nicht nachlaufen können". Schonmla Danke.



All times are GMT +1. The time now is 01:27.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.