PDA

View Full Version : [Update] Official SRL-6 (Beta) Release



Coh3n
09-26-2013, 12:14 AM
SRL-6 (Beta) Official Release

Introduction


It is my pleasure to finally announce the release of the long awaited SRL-6; as you may know, we suffered a major setback after the release of RS3. When we first started structuring and planning SRL-6, this was something we needed to keep in mind — Jagex can (and will) update the game in different ways, and SRL needed to be written in a way that can keep up. With the very dynamic interface structure of SRL-6 we were able to (fairly) quickly update it for RS3. Thank you all for being so patient. :)

For the first time ever, SRL no longer requires a fixed screen size and safe mode. SRL will now work on any screen size, and in OpenGL graphics mode — it does, however, require a specific interface layout. Until Simba can properly read colors from an OGL client (which is being worked on), SRL will run with SMART only. SMART, however, can be set to open at any dimensions you wish.

A lot has changed, so please take the time to read through my How to Install/Setup Simba (http://villavu.com/forum/showthread.php?t=47714) guide. You need at least Simba 1.0. The required extensions, plugins, and fonts should be in the updaters (if not now, very soon).



To Scripters


For you scripters, SRL-6 is written 100% in Lape. You need to keep in mind that not all functions/include files have been moved to SRL-6. We have released enough that you can easily make a working script, but you may need to convert some functions from SRL-5. If you do convert a function(s), please see A How-to on SRL Development (http://villavu.com/forum/showthread.php?t=105999). Lastly, there is a very good chance the function has been renamed and/or combined with another function. If you can't find the function you're looking for, see the SRL-6 Documentation (http://docs.villavu.com/srl-6/) or post in the SRL Development Help (http://villavu.com/forum/forumdisplay.php?f=624) section before you start doing a lot of work.



To Users


As a script user, you shouldn't notice much of a difference. Actually, apart from the mouse movements and new client size, you shouldn't notice any difference at all. SRL has adopted Flight;'s mouse movement routines, which are much more human-like and customizable than the previous methods.

If you plan on using a new script (which I can only assume you will be), there are likely to be a few bugs — as with any new program — so bare with the developers and try to be patient with us. The best you can do to speed up bug fixes is to report the bug at the SRL Bugs and Suggestions (http://villavu.com/forum/project.php?projectid=10) page.



Credits


First things first, a huge thanks goes out to everyone involved in the development of SRL-6 (I apologize if I forget someone). Also, a congratulations to both Olly; and euphemism; for being promoted to SRL Developers. :)

For their countless hours and hard work over the last several months:


Olly;
euphemism;

For their work on Simba and/or Lape to get ready for SRL-6:


masterBB; (and his player management system, Rafiki).
Wizzup?;
Dgby714;

For their initial work and discussion of SRL-6 in it's early stages:


Zyt3x;
Flight;
NCDS;

And last but not least, Brandon; for all his cooperation and development of the OpenGL plugin.



References


These are some helpful links that will give you more information about SRL-6 and Lape:


SRL Documentation (http://docs.villavu.com/srl-6/)
SRL Repository (https://github.com/SRL/SRL-6)
SRL Bugs and Suggestions (http://villavu.com/forum/project.php?projectid=10)
SRL Development Help (http://villavu.com/forum/forumdisplay.php?f=624)
Scripting Help (http://villavu.com/forum/forumdisplay.php?f=491)
Original Lape Introduction (http://villavu.com/forum/showthread.php?t=68613)
A lot about Lape (http://villavu.com/forum/showthread.php?t=105024)




Scripting with SRL-6


SRL-6 is a complete rewrite. We, of course, recycled code from SRL-5, but it has all been updated (rewritten if needed) and converted to Lape. Keep in mind that A LOT has changed — functions have been added, functions have been removed, and both function and variable names have changed in most cases. It isn't even close to the same include.

You will be able to convert SRL-5 scripts; however, not all SRL-5 functions have been transferred over yet. What we are releasing now is a workable base. We have completed all major requirements - login, gametabs, backback, etc. - but SRL-6 is far from finished. If you want to contribute to SRL, please read A Basic Guideline to SRL-6 Development.

We highly recommend you visit the SRL-6 Documentation (http://docs.villavu.com/srl-6/) page if you plan on writing a script. Also, if you need any help don't hesitate to post in the Scripting Help (http://villavu.com/forum/forumdisplay.php?f=491) forum, join the SRL IRC channel (irc.rizon.net #srl, or click the chat button at the top of the page).

Also, now that we have a player manager (SRL > Player Manager), your DeclarePlayers procedure will look a little different:

procedure declarePlayers();
begin
players.setup(['Login name', 'or nickname'], 'ThePlayerFileName');
currentPlayer := 0;

with players[0] do
begin
integers[0] := 50;
integers[1] := 25;
booleans[0] := true;
end;
end;




Changes


We have compiled a very detailed list of all the changes that have been made in SRL-6. Brace yourself, there are a lot (and this is only part of the entire include ;)). SRL has a completely new structure and can best be viewed on Github. There is a good chance something has been forgotten, so don't be alarmed if something isn't exactly like is says below. You can find the detailed list of changes here (https://dl.dropboxusercontent.com/u/33256273/srl-6_changes.pdf).

The list is too long for a release post, so I'm just going to outline the major changes that you'll need to know if you plan on writing a script using the new SRL.

The TRSInterface system and Lape's type functions:


Each file in lib/interfaces/ has it's own type that inherits the TRSInterface type's functions and attributes. This means to interact with the different RS interfaces, you need to do it via the interface's variable (see the "Global Variables" section below).

For example, if you wanted to open the backpack tab, you would call:

tabBackpack.open();



Loading SMART at any size:


Simply set the SMART dimension variables:

smartClientWidth := 1024;
smartClientHeight := 768;



Changes to SRL stats:


Very small change: the variables and functions used in scripts have had a small name change ("_" removed). The new names are statsUsername, statsPassword, statsScriptID, statsCommit(), and statsIncVariable().



Drawing on SMART:


Drawing on SMART is easier than ever, just call a TMufasaBitmap function on the variable, "smartImage". A list of usable functions can be found in drawing.simba (http://docs.villavu.com/srl-6/drawing.html), or in Simba's tmufasabitmap.pas (https://github.com/MerlijnWajer/Simba/blob/master/Units/MMLAddon/LPInc/Classes/MML/lptmufasabitmap.pas#L439). You also need to set the variable smartEnableDrawing to true.

smartEnableDrawing := true;
smartImage.drawBox(minimap.getBounds(), false, clRed);





Global Variables


SRL has many global variables throughout the include, most of which you will be using many times in your scripts. We recommend you get familiar with some of them. They are all, of course, listed in the documentation at the top of their respective files, but here is a convenient list for you. :)

Variables that should be set before calling setupSRL():


disableSRLDebug — Disables SRL debugging. Default set to false.
disableSRLLog — Disables SRL logging. Default set to false.
disableIPScreenshots — Disables screenshots taken of the users IP address. Default set to false.
logPath — The path at which SRL log files are saved. Default set to Simba/Includes/SRL-6/logs/.
smartForceNewClient — Opens a new SMART client each time a script is run. Default set to false.
smartEnableDrawing — Enables drawing to the variable "smartImage". Default is set to false.
smartClientWidth — The width of the client SMART loads. Set to 960 pixels by default.
smartClientHeight — The height of the client SMART loads. Set to 640 pixels by default.
smartGetJavaPath - Will attempt to find your java path. NOTE: if not using you will must have JRE on your systems path (before JDK if you have it).
smartShowConsole - Will show the java console for smart.


Variables that can be set/used at any time:


Colors - There are several color variables in globals.simba you can use for SMART debugging.
mouseSpeed — The speed at which the mouse moved. Default set to 20.
SRL_Events — Procedures that can be called throughout SRL, such as on an RS update, or after a player has been logged in.
smartImage — The variable used to draw on SMART.
mainScreen — Used to call any mainscreen functions and/or procedures.
lobby — Used to call any mainscreen functions and/or procedures.
lobbyWorlds — Used to call any lobbyWorlds functions and/or procedures.
actionbar — Used to call any actionbar functions and/or procedures.
minimap — Used to call any minimap functions and/or procedures.
chatbox — Used to call any chatbox functions and/or procedures.
conversationBox — Used to call any conversationBox functions and/or procedures.
bankScreen — Used to call any bankScreen functions and/or procedures.
pinScreen — Used to call any pinScreen functions and/or procedures.
options — Used to call any options functions and/or procedures.
tabBackpack — Used to call any tabBackpack functions and/or procedures.
tabMelee — Used to call any tabMelee functions and/or procedures.
tabRanged — Used to call any tabRanged functions and/or procedures.
tabMagic — Used to call any tabMagic functions and/or procedures.
tabDefence — Used to call any tabDefence functions and/or procedures.
tabPrayer — Used to call any tabPrayer functions and/or procedures.




Conclusion


We are very excited to finally have SRL-6 released to the public. Please keep in mind that there will likely be several bugs at first. Please help us out by reporting any bugs you may find. For now, all bugs should be reported in the SRL Bugs and Suggestions (http://villavu.com/forum/project.php?projectid=10) projects page. If you're feeling really ambitious, you can fork the repository and fix the bug yourself, then send a pull request. :)

If you have any questions about scripting using SRL-6, please post in the Scripting Help (http://villavu.com/forum/forumdisplay.php?f=491) section; if you have any questions about SRL-6 development, please post in the SRL Development Help (http://villavu.com/forum/forumdisplay.php?f=625) forum; if you have any general questions about SRL-6, please post here.

Thanks, and enjoy!
The SRL Development Team

rj
09-26-2013, 12:15 AM
WOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOT

time to start on that project :D

and grats to olly and euph I saw that coming :D well deserved

Coh3n
09-26-2013, 12:25 AM
I probably already mentioned this, but you'll likely run into a lot of problems, so just post here and keep checking the FAQ thread for updates on new errors. :)

armthehomeless
09-26-2013, 12:55 AM
Congrats on the release guys! Time to throw my life away and start scripting ;)

Hadley
09-26-2013, 01:08 AM
Great job guys! ;)

Ian
09-26-2013, 01:12 AM
I probably already mentioned this, but you'll likely run into a lot of problems, so just post here and keep checking the FAQ thread for updates on new errors. :)

Your link appears to be broken: A How-to on SRL Development.

Thank you for the update, and great job @ all the SRL6 contributors :)

Foundry
09-26-2013, 01:36 AM
Thanks to everyone who contributed to the development of SRL-6. Awesome work!

Coh3n
09-26-2013, 01:41 AM
Your link appears to be broken: A How-to on SRL Development.

Thank you for the update, and great job @ all the SRL6 contributors :)Thanks, link should be fixed now.

Justin
09-26-2013, 03:26 AM
Congratulation to everyone who worked on this project. I'm sure everyone appreciates your work (Besides Jagex :P)

Turpinator
09-26-2013, 04:25 AM
This post... is just beautiful. If this is only a fraction of the work put into SRL6, im sure it will be/is beautiful. Thanks everyone. :)

euphemism
09-26-2013, 05:06 AM
Before this gets out of hand, we all need to take a moment to thank Coh3n for the immense amount of work and time he has put into this project--without Coh3n, SRL would not be where it is today.

Hoodz
09-26-2013, 05:33 AM
Thanks to everyOne who worked on this! Also gz to euphemism and olly!

gaspola
09-26-2013, 08:25 AM
ty guys for your work :3 i love you :P

Trollcrank
09-26-2013, 11:49 AM
YAY!Finally it's back up. It took longer than i thought it would.

Rincewind
09-26-2013, 01:15 PM
Awesome, its here!

Shatterhand
09-26-2013, 02:01 PM
Very nice! Grats everyone who worked on it! :)

I like your very detailed post, Coh3n.

Wish rs3 didnt exist, I cba to log in to that. :(

Kevin
09-26-2013, 02:38 PM
Thank you everyone for all your hard work on such a grand project (Simba+SRL are both fitting into that)!

@euphemism - doubly congrats on Dev!
@Olly - I'm sure you occasionally did something ;)
@masterBB - For the player manager (btw, can we get some details on the capabilities/background work of this, mayhaps?) :)
@Wizzup? - For the Simba release, of course.
@Dgby714 - The crazy amount of updates I constantly see tied to your name on Simba.
@Zyt3x - I'm sure you were great at talking about this :p
@Flight - For your hard work over the years and helping bring forth your mouse methods to an official level!
@NCDS - I'm sorry I'm not actually familiar with you or your work, but if Coh3n felt you mention-worthy, I bet you did a ton of work as well!
@Brandon - for all dat OGL fun.
@C0h3n - for humbly leaving himself out of the congratulations while doing such an amazing job!

And of course, last and definitely least, @JennyCock - for giving a laugh bred from ignorance :)

Ashaman88
09-26-2013, 02:43 PM
Awesome job guys, I'll start updating my scripts this week/weekend! Big time thanks!

samerdl
09-26-2013, 07:57 PM
Congrats on your promotions!.

Happy botting everyone.

EngageTheRage
09-26-2013, 09:10 PM
big thanks to all involved, looking forward to checking it out once i get a chance :D

StickToTheScript
09-26-2013, 09:49 PM
I look forward to giving this a try! Thanks To everyone who helped!

Millenium
09-26-2013, 10:08 PM
I love you.

Itankbots
09-26-2013, 10:10 PM
Congratz guys :) And awesome work

Cage
09-27-2013, 02:10 PM
Thanks for all the hard work you guys have put into this!

Vinyl Scratch
09-29-2013, 05:09 PM
Man, I've missed out on alot.


sum1 teech me serl6 plz

Rich
09-29-2013, 05:41 PM
Haven't been around recently due to moving out and starting college, but this definitely might be a reason to hang around again. Nice work guys!

Vinyl Scratch
09-29-2013, 10:03 PM
Haven't been around recently due to moving out and starting college, but this definitely might be a reason to hang around again. Nice work guys!

I second this, amazing job everyone!

[XoL]
09-30-2013, 12:53 PM
Congrats olly and euph!
Great job everyone else who helped, looking forward to using SRL-6!