SRL Archive - OSR Help

SPS walking error


Syntax

2013-08-09 06:04:04


program test_walker;
{$i SRL-OSR/SRL.Simba}
{$i SPS/SPS-OSR.simba}
procedure WalkToBank;
var
myPath:TPointArray;
begin
SPS_Setup(runescape_surface, ['13_12']);
myPath := [Point(328, 274), Point(331, 255), Point(357, 265), Point(363, 290),
Point(362, 314), Point(365, 335), Point(345, 341), Point(254, 399), Point(74, 219),
Point(196, 90), Point(397, 98), Point(448, 209), Point(430, 347), Point(346, 341)];
SPS_WalkPath (myPath);
end;
begin
SetupSRL;
SPS_Debug := True;
SPS_AnyAngle := True;
SetAngle (SRL_ANGLE_HIGH);
SPS_GetMyPos;
WalkToBank;
end.

In the Debug I get;
SPS ERROR: SPS_Setup was never called
I did call it though, or did I incorrectly?

Could you guys suggest me a reflection tutorial, almost given up on SPS for now.

Ashaman88

2013-08-09 07:04:46

Need to call setup sps before calling get my pos. or just remove that get my pos call

Le_don

2013-08-09 07:05:00

Try SetupSPS;
Really though I would use Reflection and SMART 8.2 for walking.

Syntax

2013-08-09 09:12:23

From: Ashaman88
Need to call setup sps before calling get my pos. or just remove that get my pos call

Before or after I call it, it won't work. If I call it afterwards I get the above error, or if I do it. If I do it after it doesn't get my location:
[SPS] SPS_Setup() took 32 ms. Areas: ['13_12']
SPS_GetMyPos: Finished in 2839 ms. Result = (-1, -1)
SPS_GetMyPos: Finished in 2824 ms. Result = (-1, -1)
SPS_GetMyPos: Finished in 2839 ms. Result = (-1, -1)
Successfully executed.

Kevin

2013-08-09 11:24:46

From: Blakebn2011
Before or after I call it, it won't work. If I call it afterwards I get the above error, or if I do it. If I do it after it doesn't get my location:
[SPS] SPS_Setup() took 32 ms. Areas: ['13_12']
SPS_GetMyPos: Finished in 2839 ms. Result = (-1, -1)
SPS_GetMyPos: Finished in 2824 ms. Result = (-1, -1)
SPS_GetMyPos: Finished in 2839 ms. Result = (-1, -1)
Successfully executed.


Calling SPS_Setup afterwards will ALWAYS error, no exception.

The result of (-1, -1) when calling it prior is because it could not find you in the given area '13_12'. I will admit, it seems odd that your entire check area is within a single one of the smaller maps, are you absolutely sure you're not supposed to be using a larger amount of mini maps for your setup?

Syntax

2013-08-09 20:02:10

The place I am travelling to is within two houses of the bank.
Not sure if that is reasonable, but it should still do something that return null results?
@Kevin

Syntax

2013-08-10 01:27:45

From: Kevin
Calling SPS_Setup afterwards will ALWAYS error, no exception.

The result of (-1, -1) when calling it prior is because it could not find you in the given area '13_12'. I will admit, it seems odd that your entire check area is within a single one of the smaller maps, are you absolutely sure you're not supposed to be using a larger amount of mini maps for your setup?

Yeah I only need the one map the house i am travelling too is right next door to the building that is next to the bank :P

Syntax

2013-08-10 21:53:20

Hmm.. I have followed almost every tutorial to do with sps with no luck.
Should I try reflection instead? I haven't been able to find a good tutorial for it though.
Thank you.

Turpinator

2013-08-12 16:35:53

Perhaps you could post a picture of where you are walking to and from.

Until reflection has an updater and a dedicated include… its one of those things you will have to do on your own. i believe brandon posted a walking func as well as Flight has one in his nature crafting script that you could copy/use/etc.

Hoodz

2013-08-12 16:46:39

Use reflection, @flight made a walking function + blindwalk (not sure)
For me it's so far 100% stable.

Syntax

2013-08-12 19:51:46

Sounds good I will look into it Thanks guys.