[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

    GROMkill

    I installed the mod and the kept the default configuration, but players don't lose hunger when they eat cake. What's wrong?
     
  3. Offline

    fullwall

    @Silarn - no, it's server ticks. @Nytemare - yes.
     
  4. Fullwall, when the hunger value is below 0 eating still further lowers the value.

    Edit: Fullwall, Ive seen youve changed the syntax of the foodstuff file - is there still a way to edit the hearts a food heals?
     
  5. Offline

    65Wolf

    Just tried this plugin (v1.3.4) with the CB 766. Loads up in server fine without errors. However, the foodstuffs and effects files in plugins/gastronomic/ both come up empty. All they have in them is:
    #Minecraft Properties File
    #Sat May 14 19:00:04 CDT 2011
    I see no information on here as to what, if anything I am to add to these files.
    In game, eating has no effect on hunger. The command /food [id] causes some internal error according to in-game message. The command /food list only shows:
    The Gastronomic Food Hunger List
    --------------------------------------------
    --------------------------------------------
    I understand these should be configurable, but where are the instructions for that?
    Thanks in advance for the help!
    Just found this error happen now on the server:
    [SEVERE] null
    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:85)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:278)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:682)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:645)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:639)
    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:372)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
    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
     
  6. Offline

    avalondrey

    my hunger 650 000 000 after night
     
  7. Offline

    blindsarcasm

    So...how do admins with
    - '*'
    get hungry? They arn't gods.
     
  8. Offline

    fullwall

    @blindsarcasm - you use '-gastronomic.disablehunger'
    @avalondrey - you have to provide more information.
    @65Wolf - most likely, you haven't configured anything in Gastronomic.foodstuffs.
    @Zothen - use the effects file.
     
  9. Offline

    serendipetey

    To enable the admin group to have hunger?
     
  10. Offline

    fullwall

  11. Offline

    blindsarcasm

    Code:
    superadmin:
            default: false
            info:
                prefix: '&6[SuperAdmin]'
                suffix: ''
                build: true
                rank: 7
            inheritance: null
            permissions:
            - '*'
            - 'gastronomic.disablehunger'
    
    looks like that! Not working. Hunger staying at 0
     
  12. Offline

    fullwall

    - '-gastronomic.disablehunger'
    Note the '-' *inside* the gastronomic.disablehunger quotations.
     
  13. Offline

    blindsarcasm

    oh nuts. Sorry. Wow, does that work for every command, you just put a -...interesting...

    I thought that putting 2 commands put cancel out so i put the enable node. Heh.
     
  14. Offline

    Dangirdas

    Could you add so that we can get poisoned of food and water?
     
  15. Offline

    fullwall

    @Dangirdas - check out the effects file.
     
  16. Offline

    Dangirdas

    Oh and i found a bug.
    This things pops up even though i haven't eaten. ''I feel stuffed''
     
  17. Offline

    Tealk

    2011-05-15 15:50:29 [SEVERE] Nag author: 'fullwall' of 'Gastronomic' about the following: onPlayerJoin has been replaced with a new signature, (PlayerJoinEvent)
     
  18. Offline

    Dangirdas

    Yeah and that happens to my console to D:
     
  19. Offline

    fullwall

    @Tealk - meaningless message from Bukkit. @Dangirdas - it triggers when you're on 0 hunger.
     
  20. Offline

    Dangirdas

    Oh thanks for the fast reply! :D

    P.S
    When will you update thirst?
     
  21. Offline

    fullwall

    @Dangirdas - I'm leaning more towards merging the two. Can you think of the best way to do this?
     
  22. Offline

    Dangirdas

    Sorry, but i have no idea how to code D:
    I wish i did..
     
  23. Offline

    fullwall

    I mean conceptually, how would you merge them. Just, what specifically is different from each version, what you want from thirst (is it just the thirst messages?) etc.
     
  24. Offline

    BioRage

  25. Offline

    fullwall

    Haven't had the chance as of yet. I'll do it tomorrow.
     
  26. Offline

    BioRage

    Thank you. [redmushroom]
     
  27. Offline

    VGLink

    Could you implent the option to set % chance to get poisened?
     
  28. Offline

    fullwall

    @VGLink - it's in already?
    @BioRage -redownload 1.3.4 and the property is in.
     
  29. Offline

    VGLink

    How to set it up? Just saw the entry of RawPorkMeat.

    #Example - poisoned raw pork. Damages you 3 times for 2.5 hearts every 5 ticks.
    319=-5:1:poisoned from eating +item+:3:Still poisoned from eating +item+.

    Where is there the % chance?
     
  30. Offline

    fullwall

    Just realised I forgot to add it... I'll do it when I get the chance (it's pretty easy).
     
  31. Offline

    VGLink

    Kay thx. I know I had it read before that you want implent it but i was wondering how to set it up ;D
     

Share This Page