[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

    BioRage

    Good! Cause i get 109302193 complains from my users saying that hunger won't reset when they eat, and what not :p
     
  3. Offline

    Jessicadawn

    Seems to work :) Now one last question anyway so that people who are opped can gain hunger and have to eat?
     
  4. Offline

    fullwall

    @Jessicadawn - take away from them the disablehunger permissions.
     
  5. Offline

    Jessicadawn

    Well see my problem is that I have 6 admins, Zenexer, myself, my fiance and 3 others. Only two of us want it gone. We are all opped. and Admins. Do i have to put it under their name or just generally for all opped people?
     
  6. Offline

    fullwall

    Hope you got your issue sorted out. My computer crashed xD.
     
  7. Offline

    BioRage

    Even if I set the permissions node's seem not to work :\ Used to work for me as admin pre 670.

    @fullwall
    This is what I wanted a request from you several decades ago :p But you've been busy, so, is their anyway for you to integrate it together, or make it compatiable?

    http://forums.bukkit.org/threads/fun-poisonfood-because-food-aint-safe-740.16443/
     
  8. Offline

    Jessicadawn

  9. Offline

    fullwall

    I could add a similar feature to my plugin, I guess... it's not hard, it's just finding the time to do it.
     
  10. Offline

    BioRage

    @fullwall Well both of us have been with you since a long time, this was one of my req back on page x :p

    If you could take some time out, that be lovely, cause I love the plugin, and so do my users.

    Cheers!
     
  11. Offline

    fullwall

    I shall have time in a few days.

    Actually... how about I just add another value to the health things. The third value will be the chance that the health restoration will occur (and maybe you can set a message there too).

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

    BioRage

    What do you mean? Health Restoration as in % chance if you eat raw_pork to regenerate % of HP?
     
  13. Offline

    fullwall

    Well, you can currently define a health to be restored when you eat something in the Gastronomic.hunger file.
    EG.
    1=100:6 - restores 100 hunger and 6 health.
    What if I added it so that:
    1=100:6:(%chance to occur:(optional message to display)).
     
  14. Offline

    BioRage

    That would be a good addition!, to toggle on or off, or to replace the old one, your call.

    But defeintely the poision factor needs to be added aswell!, because I simply do not like the idea of raw and cooked having no difference. Though on-top of the poision your % would affect raw / cooked items I assume.

    Also, I had several incidents of user's dying, and not being able to find their items.. even if they reloged, it vanished to a void of unkown...
    -> apparently if you die of hunger, you lose your items permanently, could you confirm?
     
  15. Offline

    fullwall

    Will test. By poison, what do you mean? I could add a data value argument to the health value as well?
     
  16. Offline

    Jessicadawn

    I tHink that players should have to cook the stuff to eat and if they eat raw foodit will damage them makes players work
     
    BioRage likes this.
  17. Offline

    BioRage

    Well simply add a configurable section,
    Example of what I mean by poison:
    Since there is no way now, to configure how much raw or cooked items to heal your hunger %, (100 hunger any food)
    - We simply add "poison"
    - Set a percentage chance to a certain item: example raw_pork has a 85% chance to get poisoned if you simply eat it.
    - Apple has a 5% chance (in terms of a "spoiled apple")

    - If poison is true "You have been poisoned!" and than you take "damage by xx", or Damage over time (Kind of how fire works now, when entity is lit)
    - Possibly an antidote? (Bucket of water?)
     
  18. Offline

    fullwall

    BioRage likes this.
  19. Offline

    BioRage

    Sure anything to add more to the feel of "eating"

    Thanks for the fix, as well as I would like your opinions on stuff too.
     
  20. Fullwall, could you fix the item-disapearing-bug that ive posted on the previous page?
     
  21. Offline

    BioRage

    Scroll up he posted a new link.
     
  22. Offline

    Phealoon

    So is Gastronomic(n) the latest version? If so, why is 1.33 still set as latest version.

    -Phea
     
  23. Offline

    fullwall

    Because there are still problems with Gastronomic (n), so it's being worked on, so it's not a full release.
     
  24. Offline

    Flipp

    Thank you very much for fixing it! It works, and the Farmers now can earn money again! :) If I find another Item, I will tell you.
    Greets, Flipp
     
  25. Offline

    fullwall

  26. Offline

    BioRage

  27. Offline

    Jessicadawn

    Now is it ALL pork/fish or a % chance?


    Also couple complaints from my players: Get hungry to fast and bread doesnt remove hunger
     
  28. Offline

    BioRage

    What do you mean by this?
    You can set Any food for a base %, ie 319=25%, which mean's it'll heal 25% of what your hunger is at.. 25% of 50% = XYZ, and so forth I do belive.



    @fullwall

    Haven't tested it yet, haven't had time, is it %base for poison, or straight affliction if devoured?

    Also, apparently they can't eat in protected area's? I assume with WG, <-- this I don't know about, just something I thought I should tell you.

    @fullwall

    Tested, runs great so far. Thank you for this. Any bug's I'll let you know.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 7, 2016
  29. Yep, and those three letters is all I need to know.
     
  30. Offline

    Jessicadawn

    Another problem - they eat a cookie and hunger says 2900.

    @BioRage I dont know how to do that :p Im a noob =D
     
  31. Offline

    BioRage


    319=-5:1:poisoned from eating +item+:3:Still poisoned from eating +item+.
    349=-5:1:poisoned from eating +item+:3:Still poisoned from eating +item+.

    What I have currently in my config, if you just updated the .jar, you need to Copy and paste the gastronmic.effects into your old existing one, it create's a file, but doesn't have the fancy README thingy before the actually commands.

    Copy and paste what I did there.

    @fullwall

    My user's say
    "When they hit 5 hunger: It says "Your stuffed, and you cannot eat another bite.. .something like that""

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

Share This Page