Log in

View Full Version : SPS Walking help needed



vacacow1
03-29-2012, 05:49 AM
Hello i'm trying to make my first script i'm new to here so what i'm trying to do is to make the script walk but i can't seem to make it walk help please

Here is my code


program Miner;
{$DEFINE SMART}
{$i SRL/SRL.simba}
{$i SPS/SPS.simba}

procedure DeclarePlayers;
begin
HowManyPlayers := 1;
CurrentPlayer := Random(HowManyPlayers);
NumberOfPlayers(HowManyPlayers);

with Players[0] do
begin
Name := '';
Pass := '';
Member := True;
Nick := '';
Active := True;
end;
end;


Procedure WalkPath;
Var
myPath:TPointArray;
begin
SPS_Setup(LIVING_ROCK_CAVERNS,['0_1','0_0']);//SPS Areas
myPath := [Point(302, 411), Point(302, 411), Point(302, 408),
Point(301, 406), Point(301, 402), Point(299, 397), Point(299, 395),
Point(298, 391), Point(297, 388), Point(297, 387), Point(294, 383),
Point(291, 375), Point(288, 366), Point(288, 365), Point(286, 357),
Point(283, 349), Point(282, 343), Point(279, 336), Point(276, 328),
Point(271, 309), Point(271, 306), Point(270, 298), Point(268, 272),
Point(266, 264), Point(262, 262), Point(257, 261), Point(252, 261),
Point(248, 261), Point(244, 262), Point(244, 263)];
end;

begin
SetUpSrl;
ActivateClient;
DeclarePlayers;
LoginPlayer;
WalkPath;
end.

I already got the SPS map on my own folder called living_rock_caverns and already added the map to SPS, i get no error but at the end it says "Successfully executed." and just stops. Any ideas whats wrong?

RISK
03-29-2012, 05:50 AM
SPS_WalkPath(myPath);

Add that after you define your path.

Google
03-29-2012, 06:03 AM
You are using the wrong "runescape world image" can download updated ones here>http://villavu.com/forum/showthread.php?t=74442 or go to (C:.)simba>includes>sps>img>runescape_surface and scroll all the way to bottom and choose runescape_surface_e


>> If you want to know if it came out right the coords should be 4 digits EX: Point(4203, 2685),


Example:

Begin
SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE,['10_6','10_7']);
myPath := [Point(4209, 2684), Point(4206, 2684),
Point(4203, 2685), Point(4200, 2685), Point(4197, 2685),
Point(4195, 2688), Point(4194, 2691), Point(4192, 2695),
Point(4193, 2696), Point(4195, 2700), Point(4197, 2702),
Point(4200, 2703), Point(4202, 2705), Point(4204, 2706),
Point(4208, 2709), Point(4210, 2712), Point(4210, 2714),
Point(4211, 2718), Point(4212, 2722), Point(4213, 2725),
Point(4213, 2729), Point(4213, 2732), Point(4213, 2735),
Point(4213, 2737), Point(4213, 2739), Point(4213, 2742),
Point(4214, 2745), Point(4214, 2748), Point(4214, 2753),
Point(4214, 2756), Point(4214, 2760), Point(4215, 2762),
Point(4218, 2765), Point(4218, 2768), Point(4221, 2772),
Point(4221, 2774)];
SPS_WalkPath(myPath);
End.

^^ Id recommend opening a new simba and just having definesmart, srl.simba, and sps.simba and running it make sure it works

vacacow1
03-29-2012, 06:11 AM
SPS_WalkPath(myPath);

Add that after you define your path.


Ok i did that and it seem to have worked but now i'm getting a problem in which says: SPS Exception:Error while reading stream: File "My file" does not exist in SPS_Load

Any ideas? i know i already updated SPS i added my file, but it doesn't seem to be working anyways i followed various SPS tutorials, but still can't find the answer. Thanks!

foxfly1
03-29-2012, 06:12 AM
are you putting banking on an LRC script? very nice idea.

Google
03-29-2012, 06:13 AM
Ok i did that and it seem to have worked but now i'm getting a problem in which says: SPS Exception:Error while reading stream: File "My file" does not exist in SPS_Load

Any ideas? i know i already updated SPS i added my file, but it doesn't seem to be working anyways i followed various SPS tutorials, but still can't find the answer. Thanks!

Take a look at what I wrote your walk points are from the outdated picture, if you need further help send me a pm.

vacacow1
03-29-2012, 06:13 AM
You are using the wrong "runescape world image" can download updated ones here>http://villavu.com/forum/showthread.php?t=74442 or go to (C:.)simba>includes>sps>img>runescape_surface and scroll all the way to bottom and choose runescape_surface_e


>> If you want to know if it came out right the coords should be 4 digits EX: Point(4203, 2685),


Example:

Begin
SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE,['10_6','10_7']);
myPath := [Point(4209, 2684), Point(4206, 2684),
Point(4203, 2685), Point(4200, 2685), Point(4197, 2685),
Point(4195, 2688), Point(4194, 2691), Point(4192, 2695),
Point(4193, 2696), Point(4195, 2700), Point(4197, 2702),
Point(4200, 2703), Point(4202, 2705), Point(4204, 2706),
Point(4208, 2709), Point(4210, 2712), Point(4210, 2714),
Point(4211, 2718), Point(4212, 2722), Point(4213, 2725),
Point(4213, 2729), Point(4213, 2732), Point(4213, 2735),
Point(4213, 2737), Point(4213, 2739), Point(4213, 2742),
Point(4214, 2745), Point(4214, 2748), Point(4214, 2753),
Point(4214, 2756), Point(4214, 2760), Point(4215, 2762),
Point(4218, 2765), Point(4218, 2768), Point(4221, 2772),
Point(4221, 2774)];
SPS_WalkPath(myPath);
End.

^^ Id recommend opening a new simba and just having definesmart, srl.simba, and sps.simba and running it make sure it works

But that's from Runescape Surface right? it's kind of diferent from a dungeon because i need to use a diferent folder and file isn't it?

Google
03-29-2012, 06:17 AM
But that's from Runescape Surface right? it's kind of diferent from a dungeon because i need to use a diferent folder and file isn't it?


Ahh didn't see the LRC_DUNG, yes you need to actually create your own SPS map which would be going into the dungeon and taking screenshot with the map open to create your own .png I'm not quite sure how to do large dungeons but im prety sure they need to be done in pieces there is a tutorial here to help http://villavu.com/forum/showthread.php?t=75181


^^ This requires a photo editing program with canvas

vacacow1
03-29-2012, 06:18 AM
are you putting banking on an LRC script? very nice idea.

Yeah, i want to know how to make the script walk first of all. I already got the hang of color finding and dropping items i want to get the hang of the basics of SRL first of all before making my own script, since i'm fairly new to this community.

vacacow1
03-29-2012, 06:21 AM
Ahh didn't see the LRC_DUNG, yes you need to actually create your own SPS map which would be going into the dungeon and taking screenshot to create your own .png I'm not quite sure how to do large dungeons but there is a tutorial here to help http://villavu.com/forum/showthread.php?t=75181


^^ This requires a photo editing program with canvas


I already got the picture but it says it's not included in SPS_Load, even tho it is

Here's the code of part of my SPS

// Path where all the SPS files are
SPS_IMG_PATH = IncludePath + 'SPS\img\';
SPS_IMG_FMT = '.png';

// Supported SPS surfaces
RUNESCAPE_SURFACE = 1;
DUNGEON_ESSENCE_MINE = 2;
DWARVEN_MINE = 3;
RUNECRAFTING_ALTARS = 4;
LIVING_ROCK_CAVERNS = 5;

I also added it down where all the folders are


LIVING_ROCK_CAVERNS:// Name of the area
with SPS_Surface do
begin
Name := 'Living Rock Cavern';
ImagePath := SPS_IMG_PATH + 'living_rock_caverns\';
FactorX := 400;
FactorY := 400;
TileOffsetX := -1;
TileOffSetY := -1;
Tolerance := 0.4;
end;