SRL Archive - OSR Help

Do any SPS functions make the compass N for you?


YoHoJo

2013-03-11 12:04:25

Trying to keep compass south, using an 'upside down' SPS map I made, and made the path with it.
I have

begin
ClearDebug;
SetUpSRL;
DeclarePlayers;
SPS_Setup(RUNESCAPE_OTHER, ['XXXX_UpsideDown']);
MakeCompass('S');
WalkToGuy;

Function WalkToGuy:Boolean;
var
ToSeer: TPointArray;
begin
ToSeer := [Point(265,265),Point(290,241),Point(297,226)];
if SPS_WalkPath(ToGuy) then
begin
result:= True;
exit;
end
else
begin
Logout;
TerminateScript;
end;
end;

Yet this is making turning my compass NORTH.
What code/lines etc are causing this/how do I stop it?
Why is this happening?


Edit:
Compass no longer a problem.
I guess SPS_AnyAngle := True; fixed it?
But now it's just not working
The map/walk works when N (using appropriate path/map).
But when turned upside down and path is remade, it does not work, any clue why not?
Maybe SPS_AnyAngle := True; no workie for me?

Which function specifically makes the compass turn north in SPS?

Runehack123

2013-03-11 12:08:50

SPS only works for compass angle 'N'. (Because all SPS maps were created with the angle facing north)
Making a custom SPS map with compass angle 'S' might solve your problem.

YoHoJo

2013-03-11 12:13:54

From: Runehack123
SPS only works for compass angle 'N'. (Because all SPS maps were created with the angle facing north)
Making a custom SPS map with compass angle 'S' might solve your problem.


From: YoHoJo
Using an 'upside down' SPS map, and made the path with it.


<3hi

litoris

2013-03-11 12:14:00

From: Runehack123
SPS only works for compass angle 'N'. (Because all SPS maps were created with the angle facing north)
Making a custom SPS map with compass angle 'S' might solve your problem.


Wrong…

SPS works at any angle, you just have to set

SPS_AnyAngle := True;

My crafter works facing south.

Runehack123

2013-03-11 12:17:12

From: litoris
Wrong…

SPS works at any angle, you just have to set

SPS_AnyAngle := True;

My crafter works facing south.


My bad …I didn't know that :)
Thanks for sharing litoris and sorry for bad advice

Sjoe

2013-03-11 12:17:20

Maybe a line in SPS_WalkPath ? Check the function pancake!

EDIT: yeah sps_anyangle , try that. Never works for me though lol

YoHoJo

2013-03-11 12:19:25

See OP, edited.

YoHoJo

2013-03-11 13:01:58

Any way to just make it NOT move the compass instead of use AnyAngle? (As in can someone tell me which line makes it move the compass?)
Any angle will probably take up more time/resources for the script, I'd like for it to just work at a S angle.

litoris

2013-03-11 13:10:30

From: YoHoJo
Any way to just make it NOT move the compass instead of use AnyAngle? (As in can someone tell me which line makes it move the compass?)
Any angle will probably take up more time/resources for the script, I'd like for it to just work at a S angle.


Go through the SPS file…

Smidqe

2013-03-11 13:12:41

From: YoHoJo
Any way to just make it NOT move the compass instead of use AnyAngle? (As in can someone tell me which line makes it move the compass?)


SPS_GetMyPos moves the compass (lines 351-358)


//from SPS.simba
if (SPS_AnyAngle) and (inRange(a, 10, 350)) then
Minimap := SPS_RotateMinimap()
else begin
if (inRange(a, 10, 350)) then
if (SPS_ClickNorth) then
ClickNorth(SRL_ANGLE_HIGH)
else
MakeCompass('N');

Minimap := SPS_GatherMinimap();
end;

Olly

2013-03-11 13:13:34

sps_anyangle probs adds about… 16-32ms to the result :p but north is hardcoded into sps you would have to remove it yourself from sps.simba

YoHoJo

2013-03-11 13:22:55

AnyAngle is walking to wrong spots.

Removed the MakeCompass('N'); from sps.simba
Removed AnyAngle from script.

Now it walks even worse.

I'm just mad now wtf.


AnyAngle makes it too tolerable and just clicks wrong places.
Removing AnyAngle and removing the MakeCompass('N') is even worse.


I just want to use a S facing map and have SPS work, wtf.

Olly

2013-03-11 13:29:44

What rs are you using this in?

litoris

2013-03-11 13:29:51

Try changing the tolerance and such? I think there were 2 parameters you could change to adjust SPS' accuracy. I tried changing them before with some success in the wilderness.

YoHoJo

2013-03-11 13:41:39

From: Ollybest
What rs are you using this in?

RS07 Custom SPS file via JJ.

From: litoris
Try changing the tolerance and such? I think there were 2 parameters you could change to adjust SPS' accuracy. I tried changing them before with some success in the wilderness.

I'll give it a shot later, thanks.

Olly

2013-03-11 13:43:27

your problem is most likely sps in oldschool rs, ive said it many times before it just wont work like it does in the new rs.

YoHoJo

2013-03-11 13:47:07

From: Ollybest
your problem is most likely sps in oldschool rs, ive said it many times before it just wont work like it does in the new rs.


Using the sps file I have I've got a solid working path, script runs 5 hours + no problems.
I'm just having a hard time (different location) having it work at S angle D:
Focusing on other parts of the script so I can cool down for a bit.