SRL Archive - OSR Help

SPS Access Denied?


Ilya

2013-02-01 10:53:38

Says I need to run Simba as admin, but I dont have that option.
Tried restarting, didn't help.
Only stops when script calls upon anything SPS related.
Here is my code regarding SPS:

{$DEFINE SMART8}
{$DEFINE SPS}

{$i SRL\SRL.simba}

{$i sps\sps.simba}

and

procedure HomePosition;
begin
SPS_Setup(DWARVEN_MINE,['0_2']);
HomePos := Point(48,54);
SPS_WalkToPos(HomePos);
end ;

then I call for "HomePosition" in the mainloop.
Thoughts?


Also, What's a good way to find my position?
I've tried
SPS_GetMyPos
but it gave me the same error.

DannyRS

2013-02-01 11:16:18

Look at a guide for making a path, and use SPS_WalkPath();,

I've never seen {DEFINE SPS} used, try removing that and re-run

And your SPS_SETUP(); is wrong, the 0_2 is the map you need Runescape_Surface or the folder your map is inside in the first half not the map place

e.g.

SPS_Setup(RUNESCAPE_SURFACE, '0_2');

SPS_Setup(RUNESCAPE_OTHER, '0_2');

Also try using http://villavu.com/forum/forumdisplay.php?f=184 for faster help in the future :)

Ilya

2013-02-01 12:47:05

From: DannyRS
Look at a guide for making a path, and use SPS_WalkPath();,

I've never seen {DEFINE SPS} used, try removing that and re-run

And your SPS_SETUP(); is wrong, the 0_2 is the map you need Runescape_Surface or the folder your map is inside in the first half not the map place

e.g.

SPS_Setup(RUNESCAPE_SURFACE, '0_2');

SPS_Setup(RUNESCAPE_OTHER, '0_2');

Also try using http://villavu.com/forum/forumdisplay.php?f=184 for faster help in the future :)



Not trying to walk a path, just set a location where my char would return to. just one set of coords.
Tried

SPS_Setup(RUNESCAPE_OTHER, '0_2');
Didn't work.
Can I make my own map, which folder would I have to put it in tho?

Sjoe

2013-02-01 12:51:52

u forgot the [ ] brackets I think: SPS_Setup(RUNESCAPE_Other,['0_2']);
And yeah u can make a custom map, doesn't mather which folder u put in, just call it righT.

Ilya

2013-02-01 12:57:38

Got the brackets right, thanks. Still says denying access.

Sjoe

2013-02-01 13:04:00

From: Ilya
Got the brackets right, thanks. Still says denying access.


Guess you really have to run admin on it?
how does your script look like atm.

Ilya

2013-02-01 14:37:31

how would i run admin on it?

Sjoe

2013-02-01 14:47:20

From: Ilya
how would i run admin on it?


If you're a windows user, just right click on the file and run as administrator.

Olly

2013-02-03 00:43:54

You don't need to define SPS.

Ilya

2013-02-04 14:07:19

Still not working for me guys.


Procedure Walking;
begin
ToBankPath := [Point(4076, 1094), Point(4058, 1099), Point(4045, 1102), Point(4033, 1120), Point(4015, 1134), Point(3989, 1148), Point(3970, 1163), Point(3946, 1175), Point(3917, 1181),
Point(3892, 1193), Point(3862, 1206), Point(3856, 1243), Point(3856, 1271), Point(3857, 1307), Point(3857, 1340), Point(3857, 1381), Point(3855, 1425), Point(3853, 1457), Point(3853, 1497),
Point(3853, 1525), Point(3851, 1557), Point(3850, 1590), Point(3850, 1634), Point(3856, 1680), Point(3856, 1729), Point(3858, 1769), Point(3862, 1804), Point(3869, 1839), Point(3869, 1881),
Point(3869, 1922), Point(3869, 1962), Point(3869, 2014)];

SPS_WalkPath(ToBankPath);

end;

Begin
ClearDebug;
SetupSRL;
Attempts := 0;
DeclarePlayers;
LoginPlayer;
FindSpinTicket()
ClickNorth(SRL_ANGLE_HIGH);
SPS_Setup(RUNESCAPE_SURFACE,['10_2','9_2','9_3','9_4','9_5']);




Repeat
if (InvFull) then
Begin
Writeln('Ending - Inventory is full');
Logout();
TerminateScript();
End;
Walking;
//MainLoop;
Until (Not Loggedin);
End.
What am I doing wrong?

Sjoe

2013-02-04 14:16:10

From: Ilya
Still not working for me guys.
What am I doing wrong?


Simba tags please :)

What's the problem.

Ilya

2013-02-04 14:22:13

Still says SPS access denied. When I right click on my script, It does not give me an option to run as administrator. I have Windows 7 if that makes any difference.

Turpinator

2013-02-04 14:30:53

From: Ilya
Still says SPS access denied. When I right click on my script, It does not give me an option to run as administrator. I have Windows 7 if that makes any difference.


Run simba as admin, then load the script through the file-open menu?

The Killer

2013-02-04 14:31:15

From: Ilya
Still says SPS access denied. When I right click on my script, It does not give me an option to run as administrator. I have Windows 7 if that makes any difference.


Errm, are you on an admin account? if not try on one.

Ilya

2013-02-04 14:35:40

I am on an admin account. It gives me the option to "Run as Admin" with .exe files, but not with .simba files. Is there something in Computer Settings that I need to change?

Kevin

2013-02-04 14:45:56

Run it on Simba.exe, not an individual script. Then in the opened SIMBA, open the script.

Ilya

2013-02-04 14:48:51

From: Turpinator
Run simba as admin, then load the script through the file-open menu?


Trying this now. Thanks!

Ilya

2013-02-04 14:51:11

No luck. Still brings up the same message.

Ilya

2013-02-04 14:56:10

From: nivek1989
Run it on Simba.exe, not an individual script. Then in the opened SIMBA, open the script.

Did this EXACTLY! Doesnt work. Script compiles just fine, when it's supposed to start walking, pops up that message.
Any more ideas before i give up?

Kevin

2013-02-04 15:03:21

From: Ilya
Did this EXACTLY! Doesnt work. Script compiles just fine, when it's supposed to start walking, pops up that message.
Any more ideas before i give up?


Sorry, I mean right click the Simba.Exe to run as administrator. Is that what you did exactly?

Ilya

2013-02-04 15:06:53

Yup. This has been a 3 day battle against SPS for me.

Kevin

2013-02-04 15:45:22

Is there any chance you've running someone else's script that uses SPS?

Ilya

2013-02-04 22:40:29

Not exactly, it's an outdated script, but i'm writing my own walking and banking.
What difference would it make anyway?

Ilya

2013-02-06 11:41:21

RESOLVED!!!
Just had to update my SPS…:duh: