[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. Offline



    GastronomicWater fail...

    I lose heart when i'm full in thirst...

    Please, can you repair that?

    And I need my players need bowl to drink water, that possible?

    (Sorry for my bad english, i'm a only 12 old french young's)
  3. Offline

    Mr. Cheezit

    Hi! Well, I'm having a bit of a problem. On my server, we need Hunger and Thirst, but your plugin (sadly) does not work. I am using permissions, and I have access to all commands, others just /hunger and /thirst. But, only the non-op person's hunger and thirst goes up... I tried using the /sethunger command and set my hunger to 100 and see if my health would go down but it does not. D: Please help!
  4. Offline


    @anymol: GastronomicWater is no longer supported for the moment. Mr. Cheezit: please read further on permissions. You need to take away the gastronomic.disablehunger permission.
  5. Offline


    @Mr. Cheezit: u have admin permissions '*', so u automaticly have:

    try giving yourself this permission: - '-gastronomic.disablehunger'

    about the nag error:
    Show Spoiler
    > 13:27:53 [SEVERE] Nag author: 'fullwall' of 'GastronomicWater' about the following: onPlayerQuit has been replaced with a new signature, (PlayerQuitEvent)
    > 13:27:53 [SEVERE] Nag author: 'fullwall' of 'Gastronomic' about the following: onPlayerQuit has been replaced with a new signature, (PlayerQuitEvent)

    it only occurs with me as Admin (Permissions 2.7, with '*' permission). Maybe it have something to do with the disablehunger permission?
  6. Offline


    @Taranis01 - it will occur when a player leaves. It's bukkit's fault, not mine, the nag is annoying, but hopefully bearable until they take the old away.
  7. Offline


    what i wanted to say was: it only occurs when a player with Adminrights (by permissions, not by ops.txt) leaves.
    i didnt occured when i had memberrights. so of course, thats really bearable ;)

    and thank you for your great plugin :)
  8. Offline


    You can do if the admin player's do a command, he can desactive Gastronomic for her or actived it, please?
  9. Offline


    @anymol, perhaps in a future update. I want to get it stable first though.
  10. Offline


    Okay, thank's, I need it, and one more, you will get GastronomicWater supported in a future update?
  11. Offline


    @anymol - we will see. I want to merge it with gastronomic. Can you not give permissions to disable hunger in the meantime?
  12. Offline


    I apologize, most of the experience was with players and waiting for me in the afternoon after the morning rush. One of my ops was present and informed me of the starving issues which I suspect was more like 20 minutes, but the main complaint from other users was the various foods not reducing hunger. (naturally the variable hunger timing can be changed in the config) I'll make sure to get you more information next time around and do what I can to help you out.

    Much thanks for this, the things I've noticed you doing for bukkit, and citizens. You and the others making this kind of effort are no doubt taking SMP to the next level way ahead of the official "game release" curve.
  13. Offline


  14. Offline


    Yes I can didn't give the permissions... But I need to enter the other permissions of my other plugins, and i have a lot...
  15. Offline


    I really like this plugin in but I seem to be having a problem:
    18:18:23 [SEVERE] Nag author: 'fullwall' of 'Gastronomic' about the following: onPlayerQuit has been replaced with a new signature, (PlayerQuitEvent)
    18:18:23 [SEVERE] Nag author: 'fullwall' of 'GastronomicWater' about the following: onPlayerQuit has been replaced with a new signature, (PlayerQuitEvent)
    What does this mean?​
    Thing is, it doesn't really affect anyone, except me.​
    I think.​
    You see, My hunger is never calculated (neither is my thirst), but it happens to be working fine for my other server patrons. Could I have some help, please?​
    Also, sorry if this's been answered before, but I scrolled through the other pages, and didn't find this. :/​
  16. Offline


    2011-05-05 16:36:06 [INFO] Connection reset
    2011-05-05 16:36:06 [INFO] Phealoon lost connection: disconnect.quitting
    2011-05-05 16:36:06 [SEVERE] Could not pass event PLAYER_QUIT to Gastronomic
        at java.util.Hashtable.put(Unknown Source)
        at java.util.Properties.setProperty(Unknown Source)
        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:212)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
        at net.minecraft.server.ServerConfigurationManager.disconnect(ServerConfigurationManager.java:115)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:576)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:199)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    I am getting this error now for some reason.

  17. Offline


    Well here's a curveball for ya, with the latest (n) version it seems if a player right clicks a chest/door/sign/craft bench/etc... with any item, food or otherwise, it gets eaten. No error messages or obvious signs of why as far as I can see in the console. As for hunger, it seems to be working perfect. The sethunger amount can be restored with food and time does incur hunger that can also be restored with food. Diamond Pickaxes however, do not restore hunger. :D

    (this pops up but I think it's already been mentioned above)
    [SEVERE] Nag author: 'fullwall' of 'Gastronomic' about the following: onPlayerJoin has been replaced with a new signature, (PlayerJoinEvent)

    (and this happens) -
    21:29:21 [INFO] [Gastronomic]: Scheduling error. Error incoming.
    21:29:21 [SEVERE] java.lang.NullPointerException
    21:29:21 [SEVERE]     at com.fullwall.Gastronomic.PlayerHunger.updateHunger(PlayerHunger.java:52)
    21:29:21 [SEVERE]     at com.fullwall.Gastronomic.Gastronomic$1.run(Gastronomic.java:403)
    21:29:21 [SEVERE]     at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:128)
    21:29:21 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:358)
    21:29:21 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    21:29:21 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
  18. Offline


    hey permissions for some reason dosent work on my computer and even though it be cool to have everyone be allowed to change from gastronomic and non cause my server's difficulty is hard and this is like making a veteran/insane mod could you set the default without permissions to only OPs or tell me how to make it so?
  19. Offline


  20. Offline


  21. Offline


    Hi, what about an update for bukkit 740?
  22. Offline


    So players stopped getting the increase of hunger by eating now when they eat nothing happens. They start to eventually lose health...

    bb - 760
  23. Seems there is a serious bug: When I right-click a door or a chest the item I had in my hand vanishes. I thought its related to gastronomics and towny protected land but it also happens outside of protected land. (your last version, btw)

    Confirmed: Gastronomics uninstalled and bug is gone!
  24. Am I missing something? Did you start over? If you did, would you mind adding that to the first post? I never knew you were back.
  25. The new version is WIP and if you used a bit of your precious, precious time you would have seen that the DL link is posted... 4 posts above? Advantage...?
  26. Offline


  27. Offline

    Rando Paas

    Looking forward to 740 release.
  28. Offline


  29. Offline


    thank :)
  30. Offline


  31. Offline


    @BioRage - it's been testing for the last week xD.

Share This Page