SRL Archive - SRL Positioning System

SPS_GetMyPos(); = Exception in Script: Out of memory?


Sir Ducksworthy

2012-03-14 13:16:35

RESOLVED
Ok so basically when I call SPS_GetMyPos();    
I get: Exception in Script: Out of memory?

It's not the script size or whatever It does the same thing in the SPSTestWalk.simba

Even when I try to SPS_WalkPath I get the same error
It's not crashing anymore since removing the debug

Resolved

but now my position is returning -1, -1 and the walking isn't working at all for me
Please could somebody help?

Mat

2012-03-14 14:06:58

Have you tried a Simple Script:

program LeetzCh1ck3FOCKER;
{$i srl/srl.simba}
{$i sps/sps.simba}
begin
SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE, ['11_8']);//ChickenE
writeln(SPS_GetMyPos);
end.
if that doesn't work then I think you have a problem with the SPS file and may need to re downland it.

Sir Ducksworthy

2012-03-14 14:14:01

Ty for reply
Yeh I tryed that

Smidqe

2012-03-14 14:17:01

Try taking out (or comment) the SPS_Debug line on your script. I recall that it caused "out of memory" issues in the past.

Sir Ducksworthy

2012-03-14 15:07:26

Nice thank you for that reply it isn't crashing the script on me anymore :)
But the Walking isn't working for me and the get my pos is returning -1, -1?

the flea

2012-03-14 15:43:14

From: leetsxc
Nice thank you for that reply it isn't crashing the script on me anymore :)
But the Walking isn't working for me and the get my pos is returning -1, -1?


have you set up the area's correctly in SPS_Setup?

Sir Ducksworthy

2012-03-14 16:52:13

Wait I fixed it now it was something really simple
ChickenE was sopost to be ChickensE I just didn't see it was missing the s
Muah mmuhhh

tehq

2012-03-14 16:55:40

If you're just trying to get the points, use this :http://villavu.com/forum/showthread.php?t=64891&highlight=path+creator

If you want to learn how to use SPS_GetMyPos try:
program new;
{$i SRL\SRL.simba}
{$i sps/sps.simba}

var

MyPos :TPoint;

begin
MyPos := SPS_GetMyPos;

Writeln('My position is x: '+inttostr(MyPos.x)+' y: '+inttostr(MyPos.y));


end.

Mat

2012-03-14 17:33:43

from what he's saying -1 ,-1 his SPS_Setup is wrong.