[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

    Asharad

    perfect thanks
     
  3. Offline

    Celtic Minstrel

    Uh, sorry, I said 560 when actually I meant 602. <_<
     
  4. Hm, seems Ive updated to the most recent version and suddenly my players dont have access to gastronomic.player.hunger or gastronomic.player.* via Groupmanager + FakePermissions with CB531...
    Did you change anything that broke it?
     
  5. Offline

    fullwall

    It's CB600+ now.
     
  6. Well, that was a bit too rushed, imo! Permissions is not yet on 602 nor is GroupManager..
    Edit: Oh, seems permissions is already on 602, so Im just fucked up cos I use GM... =/
     
  7. Offline

    fullwall

    Sorry :(. I guess you should wait for bukkit permissions... don't really want to get involved in the permissions mess.
     
  8. Offline

    Dangirdas

    Can you please update the gastronomicwater?
    The thirst plugin?
    Since the 602 i have been getting an error each time players drink on my server.
    Can you also add that you can choose if that plugin can be enabled for some groups and not like with the hunger plugin?
    I hope you fix this soon! I love all your plugins by the way!
     
  9. Offline

    Yimmeryams

    Hi. I'm running my server with Gastronomic 1.31 (currently latest) and Bukkit 599. I'm having a problem where SOMETIMES when I eat food, my hunger counter will not go down. My health restores from eating, but it just doesn't register (and soon I lose health from being hungry 100). If I wait a few seconds and try eating again, it works and resets my hunger just fine.

    I'm wondering if this is a problem on my end or a new/old bug that isn't on the list, and if it can be fixed. If you need my config settings let me know.
     
  10. Offline

    fullwall

    Dangirdas: please post the error on pastebin. Not sure about what you mean with your other suggestion though :S. Yimmeryams - any errors on the server?
     
  11. Offline

    Celtic Minstrel

    I think he's requesting a feature that's already present (making some groups immune to hunger).
     
  12. Offline

    Yimmeryams

    No errors. I'm going to start with a clean log and try to duplicate the issue just to be sure. The log I have right now has everything since I made the server.

    Give me 10 minutes-ish.
     
  13. Offline

    Dangirdas

    You can chose what group that can have the hunger enabled. ''gastronomic.player.hunger''
    Can you also add that to the thirst plugin? So can you try to add like this
    ''gastronomic.player.thirst''
     
  14. Offline

    Yimmeryams

    I figured out the issue. I'm attaching my log so you can see that I had no errors, just to be official.

    What's happening is... when you have your crosshair over a block, as if you could hit it, mine it, or whatever, and you right click to eat your food, it doesn't work. However, if you just have your crosshair in the blank air targeting nothing, it works fine.
     

    Attached Files:

  15. Offline

    Yimmeryams

    I removed all my other plugins and ran ONLY Gastronomic. The issue is still there. I'm going to try running bukkit 602.
     
  16. Offline

    Yimmeryams

    I tried 602 and 605. The issue persists.

    Also, the "message-stuffed" message isn't displaying. It just repeats the normal "message-eat" even when I hit/eat at 0 hunger. I'm not sure if this is a config issue or a bug, but I thought I'd let you know/ask for help.
     
  17. Offline

    fullwall

    Redownload... both issues fixed (I think).
     
  18. Offline

    skulper34

    Can you restore hunger with cookies?
     
  19. Offline

    fullwall

    Yeah, should be able to. Just add the item ID.
     
  20. Offline

    Dangirdas

    I still get allot of letters when people drink D:
     
  21. Offline

    Cehel

    Gastronomic works with CB617 but there are many messages reporting bugs. I wonder if it is because of the update or if there is some setting i did not well.
     
  22. Offline

    Dangirdas

    Yes there are allot of error messages while peple drink the water, but for some weird reason it works.
    It's only so anoying seeing the console spamming each time people needs to drink.
     
  23. Offline

    Yimmeryams

    Fantastic fix. Thank you.

    On disconnecting I got an error message:

    [SEVERE] Nag author: 'fullwall' of 'Gastronomic' about the following: onPlayerQuit has been replaced with a new signature, <PlayerQuitEvent>

    I'm guessing this won't break anything but saving hunger on players disconnecting.

    EDIT: It still saves hunger, so I'm not really sure what it's about. Perhaps both are still in, but the old one will be removed later.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 7, 2016
  24. Offline

    Celtic Minstrel

    It doesn't break anything... yet. I think.
     
  25. Offline

    axebyte

    need an update on this for 621jnk+ has all kinda funky things going on.

     
  26. Offline

    skulper34

    Sometimes when the player eats a food it wont lower hunger and
    yeah all that junk pops up in the server /\.
     
  27. Offline

    Yimmeryams

    Download using the "Direct link to latest: here" instead of 1.31. 1.31 isn't up to date. The new version fixes the bug skulper34 is having.

    I'm using 617 and it works except for the error message. I'm guessing the error message I got was warning about what would happen in build 621+.

    EDIT: I'm running 621 and I didn't get any errors on start. Just the same one I already posted above.

    Both of your issues can be solved by downloading the newest version (NOT 1.31).

    ANOTHER EDIT: I was mistaken about the error messages. After running the server for a bit, those errors popped up. I can't confirm what they did, though, and the hunger on my end seemed to work fine.

    For clarification, health restores fine except when right clicking on a bed with food in hand (which is a client bug I think) and hunger restores fine in all cases I tested.
     
  28. Offline

    Dangirdas

    'these are just like the error's i have gotten. They are really annoying and only spams up the console D:
     
  29. Offline

    skulper34

    For some reason its affects bread/porkchop. If you have a lot in your inventory it just disappeared and yes im got the updated one.
     
  30. Offline

    Tobei

    affects apples and cooked pork too.
     
  31. Offline

    Drageer

    I'm getting all that junk spammed all over as well.
    It seems Gastronomic works fine though
    Here's the pastie link of the re-occuring message:http://pastie.org/1749476

    Gastronomic Water on the other hand does not seem to work when i right click on the still or moving water unless i have something like a sapling in my hand [I actually drank water by placing a sapling down where water was]. I find this very frustrating and would appreciate it if you could fix it. [please? :D]
    Here's the pastie for the Gastronomic Water: http://pastie.org/1749472

    --------------------------------------------------------------------------------------
    Edit: On Craftbukkit RB 617
     

Share This Page