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

Thread: SRL: Mar. 5th, 2012 ~ New Randoms Solvers

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

    Default SRL: Mar. 5th, 2012 ~ New Randoms Solvers

    New Randoms System
    _____________________________


    Introduction:

    This release comes with several new, useful, functions and more importantly, a brand new random event solver system. If you're interested on how some events were solved, take a look at the source code (I don't want to explain every single one). There is a short description of each solver at the top of each .simba file.

    First and foremost, thanks very much for the people who supplied me with accounts in random events. You were a huge help. I would especially like to thank bolshak25 and kevin33 as they have provided me with several accounts time and time again. A huge thanks also goes to DemiseScythe who wrote most of the original solvers (I just cleaned them up) and worked alongside me though out the process. Without her, there's no way I would have taken on a project like this.

    NOTE: For the status of each solver, please see it's thread in the SRL Randoms section. For all commits, go here. For the complete diff, go here.


    Notable Changes:

    • A global array, SRL_Randoms, is set in SetupSRL. You can disable any random solver (will logout when found) at any time, by doing this:
      Simba Code:
      SRL_Randoms[SRL_RAND_FROG].disabled := true;
    • You can disable ALL randoms by setting a global variable:
      Simba Code:
      SRL_DisableRandoms := true;
    • A global variable, SRL_RandomScreenShot, has been added for the option to save a screenshot in Simba/Includes/SRL/logs/ when a random event is detected. To do so, add this to your script:
      Simba Code:
      SRL_RandomScreenShot := true;
    • The LampSkill global variable is no longer in use (but remains to avoid compiling errors). Instead, the lamp skill is set per player. It is also set to an integer (skill constant), rather than a string. Since all integers are set to 0 by default, the default skill is SKILL_ATTACK.
      Simba Code:
      with players[0] do
      begin
        name := '';
        pass := '';
        active := true;
        boxRewards := ['amp'];
        lampSkill := SKILL_MINING;
      end;
    • When Simba 990+ is released, each random file can be tested individually without editing the file. This will require a few changes when Simba 990 is released.

    • FindDead, FindMod, and FindDwarvenPopup have been moved to antiban.simba (the Reincarnate variable works just as it did before this update). They are still handled in FindNormalRandoms just as before, although I'm not sure if they will be in the future. It would be safest as a scripter to set SRL_Procs[SRL_OnRandomCall]. Example,
      Simba Code:
      procedure Coh3n_OnRandomCall();
      begin
        if (findDead()) then
          deathWalk();

        if (findMod()) then
          changeWorlds();

        findDwarvenPopup();
      end;

      begin
        setupSRL();
        SRL_Procs[SRL_OnRandomCall] := @Coh3n_OnRandomCall;
      end.
      SRL_Procs[OnRandomCall] is called every time FindNormalRandoms or FindNonInventoryRandoms is called.

    • All solvers save the debug to SRL log files. The files are named by date and time, and are saved in Simba/Includes/SRL/logs/. You can disable logging at any time by setting SRL_DisableLogging in your script (I discourage this as it doesn't help us developers ). You can also change the file save path by setting SRL_SavePath:
      Simba Code:
      SRL_SavePath('c:/Users/Coh3n/Desktop/');
      SRL_DisableRandoms := true;

    • Not a change, but worth noting: SRL_Procs[SRL_OnFindRandom], if set, will be called when a random event is detected. It will then continue to solve the random.

    • SRL_OnFindRandomCall is no longer used as it was pointless.


    Function Additions:
    • GetMusic, AreTalking, GetNPCChatName, and DoConversation added to gametab.simba.
    • TakeScreen added to SRLlog.simba.
    • Grid added to math.simba (incredible function for things like invBox, gameTab, bankBox, etc.).
    • GridBox added to math.simba.
    • WaitFindDTM, WaitTabExists, and WaitNPCTalking added to timing.simba.
    • ReturnTPAExceptColors added to color.simba.


    SRL Random Tool:
    This is a neat tool that I discovered shortly before starting this thread. The random tool is a form that is run when a random event is detected. It then gives the user the choice whether they want to solve the random themselves, or have SRL do it. Unfortunately, this tool doesn't work properly, but it is quite simple and wouldn't require a lot of editing for it to work again.

    If someone would like to fix it up, the file is in Includes/SRL/srl/misc/randomtool.simba. I really don't think it needs that much editing to work properly, but some of the code is messy and may be hard to understand.


    Conclusion:
    Please post any issues (along with debug text, if possible) on the proper thread for that random event. All threads can be found in the SRL Randoms section.


    Cheers,
    The SRL Dev Team

  2. #2
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Awesome! So glad you finally released it! Great work everyone!
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  3. #3
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    Yay, nice work.


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  4. #4
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Glad you incorporated WaitDTM

  5. #5
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default

    Wait is this an update? :P I'm slightly confused between this thread and the beta thread

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

  7. #7
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    Quote Originally Posted by xtrapsp View Post
    Wait is this an update? :P I'm slightly confused between this thread and the beta thread
    It's into mainline SRL now, so yeah.


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  8. #8
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Looks great, I just have one small question I might have over-looked. When searching for randoms via 'FindNormalRandoms' we can still use "SRL_Procs[SRL_OnRandomCall]" to activate a procedure/function right? We just declare it at the beginning of a script? And 'SRL_OnRandomCall' only activates when a random event is found? For example:

    Simba Code:
    procedure FoundARandom;
    begin
      Writeln('Found a random!');
      Inc(RandomsCount);
      PlaySound(ScriptPath+'Alert.wav');
    end;

    begin
      setupSRL();
      SRL_Procs[SRL_OnRandomCall] := @FoundARandom;

      repeat
        FindNormalRandoms;
      until(False)
    end.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  9. #9
    Join Date
    Nov 2011
    Location
    Sacramento, California
    Posts
    366
    Mentioned
    4 Post(s)
    Quoted
    85 Post(s)

    Default

    Awesome, great work (:

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

    Default

    Flight: No, SRL_OnRandomCall is called every time FindNormalRandoms is called. SRL_OnFindRandom is called when one is detected.

  11. #11
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    Flight: No, SRL_OnRandomCall is called every time FindNormalRandoms is called. SRL_OnFindRandom is called when one is detected.
    Understood, thank you.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  12. #12
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Excellent job <3

  13. #13
    Join Date
    Feb 2007
    Location
    Florida
    Posts
    460
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Coh3n
    ReturnTPAExceptColors added to color.simba.
    I like this addition,

    __

    Good job & thank you to everyone that contributed to this update.
    Last edited by Geo; 03-06-2012 at 03:33 AM.
    Varrock gTanner
    Previously known as England155.

  14. #14
    Join Date
    Jan 2012
    Posts
    36
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Great work guys, thanks to everyone that contributed to the update,

  15. #15
    Join Date
    Nov 2011
    Posts
    1,532
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank you devs! That's amazing. It's high time for me to bot the skills I want outside SW lobby
    Current activity: Recovering from vacation
    - Nulla pars vitae vacare officio potest -
    SRL membership? Can I buy that?
    Scripts - AGS - SWF - WAR - EMS - W100S-EM
    If you need scripting help, you can pm me. Remember, if you need help you have to ask for it properly though

  16. #16
    Join Date
    Feb 2011
    Location
    Wisconsin
    Posts
    398
    Mentioned
    1 Post(s)
    Quoted
    10 Post(s)

    Default

    WaitNone removed?

  17. #17
    Join Date
    Apr 2011
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I can't get SRL to compile.....

    i get bunch of missing variable errors
    TeleRandoms, r_userandomtool etc.

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

    Default

    Quote Originally Posted by RyGuy View Post
    WaitNone removed?
    I don't think so? I can't remember.

    Quote Originally Posted by Psilocybin View Post
    I can't get SRL to compile.....

    i get bunch of missing variable errors
    TeleRandoms, r_userandomtool etc.
    What script are you using? The random tool was removed as it doesn't work properly in Simba. It'll be fixed as soon as possible.

  19. #19
    Join Date
    Feb 2011
    Location
    Wisconsin
    Posts
    398
    Mentioned
    1 Post(s)
    Quoted
    10 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    I don't think so? I can't remember.
    Progress Report:
    [Error] (115:28): Unknown identifier 'WaitNone' at line 114

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

    Default

    Oh, that function didn't do anything. It was literally this:
    Simba Code:
    procedure WaitNone();
    begin
    end;
    If you just remove that line in whatever script you're using, it won't change anything.

  21. #21
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default

    Simba Code:
    [Hint] C:\Simba\Includes\SRL/SRL/core/antirandoms\beekeeper.simba(194:3): Variable 'T' never used at line 193
    [Error] C:\Simba\Includes\SRL/SRL/skill/woodcutting.simba(116:13): Unknown identifier 'Screenshots' at line 115
    Compiling failed.

    It opened up woodcutting.simba and displayed this?

    Don't want to randomly make Screenshots: Integer; to remove it...
    Last edited by xtrapsp; 03-06-2012 at 07:19 AM.

  22. #22
    Join Date
    Apr 2011
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    What script are you using? The random tool was removed as it doesn't work properly in Simba. It'll be fixed as soon as possible.
    my private, it worked before i updated SRL.

    why include it in SRL if its not being used????

  23. #23
    Join Date
    Jul 2007
    Location
    Finland
    Posts
    304
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    [Error] (737:6): Unknown identifier 'PercentBlackMM' at line 736
    Is there new function to do this or do i have do my own?

  24. #24
    Join Date
    Feb 2012
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    How do i use it?

  25. #25
    Join Date
    May 2007
    Location
    Waterloo, Ontario, Canada
    Posts
    1,008
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by SweDam View Post
    How do i use it?
    Read the first post, ALL information about how to use the new system is there.



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
  •