SRL Archive - RS3 Help

Unchanged SPS path no longer works.


adc

2015-06-14 01:53:23

I went to run a script today and I've discovered the SPS path I created no longer works. As near as I can guess, it seems to be trying to skip the middle node (assuming it can go to the balloon in one click), but clicks at the middle node anyway, then errors out because it isn't at the end. This is my path and code to run it:

  pathToBalloon := [Point(140, 197), Point(194, 170), Point(194, 122)];
if cwtob.walkPath(pathToBalloon) then

Krzysztof

2015-06-14 09:10:59

Umm, have you tried creating a new one?
If it worked 3 months ago then it might not be viable again, and if it worked just yesterday then that's a problem.

First create any SPS map on non-similar colors to determine whether the problem lies in your map or your script, then try to make the same map several times. It might be the SPS is just getting confused if the colors are very similar in the minimap.

edit:
If it's skipping the middle node, then my guess it's because it doesn't see it. Try to set up two more points in the same path, so that it clicks more often but for shorter distances.

meep152

2015-06-14 10:20:37

Hi,

A while ago I had a similar problem, in which my SPS procedure stopped working all of the sudden, even though I made no changes to the script: https://villavu.com/forum/showthread.php?t=112736&highlight=

Maybe your problem is related in some way? My fix was restarting my computer, since for some reason getsystemtime(), which is used in the internal SPS procedure, was providing the incorrect value.

It's always worth a shot - and I hope that you resolve your problem. :)

adc

2015-06-14 14:42:25

From: Krzysztof
Umm, have you tried creating a new one?
If it worked 3 months ago then it might not be viable again, and if it worked just yesterday then that's a problem.

First create any SPS map on non-similar colors to determine whether the problem lies in your map or your script, then try to make the same map several times. It might be the SPS is just getting confused if the colors are very similar in the minimap.

edit:
If it's skipping the middle node, then my guess it's because it doesn't see it. Try to set up two more points in the same path, so that it clicks more often but for shorter distances.


It's skipping the middle node because it can sometimes walk directly to the end node, I assume. I guarantee you it can easily see the middle node. And yes, it just worked a day or two ago.

From: meep152
Hi,

A while ago I had a similar problem, in which my SPS procedure stopped working all of the sudden, even though I made no changes to the script: https://villavu.com/forum/showthread.php?t=112736&highlight=

Maybe your problem is related in some way? My fix was restarting my computer, since for some reason getsystemtime(), which is used in the internal SPS procedure, was providing the incorrect value.

It's always worth a shot - and I hope that you resolve your problem. :)


getSystemTime() is still returning accurately, and despite being a large number (27.6 days of uptime on my system right now), comparisons against it still work correctly. Besides, it's not a timeout, it's failing too quickly for that.

Well, apparently - despite testing and receiving proper results - this was the issue. I restarted my computer and it's working fine now. Wot.

GetHyper

2015-06-15 02:57:35

From: adc


Well, apparently - despite testing and receiving proper results - this was the issue. I restarted my computer and it's working fine now. Wot.


'Have you tried turning it off and on again?'

Glad it's sorted, nothing like a good old restart!

adc

2015-06-15 03:21:32

From: GetHyper
'Have you tried turning it off and on again?'

Glad it's sorted, nothing like a good old restart!


I tested the exact same code that the SPS include was using and it was returning the correct result every time in a standalone script. Color me confused. Thoroughly confused.