Page 2 of 2 FirstFirst 12
Results 26 to 43 of 43

Thread: OMG! Fixed box solver on slow comps!!!

  1. #26
    Join Date
    Sep 2006
    Location
    Scripter's Heaven
    Posts
    455
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yes, every time i seem to get a box, it lags so much i log out.

    thnx so much, i will use it.

    And check out my pascal interpreter!
    <R0b0t1> No, really, I went to a bar and picked up a transvestite.

  2. #27
    Join Date
    Apr 2006
    Posts
    207
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Actualy thats not lag its just that it didnt give the browser any time to refresh before, so it keeps checking colors without it refrshing, so the colors will never be the way they should, thus infinite loop. This just allows your browser to refresh so it can detect when the side of the box is up.

  3. #28
    Join Date
    Aug 2006
    Posts
    78
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  4. #29
    Join Date
    Jul 2006
    Location
    NY
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by weibs View Post
    The box solver has always worked for me :\
    Really? It hasn't started working for me until I downloaded SRL 3.5...

  5. #30
    Join Date
    Apr 2006
    Posts
    207
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It always worked for some people because some people have good computers or something and their client can refresh without any waits for some reason. Others such as me need waits in loops to be able to refresh the client.

  6. #31
    Join Date
    Sep 2006
    Location
    Scripter's Heaven
    Posts
    455
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yes exactly, my client freezes, and it just waits and waits, until it logs out. then it gets unfrozen

    And check out my pascal interpreter!
    <R0b0t1> No, really, I went to a bar and picked up a transvestite.

  7. #32
    Join Date
    Apr 2006
    Posts
    207
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wow, mine didnt even wait untiil it logged out :\ i would just come back to my comp and the box image would be frozen on my screen (when i stopped scar it would be logged out)

  8. #33
    Join Date
    Feb 2006
    Location
    Sunshine Coast, Qld. Australia
    Posts
    412
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Would someone please try this on a computer that is known to NOT solve the box normally. This in theory should be faster and smother than the above suggested single wait.
    Code:
    {*******************************************************************************
    function GetBoxSide: Integer;
    by: pups
    Description: Gets Box side and returns Bitmap
    *******************************************************************************}
    function GetBoxSide: Integer;
    var
      Side, x, y: integer;
    begin
      Side := BitmapFromString(181, 181, '');
      repeat
        wait(1);   //<---   The wait that needed to be added
        if findcolortolerance(x, y, 16579837, 182, 45, 182, 225, 5) then continue;
        wait(1);   //<---   The wait that needed to be added
        if findcolortolerance(x, y, 16579837, 342, 45, 342, 225, 5) then continue;
        wait(1);   //<---   The wait that needed to be added
        if findcolortolerance(x, y, 16579837, 172, 55, 352, 55, 5) then continue;
        wait(1);   //<---   The wait that needed to be added
        if findcolortolerance(x, y, 16579837, 172, 215, 352, 215, 5) then continue;
        wait(1);   //<---   The wait that needed to be added
        if findcolortolerance(x, y, 12764106, 182, 45, 182, 225, 5) then continue;
        wait(1);   //<---   The wait that needed to be added
        if findcolortolerance(x, y, 12764106, 342, 45, 342, 225, 5) then continue;
        wait(1);   //<---   The wait that needed to be added
        if findcolortolerance(x, y, 12764106, 172, 55, 352, 55, 5) then continue;
        wait(1);   //<---   The wait that needed to be added
        if findcolortolerance(x, y, 12764106, 172, 215, 352, 215, 5) then continue;
        break;
      until false;
      CopyClientToBitmap(Side, 172, 45, 352, 225);
      Result := Side;
    end;
    Edit:
    Nope the above does not work... if your computer is too slow to draw the box, a wait(1) will not be enough. I have had some initially good results from one wait(100). I will test on my laptop (which if it passes, EVERY computer out there will be able to run it).

  9. #34
    Join Date
    Feb 2006
    Location
    New Zealand
    Posts
    1,330
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by dontpanic View Post
    It always worked for some people because some people have good computers or something and their client can refresh without any waits for some reason. Others such as me need waits in loops to be able to refresh the client.
    How can you say bad computers. I mean you have a half decent one there. You should have easily solved the box. I know people with people less specs then you that can.

  10. #35
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Could it be another factor? Like refresh hertz or something?

  11. #36
    Join Date
    Feb 2006
    Location
    Sunshine Coast, Qld. Australia
    Posts
    412
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok I tested on two computers which both could not solve boxes. I suspect the real problem is in video cards not processor speed as my one computer is plenty fast, the added wait made it possible to render the box thus making it solvable. I solved 23 boxes if a very fast time period, so feel this should not be a problem for anyone.
    I also tested on a slow computer (800 mhz laptop) and realized that no amount of wait will ever cure that

    So... I just updated srl with this fix. Well done dontpanic!!! You get 2 thumbs up there. You should see this fix in the next SRL Update
    The above fix helps

  12. #37
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    How did you get so many boxes? I haven't even been able to test this.

  13. #38
    Join Date
    Feb 2006
    Location
    Sunshine Coast, Qld. Australia
    Posts
    412
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Boreas View Post
    How did you get so many boxes? I haven't even been able to test this.
    run setupsrl.scar and set: 'solve box' to false. then run your army on a mining script (a guild miner would do nicely). take one of your army who got a box and play legit with him with a box in his inventory... it will multiply on its own... Then you thank ALL SRL developers and don'tpanic cause you can now use srl to clean up your inventory.

  14. #39
    Join Date
    Oct 2006
    Location
    finland, helsinki
    Posts
    2,501
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    omg this really works! good work!

    Code:
    • Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
    • Solarwind: Dude, you are like... t3h s3x.
    • Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
    • benjaa: woah.... Jukka is the man Guildminer pwns all
    • NaumanAkhlaQ: And JuKKa Is my Her0!

  15. #40
    Join Date
    Feb 2006
    Location
    Weed Ca
    Posts
    146
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Thank you DontPanic. This really does work. Who knew a wait would fix the box solver.

    Works on all of my crap comps and now my two super comps work as well. I vote for a medal made just for this act of kindness DontPanic has shown =).

    Sincerely,
    Mr. Freeweed
    Have fun always

    Taken from Boreas
    [CODE]If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - put this in your sig[/CODE]

  16. #41
    Join Date
    Sep 2006
    Location
    Scripter's Heaven
    Posts
    455
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yes

    And check out my pascal interpreter!
    <R0b0t1> No, really, I went to a bar and picked up a transvestite.

  17. #42
    Join Date
    Apr 2006
    Location
    I live in NH
    Posts
    611
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    so the waits have finally been added?

  18. #43
    Join Date
    Aug 2006
    Location
    London
    Posts
    2,021
    Mentioned
    2 Post(s)
    Quoted
    0 Post(s)

    Default

    yep, SRL 3.6
    Join the Official SRL IRC channel. Learn how to Here.

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. why is this so slow?
    By drizzt in forum OSR Help
    Replies: 11
    Last Post: 02-21-2008, 12:01 AM
  2. Why is this so slow?
    By Jason2gs in forum OSR Help
    Replies: 4
    Last Post: 03-03-2007, 06:40 PM
  3. Slow?
    By devils elbow in forum News and General
    Replies: 11
    Last Post: 04-29-2006, 11:41 PM

Posting Permissions

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