Jump to content

Walking to a Destination (DumbMan's Webwalker)


Qubit

Recommended Posts

            So I was wondering does using the path[] make detection easier. I am assuming it does because of a player or players going to the exact position hundreds of times?

 

So I was thinking what would be a better way to deal with this.. I multiple paths or Area[], you randomly start off by one random position in the Area[0]. Then you follow that path in the Area[].randomPosition()... But you have a small chance of moving over one lane and even a much small chance of moving over 2 lanes up one position.... Since I am not educated enough to write a web walker, but i sure will next year at my first year of college for computer science, I thought this would be better temporary replacement than the regular position[]. What do you think?

 

Ex(s). of the algorithm being run

 

ef523df75fa8a79a631e3e33d50b9d22.gif

 

0a7b4a77f45ad64033084e706207a85f.gif

 

aa23496c7a3d05ba668c5205ea2fd556.gif

Edited by javant
Link to comment
Share on other sites

            So I was wondering does using the path[] make detection easier. I am assuming it does because of a player or players going to the exact position hundreds of times?

 

So I was thinking what would be a better way to deal with this.. I multiple paths or Area[], you randomly start off by one random position in the Area[0]. Then you follow that path in the Area[].randomPosition()... But you have a small chance of moving over one lane and even a much small chance of moving over 2 lanes up one position.... Since I am not educated enough to write a web walker, but i sure will next year at my first year of college for computer science, I thought this would be better temporary replacement than the regular position[]. What do you think?

 

Ex(s). of the algorithm being run

 

ef523df75fa8a79a631e3e33d50b9d22.gif

 

0a7b4a77f45ad64033084e706207a85f.gif

 

aa23496c7a3d05ba668c5205ea2fd556.gif

Could work well. But taking extremely inefficient or silly paths to a destination could probably look at least as suspicious as walking directly to it. I reckon it's more humanlike to walk the shortest distance (or something close to it) than walking zigzag

Link to comment
Share on other sites

Rather than creating the path all at once, why not generate your next "random" movement after reaching/finding the location you are currently walking to.

 

You generate (asynchronously) a bunch of "next possible step" nodes and choose one. That way, you can generate billions upon billions of different paths. For those saying "the time itll take to process all those nodes" should pick up a multithreading book at some point. For those saying "too much memory", read up on how HotSpot manages garbage collecting.

 

Trying it won't hurt. Creating paths before-hand is pretty damn insane if you're looking for realism.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...