SRL Archive - Help/Questions

Help with scripting


icode

2014-12-25 15:43:54

I want to script for an RSPS I play currently and I've done this in the past, but now I can't get Simba to even run a simple script. It seems to not be able to find the include. I've tried using srl-5, 6, and the rsps include from @Robert https://villavu.com/forum/showthread.php?t=107271

Can anyone help me?

KeepBotting

2014-12-25 17:48:21

What error is thrown by Simba?

icode

2014-12-25 20:03:02

From: KeepBotting
What error is thrown by Simba?


Its like cant find srl/srl.simba

KeepBotting

2014-12-25 20:48:41

From: icode
Its like cant find srl/srl.simba


It'd be nice if you could provide something a little more definite then "its like …" but okay.

"Can't find (file path)" errors usually means you're including something that doesn't exist. You need to give Simba the correct files in the correct paths.

Take an extra three seconds, post the actual error and we can figure out which files it wants.

icode

2014-12-25 21:33:55

From: KeepBotting
It'd be nice if you could provide something a little more definite then "its like …" but okay.

"Can't find (file path)" errors usually means you're including something that doesn't exist. You need to give Simba the correct files in the correct paths.

Take an extra three seconds, post the actual error and we can figure out which files it wants.

Sorry I appologize I was frustrated.
Program ChopTree;
{$i srl/srl.simba}
Procedure ClickTree;
var
X,Y:Integer;
begin
if FindColorTolerance(X, Y, 10336, 277, 169, 326, 218, 5) then
begin
mmouse(x, y,1,1);
wait(250);
ClickMouse(X, Y, mouse_Left)
end;
end;
Begin
MouseSpeed := 15;
SetupSRL;
end.

Error: Exception in Script: Unable to find file 'srl/srl.simba' used from ''

KeepBotting

2014-12-25 21:35:42

From: icode
Program ChopTree;
{$i srl/srl.simba}
Procedure ClickTree;
var
X,Y:Integer;
begin
if FindColorTolerance(X, Y, 10336, 277, 169, 326, 218, 5) then
begin
mmouse(x, y,1,1);
wait(250);
ClickMouse(X, Y, mouse_Left)
end;
end;
Begin
MouseSpeed := 15;
SetupSRL;
end.

Error: Exception in Script: Unable to find file 'srl/srl.simba' used from ''


Okay, that script requires SRL-5, which can be found here. Download and install it as the script expects, I believe the files should end up in C:/Simba/Includes/SRL with /SRL being the root folder

icode

2014-12-25 21:38:34

From: KeepBotting
Okay, that script requires SRL-5, which can be found here. Download and install it as the script expects, I believe the files should end up in C:/Simba/Includes/SRL with /SRL being the root folder


I did have that originally here's my includes folder.

KeepBotting

2014-12-25 21:48:16

From: icode
I did have that originally here's my includes folder.
http://s17.postimg.org/re3uo36jj/image.png


I believe the files should end up in C:/Simba/Includes/SRL with /SRL being the root folder


Doesn't look like you've done that part, you've got an "SRL-5" folder floating around in there

icode

2014-12-25 22:59:50

From: KeepBotting
Doesn't look like you've done that part, you've got an "SRL-5" folder floating around in there


I tried moving SRL-5 folder into the includes/SRL folder and it still won't work

KeepBotting

2014-12-25 23:01:56

From: icode
I tried moving SRL-5 folder into the includes/SRL folder and it still won't work


Of course not, because the path to the files needs to be /SRL, not /SRL/SRL-5

Don't move the folder, move the files

icode

2014-12-25 23:05:29

From: KeepBotting
Of course not, because the path to the files needs to be /SRL, not /SRL/SRL-5

Don't move the folder, move the files


Facepalm….wow sorry im so stupid