Page 1 of 2 12 LastLast
Results 1 to 25 of 28

Thread: Official SRL-6 (Beta) Release

  1. #1
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default Official SRL-6 (Beta) Release

    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 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. 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 or post in the SRL Development Help 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 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:


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


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


    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:



    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 page if you plan on writing a script. Also, if you need any help don't hesitate to post in the Scripting Help 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:
    Simba Code:
    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.

    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:
    Simba Code:
    tabBackpack.open();

    Loading SMART at any size:

    Simply set the SMART dimension variables:
    Simba Code:
    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, or in Simba's tmufasabitmap.pas. You also need to set the variable smartEnableDrawing to true.
    Simba Code:
    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 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 section; if you have any questions about SRL-6 development, please post in the SRL Development Help forum; if you have any general questions about SRL-6, please post here.

    Thanks, and enjoy!
    The SRL Development Team
    Last edited by Coh3n; 09-26-2013 at 01:41 AM.

  2. #2
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    WOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOT

    time to start on that project

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

  3. #3
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    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.

  4. #4
    Join Date
    Apr 2013
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Congrats on the release guys! Time to throw my life away and start scripting

  5. #5
    Join Date
    Feb 2012
    Location
    Canada
    Posts
    154
    Mentioned
    2 Post(s)
    Quoted
    34 Post(s)

    Default

    Great job guys!

  6. #6
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    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

  7. #7
    Join Date
    Jul 2013
    Location
    An horse
    Posts
    300
    Mentioned
    9 Post(s)
    Quoted
    120 Post(s)

    Default

    Thanks to everyone who contributed to the development of SRL-6. Awesome work!

  8. #8
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by BMWxi View Post
    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.

  9. #9
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    Congratulation to everyone who worked on this project. I'm sure everyone appreciates your work (Besides Jagex :P)

    Forum account issues? Please send me a PM

  10. #10
    Join Date
    Jan 2012
    Posts
    1,596
    Mentioned
    78 Post(s)
    Quoted
    826 Post(s)

    Default

    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.

  11. #11
    Join Date
    Jun 2008
    Location
    United States
    Posts
    818
    Mentioned
    60 Post(s)
    Quoted
    90 Post(s)

    Default

    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.
    [10/14/13:19:03] <BenLand100> this is special relatively, just cleverly disguised with yachts

  12. #12
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Thanks to everyOne who worked on this! Also gz to euphemism and olly!

  13. #13
    Join Date
    May 2013
    Posts
    52
    Mentioned
    0 Post(s)
    Quoted
    33 Post(s)

    Default

    ty guys for your work :3 i love you :P

  14. #14
    Join Date
    Aug 2013
    Posts
    159
    Mentioned
    4 Post(s)
    Quoted
    90 Post(s)

    Default

    YAY!Finally it's back up. It took longer than i thought it would.

  15. #15
    Join Date
    Apr 2012
    Location
    Seattle
    Posts
    791
    Mentioned
    1 Post(s)
    Quoted
    159 Post(s)

    Default

    Awesome, its here!

  16. #16
    Join Date
    Jan 2012
    Posts
    1,104
    Mentioned
    18 Post(s)
    Quoted
    211 Post(s)

    Default

    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.

  17. #17
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    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
    @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

  18. #18
    Join Date
    Dec 2011
    Location
    Hyrule
    Posts
    8,662
    Mentioned
    179 Post(s)
    Quoted
    1870 Post(s)

  19. #19
    Join Date
    Sep 2008
    Posts
    754
    Mentioned
    8 Post(s)
    Quoted
    275 Post(s)

    Default

    Congrats on your promotions!.

    Happy botting everyone.

  20. #20
    Join Date
    Apr 2013
    Location
    England
    Posts
    223
    Mentioned
    2 Post(s)
    Quoted
    106 Post(s)

    Default

    big thanks to all involved, looking forward to checking it out once i get a chance

  21. #21
    Join Date
    Feb 2012
    Location
    Canada
    Posts
    1,164
    Mentioned
    26 Post(s)
    Quoted
    433 Post(s)

  22. #22
    Join Date
    Aug 2012
    Location
    127.0.0.1
    Posts
    74
    Mentioned
    1 Post(s)
    Quoted
    26 Post(s)

    Default

    I love you.

  23. #23
    Join Date
    Nov 2011
    Location
    United States
    Posts
    815
    Mentioned
    6 Post(s)
    Quoted
    284 Post(s)

    Default

    Congratz guys And awesome work

  24. #24
    Join Date
    Sep 2013
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    20 Post(s)

    Default

    Thanks for all the hard work you guys have put into this!

  25. #25
    Join Date
    Jan 2012
    Posts
    915
    Mentioned
    13 Post(s)
    Quoted
    87 Post(s)

    Default

    Man, I've missed out on alot.


    sum1 teech me serl6 plz

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •