SRL Archive - RS3 Help

Issues with SPS Positioning


BorderlandsPsycho

2014-10-17 00:50:28

So I've got a path for a map of Zanaris I have pieced together. It seems there is not enough unique features as it progresses along the path and it has errors recognizing the players position when it gets to the area that I boxed in red. It starts at the bank and attempts to get to the 2nd agility shortcut. Despite the fact that the path ends in that exact area, the program repeatedly prints out the it cannot find the players position, and goes about rotating the camera and attempting to find it. I looked at the distance function and on average the player stops within 1-5 spaces from the end point on the path. Any suggestions? I can include my scripts if necessary

Example:
distance(SPS.getPlayerPos() , TPointTargetPosition) = 1
yet the script doesn't stop.


Turpinator

2014-10-17 02:19:32

Have you tried running
sps.debugPlayerPos();
repeatedly while running around the map?

BorderlandsPsycho

2014-10-17 19:03:07

Yes, so it seems that it says it doesn't find enough matches to accurately compute the location as soon as it hits that little bottleneck. (Area below the fountain icon) Sometimes the program will make it to the agility shortcut and keep going as I described above, sometimes it also gets stuck before the 2nd shortcut, just after the bottleneck and cant find enough matches and ends up just infinitely trying to find the position.

Hoodz

2014-10-17 19:05:19

From: BorderlandsPsycho
Yes, so it seems that it says it doesn't find enough matches to accurately compute the location as soon as it hits that little bottleneck. (Area below the fountain icon) Sometimes the program will make it to the agility shortcut and keep going as I described above, sometimes it also gets stuck before the 2nd shortcut, just after the bottleneck and cant find enough matches and ends up just infinitely trying to find the position.


try to set the tolerance of the sps map a bit higher

Turpinator

2014-10-17 19:16:50

From: hoodz
try to set the tolerance of the sps map a bit higher


Or increase the accuracy (reduce the number) at the expense of speed.

Could you post the original image without the red box, on the off chance any of us want to test it out?

BorderlandsPsycho

2014-10-19 03:26:58

Ya, so I increased the tolerance and it made it to the area, yet the script still doesnt stop. I will post the original image now, and try increasing the accuracy tomorrow as soon as I get up. Will also post the code tomorrow so you guys can look it over. Thanks!

[ATTACH=CONFIG]24227[/ATTACH]

Olly

2014-10-19 16:16:10

Lower the match percentage if that's the reason why it's not giving you a result.. It may work then.

Turpinator

2014-10-19 17:07:37

So after i fixed your map… I played with it.
those are the dead spots. So increase the bottom of the map to include all of the altar, or it wont work.

For that i used an accuracy of 4 (default), tolerance of 900, and min match percent to .40 (default).
heres the map i used.

BorderlandsPsycho

2014-10-19 21:57:58

All works well now, must have been an issue with my map, thanks so much.