Convert your scripts by January 1st, 2012!______________________________
So the long awaited SRL5 is here, but not like you're expecting. Our original plans kind of fell through due to several problems that I won't get into, but the main was lack of development. So what we've done is copy SRL4, add documentation, and remove any SCAR support. I imagine some of your are disappointed and we apologize for that. Our plans are to apply our original ideas of SRL5 to SRL6 (which likely won't be for a very long time, unfortunately). There will still be several bug fixes and function additions to SRL5, so don't worry about that.
Unfortunately, there are a few things that will break your scripts:
- All SCAR file extensions have been changed to Simba (.scar -> .simba)
- The stats.scar file has been changed to globalstats.simba and moved to srl/core/
- Stats is now included with SRL so you do not need to include globalstats.simba in your script
- SetAngle and ClickNorth now take integer parameters (fixed a small bug). You now call them like this:
Simba Code:SetAngle(SRL_ANGLE_HIGH);
ClickNorth(SRL_ANGLE_NONE); // SRL_ANGLE_NONE will negate the 1-2s wait in SetAngle
SetAngle(SRL_ANGLE_LOW);- You have to define SRL5 at the top of you script, and use IFDEF's where applicable throughout your script. For example:
Simba Code:program new;
{$DEFINE SRL5} // comment to use SRL4
{$IFDEF SRL5}
{$i srl/srl.simba}
{$ELSE}
{$i srl/srl.scar}
{$ENDIF}
begin
clearDebug();
setupSRL();
{$IFDEF SRL5}
clickNorth(SRL_ANGLE_NONE};
{$ELSE}
clickNorth(true);
{$ENDIF}
end.- SRL5 now uses Gaussian randomness inside its mousing functions. This means that it will now "aim" towards the center of the random box. The parameters are the same, and nothing changes in the scripting interface. For more information on this, please see: docs.
MSI is completely compatible with SRL5 and 4, so if you wish you can download SRL5 and you'll be good to go.
Getting SRL5:
- Disable the SRL Updater.
- Download SRL5 to Simba/Includes/ (or use Git Clone)
- Rename your OLD SRL folder to "SRL-4", and rename the new SRL-5 folder to "SRL"
- Done!
SRL5's documentation can be found here. There are most likely some parts that were overlooked, so don't be afraid to let us know. The repository can be found here.
SRL-5 will replace SRL-4 in the updater as soon as possible after January 1st, 2012, so convert your scripts now!
Enjoy,
The SRL Development Team