[INACTIVE][MECH] Gastronomic v1.3.4 - Adding realism through hunger. [766]

Discussion in 'Inactive/Unsupported Plugins' started by fullwall, Jan 28, 2011.

  1. Offline

    fullwall

    [​IMG]
    The first specialised hunger plugin for Bukkit!
    Now with Thirst - open GastronomicWater Spoiler!

    Download latest release: v1.3.4 (Uses Permissions)
    Older Versions: 1.33, 1.31, 1.3, 1.26, 1.25, 1.2, 1.1, 1.0, 0.1
    Direct link to latest: here

    Ever felt like something was missing from Bukkit? A sense of immersion, of depth? Ever felt like people shouldn't be able to survive for weeks without a single piece of food? Gastronomic provides a reason to kill those pigs, catch that fish, and cook that bread. So gather up your [wheatpicked], [redmushroom] and [meat], and keep reading.

    Features:
    • User-specified hunger intervals, increments, and damage amounts.
    • Per-item hunger restoration amounts.
    • 'Effects' system allowing very customisable health restoration/damage effects.
    • Permissions support.
    Permissions:
    Give gastronomic.admin.* support to trusted players, and gastronomic.player.* permissions to all, or configure permissions manually from the list below.
    Code:
    gastronomic.admin.enable - gives access to the /gastronomic command.
    gastronomic.admin.reload - gives access to the /gastronomic reload command.
    gastronomic.admin.sethunger - gives access to the /sethunger command.
    gastronomic.player.checkhunger - gives access to the /hunger command.
    gastronomic.player.checkfood - gives access to the /food command.
    gastronomic.disablehunger - give this permission to disable hunger for the user/group.
    
    Commands:
    Code:
    /gastronomic - enables and disables plugin.
    /gastronomic reload - reloads all configuration files.
    /hunger - checks your current hunger level.
    /sethunger [player name] [hunger level] - sets player's hunger to the specified amount.
    /food [id] - tells the player how much hunger the id restores.
    /food list - lists how much hunger each food id restores.
    
    Known issues:
    • If configuration files are deleted for any reason, the server may show some scary messages. Don't worry, it should work out fine! If not, report please :).
    • In GastronomicWater, users must left click to empty buckets (bug with bukkit not calling correct events on bucket use)
    Planned Features:
    • Suggest some!
    Changelog:
    v1.3.4 - compatibility, bugfixes.
    Older Versions (open)

    v1.33 - bugfixes, permissions are now opt-out
    v1.31
    • Finally fixed hunger saving (!)
    v1.3
    • Lotsa bugfixes (tm)
    v1.26
    • Incremented version number to reflect amount of bugfixes/new features added to 1.2.
    v1.2
    • Player hunger resets to initial-hunger after death.
    • Added enforce-limit setting to stop hunger going below 0 after death.
    • Added hunger restoration settings.
    • Allowed eating cake.
    • Added /food [id] command to get food hunger restoration value. Add gastronomic.player.checkfood to allow access.
    • Messages are now only sent to the player upon reaching the threshold.
    • Lots of bugfixes.
    • Changed the way players are added/removed on join/quit.
    v1.1
    • Added /gastronomic reload command.
    • Added initial-hunger setting to allow users to start at varying levels of hunger.
    v1.0
    • Added Permissions support.
    • Changed versioning scheme to reflect this.
    • Added support for messages with colour codes, as defined in the properties file.
    • Fixed miscellaneous bugs.
    • Hunger values can go below 100.
    v0.1 - initial release.
    Mechanics (open)

    Each player is given a hunger value, starting at 0. Every so often, at a user-specified interval, every user's hunger level goes up by a specified increment. This goes on until their hunger level reaches 100, and they begin to starve. At every following interval, damage will be taken until food is eaten, restoring hunger levels back to 0.
    Credits (open)

    • Firstly to this thread for inspiring the creation of Gastronomic. Thanks to Bashur and the other posters in that thread!
    • Secondly to TimberJaw, whose Hey0 mod (here) served as ideas for some of my plugin's functionality.
    GastronomicWater (open)
    Please note - this is not updated for 766 yet.
    Download link: 1.11, 1.0

    GastronomicWater has exactly the same features as Gastronomic, but with a separated config file.
    Commands are:
    /drink [id]
    /drinks
    /gastronomicwater (reload)
    /thirst
    /setthirst [player name] [thirst]
    gastronomic.admin.enable - gives access to the /gastronomicwater command.
    gastronomic.admin.reload - gives access to the /gastronomic reload command.
    gastronomic.admin.setthirst - gives access to the /setthirst command.
    gastronomic.player.checkthirst - gives access to the /thirst command.
    gastronomic.player.checkdrink - gives access to the /drink command.
    gastronomic.disablethirst - give this permission to disable hunger for the user/group.

    As this is an early release (and my first actual plugin), please report any bugs or issues, and also features you'd like to be added - I'm always open to suggestions! Also taking suggestions for my next plugin.
     
  2. Offline

    enkryptor

    It depends on what do you want to do with the plugin.
    It works!

    One little remark — when I write "message-40=" (an empty string) or "message-health-restore=" in my config file get an empty line in my chat every time the event ticks. Can I get rid of some messages completely?
    --- merged: Feb 17, 2011 8:07 PM ---
    Bad news — with negative health amount food can kill you in case of low hp.
     
  3. Offline

    fullwall

    Well, yes, it would kill you. Isn't that the point? I will fix the issue with the chat soon.
    --- merged: Feb 18, 2011 9:13 AM ---
    Redownload, fixed empty messages.
     
  4. Offline

    enkryptor

    I mean, if pork heals your for 4 hearts, and Gastronomic damages you for another 4 hearts, this pork will kill you instead of just zero heal.
    --- merged: Feb 18, 2011 11:30 AM ---
    Another buggy thing is that if you get the regeneration after this death, you'll be magically resurrected but without any inventory (all items just vanish).
     
  5. Offline

    fullwall

    Fix the regen bug. I think I know what causes the health bug, but I don't know how to fix it without delaying applying the health value you specify.
     
  6. Offline

    enkryptor

    By the way, if we delay it, player with full hp will get damage 8\

    I think, the only proper way is to hook the food healing itself..
     
  7. Offline

    fullwall

    You can't, unfortunately.
     
  8. Offline

    spoonikle

    um, would you permit me to add a hunger indicator? such as a simple message to player HUNGER ]]]]]]]-- at every factor of 10? or do you plan on adding that sooner or later.

    i have no intention of releasing a hunger plug-in, but i would like to use yours on my server, and my only issue is its so easy to forget that you are hungry.
     
  9. Offline

    enkryptor

    Hmm.. it has such message:
    message-20=HUNGER ]]
    message-40=HUNGER ]]]]
    message-60=HUNGER ]]]]]]
    message-80=HUNGER ]]]]]]]]
    message-100=HUNGER ]]]]]]]]]]
     
  10. Offline

    fullwall

    As enkryptor said, just change the messages to that hunger indicator. You could even use colour codes to make it colourful.
     
  11. Offline

    enkryptor

    Strange error with the latest build (downloaded today):
    Code:
    SEVERE: Could not load plugins\Gastronomic.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:79)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:117)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:82)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:53)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:171)
            at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:158)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:110)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:209)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Caused by: java.lang.NoSuchMethodException: com.fullwall.Gastronomic.Gastronomic.<init>(org.bukkit.p
    lugin.PluginLoader, org.bukkit.Server, org.bukkit.plugin.PluginDescriptionFile, java.io.File, java.i
    o.File, java.lang.ClassLoader)
            at java.lang.Class.getConstructor0(Unknown Source)
            at java.lang.Class.getConstructor(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:75)
            ... 8 more
     
  12. Offline

    fullwall

    You may have downloaded it while I was uploading. I changed it to fit the newest plugin constructor today. Try downloading the latest build from jenkins.lukegb.com if you haven't already.
     
  13. Offline

    Myrrdin

    What's the difference between the build on jenkins and the build from bamboo? Is the one on jenkins newer?
    I'm having the same problem as him.
     
  14. Offline

    fullwall

    Jenkins is the new build site, replacing bamboo. Yes, it is newer.
     
  15. Offline

    Myrrdin

    Thank you for claryfing. Downloading the latest now.
     
  16. Offline

    ShoTro

    Like when you chat with someone you can display this. Especially useful in cooperative styled servers.

    BTW, hate to be a pest but is the newer version with the constructor fix being posted soon? I saw your thread on the development forum, trying to fix all the problems I have run into since updating yesterday and today.
     
  17. Offline

    fullwall

    It's already up :p. Have to learn with me, that you should always download the latest version before posting. Redownload. It may be already fixed XD.
     
  18. Offline

    ShoTro

    Good to know. I downloaded last night and didn't see any change to the situation.
     
  19. Offline

    enkryptor

    No, it happened just after the latest download.

    I've redownloaded zip file — same result:
    Code:
    20.02.2011 20:52:52 org.bukkit.plugin.SimplePluginManager loadPlugins
    SEVERE: Could not load plugins\Gastronomic.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:79)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:117)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:82)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:53)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:171)
            at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:158)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:110)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:209)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Caused by: java.lang.NoSuchMethodException: com.fullwall.Gastronomic.Gastronomic.<init>(org.bukkit.p
    lugin.PluginLoader, org.bukkit.Server, org.bukkit.plugin.PluginDescriptionFile, java.io.File, java.i
    o.File, java.lang.ClassLoader)
            at java.lang.Class.getConstructor0(Unknown Source)
            at java.lang.Class.getConstructor(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:75)
            ... 8 more
     
  20. Offline

    fullwall

    Well, the error you're getting is definitely from the missing constructor - are you sure that you have build #51 from jenkins.lukegb.com?
    --- merged: Feb 20, 2011 6:10 PM ---
    Just tested - works fine on my computer.
     
  21. Offline

    enkryptor

    It's odd, but I get the same with MonsterTamer:
    Code:
    SEVERE: Could not load plugins\MonsterTamer.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:79)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:117)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:82)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:53)
            at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:193)
            at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:189)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:77)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:171)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:344)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:326)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:232)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Caused by: java.lang.NoSuchMethodException: com.fullwall.MonsterTamer.MonsterTamer.<init>(org.bukkit
    .plugin.PluginLoader, org.bukkit.Server, org.bukkit.plugin.PluginDescriptionFile, java.io.File, java
    .io.File, java.lang.ClassLoader)
            at java.lang.Class.getConstructor0(Unknown Source)
            at java.lang.Class.getConstructor(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:75)
            ... 11 more
    by the way, all the rest works fine:
    Show Spoiler
    Permissions.jar
    LoginMessage.jar
    ChatStamp.jar
    TreeHugger.jar
    ExtendDay.jar
    WorldGuard.jar
    HeroicDeath.jar
    WorldEdit.jar
    Growbie.jar
    iConomy.jar
    iMonster.jar
    otherblocks.jar
    CraftDispenser.jar
    BoundaryKill.jar
    RuneCaster.jar
    PreciousStones.jar
    Tombstone.jar
    SlowHealth.jar
    MCDocs.jar
    ManaAlias.jar
    MultiVerse.jar
    WormholeXTreme.jar
    LWC.jar
    ChestTrap.jar
    Disarm.jar
    SimpleShop.jar
    MonsterTamer.jar


    you mean, this one?.. http://jenkins.lukegb.com/job/dev-CraftBukkit/51/
    --- merged: Feb 20, 2011 8:14 PM ---
    Oh, I see. I've got my craftbukkit.jar from http://bamboo.lukegb.com/browse/BUKKIT-CRAFTBUKKIT
     
  22. Offline

    fullwall

    Use the one from jenkins. It will fix your issue.
     
  23. Offline

    Weetis

    Going to try this plugin for shure, sounds good!
     
  24. I modified the Foodstuffs file to read:
    #Raw Pork
    319=20:8

    And rebooted the server, upon doing so, Raw Pork still only heals 1.5 hearts. No modifications I make to the foodstuffs file seem to have any effect. Is it formatted correctly? I've also tried setting Roast Pork to:

    #Cooked Pork
    320=100:-1.5

    And it still heals 4 hearts.

    What am I doing wrong?
     
  25. Offline

    KCMO_HITMAN

    hello i was hoping to get info on when this will be updated? im running build 432 and i get the stupidly long constructor warning.
     
  26. Offline

    fullwall

    Are you sure you have 1.25? I have removed the constructor...
    Try redownloading from the 1.25 link.
     
  27. Offline

    enkryptor

    It's time to update your minor version, i suppose ^_^
     
  28. Offline

    fullwall

    I don't like to XD. It's such a pain updating links etc. when you make changes so often as I have been doing.
     
  29. While I realize it wasn't aimed at me, I made sure that I have the 1.25 installed, but still no visible difference by changing the settings in the appropriate files. I can neither reduce, increase, or eliminate the number of hearts that are healed by food. Help?
     
  30. Offline

    fullwall

    Can you post your food settings file please?
     
  31. Offline

    KCMO_HITMAN

    thx that worked. did you change it and just leave it as 1.25?
     

Share This Page