SRL Archive - OSR Help

SPS Returns Cords (-1,-1)


qisp

2013-06-13 21:34:14

I'm having a problem running a script I made on another computer of mine. Both have Smart8, SPS-osr, and SRL installed and updated the same. For some reason when the script should enter a SPS walk path it doesn't do anything. I checked by adding

Me := SPS_GetMyPos();
writeln(Me);

to the script to check my current location and it returns the coordinates (-1,-1). Not that it matters but it should be returning around (1850,2600). I am using the same map from the runescape_surface07 folder of SPS. Any help would be appreciated!

EngageTheRage

2013-06-13 21:52:49

OSR SPS isnt great, the map color changes alot so it often doesnt get a result (meaning it returns -1,-1 )

qisp

2013-06-13 22:13:48

I figured. I don't normally use the forums either. I noticed the mini-map on my other computer is significantly darker than the one i originally wrote the script on. Maybe i should make a custom map of the darker one and use both just incase?

EngageTheRage

2013-06-13 22:34:46

if you check out flights scripts here http://villavu.com/forum/showthread.php?t=103053 he made another map and switches between light and dark if one isnt working … :D

qisp

2013-06-13 22:45:02

Thanks for the link. I have another issue that i'm not sure how to accurately go about. The minimap I know moves 11 degrees in both directions to deter bots. I'm not sure how to fix this because make compass is set to 5. SPS_AnyAngle = True as well but it still cannot find the points if the minimap is to far off.

bob_dole

2013-06-13 23:22:49

SPS_MatchesPercent = 0.3

put that in your code before calling SPS_setup. Then run the script as normal

Sjoe

2013-06-14 00:10:14

Show us your sps map, we'll get more info bout the issue.

NKN

2013-06-14 00:12:39

Through out two different maps, a dark and a light one.

Have the points from the map pretty close to eachother, so even if the map shifts, it can still find it. Having more points won't make it slow down terribly much, as it still clicks the furthest visible one.

bob_dole

2013-06-14 01:49:17

According to his post he is trying to use SPS around the ancient cavern entrance.