Results 1 to 14 of 14

Thread: Color detection help

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

    Default Color detection help

    Edit:

    PROBLEM SOLVED, if anyone can lock this thread or something that would be great.








    I can't figure out a good detection method for the sawmills in the citadel next to the banker due to the changing presence of the sawmill and the same colors on the wooden wall. If anyone can help me with this I would appreciate it. The metal part on the sawmill is small and there are lots of player with a wide variety of overrides so those colors make it harder to detect the sawmill too.

    pics:
    http://imgur.com/3Wc8aOR,ji2aitL
    http://imgur.com/rkfsZl8
    http://imgur.com/469hKNb

    Includes sawmill, citadel, and a mass amount of ppl.

  2. #2
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by Trollcrank View Post
    I can't figure out a good detection method for the sawmills in the citadel next to the banker due to the changing presence of the sawmill and the same colors on the wooden wall. If anyone can help me with this I would appreciate it. The metal part on the sawmill is small and there are lots of player with a wide variety of overrides so those colors make it harder to detect the sawmill too.
    Probably best to post a picture as IDK whet you are talking about

  3. #3
    Join Date
    Jun 2012
    Posts
    47
    Mentioned
    0 Post(s)
    Quoted
    23 Post(s)

    Default

    He is talking about portable sawmills, I think this one would be kind of hard because players can walk in and then you have the players on top, so the colors dissapear.

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

    Default

    Quote Originally Posted by The Mayor View Post
    Probably best to post a picture as IDK whet you are talking about
    http://imgur.com/3Wc8aOR,ji2aitL
    By the time you have the sawmill colors and tolerence, the colors match the wall. There is a lot of people too and a mass number of overrides, outfits, and of course colors.

  5. #5
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by Trollcrank View Post
    http://imgur.com/3Wc8aOR,ji2aitL
    By the time you have the sawmill colors and tolerence, the colors match the wall. There is a lot of people too and a mass number of overrides, outfits, and of course colors.
    That picture tells me nothing about "all the people at the bank"

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

    Default

    Quote Originally Posted by The Mayor View Post
    That picture tells me nothing about "all the people at the bank"
    I'm saying that the sawmill is small and using a smaller detailed piece of it and getting the color from there doesn't work due to the amount of people. And using the colors of the sawmill doesn't work due to the wall being a similar brown. I would've posted a picture but the sawmills were in shantaypass and not the citadel at the time. I'll edit later with a better picture.

    Edit:
    http://imgur.com/rkfsZl8
    http://imgur.com/469hKNb
    http://imgur.com/w43wYKf

    JUST look at all the colors. And the amount of people, it's just a swell time for color detection.

  7. #7
    Join Date
    Mar 2013
    Location
    Argentina
    Posts
    758
    Mentioned
    27 Post(s)
    Quoted
    365 Post(s)

    Default

    Quote Originally Posted by Trollcrank View Post
    I'm saying that the sawmill is small and using a smaller detailed piece of it and getting the color from there doesn't work due to the amount of people. And using the colors of the sawmill doesn't work due to the wall being a similar brown. I would've posted a picture but the sawmills were in shantaypass and not the citadel at the time. I'll edit later with a better picture.

    Edit:
    http://imgur.com/rkfsZl8
    http://imgur.com/469hKNb
    http://imgur.com/w43wYKf

    JUST look at all the colors. And the amount of people, it's just a swell time for color detection.
    if the sawmill is placed always on the same spot you could make a searchbox around your character , and move the mouse around inside it until you find the mouseovertext you want, and store it in a variable so once its found, it knows its there for the whole script run.

    Im not familiarized with how this things work though! they are always put on the same spot? if you left click even though there is a characer on top of it, it works? Do you have to walk/move to use it?

    PD: your photos arent very helpful since you put the white square, just post how things are without so much zoom so we can understand

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

    Default

    Quote Originally Posted by undorak7 View Post
    if the sawmill is placed always on the same spot you could make a searchbox around your character , and move the mouse around inside it until you find the mouseovertext you want, and store it in a variable so once its found, it knows its there for the whole script run.

    Im not familiarized with how this things work though! they are always put on the same spot? if you left click even though there is a characer on top of it, it works? Do you have to walk/move to use it?

    PD: your photos arent very helpful since you put the white square, just post how things are without so much zoom so we can understand
    well the script is run with max zoom in..

    Im not familiarized with how this things work though! they are always put on the same spot? if you left click even though there is a characer on top of it, it works? Do you have to walk/move to use it?
    theres google for such things but ill explain anyways.
    they can be placed anywere a fire can be lit but typically they're placed near a bank. The sawmill is placed two blocks north of the citadel banker or north east of the banker. It changes due to the host(portable sawmill placer) sometimes :/ . left clicking works.

    http://imgur.com/469hKNb

    This photo shows where the sawmill is placed and the empty spaced south of the white block is another setting place that is sometimes used too.

    The weird guy with a black cape and pink ponytail is the banker.
    http://imgur.com/rkfsZl8

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

    Default

    Quote Originally Posted by undorak7 View Post
    if the sawmill is placed always on the same spot you could make a searchbox around your character , and move the mouse around inside it until you find the mouseovertext you want, and store it in a variable so once its found, it knows its there for the whole script run.
    So I thought about it and that was a fantastically magical idea. I went ahead and made what you described and it runs without errors now. Unfortunately, I haven't gotten to test it yet and it might not work properly so stay tuned. Once again, thanks for the great idea; I couldn't have thought of that myself.

    Edit: It doesn't work right now but I don't have time to fix it today. I guess I'll post the script part anyways:

    Simba Code:
    procedure YouCantHide;
    begin
      clearDebug();
      WriteLn('Searching for portable location, give it a second.');

      begin
      MouseOval(299,111,20,20,Mouse_Move); //N
      if ismouseovertext(['awmill', 'Portable sa', 'mill', 'saw']) then
        PortLocation := 1
      else
        Wait(RandomRange(800,2500));
      end;

      begin
      MouseOval(199,198,20,20,Mouse_Move); //E
      if ismouseovertext(['awmill', 'Portable sa', 'mill', 'saw']) then
        PortLocation := 2
      else
        Wait(RandomRange(800,2500));
      end;

      begin
      MouseOval(275,290,20,20,Mouse_Move); //S
      if ismouseovertext(['awmill', 'Portable sa', 'mill', 'saw']) then
        PortLocation := 3
      else
        Wait(RandomRange(800,2500));
      end;

      begin
      MouseOval(183,178,20,20,Mouse_Move); //W
      if ismouseovertext(['awmill', 'Portable sa', 'mill', 'saw']) then
        PortLocation := 4
      else
        Wait(RandomRange(800,2500));
      end;
    end;

    procedure PortablePosition;
    begin
      if not isLoggedIn() then
        exit;

      minimap.setAngle(MM_DIRECTION_NORTH);
      mainScreen.setAngle(MS_ANGLE_HIGH);

      Case PortLocation of         //1=N 2=E 3=S 4=W
      0:YouCantHide;

      1:begin
        PortableNorth;
        exit;
        end;

      2:begin
        PortableEast;
        exit;
        end;

      3:begin
        PortableSouth;
        exit;
        end;

      4:begin
        PortableWest;
        exit;
        end;
      end;
    end;

  10. #10
    Join Date
    Aug 2007
    Location
    Santa Fe, Argentina
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Are those handles always visible? If so, just search for those colors and add some simple filters

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

    Default

    Quote Originally Posted by vanlacke View Post
    Are those handles always visible? If so, just search for those colors and add some simple filters
    I tried that but some people with overrides got in the way. It would detect them too. I used filters but no luck, anyways I'm going to keep try what the other guy said first. If anyone could check if the script part is good then let me know.

  12. #12
    Join Date
    Aug 2007
    Location
    Santa Fe, Argentina
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Quote Originally Posted by Trollcrank View Post
    I tried that but some people with overrides got in the way. It would detect them too. I used filters but no luck, anyways I'm going to keep try what the other guy said first. If anyone could check if the script part is good then let me know.
    Overrides? Does that mean it's not always visible?

    Sorry, I've never seen this way of doing planks. Can I go to a clan citadel or whatever and check it out?

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

    Default

    Quote Originally Posted by vanlacke View Post
    Overrides? Does that mean it's not always visible?

    Sorry, I've never seen this way of doing planks. Can I go to a clan citadel or whatever and check it out?
    Overrides=solomon store cosmetic overrides.(outfits with no stats, they look cool though)

    The handles are always visible but with all the customs and the large amount of people it wasn't very practical. I already tried it before posting this thread.

    Anyways, I made something that works now . Thanks everyone. Special thanks to undorak7 for the idea that worked.

  14. #14
    Join Date
    Mar 2013
    Location
    Argentina
    Posts
    758
    Mentioned
    27 Post(s)
    Quoted
    365 Post(s)

    Default

    Quote Originally Posted by Trollcrank View Post
    Overrides=solomon store cosmetic overrides.(outfits with no stats, they look cool though)

    The handles are always visible but with all the customs and the large amount of people it wasn't very practical. I already tried it before posting this thread.

    Anyways, I made something that works now . Thanks everyone. Special thanks to undorak7 for the idea that worked.
    im glad you got it working!

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
  •