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

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

  1. Offline


    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.

    • User-specified hunger intervals, increments, and damage amounts.
    • Per-item hunger restoration amounts.
    • 'Effects' system allowing very customisable health restoration/damage effects.
    • Permissions support.
    Give gastronomic.admin.* support to trusted players, and gastronomic.player.* permissions to all, or configure permissions manually from the list below.
    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.
    /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!
    v1.3.4 - compatibility, bugfixes.
    Older Versions (open)

    v1.33 - bugfixes, permissions are now opt-out
    • Finally fixed hunger saving (!)
    • Lotsa bugfixes (tm)
    • Incremented version number to reflect amount of bugfixes/new features added to 1.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.
    • Added /gastronomic reload command.
    • Added initial-hunger setting to allow users to start at varying levels of hunger.
    • 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]
    /gastronomicwater (reload)
    /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. Awesomeness! Did a fast test and hunger notifications now show up as expected and the values are saved when I tested it alone on my homeserver. Even after the server restart it flawlessy loaded the values! Thumbs up - I really didnt anticipated the return of Gastronomic so soon!
  3. Offline


    Yeah! Fullwall's back!

    Here's an error for you, btw. On CB 740: 17:47:00 [SEVERE] Nag author: 'fullwall' of 'Gastronomic' about the following: onPlayerJoin has been replaced with a new signature, (PlayerJoinEvent)
  4. Offline


    wake me up when i can finally put this into my server...

  5. Offline


    I'm sick of these nags, I'm not even doing anything to require them :S. @mireka - try the link posted a few posts above. Just waiting to see if there are any more issues before I do an update.
  6. Something is still fubar with the notifications. I had hunger 42 and set the value via command to 12 and got "You're getting hungry." (config is default with interval 500 and hunger increment 1)

    Another test: Ive set a player to hunger -100. When he ate bread his hunger got additional -20 (my foodstuff value for bread) while enforce-limit=true. Seems enforce-limit is not right with negative values, yet. Also Ive set the players value to 1 and he didnt get additional hunger till he relogged to the server. After relogging his value was properly restored and he gained hunger again.
    I set him again to -10 and he still gained hunger. But when he ate bread again the -20 was added again. (enforce-limit overwritten).
    Sry, but I couldnt repeat why hunger didnt rose on my player.
  7. Offline


    Yeah, I changed enforce-limit somewhat due to what you stated earlier (setting players to a negative value to start out with instantly set their hunger to 0 if enforce-limit was set to true). Also, setting player hunger may do weird stuff with the notifications. I'll try to fix that.
  8. add: When players go from negative values to 0 they get the "feel stuffed"-msg. No biggy, i know.
  9. Offline


  10. Not with this latest download: I see
    2011-05-03 14:18:18 [INFO] [Gastronomic]: Scheduling error. Error: null
    2011-05-03 14:18:43 [INFO] [Gastronomic]: Scheduling error. Error: null
    in the console
    Couldnt test yet, but may it be possible that it is related to me cos Ive just disconnected from the server? (not confirmed, yet)
  11. Offline


  12. Offline


    working :)
  13. One player remarked that he does not get hunger notifications at all. I have to remark that Ive added:
    Can that conflict or is that ok to add?

    Also I somehow get damage when I have hunger at -100 and eat something that brings me below -100 (its the value ive set for starvation damage).
    Also, food levels still stack when the value is below 0.

    Another player had hunger on 100, ate and got damage and didnt regain the hearts that are set for the food. (#Bread 297=20:3)

    Same player with hunger value 4 - screen shakes as if he gets damage but he doesnt get damage. But food also doesnt heal.
  14. Offline


    Uhhh... I haven't changed enforce-limit back yet. Not sure what you mean with the starvation damage - what *should* happen? And no, extra messages aren't possible yet :S. I should really add them... when I get time :p.
  15. Ok, tested it myself - it seems that eating damages and heals at the same time.

    Ok, thats really weird... some get damage by eating some not.. if you want to test yourself we are on madrealms.net

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


    Sorry, my client was lagging too much :S.
  17. I have no idea why this happens, but to be sure here are my gastronomics configs:

    Confirmed - i dont get damage when my health if full.

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


  19. Offline


    I really like the concept of this - I just dont know how well it would be taken in by my community... heh
  20. Regarding my experiences its usually a mix of hate and love =). Will test in a few mins, fullwall!

    Tested the last release. Seems no more damage from eating but food stacks on negative hunger levels.

    Edit: Hunger notifications seem to be ok, too. No conflict with /sethunger and notifications detected so far.

    Suggestion: Free configurable hunger notifications! (requested by our players a while ago, cos they tend to oversee the gap between 90-100...)

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


    Yeah... That needs some time (not much, but just enough to put off). I bet you'll find a bug if you try to get to 100 hunger.
  22. Offline


    would it be possible to get this plugin to work per world? i have one world that pure survival that this works perfectly for but my others are just free build and i don't want people to get annoyed at having to go find food to eat or spawn even i guess.
  23. Offline


    Permissions has built in world support. Does Gastronomic work with that?
  24. Offline


    well i use permissions but the hunger damage occurs on all world even if the users have access to the command or not.
  25. Offline


    Ah. I will try to change that then.
  26. Offline


    Now my problem is that it wont increase at all :p

    bb - 770
  27. Offline


    Well seems players are informed of the hunger till it builds up and they starve to death every 10 minutes as the foods don't restore any hunger. Tried various config tweaks with the interval and how much hunger is restored with various food items. Was using the (n) version. Will keep my eyes here for the next version!
  28. Offline


    also, here is official nag, you need to change the player quit event, server told me too :p
  29. Offline


    This plugin act's as a more "reasltic feature" though @fullwall hasn't implmented food values, i.e. rawpork vs cooked.

    As well as it manages a good afk plugin / anti-farm plugin, so that would substitute "NoFarm" plugin. Also it would make users bring food on their expeditions. By default it usually takes 40IRL minutes to die. If you do not eat.

    Could you please update this, and take a break from citizens? :)

    Also, there are still nag errors, when someone quits, over time. Even with your new dropbox link, still minor errors in the long run.

    I respect that you are working diligently on the other plugins, but I would love to see this updated asap!
  30. Offline


    Hi, I like your Plugin, thanks for it. But there is a Bug: If I hold a Bread... in my Hand and open a Door, or click on a Lever, the Hunger is zero, and the Food is still there.
    That destroys the whole sence of the Plugin, because now everybody on the Server runs around with a Lever in his Inventory.
    I don´t know if you know that already (sorry, but I didn´t read 20 pages), but it´s not listed under "known Issues"
    Greets, Flipp
  31. Offline


    Fix for right clicking some items: http://dl.dropbox.com/u/6701575/Gastronomic (n).jar. I need more detailed bug reports if you are experiencing an issue. @Xaostica : I couldn't reproduce your error, unfortunately. @BioRage : use the WIP build? Also, the nag events are not my fault, but bukkit's. I can't make them stop, and the issue is not with my plugin.

Share This Page