Inactive [FUN/MISC] Giant Trees v0.4.3 - Make Massive Trees in Minecraft [1.1-R6]

Discussion in 'Inactive/Unsupported Plugins' started by Connor Mahaffey, Jun 14, 2011.

     
  1. Offline

    Connor Mahaffey

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)

    This post has been edited 7 times. It was last edited by Connor Mahaffey Apr 19, 2012.
  2.  
  3. Offline

    Darkride

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    in this case permissions would be fine that this cant happen because the sever admin doesn't have to give this right away to everybody

    Edit:
    with /gt 60 16 a stupid error appear into the server that stops the server ...
  4. Offline

    Tux2

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ahh... you might want to add that information in the opening post. Although spawning the tree where you are looking would be awesome as well.
  5. Offline

    Connor Mahaffey

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yea I will, and it would be, but definitely not by default, that could lead to....accidents
  6. Offline

    Andre_9796

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    use is the same command as help ( /gt ) ??
  7. Offline

    Connor Mahaffey

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    What I mean by that is that when using a command you can start it with /gt, /gtree, or /gianttree - all the examples use /gt but you could use /gtree, etc.
  8. Offline

    Andre_9796

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    ah okay, like /gt help, /gtree help etc..?
  9. Offline

    Connor Mahaffey

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Your server probably overloaded. Try slowing down the time in the config. Hence why there are limits my friend :)
  10. Offline

    Connor Mahaffey

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yep :D or to make a tree, something like /gt 30 6
  11. Offline

    Darkride

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    if i make a small tree the same error appears its your turn not my turn :D
  12. Offline

    Connor Mahaffey

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Have you tried slowing down the time in the config?
  13. Offline

    Darkride

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    its in progress but it takes "some" time
  14. Offline

    Connor Mahaffey

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Well let me know if that solves your problem. I'll be trying to make some speed improvements in the next update, so that this time can be even slower, but it won't take as long. Sorry for the inconvenience, but since Minecraft is in beta, and really, bukkit too, these things happen.
  15. Offline

    Darkride

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    ok if i make it faster server is down in few seconds config set to 10 :D
    and if i make it slower it only needs more time before the crash
    tested with 10 and 300

    edit:
    there is no difference between the size from x and y server is down so or so
    First tree worked so well :(
  16. Offline

    fugue2005

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    i've tried twice now
    /gt 50 8

    but at about what looks like 2/3 the way through i get
    Code:
    2011-06-14 11:59:31 [SEVERE] java.lang.NullPointerException
    2011-06-14 11:59:31 [SEVERE]     at net.minecraft.server.World.a(World.java:1544)
    2011-06-14 11:59:31 [SEVERE]     at net.minecraft.server.World.a(World.java:1509)
    2011-06-14 11:59:31 [SEVERE]     at net.minecraft.server.World.a(World.java:556)
    2011-06-14 11:59:31 [SEVERE]     at net.minecraft.server.MetadataChunkBlock.a(SourceFile:103)
    2011-06-14 11:59:31 [SEVERE]     at net.minecraft.server.World.doLighting(World.java:1496)
    2011-06-14 11:59:31 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:391)
    2011-06-14 11:59:31 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
    2011-06-14 11:59:31 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-06-14 11:59:31 [SEVERE] Unexpected exception
    java.lang.NullPointerException
        at net.minecraft.server.World.a(World.java:1544)
        at net.minecraft.server.World.a(World.java:1509)
        at net.minecraft.server.World.a(World.java:556)
        at net.minecraft.server.MetadataChunkBlock.a(SourceFile:103)
        at net.minecraft.server.World.doLighting(World.java:1496)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:391)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    and it crashes the server

    if you need more info from me, let me know.

    my server version and plugin list is in the link in my sig
  17. Offline

    a_hat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I was thinking different wood types, like the birch and such, but huge pines would be amazing. Redwoods!
    Connor Mahaffey likes this.
  18. Offline

    Tux2

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    My server can definitely handle at least 1 tree growing. I put the delay time down to 30 and it spawned it so much quicker with hardly any lag on the server. Granted, it is a powerful machine and minecraft is just about the only thing running on it. I would put a configurable number of trees that you can grow simultaneously in the config file with a big huge warning over it about possible server crashes, etc.
  19. Offline

    CptSausage

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    No you're right. Didn't think about a list. That would be huge!

    EDIT: Oh one more thing concerning the list. Maybe a command like "/gt add [height] [width]", so every added tree can have it's own properties.
  20. Offline

    Connor Mahaffey

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    :( could you post the error? Maybe its not the typical doLighting error. Or maybe your server specs are really low?

    Good to know. I figured that if I can run it on my dual core 1.9 ghz laptop with Netbeans, the client, and the server running MOST people should be able to turn it down quite a bit. Next update will put longer breaks in-between chunks, as opposed to block by block. This should make it build even faster.

    Yes that's definitely coming. The list will be stored on file as well, so that an admin can tell the tree list to stop building after the next tree is completed, the server can be shutdown, and then the trees will start building again when it comes back up.
    CptSausage likes this.
  21. Offline

    Connor Mahaffey

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Oh sorry, to clarify, that's how it works :) you do all the commands like normal, but if a tree is being built, it adds the new tree to the cache.
  22. Offline

    Pim1234

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    EPIC!!!
    Connor Mahaffey likes this.
  23. Offline

    fffizzz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Code:
    2011-06-14 22:30:04 [SEVERE] java.lang.NullPointerException
    2011-06-14 22:30:04 [SEVERE]    at net.minecraft.server.World.a(World.java:1544)
    2011-06-14 22:30:04 [SEVERE]    at net.minecraft.server.World.a(World.java:1509)
    2011-06-14 22:30:04 [SEVERE]    at net.minecraft.server.World.a(World.java:556)
    2011-06-14 22:30:04 [SEVERE]    at net.minecraft.server.MetadataChunkBlock.a(SourceFile:104)
    2011-06-14 22:30:04 [SEVERE]    at net.minecraft.server.World.doLighting(World.java:1496)
    2011-06-14 22:30:04 [SEVERE]    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:391)
    2011-06-14 22:30:04 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
    2011-06-14 22:30:04 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-06-14 22:30:04 [SEVERE] Unexpected exception
    java.lang.NullPointerException
            at net.minecraft.server.World.a(World.java:1544)
            at net.minecraft.server.World.a(World.java:1509)
            at net.minecraft.server.World.a(World.java:556)
            at net.minecraft.server.MetadataChunkBlock.a(SourceFile:104)
            at net.minecraft.server.World.doLighting(World.java:1496)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:391)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    Ive had a couple server crashes tonight since using this plugin, i was in the process of running a /gt 70 10, other times i get the infamous Read Time Out, this time i got that, although it doesnt specifically point to your plugin, thought i'd share.
  24. Offline

    Tux2

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Well, I haven't gotten any of the errors yet, but the algorithm could definitely use a bit of work:
    2011-06-14_22.17.35.png
    I usually have to do a tree within a tree for the large ones to look decent. Otherwise it looks like 4 huge columns of leaves on skinny, spotty, branches.
  25. Offline

    Connor Mahaffey

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It is my plugin, and I do apologize. Have you tried slowing down the time in the config? This error occurs when bukkit gets caught up doing the lighting. I'm thinking about submitting a bug report because it shouldn't take down the entire server.

    The next update should improve both build times and possibly help with these lighting issues.

    Also, I thought I'd let you know that the /gt undo feature you requested is coming along nicely. A user can only undo the trees they created, unless they have the .undoall permission, and trees can be undone at any time, even after a server restart. Just walk up to the tree in question and type /gt undo :)

    Ouch, is that picture really the final version of the tree? It looks like one that half spawned. Huh. I'll take a look at it. I'll admit I haven't tested too many trees above 30 height. May need more leave reps.

    Just out of curiosity, what is the height and width of the tree in your picture?
  26. Offline

    nisovin

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    So, I think this is really awesome. Great work!

    However, I was looking at your code, and it looks like you're creating your own thread to do block updates. From what I understand, the minecraft server is not thread safe, and doing this could cause errors. This may actually partly be responsible for some of the errors people are getting. You really should use Bukkit's scheduler with a sync task to do block updates.

    My suggestion would be to use your own thread to do all the calculations without actually doing anything with blocks. Just create a queue of locations (you wouldn't want to use a queue of blocks, since that would require running getBlockAt, which you wouldn't want to do). Then when that's done, use a sync task to run through the queue, updating blocks several at a time. I obviously haven't tested it, but it seems like it would work better.

    Edit: I did some playing around, and I've sent you a PM with my results.
    Connor Mahaffey likes this.
  27. Offline

    chubbz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    thanks connor for makeing this im testing now
    Connor Mahaffey likes this.
  28. Offline

    Ambedrake

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Love this plugin, my buddies 8 yr old son was thrilled when he logged in and I had made large trees all around is plot for him to play with lol.
    Connor Mahaffey likes this.
  29. Offline

    Darkride

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)

    so back from school and this is the same error i got all the time. Chancing the build speed doesn't help there it the tree takes more time to build it takes only longer before the server send this error

    and on the picture is a unfinished tree look into your server
  30. Offline

    Connor Mahaffey

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'm curious what your server specs are, because its runs fine on my computer which is definitely slower than most servers.

    Regardless, if you are continually having issues, please wait till version 0.2 - I'm trying to improve things.
  31. Offline

    fffizzz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I tried with speed 60,45,35 same results
    Core I5 2500k, 16gig ram, 1 gig ethernet connection.. Server is way more than capable of performing these tasks :D I can do some insane worldedits nearly instant.
  32. Offline

    Pim1234

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    how to delete a tree?!

Share This Page