Results 1 to 12 of 12

Thread: Finding tree ents

  1. #1
    Join Date
    Nov 2011
    Posts
    27
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default Finding tree ents

    Hi i am working on a woodcutting script and im trying to make it detect tree ents. obviously the best way is to look for yellow text but does anyone have a good method to do this? thanks

  2. #2
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Quote Originally Posted by awong View Post
    Hi i am working on a woodcutting script and im trying to make it detect tree ents. obviously the best way is to look for yellow text but does anyone have a good method to do this? thanks
    Could you upload a screenshot of an Ent so I can see what it looks like? Remember to have it be a .png because some other image formats don't have the right colors!

  3. #3
    Join Date
    Nov 2011
    Posts
    27
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Quote Originally Posted by BMWxi View Post
    Could you upload a screenshot of an Ent so I can see what it looks like? Remember to have it be a .png because some other image formats don't have the right colors!
    i got two pictures one is the yellow text and one is how it looks in top left corner but obviously it would have yellow text on it

    sqjnft.png

  4. #4
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Quote Originally Posted by awong View Post
    i got two pictures one is the yellow text and one is how it looks in top left corner but obviously it would have yellow text on it

    sqjnft.png
    Wait does the Ent look identical to a Yew tree?

    Are there any features that an Ent has that a Yew tree doesn't have?

  5. #5
    Join Date
    Nov 2011
    Posts
    27
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Quote Originally Posted by BMWxi View Post
    Wait does the Ent look identical to a Yew tree?

    Are there any features that an Ent has that a Yew tree doesn't have?
    well the ent tree has yellow text regular tree doesnt. the ent tree shakes a bit though

  6. #6
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Quote Originally Posted by awong View Post
    well the ent tree has yellow text regular tree doesnt. the ent tree shakes a bit though
    So would you want to ignore the Ent while woodcutting, or once you see it do you want to interact with it?

  7. #7
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Quote Originally Posted by BMWxi View Post
    So would you want to ignore the Ent while woodcutting, or once you see it do you want to interact with it?
    lololol u don't know your old school

    If u keep chopping the ent , it'll break your axe.

    OP: Is this not fixed by the anti-random developers?

    Creds to DannyRS for this wonderful sig!

  8. #8
    Join Date
    Nov 2011
    Posts
    27
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Quote Originally Posted by BMWxi View Post
    So would you want to ignore the Ent while woodcutting, or once you see it do you want to interact with it?
    ignore once seen if you hit it it breaks your axe

    Quote Originally Posted by Sjoekeloe View Post
    lololol u don't know your old school

    If u keep chopping the ent , it'll break your axe.

    OP: Is this not fixed by the anti-random developers?
    well i didnt see tree ent in there :\

  9. #9
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Quote Originally Posted by awong View Post
    ignore once seen if you hit it it breaks your axe



    well i didnt see tree ent in there :\
    Yeah indeed, only way I could think is making it look for the yellow when you're right-clicking tree.

    Creds to DannyRS for this wonderful sig!

  10. #10
    Join Date
    Nov 2011
    Posts
    27
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Quote Originally Posted by Sjoekeloe View Post
    Yeah indeed, only way I could think is making it look for the yellow when you're right-clicking tree.
    ya but how do i do that countercolortolerance?

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

    Default

    The same way a human would detect it. First off, have your script know which tree it is you're cutting, using whatever methods you'd like to. Second, either constantly check the a box region that includes the tree (the more it includes of "only" the tree, the better) for pixelshift (color-based movement). For confirmation, when a certain amount of pixelshift is detected move your mouse over the tree you're cutting and check for yellow uptext. Perhaps you could make a bitmap of the yellow "Cut" uptext which would make it universal for all types of Ents.

    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
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Quote Originally Posted by Sjoekeloe View Post
    lololol u don't know your old school

    If u keep chopping the ent , it'll break your axe.

    OP: Is this not fixed by the anti-random developers?
    Of course I don't, I was 10 when I last played it so I have only vague recollections of what things were like

    This one wouldn't be up to the random devs, it would be the scripter's job to only click on white tree text when looking for a tree.

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
  •