[RPG/MECH] HealingTotem v?? - Health Regeneration from Totem Poles [??]

Discussion in 'Inactive/Unsupported Plugins' started by tprk77, Aug 7, 2011.

  1. Offline

    tprk77

    This plugin is currently being transitioned from the forums.bukkit.org to dev.bukkit.org.

    ===============================================================

    I don't like pork. And I don't like eating it to gain health.

    ...ok, pork is delicious, but I need motivation for this plugin.

    HealingTotems allows players to create totem poles that radiate healing powers and damage mobs. Once a player builds a totem, a "safe bubble" is created where players are continually healed and mobs are continually damaged. Totems are configurable: you can choose which blocks the totem is made out of, the healing power, and the range.

    For more information, go to BukkitDev.
     
    kahlilnc and undeadmach1ne like this.
  2. Offline

    tprk77

    I'm sorry, that doesn't sound like fun. I know the generated totemtypes.yml is ugly and out of order, but there is a prettier version of it on the github page. Maybe that can help you?

    The totemtypes.yml file should only get generated when the file is missing, did yours get deleted?

    BTW, I know this doesn't help you now, but 0.8 only broke the config.yml. Old versions of totemtypes.yml should be ok, since the new properties I added to this file were optional (e.g. affectsplayers, affectsmobs, etc).
     
  3. Offline

    Shivanous

    Wasn't too much fun. Well, I actually spent about half an hour re-writing it into the right order, and by some miracle, I ended up getting it in the right order, lol. When I updated, the github paged hadn't yet been updated for the new elements.
    I deleted the config when I was updating the plugin as there was a bunch of new stuff added which would have caused the config to give me errors.
    I was still running the initial release of the plugin until I updated to this version, heh...
     
  4. Offline

    Priizon

    It would be awesome if this combined HealingWater. It would have a configuration file for totems to only heal if placed in water, and if the water exceeds a certain amount or is less than a certain amount then it won't heal. I want to be able to have a totem in the middle of my fountain, and players that get in the "Fountain of Youth" will be healed.
     
  5. Offline

    VoidingNixx

    Very cool plugin. Could I request permissions for building specific tower types in the config.yml.

    ie:
    healingtotem.build.minor
    healingtotem.build.major
    healingtotem.build.evilminor
     
  6. Offline

    tprk77

    That was actually the original concept for this plugin. It was going to be called HealingSpring. The problem was that fountains (and water) are kind of complex. The question was: how exactly would you define a fountain? I think this varies from person to person. There were also a couple other questions. Does the player need to be in the water or just near it? What if a player turns an ocean into a fountain/spring?

    Water also makes coding more of a pain. Water doesn't use place/break events, it uses fromto events. Honestly, I don't really understand these events and they aren't documented very well. And besides that, how do you know if you're in the same water as the fountain? Depth first search? It's kind of an interesting algorithmic problem. Comparing distance to a set range is obviously much easier (and faster).

    I would have really liked to make HealingSpring, but I think HealingTotem is a good compromise. I imaging that the gameplay would be more or less the same.

    tldr: It's much more difficult to implement and I don't get paid to do this. ;)

    I'm not sure how to do this with bukkit permissions, I'll look into it.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  7. Offline

    Pafre

    Nice :D
    I'll repost from dev.bukkit
     
  8. Offline

    VoidingNixx

    Thanks tprk77! I'll be keeping an eye out for it in future releases. -.^ Keep up the nice work!
     
  9. Offline

    kaashar

    Awesome mod, I already found lots of novel uses for it.

    It doesn't hit slimes tho, any possibility you could please add them to the 'hurt' list?
     
  10. Offline

    tprk77

    Yeah, that's weird. Apparently slimes aren't considered Monsters. And ghasts too... I'll fix this ASAP.

    I like this idea, but it would take a fair amount of work. I'll think about it.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  11. Offline

    Sepulzera

    Could you add iConomy-support, so you need to pay to build totems? :)
     
  12. Offline

    joudas

    Ran into a problem using this... setup worked fine, we were able to build totems without a problem, but any time the server restarts, all previously built totems are reported as having an invalid structure and are disabled. Removing a block from the totem and re-placing it causes it to re-create the totem and it works fine again, until the server restarts. Any idea what might be causing that?
     
  13. Offline

    tprk77

    Are the structure definitions in totemtypes.yml changing between restarts? That's the only thing I can think of. A structure is invalid if the YAML doesn't match what is actually there. Did you rename a world? That would do it as well.

    ...Or it might be a bug. Can you post your totemtypes.yml in a spoiler?
     
  14. Offline

    joudas

    No files are changing between restarts - I can literally close the server, immediately re-launch it, and it'll declare them invalid. Then, we remove any block from the totems, put it back exactly where it was, and they work again.

    Show Spoiler
    totems:
    - owner: Aviern
    type: minor_heal
    z: 309
    y: 78
    world: world
    x: 81
    - owner: Artiamus
    type: minor_heal
    z: 336
    y: 76
    world: world
    x: 80


    There's only those two (the owners keep shifting to whomever breaks / rebuilds the totems after a restart) at the moment. Both die on every restart. We tried moving them, it doesn't seem to matter where they are.

    I am using a completely customized totem structure - here's that particular totem:

    Show Spoiler
    - affectsmobs: false
    affectstamedwolves: false
    affectsplayers: true
    structure:
    - z: 0
    material: IRON_BLOCK
    y: 4
    x: 0
    - z: 0
    material: IRON_BLOCK
    y: 3
    x: 0
    - z: 0
    material: COBBLESTONE
    y: 1
    x: 0
    - z: 0
    material: COBBLESTONE
    y: 2
    x: 0
    - z: 0
    material: COBBLESTONE
    y: 0
    x: 0
    rotator: NONE
    range: 15.0
    name: minor_heal
    affectsangrywolves: false
    power: 1


    If it's as simple as "You fucked up setting that totem up", that'd be fantastic. :)
     
    Icemelt likes this.
  15. Offline

    tprk77

    I tied your config on a test server, but I couldn't reproduce the error. I'm kind of stumped.

    Here are a couple of things which are kind of obvious (and you probably already did them):
    * Make sure you have the most current version of CB and this plugin.
    * Double check your file system and make sure the config is readable & writable.
    * Maybe try it with other plugins disabled?

    This is such a strange problem... I think I might have to add a debug mode to the next release.
     
  16. Offline

    happypumkin

    I HATE PORK TOO. :p
    great plugin, gonna use it :D
     
  17. Offline

    Silvo

    If totems are by default (non-powered) on... and there are no air blocks defined around them to be.. you could burry a totem, right?
     
  18. Offline

    Icemelt

    What plugins are you using? I'm having the exact same problem as you, each reset or restart makes the totems stop working. File does not change, info still there. Remove a block of an already existing totem, no error. All have to have a block removed and replaced to re-create the totem.

    So, here is a list of the plugins we're currently using. Maybe we can compare and find the conflict. This has to be the problem.

    AntiCreeper
    Bandages
    BarterSigns
    ChopTree
    ColoredSigns
    DwarfForge
    FireControl
    HealingTotem <-
    InvTools
    LWC
    PickBoat
    rawcritics_ore_obfscation
    Runecraft <- This is my guess for the problem, it's been a problem in the past.

    I'm not going to say for sure that it's Runecraft, but I can't bring our server down right now to test it live and I'm a little lazy on it since this is a "heal" plugin and I'm not in favor of them anyway [zombie] I also wanted to mention that I too use custom totems similar to yours.

    Yes, we made a totem with the bottom node being a forge, then four cobblestone above the forge. Adjusted the area and removed the mob damage. Now you have a healing fireplace. Surround it with dirt or stone or .. a house :) Works well. Also made a scare crow with a Jack on top, then fence, then log, then fence and another fence. Put arms on it if you want.

    Code:
    totemtypes:
    -   affectsmobs: true
        affectstamedwolves: true
        affectsplayers: true
        structure:
        -   z: 0
            material: 91
            y: 5
            x: 0
        -   z: 0
            material: 85
            y: 4
            x: 0
        -   z: 0
            material: 17
            y: 3
            x: 0
        -   z: 0
            material: 85
            y: 2
            x: 0
        -   z: 0
            material: 85
            y: 1
            x: 0
        rotator: NONE
        range: 5.0
        name: ScareCrow
        affectsangrywolves: true
        power: 1
    -   affectsmobs: false
        affectstamedwolves: true
        affectsplayers: true
        structure:
        -   z: 0
            material: 4
            y: 5
            x: 0
        -   z: 0
            material: 4
            y: 4
            x: 0
        -   z: 0
            material: 4
            y: 3
            x: 0
        -   z: 0
            material: 4
            y: 2
            x: 0
        -   z: 0
            material: 61
            y: 1
            x: 0
        rotator: NONE
        range: 3.0
        name: Fireplace
        affectsangrywolves: false
        power: 1
    

    PS: The above works with DwarfForge perfectly.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  19. Offline

    tprk77

    Of course. I like to sometimes bury totems under fountains and cobble stone wells.

    P.S. Air blocks... you probably shouldn't use them. Air block's can't "break," so the plugin won't detect air blocks being filled in. Maybe I'll add this feature in the future, but then people will do weird things like make "air totems."
     
  20. Offline

    Silvo

    Is there a message that tells you that you made a totem? I woun't people make accidentally totems.. like tripple layered cobblestone platform where you put down just for fun some jack-o-lanters and pumpkings. We wound't want a mass massacre wouln't we? :D
     
  21. Offline

    tprk77

    The latest version does this, by default (and lightning strike).

    My apologies for those of you waiting for the next update. I've been waiting for Bukkit 1.8, but it seems to be taking a while. Once it comes out, I should have an update a week later.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  22. Offline

    Silvo

    No problem ^^. We all wait. I'll just play vannila 1.8 until a stable 1.8CB comes. And when your plugin updates for 1.8 too we build some totems in NPC villages, sit around them and eat porkchop in you honor! :)
     
  23. Offline

    tprk77

    Ok, first a quick update: v0.8.1. Fixed slimes and ghasts not working. New mobs should also work.

    I'm probably going to add support for the new hunger meter, but that will take a little longer.
     
  24. Offline

    Sepulzera

    PS: Download-Link is broken, but still working with your bukkit-dev link (but there its v0.8.0 :D)
     
  25. Offline

    Naliz

    Can you make it hook into factions plugin?

    It would be cool if it healed allies within he faction and only hurt outsiders.
    I'm using this on my factions server atm. But we would love to see my idea implented.
     
  26. Offline

    tprk77

    Yeah that was weird, I changed the link text without changing the actual link.
     
  27. Offline

    nobodyshome

    Is it going to support Permissions at any point?
     
  28. Offline

    Silvo

    why?
     
  29. Offline

    nobodyshome

    Because im still using permissions over BukkitPermissions since its easyier, just like many others are doing.
     
  30. Offline

    dezzicky2

    hi i love your plugin but would it be possible to have it so that you could have totems that affect only certain teams like gold or diamond
     
  31. Offline

    tprk77

    I've never used factions, but I'll take a look at it.

    Are you talking about the factions plugin too?
     

Share This Page