Inactive [MECH] CHDistantFarm v1.0 - Grows your Plants while the Chunk is unloaded [1.1-R3]

Discussion in 'Inactive/Unsupported Plugins' started by Zacherl, Jan 12, 2012.

  1. Offline

    Zacherl

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

    this is my first public plugin. Its very easy to setup and to use.

    Features:
    • Keeps ur plants growing, while the chunk is unloaded
    • Supports all important plants
      • Nether Warts
      • Crops
      • Melons
      • Pumpkins
      • Cactus
      • Sugar Cane
      • Saplings
    • Uses the original minecraft algorithms
    • Low level caching for maximum performance

    Installation:
    • Put the plugin in your plugin directory
    • The plugin uses the database from your bukkit.yml (default is sqlite)
    • Replant the blocks that you want to grow when the chunk is unloaded.

    I know there are at least two other plugins with the same features, but the first one dont get updated anymore and the second one updates very slow, so i decided to make my own.

    Download:
    http://dev.bukkit.org/server-mods/chdistantfarm-grows-your-plants/

    Please tell me, if you found any bug. I had some troubles with the bukkit database implementation and im not sure if i got rid of all bugs.

    Changelog:
    Version 1.07
    • Growth rate multiplicator configuration value added
    Version 1.06
    • Support for normal and big jungle trees added
    Version 1.05
    • Changed the default chance of growing a big tree from 50% to 10%
    • Configuration file fixed
    Version 1.04
    • Configuration file added
    • New event system implemented
    Version 1.03
    • Fixed a bug that caused plants to unregister at certain conditions
    • Debug messages removed
    Version 1.02
    • Huge performance optimizations (more than 1000 times faster)
    • Fixed a bug that caused melons and pumkins to grow more than one nearby fruit block
    • Several minor bugfixes
    Version 1.01
    • Fixed an infinite loop for unload times greater then 3 hours
    • Fixed some bugs that caused certain grow propabilities not to occur
    • Implemented the new Minecraft 1.1 algorithms for melons and pumpkins (they can now grow melon / pumkin blocks on nearby dirt and grass locations)
    Version 1.0
    • Initial release

    Best regards
    Zacherl

    This post has been edited 23 times. It was last edited by Zacherl May 7, 2012.
    UpTide and DocMartens like this.
  2. Offline

    gameswereus

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

    Alfie Cleveland

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Please make an external link. I'd love to try it out but I really can't be bothered to download and reupload onto my dedi.
  4. Offline

    Zacherl

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

    This post has been edited 2 times. It was last edited by Zacherl Jan 16, 2012.
  5. Offline

    Zacherl

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Changelog:
    Version 1.01
    • Fixed an infinite loop for unload times greater then 3 hours
    • Fixed some bugs that caused certain grow propabilities not to occur
    • Implemented the new Minecraft 1.1 algorithms for melons and pumpkins (they can now grow melon / pumkin blocks on nearby dirt and grass locations)
  6. Offline

    Zacherl

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Changelog:
    Version 1.02
    • Huge performance optimizations (more than 1000 times faster)
    • Fixed a bug that caused melons and pumkins to grow more than one nearby fruit block
    • Several minor bugfixes
  7. Offline

    md_5

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Can you please remove the last 2 changelogs from the spoiler and then tag me
  8. Offline

    Zacherl

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

    md_5

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Approved
    Zacherl likes this.
  10. Offline

    xTRIxEDGEx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Could you make it so we can choose which blocks we want to grow while the chunk is unloaded? Specifically i want to disable cacti from growing while unloaded, as i don't want auto cacti farms lagging my server.
  11. Offline

    Zacherl

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yes i can make an option for that. But it wont lag even with cacti enabled. While the chunk is unloaded, the plugin stays inactive. When the chunk gets loaded again, the plugin calculates the passed time between unloading and re-loading and grows the plants.

    On my test system it needs only ~10ms to grow a large amount of plants in a chunk (depends on how many plants are registered in a certain chunk; time independent).

    This post has been edited 1 time. It was last edited by Zacherl Jan 14, 2012.
  12. Offline

    R_Y_A_N

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    ok, i have seen much better young padawon
  13. Offline

    R_Y_A_N

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    not really
  14. Offline

    xTRIxEDGEx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    And you're point to post on this thread is?
    Tanite, Noah_Ivaldi and Zacherl like this.
  15. Offline

    Zacherl

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Whats your problem kid? oO.
    Noah_Ivaldi likes this.
  16. Offline

    josip1

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Trying it out.
  17. Offline

    Zacherl

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Changelog:
    Version 1.03
    • Fixed a bug that caused plants to unregister at certain conditions
    • Debug messages removed
  18. Offline

    Chris Schwing

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Compensation issues apparently.
    Also, he only has 3 posts, figured someone made that account just to be nasty.
    Great plugin man! =)
    Noah_Ivaldi and Zacherl like this.
  19. Offline

    xTRIxEDGEx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Also, i installed this on my server, but it hasent really been put to use then, so i can't really say much about it.
  20. Offline

    Noah_Ivaldi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    What if we use another plugin to alter the growing algorithms? The new server that I will be administrating with friends will run an economy. Within the first day of gameplay, everyone has more food than they will ever eat. Not only can no one sell the stuff, but we can't even give it away; we end up throwing stacks of food into dispensers. Thus, we intend to use a plugin to make crops grow much more slowly while using another plugin to lower the food drop rates of mobs. Will this cause a conflict by allowing crops to grow at normal rates in unloaded chunks, or will it adapt to the augmented rates? If the former, I would like to suggest that, in a future update, compatability with crop growth-altering plugins is added.
  21. Offline

    Zacherl

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    What plugin do you use to modify the growth rates? I have to look at the sourcecode, but im 99% sure it will confilct with my plugin. Support for this kind of plugins is nearly impossible, because i would have to implement all the custom grow algorithms.
  22. Offline

    Noah_Ivaldi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    We're not using one, presently, as our server is just getting started. We've been looking around for stuff like LessFood and OtherDrops, though we're going to use Mobs until we can afford a better server. We need lots of donations, 'cause we're poor... >.<; I kinda' figured that it would be problematic. Try looking at the source codes for those plugins, and if it looks like too much trouble, don't worry about it.
  23. Offline

    Zacherl

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Changelog:
    Version 1.04
    • Configuration file added
    • New event system implemented

    This release will only work for CB 1.1 and up!
  24. Offline

    Kannibale

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Perhaps you want to update your title because you are no longer on v1.0 but v1.4. I will add this when I get home!

    Thanks
  25. Offline

    matthew_goodman

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hey...been looking for soemthing like this... does the plants/crops grow when nowone is on the server?
  26. Offline

    Zacherl

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

    This post has been edited 1 time. It was last edited by Zacherl Jan 25, 2012.
  27. Offline

    Talkyn

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    YOU ARE AMAZING! Thank you so much for this. I love the way you implemented it btw, clever!
    Zacherl likes this.
  28. Offline

    Zacherl

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Changelog:
    Version 1.05
    • Changed the default chance of growing a big tree from 50% to 10%
    • Configuration file fixed
    Craftbukkit 1.1 R-3 is requiered!

    This post has been edited 1 time. It was last edited by Zacherl Jan 30, 2012.
  29. Offline

    groovynatureguy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Any tips to setting the database up? I can't seem to figure it out
  30. Offline

    Zacherl

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    The plugin will use the default SQLite database by default. If you want to switch to MySQL, you can just edit the bukkit.yml file in your server home directory.

Share This Page