PDA

View Full Version : SPS Walking Guide (The Basics) By Aligndude



Mat
01-08-2012, 01:11 PM
Hey
SPS, stands for SRL POSITIONING SYSTEM.
SPS is a way of making a script walk.(... Yea).
Lets Start.
The Includes This has to be located at the Top of the Script.

{$i srl/srl.simba}
{$i sps/sps.simba}

To set SPS up. You always have to do this before you start SPS.
SPS_Setup(RUNESCAPE_SURFACE,['3_1']);
You can see RUNESCAP_SURFACE. This is saying that you want to walk on the Main Map of RS. If you want to Walk in Different area's you can find them by going: C:\Simba\Includes\SPS\img\
You should see a list of folders like this:
http://img819.imageshack.us/img819/9624/locationsm.png
These are the different RS Area.

Next you can see this:
, [3_1]]);

There are two ways to get these the '3_1' (There are loads not just that).
To get these and make the Path I use a Program Called "Path Creator" you can download this Here:http://villavu.com/forum/showthread.php?t=64891&highlight=path+creator

Once you have Downloaded it Open it up.
Should Look like this.
http://img830.imageshack.us/img830/2812/pathcreatorfirstlook.png

Next you Click on New Image and it should Show Something like this:
http://img846.imageshack.us/img846/5017/clicknewimageyoullseeth.png

Find The File Runescape_Surface.PNG and Open it.
It should load and it looks like it hasn't becuase all you can see is blue, but it is there :P to find Locations you can either scroll along the map or use the pre made locations I'm going to use that to go to Varrock for this Tutorial.
http://img220.imageshack.us/img220/8521/dropdownx.png

Then you should be able to see Varrock, if you Click on the Map You'll Be able to see a Blue square with a Blue Ring Around it like in the image below.
http://img15.imageshack.us/img15/6445/point1k.png
This is a TPoint (Spot where the Bot will Walk to). The blue ring is the MiniMap (So its what the MiniMap can See).

To make your Path
Click in the blue ring in the direction you want to go to, Like this:
http://img847.imageshack.us/img847/7120/myfinishedpath.png

Once made your Path if you look to the bottom of the Program you should be able to see this:
http://img72.imageshack.us/img72/875/clickgenreate.png

Click Generate path in the larger Box, and then it will look like this:
http://img41.imageshack.us/img41/8190/pathmadeinsps.png
This is your Path.
Copy that and Paste it in to Simba: (Also Included SRL and Put SetupSRL; Before everything (My Bad :P))
http://img841.imageshack.us/img841/8631/pastin.png
If you Notice I have nothing in the SPS_Setup's {[]} this is because I haven't copied it(the SPS Area) from the Path Creator.

Before that I always do this before I copy it, I click in a huge square around my path as you can see in the image below (The red shaped things to show you my extra points):
http://img856.imageshack.us/img856/882/25646198.png
I do this because a lot of the time it fails to walk even though the Path is Correct and the Areas are what the Path Creators says.
Before More Points:
SPS_Setup(RUNESCAPE_SURFACE,['11_7','11_6']);
After More Points:
SPS_Setup(RUNESCAPE_SURFACE,['11_7','11_6','10_6','10_7','12_7','12_6']);
I found adding more works better but if you don't want to it may work with out.

Ow I almost Forgot, The Vars.
The Path Name can be Anything you want it doesn't matter, but thr Var has to be the same.
Var
MyPath:TPointArray;
If its only one point it will be:
Var
MyPath:TPoint;
This will be if you only have to walk to one point say at CW Bank, after you've teleported there.

Making it Walk
Once you Have everything made the Path and the Area, Now you can make it walk.
There are Two Commands One for a path walking and one for a single position walking.
SPS_WalkPath();
Path Walking
SPS_WalkToPos();
Walking to a Position.

All In
With every thing in your Script should look similar to this:
program SPSTut;
{$i srl/srl.simba}
{$i sps/sps.simba}
Var
myPath:TPointArray;
begin
SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE,['11_7','11_6','10_6','10_7','12_7','12_6']);//SPS Areas
myPath := [Point(4684, 2963), Point(4675, 2957), Point(4667, 2947),
Point(4662, 2936), Point(4644, 2936), Point(4638, 2927), Point(4628, 2918),
Point(4628, 2905), Point(4622, 2891), Point(4619, 2872), Point(4619, 2863),
Point(4597, 2851), Point(4580, 2840), Point(4557, 2841), Point(4534, 2837),
Point(4517, 2831), Point(4510, 2816), Point(4503, 2804), Point(4502, 2792),
Point(4500, 2778), Point(4509, 2773), Point(4526, 2776), Point(4543, 2774),
Point(4550, 2766), Point(4553, 2756), Point(4564, 2748)];//Path
SPS_WalkPath(myPath);
end.
SUCCESS! If you have Followed my Tutorial your Script should be able to walk to any Location.
There are Some things you may want to know SPS isn't the Best in the Deserts or Snowy area, but Hopefully SPS 2 should improve this!
Hope this Has Helped Some People :)
Mat

Nexz
01-08-2012, 04:42 PM
Nice!
The writing is a bit sloppy, but the guide is still easy to understand so it's not a problem.
I'm gonna try this on now!

Mat
01-08-2012, 05:05 PM
Yea my Grammar and English is terrible :D Even tho I am English :D
Mat

Wetish
01-08-2012, 06:34 PM
Im going to try this out. :)

Edit:
Nope... SPS still doesnt work well for me. It missclicks and gets suck halfway through my path.

Failedpure
01-08-2012, 07:08 PM
Very helpful guide. Was wondering why it wasn't working in Al-Kharid but then I remembered it didn't work very well in the desert

Mat
01-08-2012, 08:05 PM
Im going to try this out. :)

Edit:
Nope... SPS still doesnt work well for me. It missclicks and gets suck halfway through my path.
Try making your path points closer together it, might not seem they are needed as it clicks the furthest one away.
Try that.
Mat

dread4
01-08-2012, 09:30 PM
thanks this helped alot im trying to learn how to code a bot to help the community out;)!

putonajonny
01-08-2012, 09:40 PM
Good guide, you should add things like more of the SPS functions and what they can be used for

marpis
01-08-2012, 11:00 PM
SPS stands for SRL Positioning System.

EDIT: Nice guide, thanks!

lilcmp1
01-09-2012, 03:55 AM
Great guide, this has been needed. Hero helps me with this awhile ago, it was actually one of your scripts that got me interested in it. It is a fantastic walking method (usually).

Scaper
01-09-2012, 07:44 PM
I cant get it to add the area? why>?

Mat
01-09-2012, 08:44 PM
By that you mean? SPS_Setup(RUNESCAPE_SURFACE,['12_1','11_1']);
That part?
Mat

Hunaja
01-17-2012, 06:29 PM
Helped a lot to understand the basics. Thanks :)

'Toxin
01-18-2012, 05:24 PM
This actually helped me... and I thought I knew enough about SPS as it is... apparently there's more to know, lol. Awesome guide dude.

Inception
01-18-2012, 06:56 PM
Nice guide, I plan on testing this out soon!

fearlesskiller
01-21-2012, 05:11 PM
WOW thank you so much that help me so much !!!!

Bwuk
01-21-2012, 05:57 PM
Thanks alot! I can start making my scrips walking now! :D

lol305
01-21-2012, 09:16 PM
NVM hope this work if it does my first script made ^^

lol305
01-21-2012, 09:53 PM
program rockfishwalker;
{$i srl/srl.simba}
{$i sps/sps.simba}
Var
myPath:TPointArray;
begin
SPS_Setup(living_rock_caverns,[0_1]);//SPS Area
myPath := [Point(159, 167), Point(159, 167), Point(166, 167),
Point(166, 167), Point(171, 166), Point(171, 166), Point(173, 172),
Point(173, 172), Point(175, 181), Point(175, 181), Point(174, 193),
Point(174, 193), Point(175, 201), Point(175, 201), Point(173, 212),
Point(173, 212), Point(169, 219), Point(169, 219), Point(163, 225),
Point(163, 225), Point(156, 238), Point(156, 238), Point(153, 243),
Point(153, 243), Point(152, 246), Point(151, 250)];
end


Okay so tryed to test it but keep saying this
[Error] (8:13): Unknown identifier 'living_rock_caverns' at line 7
Compiling failed.

Nebula
01-22-2012, 02:20 AM
Wow this is a really great tutorial. I wish you made it sooner, it was hard for me to figure out SPS.

Mat
01-22-2012, 10:20 AM
program rockfishwalker;
{$i srl/srl.simba}
{$i sps/sps.simba}
Var
myPath:TPointArray;
begin
SPS_Setup(living_rock_caverns,[0_1]);//SPS Area
myPath := [Point(159, 167), Point(159, 167), Point(166, 167),
Point(166, 167), Point(171, 166), Point(171, 166), Point(173, 172),
Point(173, 172), Point(175, 181), Point(175, 181), Point(174, 193),
Point(174, 193), Point(175, 201), Point(175, 201), Point(173, 212),
Point(173, 212), Point(169, 219), Point(169, 219), Point(163, 225),
Point(163, 225), Point(156, 238), Point(156, 238), Point(153, 243),
Point(153, 243), Point(152, 246), Point(151, 250)];
end


Okay so tryed to test it but keep saying this
[Error] (8:13): Unknown identifier 'living_rock_caverns' at line 7
Compiling failed.
Hey Man its saying that the RS Area is there meaning the folder isn't there for the Living Rock Caverns you'd have to create your Own Map.
Mat

slakan
01-25-2012, 11:02 AM
this like up to date now?? or what walking should we use?

Sin
01-26-2012, 09:59 PM
SPS_Areas := ['0_0','0_1'];
myPath := [Point(361, 318), Point(360, 377), Point(365, 397), Point(363, 429), Point(323, 439), Point(293, 417), Point(254, 409), Point(234, 415)];


I get an error -

[SPS] SPS_Setup() took 156 ms. Loaded 1 areas.
Error: Exception: Access violation at line 146


at line 146

SmallMap := SPS_BitmapToMap(Minimap, 5);


Pl0x help :c
I'm trying to walk through Taverly Dungeon btw :0

Mat
01-26-2012, 10:14 PM
Sps 1.5?
If So I couldn't get it to work as I always got that no matter what I tried to do.
Sorry :(
Mat

Goku123
01-28-2012, 06:53 PM
program SPSTut;
{$i srl/srl.simba}
{$i sps/sps.simba}
Var
myPath:TPointArray;
begin
SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE,['11_7','11_6','10_6','10_7','12_7','12_6']);//SPS Areas
myPath := [Point(4684, 2963), Point(4675, 2957), Point(4667, 2947),
Point(4662, 2936), Point(4644, 2936), Point(4638, 2927), Point(4628, 2918),
Point(4628, 2905), Point(4622, 2891), Point(4619, 2872), Point(4619, 2863),
Point(4597, 2851), Point(4580, 2840), Point(4557, 2841), Point(4534, 2837),
Point(4517, 2831), Point(4510, 2816), Point(4503, 2804), Point(4502, 2792),
Point(4500, 2778), Point(4509, 2773), Point(4526, 2776), Point(4543, 2774),
Point(4550, 2766), Point(4553, 2756), Point(4564, 2748)];//Path
SPS_WalkPath(myPath);
end.

On Your code i get an error Exception in Script: Unable to find file 'sps/sps.simba' used from ''

Mat
01-29-2012, 01:05 AM
program SPSTut;
{$i srl/srl.simba}
{$i sps/sps.simba}
Var
myPath:TPointArray;
begin
SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE,['11_7','11_6','10_6','10_7','12_7','12_6']);//SPS Areas
myPath := [Point(4684, 2963), Point(4675, 2957), Point(4667, 2947),
Point(4662, 2936), Point(4644, 2936), Point(4638, 2927), Point(4628, 2918),
Point(4628, 2905), Point(4622, 2891), Point(4619, 2872), Point(4619, 2863),
Point(4597, 2851), Point(4580, 2840), Point(4557, 2841), Point(4534, 2837),
Point(4517, 2831), Point(4510, 2816), Point(4503, 2804), Point(4502, 2792),
Point(4500, 2778), Point(4509, 2773), Point(4526, 2776), Point(4543, 2774),
Point(4550, 2766), Point(4553, 2756), Point(4564, 2748)];//Path
SPS_WalkPath(myPath);
end.

On Your code i get an error Exception in Script: Unable to find file 'sps/sps.simba' used from ''
hey well it should work the one you posted. Have you got the sps plugin enabled?
Mat

Striken
01-29-2012, 04:45 AM
This guide has helped me out a lot with the walking. Thanks Dude.

Mat
02-03-2012, 06:37 PM
This guide has helped me out a lot with the walking. Thanks Dude.
:) Glad it Helped :)
Here's a image of one of my newest Paths 79 Points...
http://img815.imageshack.us/img815/2074/newpath.png
:D
Mat

Phantom866
02-04-2012, 03:29 AM
Can't get it to even run, can you please tell me what I'm doing wrong? Lunar island btw,

program LunarCrafting;
{$DEFINE SMART}
{$i SRL\SRL.simba}
{$i sps/sps.simba}
Var
myPath:TPointArray;
begin
SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE,['0_2']);
myPath := [Point(247, 170), Point(258, 169), Point(267, 169),
Point(276, 169), Point(284, 170), Point(289, 178), Point(291, 190),
Point(290, 201), Point(287, 213), Point(286, 225), Point(284, 238),
Point(285, 251), Point(290, 263), Point(293, 273), Point(295, 282),
Point(300, 288), Point(301, 299), Point(306, 312), Point(315, 321),
Point(321, 330), Point(327, 339), Point(334, 345), Point(342, 351),
Point(350, 354), Point(362, 357), Point(372, 363), Point(379, 369),
Point(380, 380), Point(381, 392), Point(388, 392), Point(396, 391),
Point(405, 391), Point(414, 390), Point(430, 390), Point(438, 386),
Point(451, 382)];
SPS_WalkPath(myPath);
end.

Nebula
02-07-2012, 10:29 PM
Mat do you know how to create & use your own sps maps? post here/pm me if you do.

thanks.

Nebula
02-07-2012, 10:31 PM
Can't get it to even run, can you please tell me what I'm doing wrong? Lunar island btw,

Your y coordinates look wrong. When I made a path on lunar isle, they were all 1000+. Try remaking your path.

Mat
02-08-2012, 07:00 AM
Can't get it to even run, can you please tell me what I'm doing wrong? Lunar island btw,
Okay, from the looks of it you are not using the runescape_surface.png you are using 0_2. Open the runescape_surface.png and re create your path, then copy you path in to simba and before you take the areas make 4 more points in a box shape around the path and then it should work.

Mat

Phantom866
02-10-2012, 05:32 PM
Thanks very much! It worked!

Blakerey
02-11-2012, 12:08 AM
NOTE: I HAVE FIXED THIS..

I JUST MADE THE PATH THIS:

http://i39.tinypic.com/29qkqqp.jpg

And it works fine, at every willow tree there, so, this will do for now.


---------------------

For educational purposes, the problem is still there for you to look at:

Wondering if anyone can give me any guidance?

I am trying to make it walk from the Willows in Draynor to the bank..

Here is my walking code:


Procedure WalkToBank;
Var
walkBank:TPointArray;

begin
SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE,['10_9','11_9','11_8','9_8','9_9']);
walkBank := [
Point(4151, 3695), Point(4152, 3693), Point(4155, 3689),
Point(4156, 3685), Point(4157, 3683), Point(4159, 3679),
Point(4160, 3676), Point(4161, 3671), Point(4162, 3667),
Point(4163, 3662), Point(4163, 3656), Point(4164, 3654),
Point(4167, 3649), Point(4169, 3648), Point(4173, 3648),
Point(4176, 3647), Point(4181, 3647), Point(4185, 3649),
Point(4187, 3652), Point(4188, 3656), Point(4188, 3659),
Point(4185, 3661), Point(4184, 3662), Point(4184, 3664)];
SPS_WalkPath(walkBank);
end;


And here is the points.. There are so many, because someone suggested to use more if it fails.. Seems this doesn't work either. Also the big square is for the surface as explained in the tutorial.

http://i44.tinypic.com/wwfak7.jpg

Now, It walks, just not to the right direction, it decides to just go in a line, I have used the app to show this.

http://i39.tinypic.com/9b9ifo.jpg

Can someone give me some help?

AND YES, I have included SRS and SRL.

Thanks! :)

Mat
02-11-2012, 10:40 AM
What is your Tolerance Set too?
In the SPS.Simba there is a tolerance from what you are saying it could be that.

Tolerance := 0.5;

Put that on Line 60 in the SPS.Simba file. I found that works very well on RS Surface.
Mat

kaiman299
02-12-2012, 09:48 PM
This isn't working in the wilderness, as the wilderness map is a lot different than what is shown on the runescape surface map. How would I go about updating this?

Mat
02-13-2012, 10:08 PM
There is a section of new Map Here:
http://villavu.com/forum/showthread.php?t=74442
Just Download the PNG maps and replace the ones you already have.
Mat

cmxz1
02-14-2012, 01:57 AM
I'm trying to make Fist of Guthix firemaker and i want to use SPS for walking back to banker. Only problem is there isn't map for Fist of Guthix lobby, how can i make one?

Mat
02-15-2012, 01:40 AM
http://villavu.com/forum/showthread.php?p=929723#post929723
Made a Tutorial for you :) Funnily enough on FoG :)
Mat

momotron
02-16-2012, 12:38 PM
Oi nub! Pm me idea's of how to add fail safes in SPS walking procedures ;P <3 much love

Mat
02-16-2012, 03:02 PM
Oi nub! Pm me idea's of how to add fail safes in SPS walking procedures ;P <3 much love
Well you can do
If SPS_WalkPath(Nub) then
GoJumpOffABuilding else GiveMeABJ;
You can do stuff like that so have a fail safe of DTM Walking Maybe.
Mat

MrBubbles
02-16-2012, 11:16 PM
I get an error when I open the program:

The application failed to initialize properly (0xc0000135). Click on OK to terminate the application.

Would this have to do with .NET framework?

EDIT: I believe I've answered my own question. :)

fretje12
02-18-2012, 04:41 AM
Good tutorial i know it will help a lot of people :). +Rep

Jagex_Fagex
02-19-2012, 05:26 PM
Thanks for this, helped me a lot. I just couldn't get it to work.

Sir Ducksworthy
02-26-2012, 01:22 AM
Nice guide thx alot buddy
Sps is really amazing Color botting really is the way to go where starting to advance and this is a prime example of it.

begginer
02-26-2012, 07:57 PM
Thanks a million.

VillaVuFTW
02-27-2012, 12:40 AM
Hey Mat,

Figured I'd post..

Credits to Flight on this one:

program MyCoords;
{$DEFINE SMART}

{$i SRL/srl.simba}
{$i SPS/sps.simba}


begin
Smart_Server := 10;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;
SetupSRL;

SPS_Setup(RUNESCAPE_SURFACE, ['0_2', '1_2']); //Change this to your SPS areas
SPS_Continue := True;

Repeat
ClearDebug;
Writeln('Tile: '+IntToStr(SPS_GetMyPos.X)+', '+IntToStr(SPS_GetMyPos.Y));
Wait(500);
Until(False)
end.
end.
It tells you the Tile you're on (Point) It will print saying "Tile": (but really that means point(x, y)
:3

That path maker you have.. is outdated

cool13bro
02-27-2012, 02:13 AM
Hey I'm a beginner scripter, and I recently posted something about wanting to remain in a safe spot for a ranging script. The answers were a bit confusing (again I am a beginner), but they referred to the use of SPS. So, can anyone on this thread help me to keep my player in a safe spot using SPS. Sorry, if my terminology is a bit off, new to all of this.

Thanks.

Mat
03-02-2012, 04:43 PM
Your could create a box with sps points and say is ur pos in this box if not then walk back the the area

Jagex_Fagex
03-02-2012, 04:56 PM
Hey Mat,

Figured I'd post..

Credits to Flight on this one:

program MyCoords;
{$DEFINE SMART}

{$i SRL/srl.simba}
{$i SPS/sps.simba}


begin
Smart_Server := 10;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;
SetupSRL;

SPS_Setup(RUNESCAPE_SURFACE, ['0_2', '1_2']); //Change this to your SPS areas
SPS_Continue := True;

Repeat
ClearDebug;
Writeln('Tile: '+IntToStr(SPS_GetMyPos.X)+', '+IntToStr(SPS_GetMyPos.Y));
Wait(500);
Until(False)
end.
end.
It tells you the Tile you're on (Point) It will print saying "Tile": (but really that means point(x, y)
:3

That path maker you have.. is outdated

May I ask how the path maker is outdated? It is fat superior to that script on every way. You don't have to log into runescape and walk around, you don't have to pick which areas it is(what if you don't know the areas), and instead of having to put the variable together at the end(the one that holds the points), the path maker creates it all for you. So no, that script is outdated, and the path maker is definately the way to go.

Nemesis3X
03-02-2012, 06:10 PM
Great guide, Helped me out with a few things!

cool13bro
03-03-2012, 04:13 AM
Your could create a box with sps points and say is ur pos in this box if not then walk back the the area

Wow, thanks. It finally made sense and after playing around and looking at this tut, it worked. Now I Just need to work on an antiban and I will have my first script.

Anyways, appreciate your help.

blazingrobin
03-03-2012, 10:01 AM
Edit: never mind saw error by looking at older posts multiple times. got it running perfectly!!! thank you so much!!!

craggs
03-06-2012, 10:35 PM
Is it possible/wise to include multiple paths from A-B in a script using this method? i would assume that using the exact same path over a period of time would become quite noticable, or is this not an issue?

I like the simplicity of this method and until i get a few hours to wrap my head around DTMs and RadialWalk i wouldnt mind messing about with it. cheers in advance!

Mat
03-06-2012, 10:44 PM
Is it possible/wise to include multiple paths from A-B in a script using this method? i would assume that using the exact same path over a period of time would become quite noticable, or is this not an issue?

I like the simplicity of this method and until i get a few hours to wrap my head around DTMs and RadialWalk i wouldnt mind messing about with it. cheers in advance!
Well you SPS isn't very accurate anyway, so its not gonna looks bot like but you can make a random case of 1 and have two paths and every time it will randomly choose one of them :)
Mat

Nebula
03-06-2012, 10:47 PM
Also, SPS has a built in x+y randomness of 1. So the point will be automatically be randomized a bit, then randomized even more by the accurateness.

craggs
03-06-2012, 10:53 PM
awesome, tyvm!

Joe
03-12-2012, 02:20 PM
Thanks a lot! I had no idea the SPS map files were IN simba... I was stressing out trying to find links to map surfaces.
*LIFESAVER*

gabrieldu832
03-15-2012, 07:42 PM
How to put that code in an other script ?

tehq
03-15-2012, 07:45 PM
How to put that code in an other script ?


{$i sps/sps.simba}


press Ctrl + space, type "sps" for a list of functions

surfboards2
03-18-2012, 03:13 AM
hey mat im just starting scripting and im trying to get banking working on living rock caverns though when i extract the dungeons file all the folders are empty without the picture of the map. What is rong? to i need to update/re dl simba?

surfboards2
03-18-2012, 05:21 AM
i got a map from somebody but which was http://villavu.com/forum/attachment.php?attachmentid=14851&d=1332043821 (if u can see that)
i keep getting this error this is my script so far:


SetupSRL;
SPS_Setup(living_rock_caverns),['0_1','0_0','];//SPS Areas
myPath := myPath := [Point(310,413),Point(306,402),Point(303,391),
Point(300,380),Point(292,374),Point(282,364),Point (271,353),
Point(269,339),Point(268,324),Point(267,314),Point (267,296),
Point(267,283),Point(267,273),Point(266,263),Point (259,255),
Point(245,250)];//Path
SPS_WalkPath(myPath);
end.

error is [Error] (10:11): Unknown identifier 'living_rock_caverns' at line 9
Compiling fail. Please help

eska
03-18-2012, 10:20 AM
i got a map from somebody but which was *removed img, too damn big* (if u can see that)
i keep getting this error this is my script so far:


SetupSRL;
SPS_Setup(living_rock_caverns),['0_1','0_0','];//SPS Areas
myPath := myPath := [Point(310,413),Point(306,402),Point(303,391),
Point(300,380),Point(292,374),Point(282,364),Point (271,353),
Point(269,339),Point(268,324),Point(267,314),Point (267,296),
Point(267,283),Point(267,273),Point(266,263),Point (259,255),
Point(245,250)];//Path
SPS_WalkPath(myPath);
end.

error is [Error] (10:11): Unknown identifier 'living_rock_caverns' at line 9
Compiling fail. Please help

Im no expert on SPS but did you make a living_rock_caverns folder in C:\Simba\Includes\SPS\img and put the 0_1 and 0_1 image in it?

From what I can understand it fails to find the folder.

surfboards2
03-18-2012, 12:25 PM
yeh i put the map in there if that what you mean.

instagib2001
03-20-2012, 08:44 PM
Ok i got this to run and compile but it dosnt typ my user name and password i dont know whats going on anyone help =((( ????
program falador wine;
{$DEFINE SMART} /////
{$I SRL/SRL.SIMBA} /////
{$I SI/MAIN.SIMBA} /////
{$DEFINE SRL/SRL/MISC/PAINTSMART.SIMBA}
{$i sps/sps.simba}
const
////////////////////////////////////////////////////////////////////////////////
////////// Global Settings ///////////////////////////////
////////////////////////////////////////////////////////////////////////////////
///// http://stats.villavu.com /////
SRLStats_Username = ''; ///// SRL Stats Username /////
SRLStats_Password = ''; ///// SRL Stats Password /////
////////////////////////////////////////////////////////////////////////////////
////////// Player Settings ///////////////////////////////
////////////////////////////////////////////////////////////////////////////////
Procedure DeclarePlayers; /////
Var /////
HowManyPlayers: Integer; /////
Begin /////
HowManyPlayers := 1; /////
NumberOfPlayers(HowManyPlayers); /////
CurrentPlayer := 0; /////
With Players[0] Do ////////////////////////////////////////////////
Begin ///// /////
Name := ''; ///// Runescape Login /////
Pass := ''; ///// Runescape Password /////
Pin := ''; ///// Runescape Bank Pin /////
Active := True; ///// Use this Player /////
End; ///// /////
End; ///// /////
////////////////////////////////////////////////////////////////////////////////
////////// End of Settings ////////////////////////////
////////////////////////////////////////////////////////////////////////////////

var
myPath:TPointArray;
begin
SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE,['20_11']);//SPS Areas
myPath := [Point(137, 343), Point(171, 294), Point(136, 189),
Point(127, 135), Point(124, 90), Point(122, 55), Point(110, 55)];//Path
SPS_WalkPath(myPath);
end.

Nebula
03-20-2012, 08:57 PM
You have to put "LoginPlayer;" in the mainloop.

Mat
03-20-2012, 09:09 PM
go look at my separate tutorial for map making explains about making new areas.

Zota
03-21-2012, 08:26 AM
SPS_Setup(RUNESCAPE_SURFACE,['6_6','7_6','6_5','6_4','5_4','5_5','5_7','6_7','7 _7','8_7','8_6','7_5','7_4']);
Path_ToBank := [Point(2530, 1789), Point(2533, 1837), Point(2528, 1881), Point(2512, 1924), Point(2507, 1969), Point(2493, 2011), Point(2482, 2029), Point(2486, 2065), Point(2491, 2103), Point(2489, 2128), Point(2488, 2177), Point(2456, 2208), Point(2452, 2243), Point(2450, 2296), Point(2449, 2333), Point(2460, 2351), Point(2477, 2375), Point(2477, 2410), Point(2528, 2418), Point(2538, 2447), Point(2559, 2461), Point(2586, 2455), Point(2614, 2466), Point(2636, 2472), Point(2659, 2467), Point(2713, 2469), Point(2745, 2473), Point(2766, 2479), Point(2787, 2488), Point(2801, 2506), Point(2803, 2563), Point(2801, 2613), Point(2801, 2660), Point(2776, 2692), Point(2754, 2702), Point(2740, 2705), Point(2737, 2681)];
if SPS_WalkPath(Path_ToBank) then
begin
SPS_WalkPath(Path_ToBank);
writeln('We are at the bank!');

Can you see anything wrong with that? It's meant to walk from rockcrabs to bank. It DID work a day or so ago, but now it walks to a certain point and gets stuck. I've tried redoing the points, redoing the SPS_Areas. All no luck. Gets stuck same place.

Not sure how to fix it..

Cheers,
Luke

Mat
03-21-2012, 01:20 PM
try changing the tolerance on SPS.

pencilbi
03-21-2012, 03:21 PM
thanks, it's helpful for beginners

Zota
03-21-2012, 04:45 PM
try changing the tolerance on SPS.

I already whacked it up to 0.5. I'll try it on 1.5 and see how it goes.. Not sure how sensitive it is.

Luke



EDIT:
Changed tolerance to 0.7 1.0 and 1.5. Anything above 0.6 for me lags the SMART client out.
0.6 didn't help - made it worse. 0.1 doesn't work. ARGH.. It walks halfway and just stops! there's this one gap in the map it just doesn't want to walk across. It'll get to it from either direction(To crabs or To bank) and just stop.
Hmm
miniEDIT(PS - I no longer lagout when tol is above 0.9)

EDIT2:

I give up. SPS is broken for that area. Pretty sure it's the runescape_surface_map. No idea where to get the new one. I tried other map walking methods but they're all too unreliable to walk all the way from crabs to bank. Toooo many windy roads/bridges/trees

/defeated :(

Mat
03-23-2012, 09:41 PM
I already whacked it up to 0.5. I'll try it on 1.5 and see how it goes.. Not sure how sensitive it is.

Luke



EDIT:
Changed tolerance to 0.7 1.0 and 1.5. Anything above 0.6 for me lags the SMART client out.
0.6 didn't help - made it worse. 0.1 doesn't work. ARGH.. It walks halfway and just stops! there's this one gap in the map it just doesn't want to walk across. It'll get to it from either direction(To crabs or To bank) and just stop.
Hmm
miniEDIT(PS - I no longer lagout when tol is above 0.9)

EDIT2:

I give up. SPS is broken for that area. Pretty sure it's the runescape_surface_map. No idea where to get the new one. I tried other map walking methods but they're all too unreliable to walk all the way from crabs to bank. Toooo many windy roads/bridges/trees

/defeated :(
can I ask where are you trying to walk>?

Zota
03-24-2012, 03:19 PM
Seers to Rockcrabs.

I've got it working now. ALMOST. It's still very buggy.
Spent AGES adding about a bajillion failsafe checks to the walking.
I find that these failsafes help if your SPS path is not working: going from most effective to least.

1. Logout and in.
2. Use mainscreen and move a couple points.
3. Teleport to a nearby lodestone/location(walk from lodestone to desired spot)
4. Rotate camera(not sure if this works at all but it doesn't hurt) (reset to north/high)

DEPENDANT ON LOCATION:
1. Combination of DTMs etc.
2. Symbol Finding/sps

Cheers,
Luke

NKN
03-25-2012, 08:46 PM
Edit: Never mind, fixed that problem.
But uh, do I have to declare the path and then use WalkPath in the same procedure/function?
Kept saying it couldn't find it.

vacacow1
03-28-2012, 11:17 PM
Hey i keep getting a compiling error even though i have done everything in your guide i wanted to know if you could help me please


program LRCwalker;
{$i SRL/SRL.simba}
{$i SPS/SPS.simba}
Var
myPath:TPointArray;
begin
SetupSRL;
SPS_Setup(LIVING_ROCK_CAVERNS,['0_1','0_0']);//SPS Areas
myPath := [Point(307, 412), Point(300, 389), Point(294, 377),
Point(286, 362), Point(281, 343), Point(276, 325), Point(273, 310),
Point(269, 288), Point(267, 273), Point(260, 257), Point(241, 262)];//Path
SPS_WalkPath(myPath);
end

Error


[Hint] C:\Simba\Includes\SRL/SRL/core/mapwalk.simba(1353:3): Variable 'BOX' never used at line 1352
[Error] (1:1): period ('.') expected at line 0
Compiling failed.

I don't know it's giving me a Hint, but i went to mapwalk.simba and looked at line 1352's procedure and didn't find the BOX Variable, so i don't know what is wrong if you could please help me i'm trying to do my first script but it's hard as hell

Yago
03-28-2012, 11:36 PM
Hey i keep getting a compiling error even though i have done everything in your guide i wanted to know if you could help me please


program LRCwalker;
{$i SRL/SRL.simba}
{$i SPS/SPS.simba}
Var
myPath:TPointArray;
begin
SetupSRL;
SPS_Setup(LIVING_ROCK_CAVERNS,['0_1','0_0']);//SPS Areas
myPath := [Point(307, 412), Point(300, 389), Point(294, 377),
Point(286, 362), Point(281, 343), Point(276, 325), Point(273, 310),
Point(269, 288), Point(267, 273), Point(260, 257), Point(241, 262)];//Path
SPS_WalkPath(myPath);
end

Error


[Hint] C:\Simba\Includes\SRL/SRL/core/mapwalk.simba(1353:3): Variable 'BOX' never used at line 1352
[Error] (1:1): period ('.') expected at line 0
Compiling failed.

I don't know it's giving me a Hint, but i went to mapwalk.simba and looked at line 1352's procedure and didn't find the BOX Variable, so i don't know what is wrong if you could please help me i'm trying to do my first script but it's hard as hell

the last end is missing a period.

end.

Stanger
03-30-2012, 02:27 PM
Hello

Nice tut only I got an problem. I made my own map and when I make a path to go straight(on the Y example to the right) on at the Y split. It always click one time at the wrong direction. Is this problem in my map? I made it on 100% and resize it to 500x500.
It is in the Misthalin Underground. The dungeon @ Edgeville.

Stanger
03-30-2012, 02:47 PM
Fixed it my map was wrong.

XRaye
04-11-2012, 03:46 AM
Wow thanks, this really simplified it. When I first heard about SPS I was like lolwut? It actually works quite well though.

catanado15
04-14-2012, 05:29 PM
[Hint] C:\Simba\Includes\SRL/SRL/core/mapwalk.simba(1353:3): Variable 'BOX' never used at line 1352
Compiled successfully in 515 ms.
SPS_GetArea ERROR: Exception: Error while reading stream: Unable to open file "C:\Simba\Includes\SPS\img\runescape_surface\12_9.p ng"
I got this error.... How can i fix this ?

rjk1990
04-16-2012, 04:09 PM
Hey. Thank you for the Tut. I got it to work perfectly.. But i don't really have ANY idea how to intregate it into a proper script.. Could you maybe explain more on that please?

does all this go above the main procedure/functions and when you need them, you just call the SPS_WALKPATH() string? I tried using multiple paths (to and fro a bank) and called both up in different procedures but nothing worked xD

Recursive
04-22-2012, 08:43 PM
Question!
I followed the guide to the end and it worked perfectly, I was able to walk from castle wars to the ogre place with this. I noticed though that as it walked, it waited till my char stopped before it clicked the next point.

How do I make it to click the next point when my char is x distance from the flag thing?

And also if you don't mind, how do I check for if the door in castle wars is closed or not so that it does not get stuck?

Mat
04-27-2012, 09:18 PM
You can't the only way I found of speeding SPS up is using a Custom Map.
On the Door, you could try making it walk through it and then check the area of your Player then carry on, if its through the gate.
Mat

Element17
04-29-2012, 04:27 AM
Whenever I use the SPS generator it always gives me (RUNESCAPE_SURFACE, ['0_0']. I know what map it should be but it always gives me 0_0 when I generate it in sps generator.

m34tcode
04-29-2012, 05:55 AM
just change 0_0 to the name of your image file, without the file extension

Imanoobbot
04-29-2012, 05:23 PM
Yea my Grammar and English is terrible :D Even tho I am English :D
Mat

For me as I am not english it is perfect hehe I am understanding it better as if someone is talking as in a lexicon or something like that :)

Good tut! +rep!

Element17
05-02-2012, 02:50 AM
just change 0_0 to the name of your image file, without the file extension

Still doesn't seem to work.

m34tcode
05-02-2012, 03:41 AM
paste your code please. We can only speculate to your problem as we have not seen the code.

NoUserName
05-04-2012, 06:56 PM
Is there no way to use fflag to help stop the player stoping looks really bot like but really good tut helped me a lot

Element17
05-05-2012, 06:55 PM
Simba Code:

[Hint] C:\Simba\Includes\SRL/SRL/core/mapwalk.simba(1353:3): Variable 'BOX' never used at line 1352
[Error] C:\Simba\Includes\sps/sps.simba(300:3): Unknown identifier 'SPS_FilterMinimap' at line 299
Compiling failed.


I'm getting that, but my sps.dll in in Simba/Plugins?

farseer
05-11-2012, 10:51 AM
Nice guide.

Moron
05-13-2012, 07:49 PM
Help please!

http://i49.tinypic.com/2vmvyut.jpg

tmn16
05-18-2012, 06:42 PM
Your tutorial was very easy to follow and helped me a lot. Unfortunately I ran into a problem if you can please help me out with:

Begin;

program TravsAstral;
{$i srl/srl.simba}
{$i sps/sps.simba}
Var
myPath:TPointArray;
begin
SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE,['0_2']);
myPath := [Point(458, 1179), Point(417, 1200), Point(383, 1157), Point(332, 1128), Point(295, 1085), Point(288, 1029), Point(289, 979), Point(246, 957), Point(97, 930), Point(205, 1212), Point(494, 1192), Point(488, 923), Point(295, 963)];//Path
SPS_WalkPath(myPath);
end.


[Error] (6:1): Identifier expected at line 5
Compiling failed.
^Which is the bold part above
If you can help me that would be great, thanks!

WeLoveTrees
05-19-2012, 12:19 AM
You have a 'Begin;' above the program TravsAstral..;


program TravsAstral;
{$i srl/srl.simba}
{$i sps/sps.simba}
Var
myPath:TPointArray;
begin
SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE,['0_2']);
myPath := [Point(458, 1179), Point(417, 1200), Point(383, 1157), Point(332, 1128), Point(295, 1085), Point(288, 1029), Point(289, 979), Point(246, 957), Point(97, 930), Point(205, 1212), Point(494, 1192), Point(488, 923), Point(295, 963)];//Path
SPS_WalkPath(myPath);
end.

Your going to need a bit more code to get it going thought, Especially if your starting with the Runescape client closed.

tmn16
05-19-2012, 12:33 AM
You have a 'Begin;' above the program TravsAstral..;


program TravsAstral;
{$i srl/srl.simba}
{$i sps/sps.simba}
Var
myPath:TPointArray;
begin
SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE,['0_2']);
myPath := [Point(458, 1179), Point(417, 1200), Point(383, 1157), Point(332, 1128), Point(295, 1085), Point(288, 1029), Point(289, 979), Point(246, 957), Point(97, 930), Point(205, 1212), Point(494, 1192), Point(488, 923), Point(295, 963)];//Path
SPS_WalkPath(myPath);
end.

Your going to need a bit more code to get it going thought, Especially if your starting with the Runescape client closed.

Genius. Thank you very much. I'm going through the tutorials and it seems challenging but I got this! Thanks again

University
05-20-2012, 10:59 PM
I am trying to walk to one position.
I followed the guide but I get "Type mismatch" error at line 6 when compiling.


procedure GetIntoPos;
var
myPath:TPoint;
begin
if OutsideRange then
myPath := [Point(2519, 2977)];
SPS_WalkToPos(myPath);
end;

Edit: I figured out the answer.
line 5 should be removed and 6 should be written like this:
SPS_WalkToPos(Point(x,y))

Stanger
05-22-2012, 09:54 PM
I got problems with walking. I have made 3 custom maps but neither of them is working. It do nothing, it isnt clicking. Is this my map that is wrong?

cadet54
05-29-2012, 08:05 PM
Wow this is epic just what i was looking for nice, clear and simple thanks very much for the time you put into the guide :) + rep

spin3x
05-29-2012, 09:41 PM
Does this work on a RsPs? Im trying but it doesnt seem to do anything :S

My code:

program Fungus;
{$i srl/srl.simba}
{$i sps/sps.simba}
Var
MyPath:TPointArray;
begin
SPS_Setup(RUNESCAPE_SURFACE,['14_6']);
myPath := [Point(215, 352), Point(211, 311), Point(186, 319), Point(167, 333), Point(143, 345), Point(117, 355), Point(121, 374), Point(122, 392), Point(123, 406), Point(128, 423)];//Path
SPS_WalkPath(myPath);
end.

Mat
06-20-2012, 08:18 PM
Does this work on a RsPs? Im trying but it doesnt seem to do anything :S

My code:

program Fungus;
{$i srl/srl.simba}
{$i sps/sps.simba}
Var
MyPath:TPointArray;
begin
SPS_Setup(RUNESCAPE_SURFACE,['14_6']);
myPath := [Point(215, 352), Point(211, 311), Point(186, 319), Point(167, 333), Point(143, 345), Point(117, 355), Point(121, 374), Point(122, 392), Point(123, 406), Point(128, 423)];//Path
SPS_WalkPath(myPath);
end.


From the look of that mate, your using the points on that map, you need to use the RS Large Map, which is found in the same folder.
Thanks
Mat

TehNeonFishy
06-22-2012, 01:08 AM
Sweet, got my script to walk. Admittedly only to just outside the bank but that's all I need anyway.

Is there any randomness in this? Say I say walk to this point, will it always go to the same tile?

rsplayer001
06-29-2012, 03:03 AM
Still doesn't seem to work.


I was having the same issue until I read that I was using the wrong .png file. Make sure that runescape_surface.png is in the same folder as your Path Creator v0.9.exe. Right now you are opening the .png file for the area you are working on.

bishknight
06-29-2012, 10:49 PM
Thanks, this helped me loads! With this, I'll hopefully have my first script finished quickly :)

Mat
06-29-2012, 11:47 PM
Thanks, this helped me loads! With this, I'll hopefully have my first script finished quickly :)
Glad it helped :)
Good Luck, I hope to see it soon :)
Mat

l6bustank
11-09-2012, 08:09 PM
Got the same question as theneonfishy, how can I randomise it (if at all)?

E: just made a simple path from varrock center to GE! It Works! Woot! :D , but misses a bit too much to use for sth that is entirely based on walking (like RC).

Justin
11-09-2012, 11:35 PM
Got the same question as theneonfishy, how can I randomise it (if at all)?

E: just made a simple path from varrock center to GE! It Works! Woot! :D , but misses a bit too much to use for sth that is entirely based on walking (like RC).

I've noticed SPS in Varrock can be in-accurate, I suggest you look into (D)DTM walking

Mat
11-16-2012, 11:31 PM
ustin;1125145']I've noticed SPS in Varrock can be in-accurate, I suggest you look into (D)DTM walking
Or the use of custom maps :) That should help it :)
Mat

mounty
11-23-2012, 05:39 PM
Great tutorial. Helped a lot. Didn't know it was so easy to do. The name always made it sound more complex.

Thanks

tweakmeup
11-25-2012, 07:59 PM
Does this script work for runescape classic private servers as well? such as project rsc?

ewan
12-03-2012, 10:42 PM
I'm trying to use this code to walk on a private server but it isn't working. I get the error:

Error: Exception: The bitmap[0] does not exist at line 579

My full code is:

program Flax;
{$i srl/srl.simba}
{$i sps/sps.simba}
Var
myPath:TPointArray;
i:Integer;

procedure Click;
begin
movemouse(648,245)
wait(200)
ClickMouse(648, 245, 1)
end;

function FlaxColor: Integer;
var
arP: TPointArray;
arC: TIntegerArray;
tmpCTS, i, arL: Integer;
begin
tmpCTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.06, 0.16);

if not (FindColorsTolerance(arP, 12301909, MSX1, MSY1, MSX2, MSY2, 3)) then
begin
Writeln('Failed to find the color, no result.');
ColorToleranceSpeed(tmpCTS);
SetColorSpeed2Modifiers(0.2, 0.2);
Exit;
end;

arC := GetColors(arP);
ClearSameIntegers(arC);
arL := High(arC);

for i := 0 to arL do
begin
Result := arC[i];
// Writeln('AutoColor = ' + IntToStr(arC[i]));
Break;
end;

ColorToleranceSpeed(tmpCTS);
SetColorSpeed2Modifiers(0.2, 0.2);
end;

procedure PickFlax;
var x, y, w, h: integer;
begin
GetClientDimensions(w,h);
repeat
if FindColor(x,y,FlaxColor,0,0,w-1,h-1) then
begin
MoveMouse(x,y)
wait(200)
ClickMouse(x,y,1)
wait(3000)
end;
until(isKeyDown(116))
end;

begin
SPS_SETUP(RUNESCAPE_SURFACE, ['6_7','6_6','7_6','7_7']);
myPath := [Point(2780, 2875), Point(2777, 2872), Point(2775, 2868),
Point(2775, 2862), Point(2773, 2856), Point(2769, 2851),
Point(2762, 2847), Point(2757, 2841), Point(2754, 2834),
Point(2752, 2829), Point(2749, 2820), Point(2743, 2814),
Point(2743, 2807), Point(2745, 2800), Point(2747, 2792),
Point(2750, 2787), Point(2750, 2780), Point(2748, 2771),
Point(2744, 2762), Point(2744, 2754), Point(2744, 2745),
Point(2743, 2736), Point(2740, 2727), Point(2742, 2719),
Point(2747, 2710), Point(2741, 2705), Point(2739, 2688),
Point(2738, 2678), Point(2738, 2674)];
Click;
wait(1000);
SPS_WalkPath(myPath);
end.

Can anyone help? I'm thinking maybe I simply can't use SPS to walk on a private server.

schnubbel15
12-05-2012, 04:11 PM
First of all, nice tutorial^^
but i got a prbolem. everything is working fine but when i only use my function WalkToBank it works great but when i try to use it IN my script it wont do anything. so heres my script, i hope u can help me :P


Edit: Still not fixed >_>

Script writer
12-05-2012, 06:36 PM
Would if put this at the bottom of my script after it gets full inv then would I need to add a code to bank and walk back to willows?

schnubbel15
12-05-2012, 09:09 PM
Not sure if i didnt saw, but i think you missed SetupSRL; :)




I'm trying to use this code to walk on a private server but it isn't working. I get the error:

Error: Exception: The bitmap[0] does not exist at line 579

My full code is:

program Flax;
{$i srl/srl.simba}
{$i sps/sps.simba}
Var
myPath:TPointArray;
i:Integer;

procedure Click;
begin
movemouse(648,245)
wait(200)
ClickMouse(648, 245, 1)
end;

function FlaxColor: Integer;
var
arP: TPointArray;
arC: TIntegerArray;
tmpCTS, i, arL: Integer;
begin
tmpCTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.06, 0.16);

if not (FindColorsTolerance(arP, 12301909, MSX1, MSY1, MSX2, MSY2, 3)) then
begin
Writeln('Failed to find the color, no result.');
ColorToleranceSpeed(tmpCTS);
SetColorSpeed2Modifiers(0.2, 0.2);
Exit;
end;

arC := GetColors(arP);
ClearSameIntegers(arC);
arL := High(arC);

for i := 0 to arL do
begin
Result := arC[i];
// Writeln('AutoColor = ' + IntToStr(arC[i]));
Break;
end;

ColorToleranceSpeed(tmpCTS);
SetColorSpeed2Modifiers(0.2, 0.2);
end;

procedure PickFlax;
var x, y, w, h: integer;
begin
GetClientDimensions(w,h);
repeat
if FindColor(x,y,FlaxColor,0,0,w-1,h-1) then
begin
MoveMouse(x,y)
wait(200)
ClickMouse(x,y,1)
wait(3000)
end;
until(isKeyDown(116))
end;

begin
SPS_SETUP(RUNESCAPE_SURFACE, ['6_7','6_6','7_6','7_7']);
myPath := [Point(2780, 2875), Point(2777, 2872), Point(2775, 2868),
Point(2775, 2862), Point(2773, 2856), Point(2769, 2851),
Point(2762, 2847), Point(2757, 2841), Point(2754, 2834),
Point(2752, 2829), Point(2749, 2820), Point(2743, 2814),
Point(2743, 2807), Point(2745, 2800), Point(2747, 2792),
Point(2750, 2787), Point(2750, 2780), Point(2748, 2771),
Point(2744, 2762), Point(2744, 2754), Point(2744, 2745),
Point(2743, 2736), Point(2740, 2727), Point(2742, 2719),
Point(2747, 2710), Point(2741, 2705), Point(2739, 2688),
Point(2738, 2678), Point(2738, 2674)];
Click;
wait(1000);
SPS_WalkPath(myPath);
end.

Can anyone help? I'm thinking maybe I simply can't use SPS to walk on a private server.

Slashed
12-05-2012, 09:52 PM
Thank's for the time put into this tutorial. Really helped me!

Angel Heart
01-18-2013, 04:39 AM
Awesome guide. Just made my 1st walking script. I was going to use all DTMs but got discouraged.

Your guide saved my script.

johnlukey
01-23-2013, 09:43 AM
will this work in private servers like prox? im wondering because somet hing like uptext dont

l6bustank
01-28-2013, 11:45 AM
I have a problem with SPS: when trying to walk from edgeville telespot to SW portal, it seems to amplify the points i get from the path generator by x times so instead it tries to walk to somewhere in barbarian village. How can i fix this?

E: got it working again but the odd thing is that so far, I have been using this path flawlessly:

RoadToPortal := [Point(4114, 2650), Point(4118, 2670),
Point(4129, 2683), Point(4150, 2706), Point(4149, 2723),
Point(4156, 2740), Point(4155, 2751)];

After the current one failed, i made a new one that makes me end up in the SAME LOCATION but with completely different coordinates:

RoadToPortal := [Point(4109, 2633), Point(4109+(1/5), 2646), Point(4109, 2702)];

fuck logic 0_o

DannyRS
01-28-2013, 01:59 PM
I have a problem with SPS: when trying to walk from edgeville telespot to SW portal, it seems to amplify the points i get from the path generator by x times so instead it tries to walk to somewhere in barbarian village. How can i fix this?

E: got it working again but the odd thing is that so far, I have been using this path flawlessly:

RoadToPortal := [Point(4114, 2650), Point(4118, 2670),
Point(4129, 2683), Point(4150, 2706), Point(4149, 2723),
Point(4156, 2740), Point(4155, 2751)];

After the current one failed, i made a new one that makes me end up in the SAME LOCATION but with completely different coordinates:

RoadToPortal := [Point(4109, 2633), Point(4109+(1/5), 2646), Point(4109, 2702)];


Edgeville has been a tad off with the shading on the minimap now, remember SPS is a math algorithm that tries to calculate your position via small boxes, it can have deadspots/false positives, if you make a perfect (near inpossible) custom map, it should work alot better, my SPS map i made for my Edge furnace script seems to be working almost flawlessly, try that if you want, think you would have to increase the size a little tho

What do you mean amplify the points?

Its most likely calculating your position and thinks you are lower/higher than you actually are on the map, so it clicks further away, then can find itself again mid path, also if it can't find your position, it is returned as -1, -1, meaning if your point is positive, many sps functions will just click down because they are trying to move from -1-1 to the x,y, you are giving them,

It sounds like the map you are using is not accurate enough for edge now, if you make a map, anything that is on your minimap all the time, bankers or other non moving NPC dots, should be included, the closer you can get it to the way the minimap will look, the better the walking functions will work in sps

l6bustank
01-28-2013, 07:37 PM
Edgeville has been a tad off with the shading on the minimap now, remember SPS is a math algorithm that tries to calculate your position via small boxes, it can have deadspots/false positives, if you make a perfect (near inpossible) custom map, it should work alot better, my SPS map i made for my Edge furnace script seems to be working almost flawlessly, try that if you want, think you would have to increase the size a little tho

What do you mean amplify the points?

Its most likely calculating your position and thinks you are lower/higher than you actually are on the map, so it clicks further away, then can find itself again mid path, also if it can't find your position, it is returned as -1, -1, meaning if your point is positive, many sps functions will just click down because they are trying to move from -1-1 to the x,y, you are giving them,

It sounds like the map you are using is not accurate enough for edge now, if you make a map, anything that is on your minimap all the time, bankers or other non moving NPC dots, should be included, the closer you can get it to the way the minimap will look, the better the walking functions will work in sps
ok, thx for explaining. How do I make my own map btw?

DannyRS
01-28-2013, 07:43 PM
ok, thx for explaining. How do I make my own map btw?

Check this out, by Google

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

l6bustank
01-28-2013, 09:18 PM
Check this out, by Google

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

ok, thanks again :)

Sh4d0wf0x
03-04-2013, 12:29 AM
I'm trying to run around in the flax field at catherby but my char doesnt move:


program SPSTut;
{$i srl/srl.simba}
{$i sps/sps.simba}
Var
myPath:TPointArray;
begin
SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE,['6_7','7_6','6_6','];//SPS Areas
myPath := [Point(2764, 2814), Point(2750, 2803), Point(2744, 2809),
Point(2744, 2817), Point(2746, 2821), Point(2755, 2825),
Point(2815, 2744), Point(2740, 2738), Point(2691, 2777),
Point(2697, 2823), Point(2769, 2870)];
SPS_WalkPath(myPath);
end.

Mat
03-05-2013, 09:25 PM
I'm trying to run around in the flax field at catherby but my char doesnt move:


program SPSTut;
{$i srl/srl.simba}
{$i sps/sps.simba}
Var
myPath:TPointArray;
begin
SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE,['6_7','7_6','6_6','];//SPS Areas
myPath := [Point(2764, 2814), Point(2750, 2803), Point(2744, 2809),
Point(2744, 2817), Point(2746, 2821), Point(2755, 2825),
Point(2815, 2744), Point(2740, 2738), Point(2691, 2777),
Point(2697, 2823), Point(2769, 2870)];
SPS_WalkPath(myPath);
end.
Hey.
Long time since I posted here :P Before I carry on I'd like to thanks all the people for helping everyone :)
Right, I'm not to sure why its not walking but for a start you have syntax problems on the SPS_Setup.
you've got
SPS_Setup(RUNESCAPE_SURFACE,['6_7','7_6','6_6','];//SPS Areas
It should be:
SPS_Setup(RUNESCAPE_SURFACE,['6_7','7_6','6_6']);//SPS Areas
Your Path seems to be okay, for that area.
I'm not to sure maybe the maps need updating.
Try the SPS_Setup Fix first.
Mat

sciflyer
04-11-2013, 12:19 AM
Thank you for the guide, very helpful.

PsychoticPk
06-03-2013, 03:30 AM
program SpsWalktest;

{$i srl-osr/srl.simba}
{$i sps/sps.simba}

Var
OrePath:TPointArray;

begin
SetupSRL;
SPS_Setup (RUNESCAPE SURFACE, ['5_10','4_9','4_10','6_10','6_9' ]);
OrePath := [Point(2239, 4233), Point(2223, 4229), Point(2223, 4225), Point(2223, 4211),
Point(2238, 4197), Point(2253, 4188), Point(2262, 4175), Point(2278, 4154), Point(2279, 4145),
Point(2285, 4119), Point(2290, 4105), Point(2294, 4087), Point(2294, 4081), Point(2297, 4067),
Point(2302, 4058), Point(2302, 4052), Point(2303, 4042), Point(1762, 3948), Point(1755, 4362),
Point(2512, 4286), Point(2414, 3967)];
SPS_WalkPath(OrePath);
end.


Exception in Script: Plugin(sps32) has not been found
Makes the walk path not work, any ideas? - I realize its for 07scape, since i cant find another tut showing how to sps on 07.. using a browser to test it, thats why theres no smart or anything.

DylanHolmes
06-13-2013, 12:29 AM
Hey
/SIZE]
Mat
Procedure WalkToAltar;
var
location: TPointArray;
Begin
location := [Point(5327, 3530), Point(5313, 3539), Point(5296, 3537), Point(5273, 3539), Point(5241, 3542), Point(5209, 3541), Point(5178, 3529), Point(5153, 3531), Point(5121, 3537), Point(5097, 3548), Point(5096, 3568), Point(5096, 3590), Point(5094, 3615), Point(5086, 3638), Point(5066, 3667), Point(5048, 3665), Point(5030, 3660), Point(5024, 3631), Point(5035, 3610), Point(5038, 3595)];
SPS_Setup(RUNESCAPE_SURFACE, ['13_8','12_8','12_9']);
SPS_WalkPath(location);
End;
When this code executes nothing happens. No errors. But nothing happens. Any Help?

ty6567
06-20-2013, 05:44 AM
this is probably a stupid question and a problem i caused by messing up, but when i make a path and put it in the script and try and run the script it gives me the error "Unknown identifier 'myPath' at line 20"

this is line 20 of my script and i copied straight from the path creator to the script (i don't know how to do the code box sorry):
myPath := [Point(651, 494), Point(583, 480), Point(529, 436), Point(466, 403), Point(415, 358), Point(355, 387), Point(326, 449)];

i have the srl and sps includes at the top of the script and i have the SPS_Setup typed exactly like in the guide (yes i changed the 3_1 to the correct numbers). any help is appreciated, and thank you in advance.

al4k
06-20-2013, 06:13 AM
this is probably a stupid question and a problem i caused by messing up, but when i make a path and put it in the script and try and run the script it gives me the error "Unknown identifier 'myPath' at line 20"

this is line 20 of my script and i copied straight from the path creator to the script (i don't know how to do the code box sorry):
myPath := [Point(651, 494), Point(583, 480), Point(529, 436), Point(466, 403), Point(415, 358), Point(355, 387), Point(326, 449)];

i have the srl and sps includes at the top of the script and i have the SPS_Setup typed exactly like in the guide (yes i changed the 3_1 to the correct numbers). any help is appreciated, and thank you in advance.

Did you declare myPath?
Var
myPath: TPointArray;

ty6567
06-20-2013, 08:41 AM
Did you declare myPath?
Var
myPath: TPointArray;

That was what was wrong, and thanks for helping. Another stupid question, how do you do the code box when you comment?

al4k
06-20-2013, 11:11 AM
That was what was wrong, and thanks for helping. Another stupid question, how do you do the code box when you comment?

'Go Advanced' on your reply and there are tags you can use
Or put your text between {SIMBA}{/SIMBA} or {CODE}{/CODE}. (replace curly braces with square brackets)

ty6567
06-20-2013, 03:14 PM
'Go Advanced' on your reply and there are tags you can use
Or put your text between {SIMBA}{/SIMBA} or {CODE}{/CODE}. (replace curly braces with square brackets)

ok, and Thanks for the help.

Dick Trickle
06-26-2013, 06:44 AM
alright so trying to get this to walk in the morytania dungeon, form the trapdoor to the wall, and i cant get it to move? im assuming something is up with it not grabbing the file/folder.


begin
FindNormalRandoms;
SPS_Setup(RUNESCAPE_OTHER, ['morytania_underground']);
trap2wall := [Point(610, 31), Point(616, 64)];
SPS_WalkPath(trap2wall);
end;

telebrb
06-30-2013, 07:14 AM
It doesn't work, I'm trying to walk from Falador bank to the temple.

program SPSTut;
{$i srl/srl.simba}
{$i sps/sps.simba}
Var
myPath:TPointArray;
begin
SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE,['8_7']);//SPS Areas
myPath := [Point(382, 332), Point(376, 302), Point(398, 295),
Point(414, 279), Point(432, 273), Point(454, 262), Point(455, 244),
Point(456, 217), Point(454, 194), Point(455, 155), Point(440, 140),
Point(423, 131), Point(405, 119), Point(391, 106), Point(386, 88),
Point(385, 68), Point(383, 49), Point(382, 31), Point(379, 17)];//Path
SPS_WalkPath(myPath);
end.

denart5
06-30-2013, 01:57 PM
Outdated? It doesnt work

Athylus
08-14-2013, 06:33 PM
can you use this for ORS?

mariothecashcow
09-28-2014, 07:16 PM
hey guys may be that the maps are outdated or some valid reason behind why my script wont walk but here itis:

procedure BankRun;
Var
MyPath:TPointArray;
begin
SPS_Setup(RUNESCAPE_SURFACE,['10_9']);
myPath := [Point(4147, 3634), Point(4149, 3652), Point(4149, 3667),
Point(4153, 3677), Point(4160, 3686), Point(4172, 3694), Point(4180, 3696),
Point(4187, 3697), Point(4195, 3697), Point(4198, 3697), Point(4198, 3706),
Point(4198, 3712), Point(4196, 3715)];

SPS_WalkPath(mypath);
end;

my script will log me in, cut the logs (as its a woodcutter) but when inv is full and i want it to walk to bank .... nothing happens? i have included the procedure in the mainloop ;) everything loads up fine and works until he has to run, and then script does nothing

any suggestion guys? (btw this script is running from normal trees in draynor to the bank). tree are slightly north from bank :)
hope i was as clear as possible explaining my problem
any help would be great :cartman:

The Spark
09-28-2014, 07:22 PM
hey guys may be that the maps are outdated or some valid reason behind why my script wont walk but here itis:

procedure BankRun;
Var
MyPath:TPointArray;
begin
SPS_Setup(RUNESCAPE_SURFACE,['10_9']);
myPath := [Point(4147, 3634), Point(4149, 3652), Point(4149, 3667),
Point(4153, 3677), Point(4160, 3686), Point(4172, 3694), Point(4180, 3696),
Point(4187, 3697), Point(4195, 3697), Point(4198, 3697), Point(4198, 3706),
Point(4198, 3712), Point(4196, 3715)];

SPS_WalkPath(mypath);
end;

my script will log me in, cut the logs (as its a woodcutter) but when inv is full and i want it to walk to bank .... nothing happens? i have included the procedure in the mainloop ;) everything loads up fine and works until he has to run, and then script does nothing

any suggestion guys? (btw this script is running from normal trees in draynor to the bank). tree are slightly north from bank :)
hope i was as clear as possible explaining my problem
any help would be great :cartman:

I believe you haven't setup your SPS Map correctly, it should be something like:


SPS.setup('Name of SPS Map', RUNESCAPE_SURFACE);

and I'm not sure about this, but I believe your sps.setup always needs to be inside your MAIN loop, right after SetupSRL

You also need to change SPS_Walkpath(mypath); to
SPS.WalkPath(mypath);

Google
09-28-2014, 07:23 PM
The guide is a little outdated give this a try not sure if the maps are working either I haven't been around here for a long time.


procedure bankRun;
var
myPath: TPointArray;
begin
sps.setup(runescape_Surface, ['10_9']);
myPath := [Point(4147, 3634), Point(4149, 3652), Point(4149, 3667), Point(4153, 3677), Point(4160, 3686), Point(4172, 3694), Point(4180, 3696), Point(4187, 3697), Point(4195, 3697), Point(4198, 3697), Point(4198, 3706), Point(4198, 3712), Point(4196, 3715)];
sps.walkPath(myPath);
end;

xreflectx
09-29-2014, 11:07 AM
Interesting..trying to understand this now. Thanks for the useful info!!

mariothecashcow
09-30-2014, 01:13 AM
I believe you haven't setup your SPS Map correctly, it should be something like:


SPS.setup('Name of SPS Map', RUNESCAPE_SURFACE);

and I'm not sure about this, but I believe your sps.setup always needs to be inside your MAIN loop, right after SetupSRL

You also need to change SPS_Walkpath(mypath); to
SPS.WalkPath(mypath);

i have just changed my SPS_walkpath(mypath); to what you said, and now im getting:
[Error] C:\Simba\Scripts\basic temp3.simba(105:3): Unknown identifier 'SPS' at line 105
Compiling failed. :(

also [Error] C:\Simba\Scripts\basic temp3.simba(109:3): Unknown identifier 'SPS' at line 109
Compiling failed. shows for when i add "SPS.setup" to the main loop :/

would it be easier to see my script?

The Spark
09-30-2014, 01:49 AM
i have just changed my SPS_walkpath(mypath); to what you said, and now im getting:
[Error] C:\Simba\Scripts\basic temp3.simba(105:3): Unknown identifier 'SPS' at line 105
Compiling failed. :(

also [Error] C:\Simba\Scripts\basic temp3.simba(109:3): Unknown identifier 'SPS' at line 109
Compiling failed. shows for when i add "SPS.setup" to the main loop :/

would it be easier to see my script?

The problem is this:

At the beginning of every script, there should be:

http://i.gyazo.com/53cd0a1cd886bd7fb8b409269bfb61d1.png

You need to add a new line underneath all of that, and that line needs to have the following information:

{$I SPS/lib/SPS-RS3.Simba}

What this does is it loads all of the SPS Include files, so you can use procedures like sps.setup and sps.walkpath in your scripts

When you're done, it should look a little something like this:

http://i.gyazo.com/dcff1692095cc3fafaf968cd836a622f.png

BigRedJapan
03-08-2015, 09:05 AM
Whats the include for OSR SPS