1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MaxiWoodcutter TRIAL 2.23.33

How much wood would a woodchuck chuck?

  1. Aidden

    Aidden Author of MaxiBots

    Joined:
    Dec 3, 2013
    Messages:
    6,482
    Likes Received:
    990
    That's odd. The only thing i can think of for it to cause that is that I've misspelled the maple tree name. Can you try cutting some other tree types and let me know if it works?
    Heh that's why areas are a good idea. It will always go to the nearest available tree. So if you've cut all the nearby trees and there's a tree that has loaded and it's 20/30 tiles away it will walk there lol. Areas prevent that from happening. It will only cut trees in the given area.
    I'm not sure if it's been fixed or not. I'm pretty sure it was a projection issue that cloud fixed in the latest releases.
    I agree that areas may seem a bit confusing to the beginner, and i do plan on adding presets when i add bank support. However, areas are necessary. If you don't use an area your player will wander endlessly chopping the nearest tree which could be ages away if you've already cut the trees near you. My script bot walks back to the area if it leaves. The area is only there as a filter for the tree search.
     
    #41 Aidden, Jul 28, 2014
    Last edited: Jul 28, 2014
  2. Wizard

    Joined:
    Jul 27, 2014
    Messages:
    165
    Likes Received:
    10
    Cut Yew logs, stopped when inventory was full. Deleted 3-4 logs then got stuck.
     
  3. Wyn

    Wyn

    Joined:
    Jul 10, 2014
    Messages:
    65
    Likes Received:
    7
    Code (Text):
    1. public void drawModel(Graphics g, Model o, Color c) {
    2. if(o!=null) {for (Polygon p : o.getPolygons()) {
    3. g.setColor(c);
    4. g.drawPolygon(p);}}}
    5.  
    6. private void drawArea(Graphics2D g, Area area) {
    7. if (area != null) {
    8. java.util.List<Coordinate> tiles = area.getCoordinates();
    9. for (Coordinate i : tiles) {
    10. Polygon p;
    11. if (i != null && (p = i.getBounds()) != null) {
    12. g.fillPolygon(p);}}}}
    Sorry for formatting, wrote it in reply window.
     
    Wizard likes this.
  4. Aidden

    Aidden Author of MaxiBots

    Joined:
    Dec 3, 2013
    Messages:
    6,482
    Likes Received:
    990
    I don't think that's what he meant lol. I think he was unsure as to what the Draw area and Draw tree options do.
    Also, there are built in methods for drawing areas and objects. object.render(Graphics2D) and area.render(Graphics2D)
     
  5. Aidden

    Aidden Author of MaxiBots

    Joined:
    Dec 3, 2013
    Messages:
    6,482
    Likes Received:
    990
    Hmm. Fill your inventory with yew logs and then restart the script bot. Let me know if it drops them all.
     
  6. Wizard

    Joined:
    Jul 27, 2014
    Messages:
    165
    Likes Received:
    10
    It dropped all the logs.
     
  7. Aidden

    Aidden Author of MaxiBots

    Joined:
    Dec 3, 2013
    Messages:
    6,482
    Likes Received:
    990
    Any problems at any stage of the process? I'll have to look into it. Oh and how long did you leave it before when it was stuck? Any more than 5 seconds without being able to continue and it's definitely something i'll need to look into.
     
  8. Wizard

    Joined:
    Jul 27, 2014
    Messages:
    165
    Likes Received:
    10
    No, it's cutting fine now. I just can't leave it gone too long. I really need a pre-defined area though. Or radius setting.
     
  9. Aidden

    Aidden Author of MaxiBots

    Joined:
    Dec 3, 2013
    Messages:
    6,482
    Likes Received:
    990
    I Could add in the radius option when i get home, that would be really simple. Pre-defined areas take a bit more time though as they require looking around for different spots and settings them just right.
     
  10. Wizard

    Joined:
    Jul 27, 2014
    Messages:
    165
    Likes Received:
    10
    Ok, and banking?
     
  11. Aidden

    Aidden Author of MaxiBots

    Joined:
    Dec 3, 2013
    Messages:
    6,482
    Likes Received:
    990
    Banking will come shortly after predefined paths. This isn't an ETA so don't quote me on it but i'm hoping to have time on the weekend to have all of the above added. Radius will definitely be added today. However, it will be a square area, not a circle as i'm not sure on how the circular area would work atm.
     
  12. Wizard

    Joined:
    Jul 27, 2014
    Messages:
    165
    Likes Received:
    10
    Ok and circular isn't needed tbh, do something like a polygon. But yeh, can't wait for predefined areas.
     
  13. Aidden

    Aidden Author of MaxiBots

    Joined:
    Dec 3, 2013
    Messages:
    6,482
    Likes Received:
    990
    Polygons are really unstable unfortunately. They're never what you expect them to be. Usually you end up with half the area missing lol.
     
  14. Wizard

    Joined:
    Jul 27, 2014
    Messages:
    165
    Likes Received:
    10
    Oh lol. Then that's something you might have to get with @Cloud with.
     
  15. Aidden

    Aidden Author of MaxiBots

    Joined:
    Dec 3, 2013
    Messages:
    6,482
    Likes Received:
    990
    According to cloud the polygonal area uses the java polygon class directly so unfortunately it's not possible for him to fix afaik.
     
  16. Wizard

    Joined:
    Jul 27, 2014
    Messages:
    165
    Likes Received:
    10
    Another thing to do on TODO list is nest pick-up.
     
  17. Aidden

    Aidden Author of MaxiBots

    Joined:
    Dec 3, 2013
    Messages:
    6,482
    Likes Received:
    990
    Yes! that was mentioned before but i forgot about it. Unfortunately I don't have members so i won't be able to test it. It will be implemented at the same time as banking.
     
  18. Wizard

    Joined:
    Jul 27, 2014
    Messages:
    165
    Likes Received:
    10
    Ok. I'll assist you with testing if still needed.
     
  19. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    You can create circular areas with the Area class. Just specify the center and the radius.
     
  20. Aidden

    Aidden Author of MaxiBots

    Joined:
    Dec 3, 2013
    Messages:
    6,482
    Likes Received:
    990
    Ah sweet, i only knew of rectangular and polygonal.
     

Share This Page

Loading...