Kyle Undefined
2012-01-10 01:33:05
Also, I know there's the FAQ thread, but it covers a wide range of topics and I can see how the new people could overlook/miss one.
So, you just upgraded to SRL 5, or just downloaded a pre-SRL 5 script, and you can't wait until you get back to autoing right!?
WRONG!
Uh oh! Looks like you got an error! What do we do now? Do we post countless threads on the forums about the issue without searching?
WRONG!
Of course not! However, seeing that the "mysterious search button" only shows itself to those it finds worthy, you can put all your trouble aside as I, The Great Kyle Undefined, is here to save the day! (Cheering from the stands).
Ok, we will start off with the most common one.
_________________________________________________________
Exception in Script: Unable to find file 'srl/srl.scar'
Ah, yes, this is by far the most posted error on the forums since SRL 5's release. So how do we fix it? Let's see:
First off, that means you have installed SRL 5 correctly! (Yay!) Now, unfortunately, the script you're trying to use isn't SRL 5 compatible. You can either go two ways with this, one being easy (except for impatient people) and the other being easy/medium depending on how you feel with scripting.
Method One: The easiest thing to do is wait until the creator of the script updates it themselves and posts a version compatible with SRL 5. Like I said, this is the easiest method, you just have to be patient. You could make a nice, friendly post asking the creator to please update their script, on the script thread.
Method Two: So, you're feeling adventurous huh? Ok, I'll guide you through the update forest. Say you open a script, and you see this at the top:
program brokenScript;
{$I srl/srl.scar}
//blah boring stuff
begin
SetupSRL();
ClickNorth(True);
SetAngle(True);
end.
Now, this may be daunting, but I believe in you! All you have to do is change the ".scar" to ".simba" and voila, you've updated the script to SRL 5! No, not really. Although that includes the new SRL 5 code, it doesn't fix the other errors that will be associated with it. The update brings some code changes to the methods used above in the "brokenScript". The "ClickNorth()" and "SetAngle()" methods now use Integers instead of Booleans.
"BUT WUT DUZ DAT MEAN???!!!"
Here, I'll show you:
ClickNorth(SRL_ANGLE_HIGH);That is one of the values for setting the Angle to High in SRL 5. There are also two other values that can be passed in:
SRL_ANGLE_LOW
SRL_ANGLE_NONE
Now, since I've already explained what the "High" value means, I'm sure you can guess what the "Low" value means. Yup, it lowers the camera angle to the lowest setting it can be. But what does "None" mean exactly? Well, When using "ClickNorth(SRL_ANGLE_NONE");" it will click the compass and won't change the camera angle at all, it will leave it do default. How cool is that!?
Now, I've been using "ClickNorth" as the examples, but the same values work with "SetAngle()" as well. Looking back at our broken script, here's what it would look like after updating those methods:
program nonBrokenScript;
{$i srl/srl.simba}
//blah boring stuff
begin
SetupSRL();
ClickNorth(SRL_ANGLE_HIGH); //Or SRL_ANGLE_LOW or SRL_ANGLE_NONE
SetAngle(SRL_ANGLE_HIGH); //Or SRL_ANGLE_LOW
end.
Voila! An updated and working SRL 5 script! Yay! See, that wasn't so hard was it? That's how you update an pre-SRL 5 script if you're too impatient.
_________________________________________________________
Exception in Script: Unable to find file 'SRL/SRL/Misc/stats.simba' used from ''
So you updated the script and you're still getting an issue? Oh noez! The world is over! No, not really, this is a very simple fix that anyone with any amount of scripting ability can fix.
You see, we use to have to include that file to get SRL Stats incorporated into the scripts, but in SRL 5 that's already done for us so we no longer need to call it manually. Simply removing that line will fix the error, and what do you know? It's fixed!
_________________________________________________________
Exception in Script: File "C:/Simba/Includes/SRL/SRL/misc/smart.simba" not found at line 31, column 11 in file "C:/Simba/Includes/srl/srl.simba"
This error means that the smart.simba file cannot be found in the correct folder. Forcing an update by doing: SRL -> Settings -> Override Update. Then SRL -> Update should fix this problem.
_________________________________________________________
Exception in Script: Unable to find file 'ObjectDTM\ObjDTMInclude.simba' used from ''
Ah yes, the almighty ObjectDTM Include error. This is yet another simple fix, and just requires downloading another file.
All you have to do is go to the ObjectDTM Include thread here, download the file, open it up, and run it. It will automatically download and create the ObjectDTM folders/files for you! See, yet another simple fix, and you thought your autoing days were over.
_________________________________________________________
Exception in Script: Unable to find file 'SRL/SRL/Misc/Smart.scar' used from ''
Again, a simple change from ".scar" to ".simba" and you'll be on your way to autoing in a jiffy! How lucky are you?
_________________________________________________________
Exception: Access violation at line 101
Now, I've personally never run into this nor have I seen it, but it appears to be caused by not having Java installed.
All you need to do is follow YoHoJo's guide here, and that will walk you through on how to fix this error. Yes, I know it talks about fixing the "lag" issue with SMART, but they are the exact same steps to solve the error above.
Also, I've heard that running Simba as Admin or a directory that doesn't require Admin rights helps with this issue.
Please let me know if I've missed any or need to update anything. Just trying to get all the errors into one place that's quick and simple to read/understand.
Happy autoing! :D
