SRL errors and how to fix them


In the following post, i will be making a list of common SRL errors and how to fix them. All you have to do is use the find features of your browser (CTRL + F for most of them) and find your error.

Note: When searching for errors, do not include the line numbers, the [Error] message, the 2 numbers in brackets or your C:\ path!

i.e. if your error is Line 4: [Error] (4:12): Unknown identifier 'x' in script C:\Program Files\SCAR 3.11\scripts\MyTestScript.scar, only search for Unknown identifier 'x' in script




  • Include file C:\Program Files\SCAR 3.11\includes\SRL\SRL.scar does not exist


You have not installed SRL properly. Check out some of the following guides on how to install it properly:

How to Manually Install SRL 4 by Kikwit

Setting up SRL for Autoing by Starblaster100



  • Unknown identifier 'x' in script
  • Duplicate identifier 'x' in script


You are using a script which was made for SRL 3.81 and below, not SRL 4.0 and above! You have 3 options:
1) Find a new script which has been scripted for SRL 4
2) Download SRL 3.81, get SCAR divi 3.11 and try autoing with that
3) If you know a bit about scripting: put

PHP Code:
var
  
xyInteger
in the correct place if it is a unknown identifier, or remove it if it is a duplicate identifier



  • Unknown identifier 'ChangeFPHandle' in script


There are 2 versions of this error:

1) You are running Windows Vista. If so, right click SCAR.exe and choose "Run as Administrator". A security window pops up in which you should enter your pass.

2) Your SCAR plugins are corrupt! Redownload SRL and re-extract the plugins, overwriting your original ones. SCAR plugins default path can be found at C:\Program Files\SCAR 3.xx\Plugins



  • Unknown identifier ScanexactminimapD' in script


You have not extracted the plugins into SCAR's plugins folder.

1) Browse to your SCAR plugins folder, default path C:\Program Files\SCAR 3.xx\Plugins.
2) Open the SRL.rar file you downloaded from this site
3) In the rar folder, open the folder "Place inside plugins folder" / "Plugins" and drag all of the .dll files into SCAR's plugin folder which you opened in Step 1. If you are asked to overwirte anything, press "Yes to All"



  • Duplicate identifier 'UpChars' in script


You are using the new version of SRL with an old version of SCAR.

1) Download the latest version of SCAR from freddy1990.com/scar.php
2) Download the latest version of SRL from this site
3) Install both properly.



  • Unknown identifier 'RandomRClickEvery' in script
  • Unknown identifier 'RotateEvery' in script
  • Include file C:\Program Files\SCAR 3.11\Includes\SRL\SRL\Extended\xAntiban.scar does not exist
  • Include file C:\Program Files\SCAR 3.11\Includes\SRL\SRL\Extended\xInventory.scar does not exist
  • Unknown identifier 'MouseSpeed' in script


You are trying to run an old script with the new version of SRL. You have 2 options:

1) Download SCAR 3.11, SR 3.81 and run the script with those installed.
2) Find a newer script.



  • divide by Zero in line 80 in script


You are trying to divide a number by 0, and everyone knows that if you try to divide a number by 0, you get a maths error!

If the error is occurring on line 80 of your script, it means that you haven't put "SetupSRL;" in your main loop. Put it in there, and the error should hopefully disappear.



  • Out Of Range


If you are trying to auto, you have to set your players up properly. Read some of the following guides on how to do that:

How to setup your Players by Wizzup

If you are trying to script, and you think it is a problem with your player array, check out the following guide:

Scripting for SRL 4 by Starblaster100

Otherwise it is another Array error. Check the following guides on Arrays:

types and Arrays by Neilsie95

Arrays by XxKanexX



  • Found Compass... then nothing


You have not dragged the crosshair onto the RuneScape screen. If you are having problems setting up SCAR for autoing, check out he following guides:

Setting up SCAR so you can auto properly by Starblaster100



  • Exception: Access violation at address


If you are trying to auto, you are using a bad script i'm afraid. Find a new one.

If you are a scripter, You are trying to call a bitmap / DTM which you have not loaded into the memory yet. Remember to put SetupSRL at the top of your main loop and load all of your Bitmaps and DTMs



  • Unable to register function function FindGapsTPA


Make sure that you have the latest SCAR divi version and SRL Rev.
Delete all of your plugins, redownload them and move them to the plugins folder in SCAR
[Vista] Make sure you are running SCAR as administrator (Right click, run as administrator)


  • You haven't answered my problem!


Don't worry, I will keep updating this list as more errors arise, however it is impossible to answer every single error solely in this thread!

Your best bet would be to use a powerful little button more commonly known as the Search Button

This Tutorial List by RAM RUNE is another great thread you should read whether you are an autoer or scripter. It is a huge list of many different tutorials on many different topics. Definitely worth a checkout.

Scripters: If i have missed out an important error / there is a mistake / you would like to add something, please PM me and i will do so.

Thanks a lot

SRL Dev Team and Board Management