[MECH] Tiredman v0.8.1 [bukkit-1.4.7-R1.0]

Discussion in 'Inactive/Unsupported Plugins' started by Duendek86, Jan 22, 2011.

  1. Offline

    Duendek86

    ------------------------------------------------------------------------------------------------------------------------------------
    TiredMan REBORN!
    Now in bukkitdev ready for 1.4.7​

    ------------------------------------------------------------------------------------------------------------------------------------
    TiredMan.jar - TiredMan:
    Version: v 0.8.1

    Changelog

    After a big break I want to thank to w4rgo [developer of FireLord plugin] by join this project and do a complete clean of the code and fix it to work with new versions of bukkit!

    If you are tired of seeing players across oceans without using boats this is your plugin, a few seconds in deep water and see how your players lose their energy and convulsing trying to get to dry land to die in the attempt ... The next time they used a boat ;)

    And now the players are going to tire out of the water and have to eat to keep his life becouse they will lose his life little by little depending on his activity:
    The monitored activities are mining, building, jumping and walking, in descending order of fatigue produced.

    To install just unzip the tiredman.zip file into your plugin folder and configure (if you like) your tiredman.txt file into tiredman folder.

    Now with permissions plugin support! Ifpermission plugin is not installed only your ops players would use admin commands, info commands would be used by any user.
    Now walk over dir, grass, sand or gravel get you tired faster than walk over other block types!

    Basic commands:
    • "/tiredman" or "/tm": (tiredman.info) Shows config values of tiredman.
    • "/tiredman info": (tiredman.info) Shows your energy level.
    • "/tiredman excluded": (tiredman.admin) Shows users excluded from tiredman effects.
    Sample permissions config file:

    Code:
    groups:
        Invitados:
            default: true
            info:
                prefix: '&f'
                suffix: '&7'
                build: false
            inheritance:
            permissions:
                - 'general.spawn'
        Vips:
            default: false
            info:
                prefix: '&d'
                suffix: '&5'
                build: true
            inheritance:
                - Invitados
            permissions:
                - 'tiredman.info'
                - 'myhome.home.*'
                - 'mywarp.warp.basic.warp'
                - 'mywarp.warp.basic.list'
     
        Admins:
            default: false
            info:
                prefix: '&c'
                suffix: '&4'
                build: true
            inheritance:
                - Vips
            permissions:
                - 'bb.admin.*'
                - 'tiredman.admin'
    Features:
    • Add energy to every player.
    • when you are in deep water (at least 2 blocks or more) the energy begins to decrease.
    • If you press the jump key to swim, your energy go down quickly.
    • if you let yourself sink to the bottom or walk your energy go down more slowly.
    • If you run out of energy began to lose life and convulse while trying to reach shore or a boat.
    • When you're not in deep water or die, your recover lost energy.
    • All warnings about energy level will be in the chat.
    • You can configure lenguage message in configure file.
    • You can set the amount of energy that every player has in configure file.
    • Add fatigue out of water
    • When you are enought tired you are going to loose your life little by little.
    • Highly configurable.
    • You can disable features in configure file.
    • Permissions plugin support.
    • Tiredman status and player status command added.
    • List of excluded players of tiredman effects.
    • If you don't want a xx% energy level message, just delete the text (Example "5=")
    • Now you get tired when you are out of water faster when walk over grass, dirt, sand or gravel, becouse is harder walk over sand than over stone or grass.






    Download Tiredman:

    Source Code
    Git-Hub -> Thanks to w4rgo
    Version 0.5
    • Fix several bugs.
    • Permissions now works
    • Now you get tired faster when walk over grass - dirt - sand - gravel.
    • Add a message at 20% energy level in water. Now you have a 80%, 60%, 40% and 20% alert.
    Version 0.4.1

    • Fix several bugs.
    • Permissions is not working :( only ops can execute /tiredman excluded
    • All players can execute /tiredman info and /tiredman.
    • Fixed default settings mistake!
    Version 0.4

    • Players drops their items when die by fatigue.
    • You are going to keep your energy level even you reconnect.
    • Added excluded players list.
    • Permissions plugin support added
    • Commands:
      • "/tiredman" or "/tm": Shows config values of tiredman.
      • "/tiredman info": Shows your energy level.
      • "/tiredman excluded": Shows users excluded from tiredman effects.
    Version 0.3

    • Possibility of disabling fatigue in and out of water.
    • More configuration possibilities, for example, choose if you can die or just stay at the minimum of life because of fatigue or select the rate at which you lose life when you are in water by fatigue.
    • You will feel tired out of the water too, losing life if you keep doing things like walking, jumping, mine or place blocks.
    • The fatigue produced by each activity will follow this sequence: minar - place blocks - jump - walking, being that mine produces more fatigue and less walking.
    • Messages about lost or recovered energy do not flood the chat, It has been reconfigured.
    Version 0.2

    • Now in zip file. That includes tiredman.jar file and tiredman folder, just unzip into your plugins folder to install (overwrite tiredman.jar if you are upgrading).
    • tiredman.txt configuration file.
    • Set default energy at configuration file.
    • "laguage_es.txt" and "language_en.txt" files with with translations of all messages from plugin.
    • 10% more convulsing.
    Version 0.1

    • Releasing my first bukkit plugin tiredman!
    ToDo list:

    • Fix loose your items when die by fatigue :(
    • Permissions support
    • Not allow reconnect to recover energy.
    • Recover energy when a player eats. UNNECESARY.
    • Now you have a default energy level message at 75%, 50% and 25%. I want to add a message every 10%. You always could disable what message you want not.
     
  2. Offline

    scor

    Thanks for the explaination.

    So, if you eat anything the counter gets reset completely?

    It still displays the (null) return.
     
  3. Offline

    Duendek86

    When you eat you just recover life, the counter that simulates fatigue doesn't reset until reach the limit.

    You are right, I have just fixed.
    I'm working with permissions plugin integration now and I think i have fixed all isues except that the items doesn't drop when you die. I'll try to fix it too util the next update.
     
  4. Offline

    scor

    Ah that explains. Have you got any plans on resetting the counter when actually eating something? :)
     
  5. Offline

    Duendek86

    I can add an option in configure file for that if you like. There is no problem!
     
  6. Offline

    scor

    Great, can't wait for the update! :)
     
  7. Offline

    Arisilde

    Same here :D
     
  8. Offline

    Duendek86

    Now it's 01:00 -- time to go to bed. I hope to release 0.4 version in 10 or 12 hours :)

    Edit:
    Too extra work at job :( I can't fix anything :( Give me some more time please.
     
  9. Offline

    Arisilde

    Alright
     
  10. Offline

    Wolfy9247

    Umm... the plugin is displaying messages in Spanish. X.x
     
  11. Offline

    Duendek86

    sorry, i forgot to change the default language, just set "en" at language option in configuration file :p
    --- merged: Feb 6, 2011 1:31 AM ---
    New release!! Tiredman 04 is out and hot!
     
  12. Offline

    scor

    Ah it's finally out!

    I've done some quick testing and really like the new shiny overview window. Displaying your current fatigue values is a nice feature too. :)
    That made me understand the land fatigue mechanics at last. It's simply looping and everytime the max lvl has been reached a tiny bit of health is substracted, a message displayed and the counter reset.

    A few things I noticed:
    • Land fatigue value is at 10000 right now. Guess you forgot a zero there. 100k would be a decent standard. (Running around half a min and destroying/placing about 15 blocks easily get's you at 10k alone.)
    • I don't get any (null) returns when displaying "waterpool" decrease messages any longer. However (null) outputs are still there at the "waterpool" increase part.
    • When dieinwater=0 you sometimes get the "death/respawn"-window after your last tick although you're still alive (cause you deactivated dieing).
    Oh and that's my current fancy languaje_en.txt:
    Show Spoiler

    1=version
    2=[ALL OK]
    3=You start to tire.
    4=
    5=You can barely stay afloat!
    6=
    7=
    8=You feel refreshed.
    9=ARBRLGRMPFARGHRBL
    10=You should eat something.
    11=You... need... foooood!
    28=Enabled
    29=Disabled
    30=Tiredman status!
    31=Language
    32=Water-Fatigue
    33=Energypool
    34=Life lost each tick
    35=Die in Water
    36=Land-Fatigue
    37=Energypool
    38=Die on Land
    39=Excluded users:
    40=Your Water-Fatigue:
    41=Your Land-Fatigue:
    50=You aren't allowed to do that.
    51=Tiredman options are [excluded].

    Another plugin which works really well with the waterfatigue-part is "pickboat". You're able to pick up the boats you destroy by hand (like minecarts), instead of returning some wood and sticks.

    http://forums.bukkit.org/threads/mech-pickboat-v0-2-drop-boat-instead-of-destroying-it-81.2628/
     
  13. Offline

    Duendek86

    All fixed! Tomorrow I'll release Tiredman 0.4.1!

    Thanks a lot scor
     
  14. Offline

    scor

    You're on a roll! ;)

    Btw the idea of food resetting "landfatigue" doesn't make much sense atm, now that I got how it works. Thought the counter stops at one end with the "hungry" message looping at that point.

    Well, if you're really bored and would like to add something new I'd love to see a fatigue mechanic (counting upwards) where you get a message at lets say 70% (of the energypool) that you should eat something, without hurting you. It freezes and triggers a loop (with 30% of the ep). That one displays a more urgent message, removing some health everytime, until you eat something which resets "landfatigue" to 0 again.
     
  15. Offline

    Duendek86

    I'm in troubles with permissions again, that's why i haven't uploaded 0.4.1 yet :(
    --- merged: Feb 7, 2011 2:32 PM ---
    New minor release!
    Permissions plugin support is out util I get my plugin works good with it.
     
  16. Offline

    Arisilde

    Doesn't seem to be working with the newest version of CB (300+)
    You should join up with the gastronomic guy. I love both of you guy's plugins :D
     
  17. Offline

    Normandy

    Just wanted to drop by and mention that this plugin is great, and to keep up the good work. I look forward to new versions. [​IMG]
     
  18. Offline

    Duendek86

    I have just check with 304 build and it works fine. Anyway I think you was running tiredman 0.4, not 0.4.1 ... Sorry, it¡'s my foult, I have linked wrong file (tiredman0_4.zip). Download again and check you have tiredman0_4_1.zip file, It should work.

    I wanted to thank you for the compliments and feedback :) I'll keep working to improve it.
     
  19. Offline

    Myrrdin

    I have a suggestion. Add resistance. The harder you push your body the more fatigued you can be in the future. This allows for people to train their characters into becoming well trained machines (in time). Almost like working out.

    I'm sorry if this is already a feature, but I did not see it anywhere which is why I am suggesting it.
     
  20. Offline

    Duendek86

    This was a secret To-do feature!! ;) I want to fix my problems with permissions, finish message features and add hot configuration, something like "/tiredman set hungryrate 15000". After that I want to do some type of resistence skills.

    Thanks again by the suggestions!
     
    Myrrdin likes this.
  21. Offline

    Myrrdin

    Muhahaha! [​IMG] I have uncovered your masterplan! To make the plugin even more awesome than it already is! Awesome!
     
  22. Offline

    Duendek86

    [​IMG]

    P.D. He's not me xD
     
    Myrrdin likes this.
  23. Offline

    Arisilde

    great :D
     
  24. Offline

    Myrrdin

  25. Offline

    Duendek86

    I have taken some free days, soon new update with new features!
     
  26. Offline

    Arisilde

    Since the last update tiredman has been causing major lag and spamming miles or error text such as whats below.

    SEVERE: Could not pass event PLAYER_MOVE to tiredman
    java.lang.NullPointerException
    Feb 17, 2011 6:42:33 PM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_MOVE to tiredman
    java.lang.NullPointerException
    Feb 17, 2011 6:42:33 PM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_MOVE to tiredman
    java.lang.NullPointerException
    Feb 17, 2011 6:42:33 PM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_MOVE to tiredman
    java.lang.NullPointerException
    Feb 17, 2011 6:42:33 PM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_MOVE to tiredman
    java.lang.NullPointerException
    Feb 17, 2011 6:42:33 PM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_MOVE to tiredman
    java.lang.NullPointerException
    Feb 17, 2011 6:42:33 PM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_MOVE to tiredman
    java.lang.NullPointerException
    Feb 17, 2011 6:42:33 PM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_MOVE to tiredman
    java.lang.NullPointerException
    Feb 17, 2011 6:42:33 PM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_MOVE to tiredman
    java.lang.NullPointerException
    Feb 17, 2011 6:42:33 PM org.bukkit.plugin.SimplePluginManager callEvent
     
  27. Offline

    Duendek86

    Last update of craftbukkit or tiredman 0.4.1?
    --- merged: Feb 19, 2011 11:49 AM ---
    It works fine with build 328 in my server.
     
  28. Offline

    Arisilde

    Using tiredman 0.4.1 and whatever the default craftbukkit download is. I wish it listed the number :/
     
  29. Offline

    Duendek86

    Now it shows you when you start the server un consola, i think so.
     
  30. Offline

    elias79

    Please update to 400+ :)
     
  31. Offline

    scor

    Any chance on an update? :)
     

Share This Page