SRL Archive - Help

I dont know the correct place to post this


SlimShadyy96

2013-01-26 14:38:09

So im trying to setup Simba for the first time and i copy and pasted the script on the setup page just like the video says and i get this error continously
[Error] C:\Simba\Includes\SRL\SRL\core\globals.simba(751:13): Unknown identifier 'GetColorToleranceSpeed' at line 750
Compiling failed.

The Killer

2013-01-26 14:53:49

Make sure you have updated simba fully
check out: http://villavu.com/forum/showthread.php?t=75086

SlimShadyy96

2013-01-26 16:06:53

It is revision 992…

The Mayor

2013-01-26 16:57:28

Did you follow the quick setup guide?

http://villavu.com/forum/showthread.php?t=47714

Sjoe

2013-01-26 17:18:16

From: SlimShadyy96
So im trying to setup Simba for the first time and i copy and pasted the script on the setup page just like the video says and i get this error continously
[Error] C:\Simba\Includes\SRL\SRL\core\globals.simba(751:13): Unknown identifier 'GetColorToleranceSpeed' at line 750
Compiling failed.


Did u call

{$i SRL/srl.simba}

after program ..; ?

SlimShadyy96

2013-01-26 20:06:15

From: Sjoekeloe
Did u call

{$i SRL/srl.simba}

after program ..; ?

im not sure i know what you're talking about… What is it exactly that i have to do? :S

Chris!

2013-01-26 20:09:05

At the top of your script:

program YourScriptNameHere;

{$I SRL/SRL.Simba} //Make sure you have this.

procedure Whatever;
begin
Dosomething;
Wait(123456);
end;

begin
SetupSRL; //YOU NEED THIS ASWELL
Whatever; //Not your actual proc name.
end.

Sjoe

2013-01-26 20:09:59

From: SlimShadyy96
im not sure i know what you're talking about… What is it exactly that i have to do? :S


so your script must look like this



program new;
{$i SRL/srl.simba} // Don't forget this part!!!

begin
SetupSRL;
end.

EDIT: looks like Chris beat me too it :)

SlimShadyy96

2013-01-26 22:07:40

From: Sjoekeloe
so your script must look like this



program new;
{$i SRL/srl.simba} // Don't forget this part!!!

begin
SetupSRL;
end.

EDIT: looks like Chris beat me too it :)


From: Chris!
At the top of your script:

program YourScriptNameHere;

{$I SRL/SRL.Simba} //Make sure you have this.

procedure Whatever;
begin
Dosomething;
Wait(123456);
end;

begin
SetupSRL; //YOU NEED THIS ASWELL
Whatever; //Not your actual proc name.
end.

Guys I don't think you understand! I'm setting up Simba for the first time, and I was following the vid tutorial, and I was trying to see if everything worked properly like the tutorial said, so i copy and pasted the code
program new;
{$DEFINE SMART}
{$i srl/srl.simba}

begin
ClearDebug();
SetupSRL();
end.

and i kept getting that error. Im not trying to run any script, or make one, just trying to figure out how to work this bot.

Chris!

2013-01-26 22:09:24

From: SlimShadyy96
Guys I don't think you understand! I'm setting up Simba for the first time, and I was following the vid tutorial, and I was trying to see if everything worked properly like the tutorial said, so i copy and pasted the code
program new;
{$DEFINE SMART}
{$i srl/srl.simba}

begin
ClearDebug();
SetupSRL();
end.

and i kept getting that error. Im not trying to run any script, or make one, just trying to figure out how to work this bot.


SRL and Simba fully up-to-date? Try force-updating by going to Tools -> Update.

SlimShadyy96

2013-01-26 22:15:31

From: Chris!
SRL and Simba fully up-to-date? Try force-updating by going to Tools -> Update.


Did that, still nothing. I've Installed the client twice already. Also along with the previous error, I keep getting this error.

[Error] C:\Simba\Includes\SRL/SRL/core/globals.simba(662:13): Unknown identifier 'GetColorToleranceSpeed' at line 661
Compiling failed.

Chris!

2013-01-26 22:21:19

Line 661 in my globals.simba file isn't anything to do with 'GetColorToleranceSpeed'. The only instance of that in that file is at line 750.

Open up globals.simba and tell me what's at line 650 -> 670. Be sure to use [noparse]
[/noparse] tags so we can see the lines. ;)

SlimShadyy96

2013-01-26 22:23:53

From: Chris!
Line 661 in my globals.simba file isn't anything to do with 'GetColorToleranceSpeed'. The only instance of that in that file is at line 750.

Open up globals.simba and tell me what's at line 650 -> 670. Be sure to use [noparse]
[/noparse] tags so we can see the lines. ;)

I have no idea where to look for that. Sorry but im a little tired, Im going to bed. I'll try to get this figured out tmrw…hopefully.

Chris!

2013-01-26 22:26:06

C:\Simba\Includes\SRL/SRL/core/globals.simba.

It tells you the directory of the file that's throwing an error.

Good luck tomorrow!

SlimShadyy96

2013-01-27 07:58:29

ok i have no idea what im doing with this goddamn bot. Simple my ass

SlimShadyy96

2013-01-27 08:07:06

ok heres what it says in my globals files from lines 650-670
HP_BAR_WIDTH = 57;
HP_BAR_HEIGHT = 7;
HP_BAR_COLOR1 = 9728;//Green
HP_BAR_COLOR2 = 132923;//Red

(*
GetFightBarTPA
~~~~~~~~~~~~~~

.. code-block:: pascal

Function GetFightBarTPA(SearchArea: TBox): TPointArray;

Used in various fighting functions, including srl_InFight

.. note::

by Narcle

Example:

SlimShadyy96

2013-01-27 08:08:11

and this is lines 747 to 772
Function FoundBar: Boolean;
var
tempCTS, X, Y: Integer;
begin
tempCTS:= GetColorToleranceSpeed;
SetColorToleranceSpeed(1);

Result := FindBitmapToleranceIn(SRL_NAVBAR_BITMAP, X, Y, 0, 0, 764, 50, 10);

SetColorToleranceSpeed(tempCTS);
end;

(*
SRL_DisableNavBar
~~~~~~~~~~~~~~~~~

.. code-block:: pascal

Procedure SRL_DisableNavBar;

Offsets the client by 50 pixels when logged in, 22 when not logged in. This is to ignore the navigation bar at the top.

.. note::

by: Brandon.

Example:

SlimShadyy96

2013-01-27 09:06:30

also i get this when i start simba
Loading extension C:\Simba\Extensions\sps.sex
Extension Enabled
Error in Simba extension (SPS Updater): Could not call proc

Sjoe

2013-01-27 13:30:41

The GetcolorTOleranceSPeed error,
That function should be located in C:\Simba\Includes\SRL\SRL\core\simba.simba
(the function is on line 236, just in case)

function GetColorToleranceSpeed : integer;
begin;
result := GetToleranceSpeed;
end;

Do u have that file?
And are you running simba as Administrator?

SlimShadyy96

2013-01-27 16:17:11

From: Sjoekeloe
The GetcolorTOleranceSPeed error,
That function should be located in C:\Simba\Includes\SRL\SRL\core\simba.simba
(the function is on line 236, just in case)

function GetColorToleranceSpeed : integer;
begin;
result := GetToleranceSpeed;
end;

Do u have that file?
And are you running simba as Administrator?

Honestly i have no idea what's up with this. Im so confused..

Sjoe

2013-01-27 17:35:24

This is Fixed :)

Ian

2013-01-27 17:44:40

From: Sjoekeloe
This is Fixed :)


What was the problem?

Sjoe

2013-01-27 17:46:01

From: BMWxi
What was the problem?

His SRL files were all messed up, I replaced it.

simba.simba had nothing in it..

Ian

2013-01-27 17:50:27

From: Sjoekeloe
His SRL files were all messed up, I replaced it.

simba.simba had nothing in it..


Force updating or a reinstall should have fixed that, oh well.

Sjoe

2013-01-27 17:52:16

From: BMWxi
Force updating or a reinstall should have fixed that, oh well.


He tried force-updating, yeah he should have re-installed it. maybe didn't do it correctly the first time.