SRL Archive - OSR Help

Custom SPS MiniMap Map Help [On Old School]


Babbler

2013-03-01 05:31:37

Having issues following this tut: http://villavu.com/forum/showthread.php?t=84360

I've created this image for the minimap, and edited the script for my array (below is my edited one)

[ATTACH=CONFIG]19490[/ATTACH]

Program TestPath;
{$i srl/srl.Simba}
{$i sps/sps.simba}

var //{path name}
//{delcare the sps variable}
togarden: tpointarray;

status: string;

procedure paths;
begin
togarden := [Point(148, 100), Point(149, 108), Point(152, 119), Point(153, 127), Point(154, 138), Point(161, 153), Point(170, 165), Point(177, 179), Point(180, 193), Point(186, 208), Point(192, 220), Point(195, 232), Point(201, 243), Point(205, 253), Point(213, 260), Point(217, 271), Point(233, 270), Point(238, 259), Point(239, 249)]
end;
procedure testpath;
begin
if sps_walkpath(togarden) then
status := 'walking to the garden'
else begin
status :='failed walking to the garden';
writeln(status + ' + time running:' +timerunning);
end;
writeln(status + ' + time running:' +timerunning);
end;
begin

setupsrl;
paths; //{call path variables here}
//{Mistake I see a lot only call the map once, Not in the procedure}
//{If using multiple accounts it will always give an error when trying to pull the map}
sps_setup(runescape_other,['flaxv2'])

testpath;

repeat
until(false)
end.

I had to delete a couple of unknown identifiers to get it to run, but it doesn't walk to the flax anyway :) I tried recreating the minimap a few times and messing around with the script but I think I may be jumping in the deep end a little bit - Any lifeguards out there?!

tealc

2013-03-01 05:50:48

EOCscape sps doesn't work with old school rs. How ever a few hours ago CynicRus released a version for old school rs.


http://villavu.com/forum/showthread.php?t=97449

Sjoe

2013-03-01 05:54:59

From: Babbler
Having issues following this tut: http://villavu.com/forum/showthread.php?t=84360

I've created this image for the minimap, and edited the script for my array (below is my edited one)

[ATTACH=CONFIG]19490[/ATTACH]

Program TestPath;
{$i srl/srl.Simba}
{$i sps/sps.simba}

var //{path name}
//{delcare the sps variable}
togarden: tpointarray;

status: string;

procedure paths;
begin
togarden := [Point(148, 100), Point(149, 108), Point(152, 119), Point(153, 127), Point(154, 138), Point(161, 153), Point(170, 165), Point(177, 179), Point(180, 193), Point(186, 208), Point(192, 220), Point(195, 232), Point(201, 243), Point(205, 253), Point(213, 260), Point(217, 271), Point(233, 270), Point(238, 259), Point(239, 249)]
end;
procedure testpath;
begin
if sps_walkpath(togarden) then
status := 'walking to the garden'
else begin
status :='failed walking to the garden';
writeln(status + ' + time running:' +timerunning);
end;
writeln(status + ' + time running:' +timerunning);
end;
begin

setupsrl;
paths; //{call path variables here}
//{Mistake I see a lot only call the map once, Not in the procedure}
//{If using multiple accounts it will always give an error when trying to pull the map}
sps_setup(runescape_other,['flaxv2'])

testpath;

repeat
until(false)
end.

I had to delete a couple of unknown identifiers to get it to run, but it doesn't walk to the flax anyway :) I tried recreating the minimap a few times and messing around with the script but I think I may be jumping in the deep end a little bit - Any lifeguards out there?!


Make sure you make a map that completely faces north when u try the 07 sps out.
Since yours is aligning toward North east.

Babbler

2013-03-01 05:59:53

Edit: Just saw the second post, re-doing

J J

2013-03-01 06:04:50

I've also made a tutorial: http://villavu.com/forum/showthread.php?t=81109
You also need to edit SPS_GetMyPos with the correct coords for RS07. Other than that you might also want to look into FilterMinimap to make it filter the dragons on the south part of the minimap. Might also want to increase SPS_Tolerance and lower SPS_Accuracy because of the big changes in color.

Babbler

2013-03-01 06:15:49

Okay definitely jumped in too deep. I was okay with scar but I think I have to go back to taking baby steps. Thanks for your help guys.

The Mayor

2013-03-01 06:39:43

Before taking each snippet click the compass to align the MM to north. Sometimes it shifts a few pixels while you're saving your pictures etc.

Babbler

2013-03-01 06:55:34

That doesn't work in Old School I don't think :)