|
You last visited: Today at 17:12
Advertisement
Demo: Autowalk
Discussion on Demo: Autowalk within the SRO Coding Corner forum part of the Silkroad Online category.
04/23/2021, 18:30
|
#1
|
elite*gold: 0
Join Date: Mar 2009
Posts: 71
Received Thanks: 21
|
Demo: Autowalk
After a ton of work and an incredible amount of help from DaxterSoul, I was able to get a first version of autowalk working in my bot! It is worth mentioning that my solution finds the globally optimal path, whereas some bots seem to have approximate paths. Also, due to the architecture of the bot, there are no silly "sleep"s in the code to determine how long to wait until taking the next step in the path (like you'll see in other bots). Upon completing one step along the path, the character starts his next movement as quickly at 1000% speed as he would at walking speed.
Without further ado, enjoy this short demo!
|
|
|
04/23/2021, 19:49
|
#2
|
elite*gold: 8
Join Date: Sep 2014
Posts: 625
Received Thanks: 178
|
Nice demo!
|
|
|
04/23/2021, 19:53
|
#3
|
elite*gold: 0
Join Date: Mar 2010
Posts: 568
Received Thanks: 228
|
Good job
|
|
|
04/23/2021, 20:06
|
#4
|
elite*gold: 0
Join Date: Jan 2021
Posts: 4
Received Thanks: 0
|
Niceee
|
|
|
04/23/2021, 20:10
|
#5
|
elite*gold: 47
Join Date: Oct 2017
Posts: 574
Received Thanks: 967
|
Quote:
Originally Posted by sandsnip3r
After a ton of work and an incredible amount of help from DaxterSoul, I was able to get a first version of autowalk working in my bot! It is worth mentioning that my solution finds the globally optimal path, whereas some bots seem to have approximate paths. Also, due to the architecture of the bot, there are no silly "sleep"s in the code to determine how long to wait until taking the next step in the path (like you'll see in other bots). Upon completing one step along the path, the character starts his next movement as quickly at 1000% speed as he would at walking speed.
Without further ado, enjoy this short demo!

|
i wonder how did u make the no delay between the movements , do u just keep checking his position and once his position equals the destination you move forward to the next one ?
|
|
|
04/23/2021, 20:49
|
#6
|
elite*gold: 8
Join Date: Sep 2014
Posts: 625
Received Thanks: 178
|
You can calculate the required walk time based on walk speed and walk distance
|
|
|
04/23/2021, 21:36
|
#7
|
elite*gold: 0
Join Date: Mar 2009
Posts: 71
Received Thanks: 21
|
Quote:
Originally Posted by bimbum*
i wonder how did u make the no delay between the movements , do u just keep checking his position and once his position equals the destination you move forward to the next one ?
|
My bot is event-based. I send the move request. Once the server responds that movement has begun, I calculate the time required to reach the destination. With this time, I set up a delayed event to be triggered. Once that event triggers, I know that I've arrived at my destination (unless I was interrupted). If I track ping in realtime, then I could even move more fluidly by accounting for the time required for the server's response to arrive and reduce that delay for my event.
|
|
|
04/23/2021, 22:03
|
#8
|
elite*gold: 0
Join Date: Nov 2012
Posts: 14
Received Thanks: 0
|
Flexin' on these mfs, every bone and muscle.
Shout out to that Berkeley neighbor for providing you with the library. Also shout out to me for providing you with my genius ideas.
You should make this project fully open source to comply with the Free Software Foundation philosopy.
|
|
|
04/24/2021, 19:50
|
#9
|
elite*gold: 290
Join Date: Oct 2013
Posts: 266
Received Thanks: 191
|
Wow, you did a great job. Can you share how you do that? Such as the programming language that you using and the way you create the 2d map and what kind of algorithm you use to know the obstacles?
|
|
|
04/25/2021, 09:33
|
#10
|
elite*gold: 0
Join Date: Apr 2017
Posts: 24
Received Thanks: 6
|
very nice , auto walk when click in worldmap (M)
|
|
|
04/26/2021, 04:09
|
#11
|
elite*gold: 0
Join Date: Sep 2020
Posts: 122
Received Thanks: 64
|
gzz, i hope you are not aiming for something like this
|
|
|
04/26/2021, 17:36
|
#12
|
elite*gold: 0
Join Date: Mar 2009
Posts: 71
Received Thanks: 21
|
Quote:
Originally Posted by GameRPoP
gzz, i hope you are not aiming for something like this
|
Why not? This seems fun
|
|
|
04/27/2021, 23:06
|
#13
|
elite*gold: 0
Join Date: Aug 2013
Posts: 1,532
Received Thanks: 835
|
Quote:
Originally Posted by GameRPoP
gzz, i hope you are not aiming for something like this
|
Are these ghostusers or is it from the script |EUROP_INTRO / |CHINA_JANGAN command?
|
|
|
04/28/2021, 22:30
|
#14
|
elite*gold: 100
Join Date: Sep 2017
Posts: 1,108
Received Thanks: 903
|
Wouldn't it fail to reach its destination if you had packet loss or server was lagging?
|
|
|
04/29/2021, 01:02
|
#15
|
elite*gold: 11
Join Date: May 2009
Posts: 617
Received Thanks: 589
|
Quote:
Originally Posted by #HB
Wouldn't it fail to reach its destination if you had packet loss or server was lagging?
|
best strategy to autowalk is always execute A* in parts, so as a result you wont have to load the whole map and solves packet loss and server lagging problem
|
|
|
 |
|
Similar Threads
|
Autowalk function
01/14/2015 - SRO Coding Corner - 6 Replies
I'm working with bot in C# and i wanted to add autowalk function on it but i don't get the theory of it till now have anyone got a clue ?
|
War Z Autowalk
08/31/2013 - Infestation - 13 Replies
Ist es i-wie möglich zu laufen während man z.B auf dem Desktop ist?
Bräuchte dringend diese Info, danke!
|
[Help] Coding Autowalk/Need good C++ Coder
05/12/2012 - 12Sky2 - 8 Replies
Ok hello,
I have found a way to make an auto-walk function using the World Character coordinates. I found the GoTo Coords that get set everytime you click a new spot to walk to, and I found the function that actually makes the character walk. So now I can manually set the coords that I want to walk to, and then make the character walk.
Now I am trying to figure a way to "record" a set of waypoints into an Array or Vector. Such as turn a Bool on called "Record", when the Record Bool...
|
Cabal Rider ab PF kein Autowalk mehr?
06/06/2011 - Cabal Online - 1 Replies
Habt ihr auch das Problem, dass der Bot ab Pontus ferrum nicht emhr in der lage ist alleien über die Karte zu laufen? Wenn ich einen Doppelklick auf die Minimap mache, erscheitn kein Kreuz und er läuft nicht los, auch wenn der Bot zwischendurch mal stirbt, kann er nicht alleine zurück zum Botplatz laufen. Auf den niedrigen Maps kann er das, aber in PF nicht mehr.
Ist das bei euch auch ein Problem?
|
All times are GMT +1. The time now is 17:20.
|
|