[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

    Silverdro

    Hi !
    Thanks a lot for this awesome plugin =D

    But i have a problem:
    I use gastronomic with worldedit/worlguard/permissions and in an protected area or when a group can't build, this same group can't eat for recovering hunger, why ? =(

    Thanks.
     
  3. Offline

    fullwall

    @BioRage - that's configurable in the settings file ?
    @Silverdro - will change that to be a setting.
     
  4. Offline

    BioRage

    Doh.
     
  5. Offline

    G1R Productions

    22:08:38 [SEVERE] Could not pass event PLAYER_QUIT to Gastronomic
    java.lang.NullPointerException
    at java.util.Hashtable.put(Hashtable.java:394)
    at java.util.Properties.setProperty(Properties.java:143)
    at com.fullwall.Gastronomic.PlayerHunger.savePlayerHunger(PlayerHunger.java:232)
    at com.fullwall.Gastronomic.Listener.onPlayerQuit(Listener.java:245)
    at org.bukkit.plugin.java.JavaPluginLoader$2.execute(JavaPluginLoader.java:238)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
    at net.minecraft.server.ServerConfigurationManager.disconnect(ServerConfigurationManager.java:115)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:581)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:200)
    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:372)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)

    22:08:38 [SEVERE] Could not pass event PLAYER_QUIT to GastronomicWater
    java.lang.NullPointerException
    at java.util.Hashtable.put(Hashtable.java:394)
    at java.util.Properties.setProperty(Properties.java:143)
    at com.fullwall.GastronomicWater.PlayerThirst.savePlayerThirst(PlayerThirst.java:244)
    at com.fullwall.GastronomicWater.Listener.onPlayerQuit(Listener.java:288)
    at org.bukkit.plugin.java.JavaPluginLoader$2.execute(JavaPluginLoader.java:238)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
    at net.minecraft.server.ServerConfigurationManager.disconnect(ServerConfigurationManager.java:115)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:581)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:200)
    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:372)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    >
     
  6. Offline

    fullwall

    You should be using the WIP version.
     
  7. Offline

    BioRage

    Apparently they my users can;t eat in protected regions? World guard?

    Any ideas? :\
     
  8. Offline

    Silverdro

    Like me, in protected regions (player can't build), they can't restore hunger.
     
  9. Offline

    JSMinecraft

    Hey, I loved the concept of this plugin. I also have a bunch of other plugins from you, so I know your work.
    Although, I'm such a hurry, I can say little about the greatness about this plugin, but I can only get straight to the reason of why i am here.
    Is this plugin compatible with 766? I know it may seem stupid but on the Title it says 670 but people are still commenting on it even today, so... I'm not sure. Either way Im running on 766 craftb and the plugin kicked a few of my players.
    is there anything im doing wrong?
     
  10. Offline

    PhotonLance

    plz fix bug
    When you open the door or turn the lever is swallowed up by the famine if the hand of food
     
  11. Offline

    Xaostica

    Hey fullwall, the test version may not be restoring health with bukkit 766 after hearing some player reports. On the other hand, it works fine for the ops. Oh, I think the foods get removed when clicking the chest/buttons/and whatnot but hadn't heard about that happening till the server went 766 so unsure if that happened with the gastro test and #740.

    Anything I can do to help let me know... Checking server logs and nothing but nothing seems to be acing up short of the usual onquit event. (will double check the food file incase I borked it somewhere)

    *Hey Photon, if you are using bukkit 740 look a few pages up and grab the gastronomic (n) file, that should correct the chest/door/button eating item bug. (if it's the same one)
     
  12. Offline

    fullwall

  13. Offline

    Jessicadawn

    PROBLEM!

    Its with 2 plugins. Yours and tombstone. When the people who have access to tombstone die their items disappear. Dont know if this is your guys end to fix it or tombstone. I am posting on tombstone too.
     
  14. Offline

    fullwall

    I don't think it's this plugin, since I changed to a better way of dealing damage (which should trigger all normal events).
     
  15. I have a very strange "bug" with this version. With essentials Groupmanager I have a Guest group that has mostly no permissions and a member group, which is the default group for "whitelisted" players. Hunger (-gastronomic.player.checkfood and - gastronomic.player.checkhunger) was only enable on every group from member and later. Today Ive noticed that my guests where starving. I had to add disable hunger to the guests and remove disable from the members so it worked as expected.
    Im not sure, but it seems that hunger is also calculated for our guests and I really liked it much more as it was before when hunger was just initialiszed and enabled for our members group.
     
  16. Offline

    fullwall

    Yeah, there are some who like it as a disable, and some as an enable :S. Maybe I should change it back?
     
  17. Offline

    Dangirdas

    Damn bro!
    When will come to the 766 version? D:
     
  18. Offline

    fullwall

  19. Offline

    Dangirdas

    Last edited by a moderator: May 7, 2016
  20. Offline

    fullwall

    Uh... no. Sorry about that :/
     
  21. Offline

    Dangirdas

    FUUUUU

    Anyway can you please update the name of this topic? Because it stands its for 670..
     
  22. Offline

    fullwall

    OK, I will soon.
     
    Dangirdas likes this.
  23. Offline

    BioRage

    Any theory on why user's who aren't part of a specfic WG region can't eat inside it?
     
  24. Offline

    fullwall

    Because I made it that way. I will make it configurable soon.
     
  25. Offline

    CJB

  26. Offline

    Jessicadawn

    Hey dear,

    Could you teach me to make it so I can make raw fish poison too. I am not good with this stuff =/
     
  27. Offline

    Xaostica

    Just want to pop in and say that 1.3.4 is great! So glad you brought this puppy up to date, and thanks again!
     
  28. Offline

    Gaugol

    I've just a problem. I'm admin on my server whitout godmod and I'm never hungry...
    Can anyone help me ?
     
  29. Offline

    GROMkill

    There is a permission that disables the hunger. It's like gastronomic.disablehunger or something like that. If your permissions are set up for your admin group as '*', it is giving you this permission and thus disabling hunger for you. Add '- gastonomic.disablehunger' after the '*' permission, effectively giving you access to all of the permissions except the disable hunger. Don't forget that minus sign, that means 'except'!
     
  30. Offline

    Silarn

    I'm not sure the new effects are working 100%. The first 'tick' of the event definitely works, however I do not seem to see any follow-up ticks. Also, I think your config help is misleading? I think when the delay is set to 1, that's 1 tick for Gastronomic, not for the server? (So if you had it set to 2000 in the main config, it would be 2000 for the effect. 4000 for 2, etc.) But the writeup in the .effects says server ticks.
     
  31. Offline

    Nytemare3701

    @fullwall Did you fix the death by negative healing issue?
     

Share This Page