[FIX] LongGrass v. 3.3.1 - grow (and re-grow) long grass, dead bushes, and pumpkins [1317]

Discussion in 'Inactive/Unsupported Plugins' started by sunkid, Jun 3, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    sunkid

    LongGrass - a simple little plugin to grow and re-grow long grass, dead bushes, and pumpkins

    All updates and project support is now handled on our DevBukkit site!
     
  2. Offline

    Lolmewn

    Yaaay! Thank you!
     
  3. Offline

    Jumla

    Nice! I am a bit concerned about this being abused. Does it generate inside WG regions?
     
  4. Offline

    sunkid

    Yes, it would. Define abuse though... it simply grows grass where grass would have normally grown.
     
  5. Offline

    Jumla

    Hm, i see. I didn't read the orginal post good enough, i thought it would spawn grass all over my buildings :D Would it spawn grass in already generated chunks?
     
  6. Offline

    sunkid

    Yes, that's what it's for! :) It still checks newly generated chunks but doesn't grow grass there if they already have it. Until Bukkit and CraftBukkit are updated, there is no way around that, I am afraid.
     
  7. Offline

    Jumla

    Okay, sorry for my stupidy, herp derp. I am super tired. I will install this in the morning. G'night.
     
  8. Offline

    WMisiedjan

    You're version number is lame, You should use like version 1.0 or 0.1 or something.
    You just copied the version of Bukkit, and you did even that wrong. the SNAPSHOT stands for a automatically generated build after each change (snapshot) of the code.
     
  9. Offline

    sunkid

    This may come as a surprise to you, but SNAPSHOT does not mean what you think it means.
     
  10. Offline

    captainawesome7

    @sunkid It doesn't matter v0.0.1-SNAPSHOT is a stupid version number. I don't even like 0.1 personally :/
     
  11. Offline

    sunkid

    Giving in to popular demand, I have made this version 1. I hope the plugin works better now ;)
     
    Scandragon and MisterBlackBart like this.
  12. Offline

    anon

    I like the snapshot one.
     
  13. Offline

    ledhead900

    oo thank you very much.

    Edit

    PHP:
    2011-06-05 17:32:32 [INFOWrong locationnet.minecraft.server.EntityItem@db9
    2011
    -06-05 17:32:32 [INFO95.5,-5.5(5,-1vs 6,-1
    2011
    -06-05 17:32:32 [SEVEREjava.lang.ExceptionStack trace
    2011
    -06-05 17:32:32 [SEVERE]     at java.lang.Thread.dumpStack(Unknown Source)
    2011-06-05 17:32:32 [SEVERE]     at net.minecraft.server.Chunk.a(Chunk.java:367)
    2011-06-05 17:32:32 [SEVERE]     at net.minecraft.server.ChunkLoader.a(SourceFile:181)
    2011-06-05 17:32:32 [SEVERE]     at net.minecraft.server.ChunkRegionLoader.a(SourceFile:42)
    2011-06-05 17:32:32 [SEVERE]     at net.minecraft.server.ChunkProviderServer.loadChunk(ChunkProviderServer.java:133)
    2011-06-05 17:32:32 [SEVERE]     at net.minecraft.server.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:63)
    2011-06-05 17:32:32 [SEVERE]     at net.minecraft.server.PlayerInstance.<init>(PlayerInstance.java:31)
    2011-06-05 17:32:32 [SEVERE]     at net.minecraft.server.PlayerManager.a(PlayerManager.java:45)
    2011-06-05 17:32:32 [SEVERE]     at net.minecraft.server.PlayerManager.movePlayer(PlayerManager.java:149)
    2011-06-05 17:32:32 [SEVERE]     at net.minecraft.server.ServerConfigurationManager.d(ServerConfigurationManager.java:137)
    2011-06-05 17:32:32 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:354)
    2011-06-05 17:32:32 [SEVERE]     at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    2011-06-05 17:32:32 [SEVERE]     at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
    2011-06-05 17:32:32 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    2011-06-05 17:32:32 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    2011-06-05 17:32:32 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
    2011-06-05 17:32:32 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
    2011-06-05 17:32:32 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2
    Appeared shortly after adding this.
     
  14. Offline

    sunkid

    This does not seem to be related to LongGrass but rather an issue with a player appearing in an incorrect location.

    EDIT: After looking into this some more, it appears that this is a 'not so important' 'error': https://github.com/Bukkit/CraftBukkit/commit/07ddaf17545c0a51d7d6a442c49072957a3d7784 :)
     
  15. Offline

    wassilij

    i solved the grass problem with my map without a plugin :)

    you just need to start the map in singleplayer ;)
     
  16. Offline

    sunkid

    I updated LongGrass to allow for long grass and dead bushes to re-grow after a configurable period of time. Since this can now be used to "re-grow" anything, I am considering a name-change to "MiracleGrow" ;)
     
  17. Offline

    wristdirect

    Just came in to say cool mod, and I couldn't care less how you label the versions ;)
     
    sunkid likes this.
  18. Offline

    sunkid

    Just a short FYI: LongGrass works with the new RB860!
     
  19. Offline

    Sim121

    'got an issue since RB860

    Code:
    01:17:44 [SEVERE] Exception in thread "Thread-10"
    01:17:44 [SEVERE] java.lang.NullPointerException
    01:17:44 [SEVERE]       at com.iminurnetz.bukkit.plugin.longgrass.LongGrassGrower.regrowPlants(LongGrassGrower.java:88)
    01:17:44 [SEVERE]       at com.iminurnetz.bukkit.plugin.longgrass.LongGrassMonitor.run(LongGrassMonitor.java:52)
    01:17:44 [SEVERE]       at java.lang.Thread.run(Thread.java:636)
    >
    
    =/
     
  20. Offline

    sunkid

    Does this happen every time or just when you start, stop, or reload your server?
     
  21. Offline

    Sim121

    This happen when I start and Reload the server.

    EDIT : Again, I just reloaded the server and I've got a different issue (Thread 10 --> Thread 52)

    Code:
    10:06:45 [SEVERE] Exception in thread "Thread-52"
    10:06:45 [SEVERE] java.lang.NullPointerException
    10:06:45 [SEVERE]       at com.iminurnetz.bukkit.plugin.longgrass.LongGrassGrower.regrowPlants(LongGrassGrower.java:88)
    10:06:45 [SEVERE]       at com.iminurnetz.bukkit.plugin.longgrass.LongGrassMonitor.run(LongGrassMonitor.java:52)
    10:06:45 [SEVERE]       at java.lang.Thread.run(Thread.java:636)
    
     
  22. Offline

    Woodsy

  23. Offline

    sunkid

    Both are harmless exceptions that happened when the server was stopped or reloaded while the plugin was still trying to grow grass in the background. I have addressed this in a new release that also adds a new configuration parameter to limit the size of chunks that are cached by the plugin. Please give the new release a try!
     
  24. Offline

    Sim121

    It seems to "work" now, no more issue when I start or reload the server, thank you very much =)
     
  25. Offline

    Tealk

    is possible to set up hand + hoe for the tools
    and make it with punkpkins too?
     
  26. Offline

    sunkid

    At the moment, you can only specify one tool 'class', i.e. hoes, axes, picks, etc. or specific ones like 'wooden hoe'. If you want 'no tool' just set the tool to 'air'.

    You can already re-grow pumpkins (just add them to the 'settings.plants' node in the config.yml file) and I can look into adding the new growth of pumpkins as well for a future release.
     
  27. Random error flew by:

    Code:
    16:58:26 [SEVERE] Exception in thread "Thread-40"
    16:58:26 [SEVERE] java.util.ConcurrentModificationException
    16:58:26 [SEVERE]       at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:819)
    16:58:26 [SEVERE]       at java.util.ArrayList$Itr.next(ArrayList.java:791)
    16:58:26 [SEVERE]       at com.iminurnetz.bukkit.plugin.longgrass.LongGrassGrower.regrowPlants(LongGrassGrower.java:85)
    16:58:26 [SEVERE]       at com.iminurnetz.bukkit.plugin.longgrass.LongGrassMonitor.run(LongGrassMonitor.java:52)
    16:58:26 [SEVERE]       at java.lang.Thread.run(Thread.java:722)
    
     
  28. Offline

    sunkid

    Thank you for the error report! I just pushed a new release to address this.
     
  29. Offline

    Tealk

    Code:
    # This is the default configuration for LongGrass
    
    # IF THE VERSION BELOW IS NOT THE VERSION IN YOUR config.yml CHECK FOR
    # NEW PARAMETERS AND ADD THEM TO YOUR config.yml. THEN, AND ONLY THEN,
    # CHANGE THE VERSION IN YOUR config.yml TO THE ONE BELOW.
    settings:
        # version of the last update of the config file
        version: 3
    
        # which tool(s) a player must use for plants to re-grow
        # tool specifications may exclude the material pre-fix
        tool: air
    
        # the plants (or any blocks) that will be "re-grown"
        plants:
            - dead bush
            - long grass
            - pumpkin
    
        # how many seconds to wait before re-growing a plant
        grow-time: 600 # 10 minutes
    
        # how much faster to re-grow plants during a storm
        rain-factor: 2
    
        # maximum number of chunks to cache
        cache-size: 200
    
        # how chatty should we be?
        debug: false
    
    the problem is it dosnt grow up pumpkins?
    whats my misstake?

    And please add it to CraftBukkitUpToDate
     
  30. Offline

    sunkid

    Your settings look fine and my pumpkins to re-grow when I use the same settings and harvest them "bare handed". There is no support yet for growing them in areas where they were not placed during that areas first generation but I will add that to the next release.

    I like CraftBukkitUpToDate and I use it myself! I will add LongGrass and my other plugins to CraftBukkitUpToDate once I figure out how to make sure that the shared code between them is used properly when it is updated.
     
Thread Status:
Not open for further replies.

Share This Page