[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

    killerbeez

    After I install the addon and type /hunger. It says
    Your current hunger is .
    When I give my default users these within permissions and they try to use /hunger it says they don't have the permission to use that command.
    gastronomic.player.checkhunger
    gastronomic.player.checkfood
    gastronomic.player.hunger
     
  3. Offline

    fullwall

    Redownload please...
     
  4. Offline

    killerbeez

    Sadly I don't have that option, I use multiplay hosting so I have no FTP access.
     
  5. Offline

    fullwall

    Well, I believe that particular error is caused by users not being registered in the plugin (their hunger level) - hence it is reported as "".
     
  6. Offline

    davr

    ...is it really that hard to increase a number? You're a programmer, so I assume you can count to really high numbers, that shouldn't be a problem :p

    I think I've found a pattern to the hunger resetting issue. It remembers my hunger value when I log off/on, but when I restart the server, my hunger resets back to the initial value (I have it at -20 to give a little extra time for people to find food on their first logon)
     
  7. Offline

    Andreas Brisner

    01:01:12 [INFO] [Gastronomic]: Scheduling error. Error occurred in scheduleTask():For input string: "not recorded (!).s". Please report!
     
  8. Offline

    fullwall

    OK - Just uploaded 1.31. Davr, your bug report finally tracked down the issue ;). I say it's hard because I have to update all my files, change the post, etc. It wouldn't be a problem, but to do that for every minor fix is a little much.
     
  9. Hey fullwall! Have a question - did you already change something about the completely deleted inventory after dying from hunger?

    Also, do you intend to save hunger levels so they persist over server resets? (Actually no biggie, i think, cos our server doesnt crash and gets restarted once a day - we start at -100 for new players with hunger cycle +1/600)
     
  10. Offline

    fullwall

    If you get 1.31, all user hunger saving bugs should be fixed ;). I'll look into that other bug now.
     
  11. Cool, just installed! Sry, stupid not to test it before I bugger you! =)
     
  12. Offline

    fullwall

    You might try redownloading now... I disabled my fix for dropping items - maybe bukkit fixed it I guess.
     
  13. Offline

    xlilcasper

    I have a bug going on that when I'm full hearts and eat a pork chop, it restores my hunger and gives me the porkchop back into my hand.
    Plugins:
    Essentials
    Towny
    Worldguard
    WorldEdit
    Falsebook
    DeathTP
    Dwarfcraft
     
  14. Offline

    Andreas Brisner

    Dont know if this has been mentioned before, but why arent all nicks saved to the users file?
    Also seems to me that a /gastronomic reload doesnt actually load the values. I had 65 in hunger, config says 25 for cooked pork, it restored all 65.
     
  15. Offline

    Shenlong

    Would it be possible to have an option so that when you need to eat you wouldn't lose life but instead just slow down like your walking on soul sand (or possibly even slower)? Or (you may already have this idea implemented, I can't remember from the time I tried it out)an option that you could set where people wouldn't die from hunger, but just go down to maybe 1 heart and stay there until they eat?
     
  16. Offline

    fullwall

    xlilcasper: are you in a protected region? Andreas: do you have 1.31? Shenlong: perhaps, but I am busy with other plugins at this time.
     
  17. Offline

    Crowbars82

    Great plugin for adding that extra realism. Cake slices don't appear to work for me, but if I was 'really' hungry, I'd want a chop with some bread anyway ;) Great plugin!
     
  18. Offline

    Chrisbeee

    Would anyone mind helping me install it via teamviewer, I'm a permissions newb and can't figure any of this out. >_< Help please.
     
  19. Offline

    Celtic Minstrel

    This looks interesting. Not sure if I'd actually use it, but I have a couple of questions/suggestions.

    First, it seems logical for food to heal for its intended value, and whatever is left over goes towards your hunger. So, if bread is supposed to heal for 4.0 points, and your health is at 8.0 (16 according to CraftBukkit), then when eating bread you are restored to full health and get 2 points (or some multiple thereof) towards your hunger.

    Second, any chance of incorporating a fix for the bug where eating soup causes you to lose the bowl?

    This question didn't seem to ever get answered. I don't know if the original asker is still here, but I think I know the answer, or a possible answer. If you have mobs disabled in the server.properties file, your health goes up by half a point or something per second, like in the Peaceful mode in single-player.

    I agree with TheYeti that this seems backwards; it would be better to instead have "gastronomic.player.disable" for people who are not susceptible to hunger.
     
  20. Offline

    fullwall

    I'll change to opt-out when bukkit permissions comes out then. Is the soup bowl bug a minecraft bug or a gastronomic bug?
     
  21. Offline

    Celtic Minstrel

    It's a Minecraft SMP bug (works properly in SSP).
     
  22. Offline

    fullwall

    Yeah, I'll do it when I update for PLAYER_INTERACT event.
     
  23. Offline

    Jonathan Bloom

    GastronomicWater seems to go down MUCH faster than Gastronomic does. interval=5000 doesn't seem to increase the time between thirst periods.
     
  24. Offline

    fullwall

    I'll have a look-see.
     
  25. Fullwall, it seems that the hunger values still get resetted when players logged off from the server for a while (even without server reset). (reported by lots of our players, but not proof tested yet. Gimme a hint when you need a proof test).
    A server restarts always sets the values to default.
     
  26. Offline

    fullwall

    OK, I'll look into it... proof tests would be nice.
     
  27. Offline

    xGONExCRAZYx

    I set it so sugar cane fills you up by a small amount, and heals no health. I tried it out and it fills me up, but it doesn't disappear so you can keep right clicking until you are full. *facepalm* Fix that please? Thanks...
     
  28. He cant cos per mc default sugar cane is no consumable.
     
  29. Offline

    Celtic Minstrel

    Um, it is possible. Doesn't matter that it's consumable by default.
     
  30. Offline

    Asharad

    Just downloaded for the first time. It won't launch.

    C:\minecraft server2>java -Xincgc -Xmx1G -jar "c:\minecraft server2\craftbukkit.
    jar" nogui
    21:40:27 [INFO] Starting minecraft server version Beta 1.3
    21:40:27 [INFO] Loading properties
    21:40:27 [INFO] Starting Minecraft server on *:25565
    21:40:27 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-544-
    g6c6c30a-b556jnks (MC: 1.3)
    21:40:27 [INFO] Preparing level "world"
    21:40:27 [INFO] Preparing start region
    21:40:28 [INFO] LWC Loading shared objects
    21:40:28 [INFO] LWC Native library: plugins/LWC/lib/native/Windows/amd64/sql
    itejdbc.dll
    21:40:28 [INFO] [Permissions] version [2.5.3] (Phoenix) was Initialized.
    21:40:28 [INFO] [AntiCreeper] version 1.0 is enabled.
    21:40:28 [INFO] CommandSigns enabled
    21:40:28 [SEVERE] PLAYER_INTERACT loading Gastronomic v1.31 (Is it up to date?)
    java.lang.NoSuchFieldError: PLAYER_INTERACT
    at com.fullwall.Gastronomic.Gastronomic.onEnable(Gastronomic.java:99)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:451)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:217)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:92)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:70)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    21:40:28 [INFO] [iConomy] Logging is currently disabled.
    21:40:28 [INFO] [iConomy] v4.5 (Elektra) loaded.
    21:40:28 [INFO] [iConomy] Developed by: [Nijikokun, Coelho]
    21:40:28 [INFO] LocalShops: iConomy found.
    21:40:28 [INFO] LocalShops: Loading shop Asharad's_Dyes
    21:40:28 [INFO] LocalShops: Loading shop Asharads_Arms
    21:40:28 [INFO] LocalShops: Loading shop Dirt_Collector
    21:40:28 [INFO] LocalShops: Loading shop Fishing_Supplies
    21:40:28 [INFO] LocalShops: Loading shop Glass_Works
    21:40:28 [INFO] LocalShops: Loading shop M&Smaterials
    21:40:28 [INFO] LocalShops: Loading shop Sears
    21:40:28 [INFO] LocalShops: Loading shop Slurpy_Store
    21:40:28 [INFO] LocalShops: Loading shop The_Overstock
    21:40:28 [INFO] LocalShops: Loading shop UncleSams
    21:40:28 [INFO] LocalShops: Loaded 10 shop(s).
    21:40:28 [INFO] LocalShops: version 1.15b is enabled!
    21:40:28 [INFO] LWC Loaded 35 locale strings (0 overrides)
    21:40:30 [INFO] LWC Using Nijikokun's permissions plugin for permissions
    21:40:30 [INFO] [Permissions] version [2.5.3] (Phoenix) loaded
    21:40:30 [INFO] [iConomy] hooked into Permissions.
    21:40:30 [INFO] LocalShops: Attached to Permissions
    21:40:30 [INFO] LWC Loading SQLite
    21:40:30 [INFO] SQLite Using: Native
    21:40:30 [INFO] LWC At version: v2.00
    21:40:30 [INFO] Minecart Mania Admin Controls version 1.01 is enabled!
    21:40:30 [INFO] Minecart Mania Automations version 1.01 is enabled!
    21:40:30 [INFO] Minecart Mania Chest Control version 1.02 is enabled!
    21:40:30 [INFO] Minecart Mania Core version 1.03 is enabled!
    21:40:30 [INFO] Minecart Mania Sign Commands version 1.03b is enabled!
    21:40:30 [INFO] Minecart Mania Spawner version 1.0 is enabled!
    21:40:30 [INFO] Minecart Mania Station version 1.02b is enabled!
    21:40:30 [INFO] [MYWARP]: 13 warps loaded
    21:40:30 [INFO] [MYWARP] Permissions enabled.
    21:40:30 [WARNING] [MYWARP] 'Help' isn't detected. No /help support.
    21:40:30 [INFO] MyWarp 1.10.3 enabled
    21:40:30 [INFO] [SendGift] version 1.0 by lonelydime is enabled!
    21:40:30 [INFO] Done (0.260s)! For help, type "help" or "?"
     
  31. Offline

    Celtic Minstrel

    Update to CraftBukkit 602 or use an older version of Gastronomic.
     

Share This Page