SRL Archive - OSR Help

SPS Walking


Sjoe

2013-01-02 18:02:47

Hey,

I'm trying out SPS Walking In Al Kharid to the furnace, can't get SPS Walking working :(

Made a custom map by following J J's tutorial, didn't want to gravedig it.

Whenever I'm trying to walk towards the furnace, it mostly clicks on another area I want to be in.

Starting in Bank: (Position is x: 263 y: 227)

procedure SPSCheck;
var
MyPos:TPoint;

begin
SPS_Setup(RUNESCAPE_Other, ['Al_Kharid']);
MyPos:=SPS_GetMyPos;
Writeln('My position is x: '+inttostr(MyPos.x)+' y: '+inttostr(MyPos.y));
SPS_BlindWalk(Point(RandomRange(247,275), RandomRange(267,283)));
end;

Blue box is were I want to be

Red box is where it clicks all the time ( not even on my map, same surface almost as in blue box )



And the image in runescape_others if needed:


Really wanna get the hang of SPS Walking.

DannyRS

2013-01-02 18:04:41

Try adding more area

e.g. go to the edges of your map and add more circle grabs

also off-map should be black not white ;)

Also try to remove moving NPC dots

Sjoe

2013-01-02 18:09:57

From: DannyRS
Try adding more area

e.g. go to the edges of your map and add more circle grabs

also off-map should be black not white ;)


More Area's = more boxes to add ?

I'll try your advice, thx for the quick reply Danny

DannyRS

2013-01-02 18:14:09

From: Inholtz
More Area's = more boxes to add ?

I'll try your advice, thx for the quick reply Danny


no, just there's spots your game mm will have areas your map is white and SPS Algorithm will likely mess up where it thinks you are

e.g. aim for


NKN

2013-01-02 18:14:32

Try and take more screen shots.
Bigger map = more accurate.
(Up to 500x500)

Sjoe

2013-01-02 18:19:23

Ok, this is gonna take awhile to make, off to work.

EDIT: If it's a black background, SPS won't read it?
My original map has no background though.

J J

2013-01-02 18:32:34

Yes you should try using a larger map. Background should be black as SPS will ignore those pixels then. Must also be 500x500 pixels and .png
It doesn't get your position properly in the bank: x: 263 y: 227
So when it tries to walk to let's say 250, 275 it will walk a bit west and south of your current position. Which is indeed what is happening.

So you will need to use a more accurate map to get SPS return a more accurate position :)

Sjoe

2013-01-02 18:49:16

Anyone know how to make the blackground black with Gimp?
Can't find a decent tutorial.

NVM: i'll use paint lol

DannyRS

2013-01-02 18:50:01

From: Inholtz
Ok, this is gonna take awhile to make


I Feel Your Pain!!!

What I Used:
Here

Original Grabs I Made (Positioned):
Here

Sjoe

2013-01-02 20:12:09

Noob question: does it really have to be pixel perfect?

DannyRS

2013-01-02 21:17:44

From: Inholtz
Noob question: does it really have to be pixel perfect?


nope just as close as you can, the better the map the more reliable your script will be ;)

I would ensure that symbols dont cover key areas or ones you will be in alot, such as ontop of a point you want to walk onto, all common sense applies really, just try to think like a computer trying to work out your position comparing to a map

Highly recommended you remove all Yellow/White/Red Dots that Move (bankers should be left in etc)

Sjoe

2013-01-03 12:40:24

Thx, great help!

DannyRS

2013-01-03 13:03:01

From: Inholtz
Thx, great help!


Did you get it working? :p

Olly

2013-01-03 13:24:33

SPS isn't the greatest in desert areas, for alkarid id suggest dtms since there are alot of static objects (npc dots, rocks, cactus).

Sjoe

2013-01-03 13:32:05

I'm still working on my map lol.
Tried DTM's they do work , just wanted to test out sps.
But Caotom's Tanner and Topic's Tanner had SPS walking. Did work properly.

Sjoe

2013-01-03 16:28:33



Better?

Or think bigger?

The Killer

2013-01-03 16:32:34

From: Inholtz


Better?

Or think bigger?


should be more than fine. Try it and come back :P

Sjoe

2013-01-03 16:53:21

Workssssss Hooray :)

EDIT: not perfect yet, need to go to the furnace, remove the symbol?
EDIT2: Nevermind, got it, satisfied

Thanks for the exquisite help guys

Sjoe

2013-01-05 13:44:47

re-opening this for another issue.

Made a map of a part of Falador (trying to get to the Wine Of Zamorak)



Well problem is it isn't really working, mostly missclicks or do nothing, coörds of GetmyPos all messed up.
Thought the map was decent.

Since I start at the bank, is it better that I get more area on the left?
Since it's member part can't really get that :(

The Killer

2013-01-05 14:16:06

From: Sjoekeloe
re-opening this for another issue.

Made a map of a part of Falador (trying to get to the Wine Of Zamorak)



Well problem is it isn't really working, mostly missclicks or do nothing, coörds of GetmyPos all messed up.
Thought the map was decent.

Since I start at the bank, is it better that I get more area on the left?
Since it's member part can't really get that :(


hmm is it less than or equal to 500 x 500? is the map to scale?

Sjoe

2013-01-05 14:27:02

From: The Killer
hmm is it less than or equal to 500 x 500? is the map to scale?



The map is on scale: 300 x 300 ( my Al_kharid was the same and that works very well)
Website is showing it smaller, bit strange.

DannyRS

2013-01-05 15:01:05

Can u try a non custom one just to see if its better


Sjoe

2013-01-05 16:24:17

Ok, i'll try now.

EDIT: Lol, it works from the first instance, wasted hours on making that map.
Is it the map from runescape surface? Need the second part up to the Zamorak Chaple as well.

DannyRS

2013-01-05 16:50:43

From: Sjoekeloe
Ok, i'll try now.

EDIT: Lol, it works from the first instance, wasted hours on making that map.
Is it the map from runescape surface? Need the second part up to the Zamorak Chaple as well.


got it here ages ago tho

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

Sjoe

2013-01-05 17:05:49

Ah ok,

made a second part, but it only walks to the Red gate near the Anvil/Grainfield then it gets stuck.


Sorry for asking so much, but I simple don't know what to try

DannyRS

2013-01-05 17:11:25

did you try to load two maps?

try


Sjoe

2013-01-05 19:16:42

They Work when I test them individually, but when I combine them , it stops Path1 is Done

Smthing Like this



Path1 := [Point(105, 267), Point(105, 267), Point(105, 252), Point(118, 248), Point(125, 234), Point(137, 224), Point(151, 223), Point(163, 220), Point(174, 215), Point(179, 207), Point(182, 194), Point(182, 180), Point(182, 167), Point(182, 158), Point(182, 147), Point(177, 136), Point(180, 125), Point(184, 114), Point(178, 103), Point(169, 93), Point(158, 83), Point(148, 76), Point(138, 65), Point(129, 60), Point(118, 47), Point(117, 36)]

SPS_Setup(RUNESCAPE_Other, ['Zam1']);
SPS_WalkPath(Path1);


Path2 := [Point(151, 405), Point(150, 403), Point(149, 391), Point(154, 381), Point(151, 369), Point(142, 357), Point(132, 345), Point(120, 336), Point(109, 331), Point(101, 318), Point(91, 310), Point(88, 294), Point(85, 276), Point(83, 260), Point(83, 250)]

SPS_Setup(RUNESCAPE_Other, ['Zammy_test2']);
SPS_WalkPath(Path2);

DannyRS

2013-01-05 19:22:34

From: Sjoekeloe
They Work when I test them individually, but when I combine them , it stops Path1 is Done


dont combine just make the map all in one

Sjoe

2013-01-05 19:23:58

From: DannyRS
dont combine just make the map all in one


Tried that too, doesn't walk then

EDIT:Might be the map update, gonna try some editing.

J J

2013-01-05 19:35:37

Try using one of these pathmakers to generate a path on the full world map.
I've used this one myself: http://villavu.com/forum/showthread.php?t=64891
Another one: http://villavu.com/forum/showthread.php?t=92498

Use the full worldmap and set up all the area's it gives you and use all the points.


EDIT: From bank to zamorak wine
[Point(3618, 3179), Point(3618, 3174), Point(3618, 3167), Point(3618, 3162), Point(3620, 3155), Point(3622, 3152), Point(3633, 3149), Point(3637, 3145), Point(3642, 3139), Point(3649, 3135), Point(3655, 3130), Point(3663, 3125), Point(3675, 3125), Point(3684, 3125), Point(3688, 3124), Point(3692, 3114), Point(3692, 3108), Point(3692, 3100), Point(3692, 3092), Point(3693, 3083), Point(3693, 3077), Point(3693, 3067), Point(3693, 3060), Point(3693, 3048), Point(3693, 3039), Point(3694, 3029), Point(3693, 3023), Point(3688, 3010), Point(3687, 3006), Point(3684, 3000), Point(3679, 2993), Point(3674, 2989), Point(3666, 2983), Point(3661, 2978), Point(3655, 2974), Point(3644, 2971), Point(3636, 2963), Point(3632, 2957), Point(3629, 2948), Point(3626, 2940), Point(3627, 2924), Point(3627, 2912), Point(3623, 2898), Point(3623, 2890), Point(3623, 2877), Point(3622, 2865), Point(3621, 2856), Point(3621, 2847), Point(3624, 2835), Point(3628, 2827), Point(3631, 2817), Point(3631, 2804), Point(3632, 2792), Point(3638, 2783), Point(3646, 2777), Point(3656, 2772), Point(3662, 2763), Point(3666, 2753), Point(3666, 2747), Point(3659, 2744), Point(3653, 2745), Point(3650, 2748), Point(3644, 2752), Point(3640, 2755), Point(3633, 2756), Point(3628, 2755)]

Area's:
[8_6, 8_7, 9_6, 9_7]

Then do
SPS_Setup(RUNESCAPE_SURFACE, ['8_6', '8_7', '9_6', '9_7']);
Path := *PATH_ABOVE*
SPS_WalkPath(Path)

Sjoe

2013-01-05 19:56:37

Thx J J, great tip. It's weird that doesnt' work either ==> script goes walking to north east instead of north.
But I edited the map Danny gave me and it works fine now!
Thx for the patience