[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

    Tealk

    ah if i farm a pumpkin it will grow up in the world?

    yea i need craftbukkituptdate for my startscript^^
     
  3. Offline

    AntonyDream

    Awesome fix, but I found if it used with great SimpleSkylands plugin ( http://forums.bukkit.org/threads/tp...0-tap-into-the-vast-skylands-world-863.21462/ ) it generates this
    Code:
    01:01:31 [SEVERE] Could not pass event PLAYER_MOVE to LongGrass java.lang.NullPointerException
            at com.iminurnetz.bukkit.plugin.longgrass.LongGrassGrower.growPlants(LongGrassGrower.java:182)
            at com.iminurnetz.bukkit.plugin.longgrass.LongGrassGrower.populateChunk(LongGrassGrower.java:70)
            at com.iminurnetz.bukkit.plugin.longgrass.LongGrassGrower.populateChunk(LongGrassGrower.java:55)
            at com.iminurnetz.bukkit.plugin.longgrass.LGPlayerListener.onPlayerMove(LGPlayerListener.java:47)
            at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:285)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:140)
            at net.minecraft.server.Packet10Flying.a(SourceFile:126)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:223)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    for every player movement in skylands world...
    I think it's because of the way how chunks are generated by SimpleSkylands plugin.
    Btw maybe you can add setting to enable/disable grass generation for chosen worlds?
     
  4. Offline

    sunkid

    @Tealk : I have added the ability to grow pumpkins "from seed", i.e. place them randomly and very sparsely into chunks. This is using the same logic used in the vanilla minecraft world generation, which gives pumpkins less than a 1/32 chance to occur in any given chunk.

    @AntonyDream : I have fixed the error and added the ability to exclude plant growth and re-growth in specific worlds.

    If you are upgrading, please note that you now need to install two jars into your plugins folder. The good news is, that if you are running more than one of my plugins, you only need to have the BaseBukkitPlugin.jar once :)
     
  5. Offline

    Tealk

  6. Offline

    AntonyDream

    I get this when server starts
    Code:
    02:16:10 [SEVERE] Could not load 'plugins\LongGrass.jar' in folder 'plugins':
    java.lang.NoClassDefFoundError: com/iminurnetz/bukkit/plugin/BukkitPlugin
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClassCond(Unknown Source)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$000(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:167)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:194)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:117)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:109)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassNotFoundException: com.iminurnetz.bukkit.plugin.BukkitPlugin
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 24 more
    
     
  7. Offline

    sunkid

    Fixed. Please re-download the LongGrass.jar. My apologies!
     
  8. Offline

    Tealk

    can you explain me this configuration?
    # grow pumpkins "from seed"?
    seed-pumpkins: false
     
  9. Offline

    sunkid

    If you set it to true, LongGrass will put pumpkins into your world at about the same ratio as it does since they were introduced. I thought that's what you wanted.
     
  10. Offline

    Kartus

    doesn't work with newer bukkits #895. i know, it's not rc, but just for your information ;)
     
  11. Offline

    sunkid

    I just tried the very latest bukkit and all seems to be fine. What is not working for you?
     
  12. Offline

    Kartus

    i downgraded to bukkit #867 and same isse at serverstartup. it only creates a "chunks.ser"file in /plugins/LongGrass with 5 byts size.
    Code:
    2011-06-19 17:47:37 [INFO] [LongGrass 3.2] Server version compatibility check succeeded
    2011-06-19 17:47:37 [SEVERE] Error occurred while enabling LongGrass v3.2 (Is it up to date?): com/iminurnetz/bukkit/plugin/util/ConfigurationService
    java.lang.NoClassDefFoundError: com/iminurnetz/bukkit/plugin/util/ConfigurationService
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(Unknown Source)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$000(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:218)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:32)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at com.iminurnetz.bukkit.plugin.longgrass.LongGrassPlugin.enablePlugin(LongGrassPlugin.java:51)
        at com.iminurnetz.bukkit.plugin.BukkitPlugin.onEnable(BukkitPlugin.java:183)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:799)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:140)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassNotFoundException: com.iminurnetz.bukkit.plugin.util.ConfigurationService
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 27 more
    i also got errorlog since then with other plugin CustomMusic:
    Code:
    2011-06-19 17:47:37 [INFO] [CustomMusic] 16 Jukeboxe(s) loaded.
    2011-06-19 17:47:37 [INFO] [CustomMusic] Permissions enabled using: GroupManager v1.0(alpha-5)
    2011-06-19 17:47:37 [INFO] [CustomMusic] Starting servers on port 4224-4227...
    2011-06-19 17:47:37 [SEVERE] Could not listen on port: 4224
    2011-06-19 17:47:37 [SEVERE] Exception in thread "Thread-11"
    2011-06-19 17:47:37 [SEVERE] java.lang.NullPointerException
    2011-06-19 17:47:37 [SEVERE]     at de.WegFetZ.CustomMusic.Server.run(Server.java:19)
    2011-06-19 17:47:37 [SEVERE] Could not listen on port: 42243
    2011-06-19 17:47:37 [SEVERE] Exception in thread "Thread-12"
    2011-06-19 17:47:37 [SEVERE] java.lang.NullPointerException
    2011-06-19 17:47:37 [SEVERE]     at de.WegFetZ.CustomMusic.ServerSongDelete.run(ServerSongDelete.java:19)
    2011-06-19 17:47:37 [SEVERE] Could not listen on port: 42241
    2011-06-19 17:47:37 [SEVERE] Exception in thread "Thread-13"
    2011-06-19 17:47:37 [SEVERE] java.lang.NullPointerException
    2011-06-19 17:47:37 [SEVERE]     at de.WegFetZ.CustomMusic.ServerSongSender.run(ServerSongSender.java:19)
    2011-06-19 17:47:37 [INFO] CustomMusic version 0.6a is enabled!
    
    2011-06-19 17:47:37 [SEVERE] Could not listen on port: 42242
    2011-06-19 17:47:37 [SEVERE] Exception in thread "ServerUploadListener"
    2011-06-19 17:47:37 [SEVERE] java.lang.NullPointerException
    2011-06-19 17:47:37 [SEVERE]     at de.WegFetZ.CustomMusic.ServerUploadListener.run(ServerUploadListener.java:23)
     
  13. Offline

    sunkid

    The first error leads me to suspect that you are missing the BaseBukkitPlugin.jar. Can you check that it's there?

    The second error seems to indicate that your servers are already running or that the ports 4224-4227 cannot be bound to for some other reason. This is not something related to LongGrass though.
     
  14. Offline

    Kartus

    yeah, i forgot BaseBukkitPlugin.jar. it works now. sorry and thx.

    server.log error #860 and 3.2, happening several times when server is up since hours.


    Code:
    [SEVERE] Could not pass event BLOCK_BREAK to LongGrass
    java.lang.NullPointerException
        at com.iminurnetz.bukkit.plugin.longgrass.LongGrassPlugin.markMowed(LongGrassPlugin.java:161)
        at com.iminurnetz.bukkit.plugin.longgrass.LGBlockListener.onBlockBreak(LGBlockListener.java:47)
        at org.bukkit.plugin.java.JavaPluginLoader$35.execute(JavaPluginLoader.java:482)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
        at net.minecraft.server.ItemInWorldManager.c(ItemInWorldManager.java:159)
        at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:102)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:453)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  15. Offline

    sunkid

    I just uploaded version 3.3, which fixes this error. Please give it a try! (No need to update BaseBukkitPlugin.jar)
     
  16. Offline

    Kartus

    it's fixed and works, thx.
     
  17. Offline

    Celtic Minstrel

    The description is a bit confusing, so... can this plugin make pumpkins an infinitely renewable resource? They're the only plant item now that isn't; long grass and flowers grow from grass, crops are renewable, trees can be replanted, and mushrooms apparently spread. Cactus and sugar cane both grow taller when planted; shrubs I'm not sure of, but they're functionally equivalent to tall grass; and dead shrubs are totally useless so it doesn't matter.
     
  18. Offline

    sunkid

    Yes, just add what you want to re-grow under the 'settings.plants' node in the configuration file. If you harvest them with the configured tool, they will regrow.
     
  19. Offline

    Celtic Minstrel

    Hm, well, it works, but isn't quite the sort of mechanism I want... :/
     
  20. Offline

    sunkid

    Well, what DO you want? :D
     
  21. Offline

    Celtic Minstrel

    I'm not quite sure, to be honest. Some things I have considered are passive spreading like mushrooms apparently do, right-click with bone-meal, planting special seeds... I dunno.
     
  22. Offline

    Madmusk

    I'm getting "Monitor thread stopped!" as soon as the server is finished loading plugins but I think LongGrass is working. Any idea what's going on?
     
  23. Offline

    sunkid

    If you get this after doing a reload, that would be to be expected. The monitor thread sleeps for a while and then checks whether it was stopped causing a delay. However, the plugin starts a new thread when reloaded.
     
  24. Offline

    troed

    Bug, I believe: Long grass seems to grow on non sun-lit dirt as well, where regular grass doesn't. I've found it deep down in caves since installing the plugin.

    Default config.
     
  25. Offline

    sunkid

    Is this in lit areas or in darkness?
     
  26. Offline

    troed

    lit by torch, but since there's no regular grass near by I wouldn't expect long grass to grow either. Don't they both follow the rules on spreading to block neighbors?
     
  27. Offline

    ledhead900

    You don't happen to have a list of availble plants we can grow do you as id love to grow flowers in this same mannor as long grass.
     
  28. Offline

    sunkid

    Sorry for the delay in responding, I was on vacation.

    You can re-grow any plant (or block really) by adding them to the list in the config file. Only pumpkins, long grass, and dead bushes are placed "from seed".
     
  29. Offline

    ledhead900

    I know this is why I was asking for specific details on how the name has to formated in the config :), I know some plugins only work using code names like "SPIDER" or "UNLOAD_SPIDER" calling a actually event name not a list of names layed out in the plugin.

    I'm wondering if this one is spider,Spider,SPIDER "spider is being used for example purposes"

    Also when it comes to other blocks like ones that some people add two names too like Lapiz_Block where I call it Lapiz. Basicly if you had a full list of names possible in correct format that would be really handy mate :).
     
  30. Offline

    sunkid

    You can use any of the names listed here. Case doesn't matter and you can use spaces instead of underbars. Alternatively, you can use item ids or "fuzzy strings" documented in my CreativeStick plugin.
     
    ledhead900 likes this.
  31. Offline

    ledhead900

    Cheers for the list :)
     
Thread Status:
Not open for further replies.

Share This Page