SRL Archive - Help

Unable to find file 'srl\srl.simba'


Hult

2012-12-21 00:50:41

Hey guys, So I'm completely confused on this..
When I try loading a script for an RSPS, I'm getting the error ;

Exception in Script: Unable to find file 'srl\srl.simba' used from 'C:\Users\Hult\Desktop\Fighter.simba'

Here's the script.

program AutoFighter;
{$i srl\srl.simba}

procedure FindandAttack;
var x, y: integer;
begin
if FindColor(x, y, 6268823, 15, 15, 730, 482) then //Last two numbers are dimensions
WriteLn('Found Color');
begin
if srl_infight = false then
Mouse(x, y, 0, 0, True);
WriteLn('Fighting');
Wait(RandomRange(1300, 1600));
end;
end;
begin ClearDebug;

SetUpSRL;

repeat
FindandAttack;
until (IsKeyDown (114)); //Press f3 to stop
end.



Any ideas?..
Thanks!

DannyRS

2012-12-21 01:19:55

Think you need to enable the SRL extention in simbas settings for extentions

Hult

2012-12-21 02:43:45

From: DannyRS
Think you need to enable the SRL extention in simbas settings for extentions


Yeah, I found that out eventually. Haha
But now when I run the script, the cursor goes to the edge of the client (as if you were to resize it) & just sits there..
Any ideas?

riwu

2012-12-21 02:52:20

From: Hult
Yeah, I found that out eventually. Haha
But now when I run the script, the cursor goes to the edge of the client (as if you were to resize it) & just sits there..
Any ideas?

You have to set the target using the green crosshair at the Simba client (to the right of run button)

Hult

2012-12-21 10:32:58

From: riwu
You have to set the target using the green crosshair at the Simba client (to the right of run button)


Yep, I did that.
Still just moves over there, and clicks consecutively.

mray12

2012-12-22 21:47:37

i am having the same error someone told me i have to reinstall the srl repository any help on how i do that ?

Wardancer

2012-12-23 00:43:02

You can simply delete your SRL folder and then run the SRL update. That should work.

mray12

2012-12-23 23:37:37

From: Wardancer
You can simply delete your SRL folder and then run the SRL update. That should work.


how do you do that as i cannot find any srl folder

CRASH_OVERRIDE

2012-12-29 09:30:52

Find where you installed simba.

To do this right click simba icon, select properties, look at the target location, go to that location (C:\Simba\)

Find and delete the SRL folder.

Pew

2012-12-29 09:55:27

What private server is this for?

It could be that the srl_infight is broken on said server. Can it find and click the colours alone?

Try this:
program new;
{$define srl5}
{$loadlib sps}
{$i srl/srl.simba}
{$i sps/sps.simba}


const
//Colours
NPCNAME = 15988213; //Update this

Procedure FindAndAttack;
Var
x, y:Integer;
Begin
If (FindColorTolerance(x, y, NPCNAME , 15, 15, 730, 482, 10)) then //The last value is tolerance you can adjust it
begin
Mouse(x, y, 4, 4, True);
end else
begin
WriteLn('NPC not found');
end;
end;

begin
ClearDebug
SetupSRL;
FindAndAttack;
end.

Ian

2012-12-29 10:12:20

SRL_InFight is probably broken, don't think that would cause the mouse issues this though m