[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

    axebyte

    Ill have to play with the poison idea for raw foods..
    But i have recently noticed that Hunger is not effecting me <-- op/ allowed commands *
    works fine for everyone else turning it on/off thru the /gastonomic command tells me it changes but under either one my hunger never moves beyond 0. Even after setting it manually to 5 , It never moves.

    I think the issue lays in the gastronomic.disablehunger node. as the * automactially give me access to it and unless i go in and manually plug in every single node from every plugin and remove the * this is active and prevents me from being affected.

    Its not a major problem but my server Admins and myself including are still active players and obey the rules of ther sever. Never had an issue with this until recently (was waiting for the 1.5 updates)

    any suggestions or help on how to exclude the gastronomic.disablehunger command while using .* would be helpful.
     
  3. Offline

    Fokson

    Axebyte, I think it's been mentioned before that you set the permission node '-gastronomic.disablehunger' (note the - inside the quotes) to override the * permissions making admins immune to hunger. =)

    Fullwall, when you add the % chance for food effects, could you check to make sure the whole 'repeating' part of it is working fine? Using the example you made, I get damaged once, am told the food poisoned me, and then that's it - no lasting effect.

    Other bugs I wanted to point out are that the 100 hunger message doesn't show for whatever reason, /gastronomic reload doesn't seem to work, and you can't completely disable certain messages from showing by removing their string from the config - they still produce a blank line in the chat. (For example, I changed the message-health-restore= to a blank string so the message wouldn't show every time they regenerated a little health, but it spams blank lines anyway. Also, +healthr+ shows up as-is, not as the numerical value.

    A feature I'd like to see if you can be bothered to implement them would be non-integer hunger increment values (because with hunger capped at 100, that makes it so I have to have the interval obscenely high so that the players don't get starved too quickly, but with the interval so high the health regen is sort of moot) or a configurable max-hunger, and then the messages will show at 20%, 40%, etc rather than the hunger number itself. I would also like it if you could have a true/false for food items restore health, because again, health regen when on a full stomach sort of becomes pointless when you've already healed yourself from eating in the first place.

    Other than the aforementioned, this is a very genius plugin that adds a lot of depth to the game, and I'd like to applaud you for making it a reality! =)
     
  4. Offline

    Silverdro

  5. Offline

    axebyte

    Ahh thank you!! it was probably mentioned before, but i was lazy to look thru 25 pages of post the day i posted. :D
    thanks though.
     
  6. Offline

    Fokson

    No problem! =) I didn't know about that until I read it here as well, so it made me happy XD
     
  7. Offline

    Nytemare3701

    Requests (in order of personal importance):
    • ability to negate healing from food (Already threw this one at you, but worth another poke)
    • Use the "Drunk" effects from Mudder's Milk as an effect from eating red mushrooms. (optional of course)
    • Take poison one step further. Make fresh food spoil automatically after a certain amount of time. (I suppose you would have to delete food globally, with a different interval for each food, so bread spoils slower than stew etc)
    • Configurable boosts from eating certain foods. +X movespeed, +X damage, +X armor, etc (Pipe dream I know)

    *cheers for fullwall*

    EDIT:

    Thirst plugin requests:

    • Thirst goes up faster while on sand. (this has the added bonus of making swimming in the ocean dehydrate you)
    • Thirst causes the red-mushroom effects at severe levels
     
  8. Offline

    Castilan

    Hi,
    people on my server keep starving, also when eating different stuff the hunger value doesn't change. i tested it and the hunger value changed to 0 after eating 16 Breads and 12 Cooked Pork. before this amount of eating i didn't get any change and the hunger value keeps growing.
     
  9. Offline

    rhadiem

    Could you explain more clearly how to set up the food for restoring hunger? Or perhaps in a future version give default values that admins can tweak, instead of starting from scratch? I'm guessing this is why my people are starving, but haven't yet found how to set it up, what the syntax is for that file, etc. 25 pages is a lot to wade through. Thanks for the mod.
     
  10. Offline

    chernobyl360

    ok Thanks To Fullwall I know now why i was messing up. i updated it
     
    kahlilnc likes this.
  11. Offline

    BioRage

    Great plugin, keep it up @fullwall

    Wait, why is this now unsupported?
     
  12. Offline

    fullwall

    Check my profile.
     
  13. Gentlebeings, as fullwall announced here (http://forums.bukkit.org/threads/end-of-the-road.17595/) he has stopped coding plugins:
    So please, is somebody there to take over and carry on with Gastronomics? We really need that extra survival touch..! :rolleyes:
     
  14. Offline

    chernobyl360

  15. Offline

    Giuseppe

    Code:
    org.bukkit.command.CommandException: Unhandled exception executing command 'food' in plugin Gastronomic v1.3.4
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:127)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:279)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:699)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:666)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:660)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:377)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:292)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NullPointerException
            at com.fullwall.Gastronomic.Food.FoodManager.get(FoodManager.java:62)
            at com.fullwall.Gastronomic.Gastronomic.listFood(Gastronomic.java:204)
            at com.fullwall.Gastronomic.Gastronomic.onCommand(Gastronomic.java:129)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    >
    
     
  16. Offline

    chrisse94

    hey im new to the plugins and bukkit and i got the hunger mod to work but when i eat bread or pork or soup it dosent get to hunger 0 it instead stays on 100 and no message is recived :( can you help me with this problem...?
     
  17. Offline

    MeinerHosen

    Posting here as a reminder :p

    Great hardcore plugin
     
  18. Offline

    alexz1997

    Doesnt work for me if i eat somethink i even get more hunger . help me. can you say me what i should write
    in gastronomic.foodstuff and gastronomic.effect . Please awnser
     
  19. Offline

    axebyte

    Seems with the newer Worldguard and Worldedit, protected lands seem to stop you from being able to eat. Unless its your own land. So walking thru a large city and suddenly being hungry can = death since you cant eat. I am not sure if there is anyway you can over write the protection on right click to eat (i think the protection sees the click as an attempt to place something) Any way to make it left click to eat, or something.
    Love this plugin in and been using it since it first came out. But not being able to eat in non owned protected area can be a rel issue.
    unsupported!!! NOOO someone has to pick this up, one of the best plugins out there!
     
  20. Offline

    jtlcr777

    I hope someone picks this one up. If anyone does, theres a glitch where if you right click a hatch with food, you will reduce your hunger without eating the food item.
     
  21. Offline

    alexz1997

    oh sorry works all. great my mistake was that i download the 1.6 version and i only had 1.5 but now i updated my server awesome plug
     
  22. Offline

    Spycoclown

    Is it over with this Plugin?
     
  23. Offline

    alta189

    Some one has updated it
     
  24. Offline

    halo pro 117

    This Plugin still works as of July 9th, 2011.
     
  25. Offline

    Merkel

    nice work... but it's a real pity that they are no slat for the hunger level. Maybe a update idear? ;)
     

Share This Page