Drakan
2011-06-04 14:20:36
As many of you know Markus and I have both been trying to find out the best way to implement a web walking system into Reflection-2. I have been working non-stop for the last 3-4 days, with the help of many people in IRC (namely dgby and others), and have a base system to work off of now. This web walker is unlike the one of markus's as it uses the collision map to walk the best path while avoiding objects, WITHOUT the need for pre-coded paths. While it's not perfect right now, It definitely is a start. Heres a video of the walker going from Lumbridge to Draynor bank.
View Video
Now this obviously isn't flawless. If there is a huge wall in the way (I.E. port sarim to draynor bank), It's going to run into it and stop. However, my thoughts are to put together an array of nodes around the runescape map in safe spots where it won't get itself stuck. This way it is a happy medium of precoded paths and dynamic walking.
My thoughts on how it would walk is as follows:
I think this will end up being the best way to go about doing this, and It is easy to record these nodes as well. Tell me your thoughts/ideas/feedback/criticism/concerns! Thanks for reading!
View Video
Now this obviously isn't flawless. If there is a huge wall in the way (I.E. port sarim to draynor bank), It's going to run into it and stop. However, my thoughts are to put together an array of nodes around the runescape map in safe spots where it won't get itself stuck. This way it is a happy medium of precoded paths and dynamic walking.
My thoughts on how it would walk is as follows:
- If distance from current spot to final spot is less than the distance to the nearest node then walk directly to destination without using nodes.
- If the nearest node is closer, then find the shortest path from the nearest node to the node closest to the destination tile
- Walk from the current spot to the nearest node
- Walk from node to node until it gets to the node closest to the destination
- Walk from that node to the destination tile.
I think this will end up being the best way to go about doing this, and It is easy to record these nodes as well. Tell me your thoughts/ideas/feedback/criticism/concerns! Thanks for reading!