Page 1 of 3 123 LastLast
Results 1 to 25 of 57

Thread: The state of SRL

  1. #1
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default The state of SRL

    Hey guys,

    So with reflection scripts being dead, we need colour scripts. Luckily for us, we got *lots* of them from the old days, and many can be updated/improved with new technologies like SPS and the relative colour finding.
    A few months ago, I tried updating Wizzup's Multiminer which is a great script in itself. But I got extremely frustrated at times: every time I tried using a few functions from the library, be it autocolor or something as trivial as OCR, there was at least one thing broken. After trying to fix the varrock road colour I grew so frustrated I ragequit, leaving a semi-compiling but non-functional Multiminer, which is sad because it is a great, speedy script (I wasn't too impressed by MSI's speed of object finding, it was extremely accurate but just a bit too slow to be functional at my old laptop. Otherwise MSI is a great job, just not functional to my needs).
    Because I'm sure I'm not alone in this case, and because the include needs a refresh anyways, I'd like to survey what's working and what's not, so the devs and all others can start developing effectively on the broken parts, as giving a kind of direction to SRL development which it is currently half-lacking.
    In order to make it easy for you, because SRL is mostly lazy when it comes to these things (and I am, too), I made this nice list of functionalities based on different parts of the include.
    TL;DR, or, Your Task:
    Post if a certain item of the list below functions for you fully, not at all, or there are some errors.
    I hope that with this large community of scripters we can fill this list in in notime.

    Note to other mods and the SRL Public SVN mods: you are free to edit this list as you see fit!

    Legend:
    Unknown
    Working
    Working only sometimes
    Broken
    This feature was scrapped from SRL. Markus you are too lazy to look at the include
    Orange items: please add next to it what exactly is missing, or where it seems to be failing at times.
    On the choice of functions: I didn't add the entire include, obviously, but the most important functions to scripters. Not too many people are going to look for the colour of a certain cactus, but ladder colours are useful.

    Thanks a lot!
    Markus

    Zeh List:

    Amount.scar
    • Counting stack amount in bank/inventory
    • Counting item amount in inventory (like how many iron ores)
    • Counting coins
    • Count total number of items in inventory


    Autocolor.scar
    • Find Varrock road colour
    • Find Falador road colour
    • Find Lumbridge road colour
    • Find "generic" road colour (draynor)
    • Find grey stone colour
    • Find brown stone colour
    • Find water colour
    • Find ladder colour


    Bank.scar
    • Deposit item at certain bank slot
    • Withdraw item from certain inventory spot
    • Open bank Fast
    • Open Bank Glass
    • Open Bank NPC
    • Open Bank Quiet
    • Find Bank - works sometimes
    • Bankscreen
    • Pin entering
    • Switch tabs


    Chat.scar
    • Click to continue
    • Read chat line
    • Find latest black message
    • Save chatlog
    • Set chat


    Flag.scar
    • Flag distance
    • Is flag present
    • Mouseflag etc
    • Wait til flag is between certain distance (FFlag?)


    Gametab.scar
    • Get skill levels
    • Get HP/Run/Prayer/Summoning status
    • Switch gametabs
    • Set audio/gfx settings
    • Set fightmode
    • Get combat level
    • Resting


    Inventory.scar
    • Drop all
    • Move mouse to item
    • Click items
    • Item exists
    • Inventory full/empty


    Login.scar
    • Loginplayer
    • ExitToLobby
    • Logout to mainscreen
    • Nextplayer
    • RSReady


    Mapwalk.scar
    • Radialwalk
    • MakeCompass
    • RunAway
    • MouseMM
    • SetAngle


    rc.scar
    • Read commands
    • Execute commands
    • Respond to commands


    Symbol.scar
    • Find symbol
    • Count symbols


    Text.scar
    • Choose option from context menu
    • Click text in NPC dialog box
    • Click text on mainscreen
    • Read uptext
    • Read NPC dialog text


    Worldswitcher.scar
    • Get current world
    • Switch to world with lowest players/ping
    • Switch to world X (with X being a number of a world)
    • Switch to random world (p2p/f2p)


    Newautocolor.scar
    • Basically if most relative values are still correct.


    Antirandoms


    Thanks for reading this list! Please only post things you confirmed working in the past 2 weeks (MSI users are especially invited to post on the antirandoms because they seem to experience most randoms, and MSI/other script devs might know a lot about the rest). Just a few things per post is fine, we can always fill in the gaps later
    /skills/ is ignored for now, it's not used too often.
    Last edited by Coh3n; 02-17-2012 at 08:28 AM.
    I made a new script, check it out!.

  2. #2
    Join Date
    Dec 2009
    Location
    R_GetPlayerLoc;
    Posts
    2,235
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Therpes an srl thread. For the rabdoums were ppl give their inpuit
    "Logic never changes, just the syntax" - Kyle Undefined?

    Remember, The Edit Button Is There For A Reason!!!

  3. #3
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    ok but this list is way larger than only randoms and im too lazy to search.
    I made a new script, check it out!.

  4. #4
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    I have been trying autocolor() for the last couple days. I have tested srl_watercolor, srl_treecolor, srl_laddercolor, srl_rockcolor, srl_lightdirtroadcolor (tested in lumbridge forest and north of falador), srl_lumbridgeroadcolor, srl_varrockroadcolor, srl_faladorroadcolor. None of them worked. I would like to point out FindTreeColor still works, after 2 years

    There is also no generic road color listed in the autocolor.scar file. There used to be.. I guess they scrapped it during the autocolor remake.
    There seems to be a lot of the generic road color when looking at the rs map. I dont see why there isnt an autocolor for it...

    I still dont understand how it was better to rewrite the autocolor file than leave it as it was - perfectly fine at the time. I also dont understand how autocolor() prints it successfully finds the color, returns a color, then it is no where to be found on the minimap.

    There are also many missing autocolors from what there used to be, like fishing/water dock colors.

    srl_lightdirtroadcolor returned a colour that was on the minimap, but it was wrong - here is a picture of it with debugtpa(). http://i.imgur.com/3p3Wo.png
    Last edited by noidea; 10-28-2011 at 08:39 PM.

  5. #5
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default

    Quote Originally Posted by noidea View Post
    I have been trying autocolor() for the last couple days. I have tested srl_watercolor, srl_treecolor, srl_laddercolor, srl_rockcolor, srl_lightdirtroadcolor (tested in lumbridge forest and north of falador), srl_lumbridgeroadcolor, srl_varrockroadcolor, srl_faladorroadcolor. None of them worked. I would like to point out FindTreeColor still works, after 2 years

    There is also no generic road color listed in the autocolor.scar file. There used to be.. I guess they scrapped it during the autocolor remake.
    There seems to be a lot of the generic road color when looking at the rs map. I dont see why there isnt an autocolor for it...

    I still dont understand how it was better to rewrite the autocolor file than leave it as it was - perfectly fine at the time. I also dont understand how autocolor() prints it successfully finds the color, returns a color, then it is no where to be found on the minimap.

    There are also many missing autocolors from what there used to be, like fishing/water dock colors.

    srl_lightdirtroadcolor returned a colour that was on the minimap, but it was wrong - here is a picture of it with debugtpa(). http://i.imgur.com/3p3Wo.png
    That could be due to Jagex updating the colors all around Runescape with the last update.
    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

  6. #6
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    Ok, autocolor needs a severe rewrite then. Marked it all broken.
    Do you know how MSI manages its colours or does it only use SPS (which isn't depending on them)? Might be a good base to start off.

    @kingarabian: doubt it, it was broken a few months ago, too.
    I made a new script, check it out!.

  7. #7
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default

    Quote Originally Posted by Markus View Post
    Ok, autocolor needs a severe rewrite then. Marked it all broken.
    Do you know how MSI manages its colours or does it only use SPS (which isn't depending on them)? Might be a good base to start off.

    @kingarabian: doubt it, it was broken a few months ago, too.
    BTW SPS works fine Markus, but verrry frequently you will run into an Access violation error. You may have to restart Simba countless times to get that script to run.

    The drill random does everything fine except until the end. It does all the requirements the seargent tells you to do, and when your free to go the script says "random failed etc" and logs out.
    Last edited by kingarabian; 10-28-2011 at 08:57 PM.
    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

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

    Default

    <3 you for creating this list. Was just thinking something like this would be nice earlier. The "SRL devs need accounts in randoms" thread is pretty up to date though as I try to generally keep tabs on those solvers.

  9. #9
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    All of those functions in amount.scar are working properly.

    For anyone that would like to test:
    Simba Code:
    procedure TestAmount;
    var
      x, y : Integer;
      DTM : Integer;
    begin
      DTM := DTMFromString('mggAAAHicY2NgYHBkYmAwA2I7IPYEYlcgtgfiZ0C5F0D8DogfA/'+
                           'F9IL4HxFNig4EkExaMHTDiwBAAAAoECEU='); // Raw Salmon
      WriteLn(' - Inventory count:');
      WriteLn(InvCount);
      WriteLn(' - Finding coins (inv):');
      WriteLn(ToStr(FindCoins(X, Y, 'inv')) + ': ' + ToStr([x, y]));
      WriteLn(' - Finding coins (bank):');
      WriteLn(ToStr(FindCoins(X, Y, 'bank')) + ': ' + ToStr([x, y]));
      WriteLn(' - Counting item (inv):');
      WriteLn(CountItemsIn('inv', 'dtm', DTM, []));
      WriteLn(' - Counting item (bank):');
      WriteLn(CountItemsIn('bank', 'dtm', DTM, []));
      WriteLn(' - Counting stack amount (bank):');
      WriteLn(ItemAmount('bank', 'dtm', DTM, []));
      WriteLn(' - Counting stack amount (inv):');
      WriteLn(ItemAmount('inv', 'dtm', DTM, []));
      FreeDTM(DTM);
      DTM := DTMFromString('mWAAAAHicY2FgYHBkYmAwZoLQAUD8BCj2GIg/AvFDIG4K8gSSTE'+
                           'gYFTCiYRAAAGx3BdI='); // Noted Salmon
      WriteLn(' - Counting stack amount (inv) (noted):');
      WriteLn(ItemAmount('inv', 'dtm', DTM, []));
      FreeDTM(DTM);
    end;

    Code:
    Compiled successfully in 266 ms.
    SRL Compiled in 0 msec
     - Inventory count:
    16
     - Finding coins (inv):
    True: [703, 301]
     - Finding coins (bank):
    True: [185, 198]
     - Counting item (inv):
    11
     - Counting item (bank):
    1
     - Counting stack amount (bank):
    4055
     - Counting stack amount (inv):
    11
     - Counting stack amount (inv) (noted):
    74
    Successfully executed.

  10. #10
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    I was using GetMiniMapDots yesterday and it didnt always work correctly when trying to find 2 bankers standing next to each other. It would often return there only being 1 npc. I didnt try any of the other dots.

    Edit: Im standing in the second closest fishing spot to the draynor bank. I assume its findnormalrandoms, the music tab is being checked a lot. A detectable amount...
    Last edited by noidea; 10-29-2011 at 07:17 PM.

  11. #11
    Join Date
    Dec 2009
    Location
    R_GetPlayerLoc;
    Posts
    2,235
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Quote Originally Posted by noidea View Post
    I was using GetMiniMapDots yesterday and it didnt always work correctly when trying to find 2 bankers standing next to each other. It would often return there only being 1 npc. I didnt try any of the other dots.

    Edit: Im standing in the second closest fishing spot to the draynor bank. I assume its findnormalrandoms, the music tab is being checked a lot. A detectable amount...
    I believe that was the only way to check for randoms or at least one of the only ways for certain randoms
    "Logic never changes, just the syntax" - Kyle Undefined?

    Remember, The Edit Button Is There For A Reason!!!

  12. #12
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I'm gonna test the flag section right now. Will post results.

    E: Loginplayer, FlagPresent, FFlag, Flag, FlagDistance, FindSymbol all work.
    Last edited by DeSnob; 10-29-2011 at 07:52 PM.

  13. #13
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by Yago View Post
    I believe that was the only way to check for randoms or at least one of the only ways for certain randoms
    Yes its part of what helps decide if youre in a random, but it cant be the only way. Its needs to be checked only when confirming youre in a random. Mad sketch if youre always checking the music tab.

    Edit: Mordaut - just logged out. Didnt attempt to solve. Wizzup says its impossible, is it?
    Bee keeper works.
    Last edited by noidea; 10-30-2011 at 01:02 AM.

  14. #14
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    Thanks guys, keep it going!
    Updated the list up to this post.

    Oh and NO random is impossible. There used to be times that all randoms were solved with colour, including mordaut by iroki.
    I made a new script, check it out!.

  15. #15
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    I can confirm Beekeeper is working flawlessly

  16. #16
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I'll test the rest of the login functions. Be right back!

    E: Here's the debug from the script:
    Progress Report:
    [LoginPlayerToLobby] works.
    [LoginPlayer] works
    [ExitToLobby] works
    [LeaveLobby] works.
    NextPlayer(False)
    SwitchToPlayer(PlayerNo: 1, Active: False);
    Welcome to Runescape.
    Email@Email.com
    [LogOut] works.

    Works fine. Also, RSReady works, since it works in the other functions.
    Last edited by DeSnob; 10-30-2011 at 02:18 PM.

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

    Default

    Quote Originally Posted by noidea View Post
    Edit: Mordaut - just logged out. Didnt attempt to solve.
    That's a feature I just recently added in. Before it wouldn't even know it was in the random and wait for the script to set the player false..

  18. #18
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Now I'll check Mapwalk, love radialwalk so it shouldn't be too hard.

    E: Is this considered a double post? :S

    E2: SetAngle, MakeCompass, MouseMM, RunAway, and Radialwalk all work. However, when RunAway is returning it slows down SMART quite a bit. (I haz bad computah)
    Last edited by DeSnob; 10-30-2011 at 02:50 PM.

  19. #19
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by NCDS View Post
    That's a feature I just recently added in. Before it wouldn't even know it was in the random and wait for the script to set the player false..
    ok, it also looks like you've done the same for Mime?
    ***** STR: FOUND RANDOM: 'Mime' *****
    Screenshot of: Found Mime random 0 Seconds
    Mime solver currently broken.
    ***** STR: 'Mime' RANDOM SOLVING FAILED! *****

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

    Default

    Quote Originally Posted by noidea View Post
    ok, it also looks like you've done the same for Mime?
    ***** STR: FOUND RANDOM: 'Mime' *****
    Screenshot of: Found Mime random 0 Seconds
    Mime solver currently broken.
    ***** STR: 'Mime' RANDOM SOLVING FAILED! *****
    Yes sir. That's what I'm doing with all 'unsolved' randoms until I can get a solver working.

  21. #21
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Abyss Random. I guess it could be green but it could not find a unique appendage and reverted to guessing. It did eventually get out though!

  22. #22
    Join Date
    Dec 2008
    Location
    Québec
    Posts
    419
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    maybe add something that reload smart when there an update, because we can't relog in.

  23. #23
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Updated, keep it up
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  24. #24
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default

    Drill Demon
    Happened to me again:
    Upon successfully doing everything right and a 'click to continue' click away from solving the random, it says Drill Demon random failed and makes my player false.
    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

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

    Default

    "GetChatBoxText" and "GetBlackChatMessage" aren't accurate... From lighting a fire this is what SRL read:

    From "The fire catches and the logs begin to burn.", to... "l?e fire catc?es an? t?e logs tegin to turn"

    I thought it was kinda funny, but just pointing that out.

    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..."


Page 1 of 3 123 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
  •