Results 1 to 11 of 11

Thread: What's the difference between FindColorTolerence and FindColorSpiralTolerence?

  1. #1
    Join Date
    Oct 2006
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default What's the difference between FindColorTolerence and FindColorSpiralTolerence?

    Hi all, I have a question regarding color searching.

    What's the difference between FindColorTolerence and FindColorSpiralTolerence?

    I don't understand what the SCAR help is saying about them.

  2. #2
    Join Date
    Oct 2006
    Posts
    412
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    FindColorTolerence looks for your color in the area you have told it to, searching from left to right

    FindColorSpiralTolerence searches for your color starting at the x and y points, and searches outward.

  3. #3
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    I always though spiral started in the centre point of x1,y1,x2,y2?

    Has nothing to do with the x and y output. :wink:



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  4. #4
    Join Date
    Oct 2006
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wow, thanks a lot for your explination. However, what method is better? If I want to search for things such as the log in the gnome agility course, which method should i use?

  5. #5
    Join Date
    Oct 2006
    Posts
    412
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    @ Wizzup?

    The exact information as in the SCAR help file.
    PHP Code:
    function FindColorSpiral(var x,yIntegercolorxsysxeyeInteger): Boolean; - find color in box specified by xsysxeye but start from x,y
    Using FindColorSpiralTolerance has the same function, just with a color tolerance.

  6. #6
    Join Date
    Feb 2006
    Location
    L.A, USA
    Posts
    1,632
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Wizzup? View Post
    I always though spiral started in the centre point of x1,y1,x2,y2?

    Has nothing to do with the x and y output. :wink:
    Code:
    program New;
    var x, y : Integer;
    
    
    procedure Example1; //FindColorTolerance.
    begin
      if(FindColorTolerance(x, y, iColor, 46, 15, 553, 256, 5))then
         Writeln('Found');
    end; //This scans from top left hand corner to the right bottom corner.
    
    procedure Example2; //FindColorSpiralTolerance
    begin
      x:= 283;
      y:= 156;
      if(FindColorSpiralTolerance(x, y, iColor, 46, 15, 553, 256, 5))then
        Writeln('Found');
    end;
    //This scans starting from (283, 156); then outwards from that coord.
    //Same thing with FindBitmapToleranceIn and FindBitmapSpiralTolerance.

  7. #7
    Join Date
    Oct 2006
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks a lot guys!

  8. #8
    Join Date
    Sep 2006
    Posts
    161
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by solarwind View Post
    Wow, thanks a lot for your explination. However, what method is better? If I want to search for things such as the log in the gnome agility course, which method should i use?
    Try to set X and Y to where you think the log is and use a spiral.


    Wow. I've been away quite a while. Real life, yea, way unpredictable. Sorry, y'all, if I've caused any inconvenience.

  9. #9
    Join Date
    Oct 2006
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks all for your suggestions! My script is coming along nicely! The only issue left is to fix the amazing amout of lag there is. The lag seems to only occur when it's searching. Any suggestions on how to improve the script to make it have less lag?

  10. #10
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    put a small Wait(1+Random(10)) in.
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

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

    Default

    As a general rule do that when there is lag. This may be why you think scar is slow.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. What is the difference between := and =
    By Macrosoft in forum OSR Help
    Replies: 3
    Last Post: 09-19-2007, 05:13 AM
  2. Difference between two functions?
    By Giga in forum OSR Help
    Replies: 8
    Last Post: 07-04-2007, 04:58 AM
  3. Difference between DTMs and BitmapMasks?
    By NewToAutoing in forum OSR Help
    Replies: 3
    Last Post: 06-06-2007, 09:11 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
  •