Log in

View Full Version : Exception in Script: Unknown compiler directives at 4:3



sm321
03-02-2012, 12:13 PM
I've got this script at the moment:

program DTM;

{$1 SRL\SRL.scar}

var

Bar, X, Y:integer

begin

SetUpSRL;

Bar := DTMFromString('mrAAAAHic42BgYGhjhOAeIJ4AxK1AXA/ElUDcBMRLgXguEC8A4mVAvAGI1wLxSqiYh6YY0BQmPBg/YCSAYQAAQtoKCw==');
If FindDTM(Bar, X, Y, MSX1, MSY1, MSX2, MSY2) Then
begin
WriteLn('Clicked Chocolate Bar');
MMouse(X, Y, 7, 7);
If IsUpText('late') then
MMouse(x, y , 0, 0, True);
end;

FreeDTM(Robe);

end.

Yet, when I compile the script, I get this error:


Exception in Script: Unknown compiler directives at 4:3

What do I do?

masterBB
03-02-2012, 12:21 PM
program DTM;

{.include SRL\SRL.simba} // changed this one

var

Bar, X, Y:integer; //added ;

begin

SetUpSRL;

Bar := DTMFromString('mrAAAAHic42BgYGhjhOAeIJ4AxK1AXA/ElUDcBMRLgXguEC8A4mVAvAGI1wLxSqiYh6YY0BQmPBg/YCSAYQAAQtoKCw==');
If FindDTM(Bar, X, Y, MSX1, MSY1, MSX2, MSY2) Then
begin
WriteLn('Clicked Chocolate Bar');
MMouse(X, Y, 7, 7);
If IsUpText('late') then
Mouse(x, y , 0, 0, True); //Changed MMouse to Mouse
end;

FreeDTM(Bar); //changed robe to bar

end.

sm321
03-02-2012, 12:27 PM
program DTM;

{.include SRL\SRL.simba} // changed this one

var

Bar, X, Y:integer; //added ;

begin

SetUpSRL;

Bar := DTMFromString('mrAAAAHic42BgYGhjhOAeIJ4AxK1AXA/ElUDcBMRLgXguEC8A4mVAvAGI1wLxSqiYh6YY0BQmPBg/YCSAYQAAQtoKCw==');
If FindDTM(Bar, X, Y, MSX1, MSY1, MSX2, MSY2) Then
begin
WriteLn('Clicked Chocolate Bar');
MMouse(X, Y, 7, 7);
If IsUpText('late') then
Mouse(x, y , 0, 0, True); //Changed MMouse to Mouse
end;

FreeDTM(Bar); //changed robe to bar

end.

Thanks. :)

EDIT: Same problem for some reason.

Current script:

program DTM;

{$1 SRL\SRL.simba}

var

Bar, X, Y:integer;

begin

SetUpSRL;

Bar := DTMFromString('mrAAAAHic42BgYGhjhOAeIJ4AxK1AXA/ElUDcBMRLgXguEC8A4mVAvAGI1wLxSqiYh6YY0BQmPBg/YCSAYQAAQtoKCw==');
If FindDTM(Bar, X, Y, MSX1, MSY1, MSX2, MSY2) Then
begin
WriteLn('Clicked Chocolate Bar');
MMouse(X, Y, 7, 7);
If IsUpText('late') then
Mouse(x, y , 0, 0, True);
end;

FreeDTM(Bar);

end.

masterBB
03-02-2012, 12:44 PM
Look at the difference between the way we include srl at top of the program, I don't believe $1 is anything.

sm321
03-02-2012, 12:47 PM
Look at the difference between the way we include srl at top of the program, I don't believe $1 is anything.

Sorry, I watched a tutorial so I didn't know any different. Thankyou for your help :)

EDIT: Another error,


ERROR in TMThread.LoadFile
Exception in Script: Unable to find file 'C:\Simba\Includes\SRL/SRL/core/players.simba' used from 'C:\Simba\Includes\SRL\SRL.simba'

masterBB
03-02-2012, 12:55 PM
I never had that error before, make sure you got the latest version of srl and simba.

sm321
03-02-2012, 12:56 PM
I never had that error before, make sure you got the latest version of srl and simba.


No Plugins update available.
No SRL update available.
No SPS update available.
No MSI update available.

masterBB
03-02-2012, 12:59 PM
Make sure you restart simba and check if that file is in the correct folder: C:\Simba\Includes\SRL/SRL/core/players.simba

sm321
03-02-2012, 01:04 PM
Make sure you restart simba and check if that file is in the correct folder: C:\Simba\Includes\SRL/SRL/core/players.simba

I've got players.scar if that helps?

masterBB
03-02-2012, 01:19 PM
That's an old version of srl. Remove the entire srl folder. In simba go to srl->settings->override update. Then go to srl->update, not check for update.

sm321
03-02-2012, 02:39 PM
That's an old version of srl. Remove the entire srl folder. In simba go to srl->settings->override update. Then go to srl->update, not check for update.

It worked, thanks :) But, nothing actually happens on RuneScape. It says:


Successfully Excecuted

but nothing actually happened.

Sin
03-02-2012, 02:53 PM
Guys, he's using MSX1, the chocolate bar is in the inventory..


FindDTM(Bar,x,y,MIX1,MIY1,MIX2,MIY2)

sm321
03-02-2012, 02:55 PM
Guys, he's using MSX1, the chocolate bar is in the inventory..


FindDTM(Bar,x,y,MIX1,MIY1,MIX2,MIY2)


It's in the bank when I want to withdraw it, but I'll try altering it for when it's in the inventory. :)

Sin
03-02-2012, 02:57 PM
FindDTM(Bar,x,y,MBX1,MBY1,MBX2,MBY2)

Also, we include SRL like this -

{$Include SRL\SRL.simba}

masterBB
03-02-2012, 03:01 PM
Are you sure that the DTM is correct? And have you selected the client with the crosshair?



Also, we include SRL like this -

{$Include SRL\SRL.simba}


There are multiple ways to accomplish that. Three of them are:

{$I SRL\SRL.simba}
{$Include SRL\SRL.simba}
{.include SRL\SRL.simba}

Sin
03-02-2012, 03:02 PM
Are you sure that the DTM is correct? And have you selected the client with the crosshair?



There are multiple ways to accomplish that. Three of them are:

{$I SRL\SRL.simba}
{$Include SRL\SRL.simba}
{.include SRL\SRL.simba}

Yup.
I haven't included SRL for so long, I have a preset script skeleton :p

sm321
03-02-2012, 03:03 PM
FindDTM(Bar,x,y,MBX1,MBY1,MBX2,MBY2)

Also, we include SRL like this -

{$Include SRL\SRL.simba}


Ok, thanks :) It still does nothing. It compiles successfully, but it just starts and stops with no clicking inbetween.

Current script:

program DTM;

{$include SRL\SRL.simba}

var

Bar, X, Y:integer;

begin

SetUpSRL;

Bar := DTMFromString('mrAAAAHic42BgYGhjhOAeIJ4AxK1AXA/ElUDcBMRLgXguEC8A4mVAvAGI1wLxSqiYh6YY0BQmPBg/YCSAYQAAQtoKCw==');
If FindDTM(Bar, X, Y, MBX1, MBY1, MBX2, MBY2) Then
begin
WriteLn('Clicked Chocolate Bar');
MMouse(X, Y, 7, 7);
If IsUpText('late') then
Mouse(x, y , 0, 0, True);
end;

FreeDTM(Bar);

end.

Sin
03-02-2012, 03:05 PM
Have you selected the client with the crosshairs?
You're not using SMART so..

sm321
03-02-2012, 03:07 PM
Have you selected the client with the crosshairs?
You're not using SMART so..

I have selected RuneScape with the crosshair, yet it's still not working.

Sin
03-02-2012, 03:07 PM
Then your DTM isn't proper.

sm321
03-02-2012, 03:10 PM
Then your DTM isn't proper.

I'll redo it, see if that helps :)

EDIT: I've redone it, it now moves to a toy horsey, yet doesn't click it.

Sin
03-02-2012, 03:12 PM
It should, if the problem still persists, give me 8 hours and i'll come home from school and do it.

sm321
03-02-2012, 03:17 PM
It should, if the problem still persists, give me 8 hours and i'll come home from school and do it.

It's ok, I've edited it to click a toy horsey, but now it just doesn't click, but it moves there still :)

EDIT: Had to make it click twice :)

Neora
03-06-2013, 06:28 PM
Shit posted on wrong thread -.-