Inactive [FUN/MECH] SMP_Hardcore V2.0 - Become ghosts after death! [UnderGoing Revival]

Discussion in 'Inactive/Unsupported Plugins' started by XDemonic25, Feb 8, 2012.

  1. Offline

    XDemonic25

    Hello Bukkit Community. This plugin is currently being Completely Re-coded And will be revived within a week or so.

    Show Spoiler

    Hey Bukkit, This is my first Plugin I ever created. I'm in a Semi-College for coding and this is one of my projects.

    This Plugin makes it when a Player Dies, That player turns to a ghost. While being a ghost, you are invisible to live players. But, Cannot Break/Place Block, Cannot pickup items, and cannot hurt other monsters/players (ghosts also cant be hurt). To regain your life, A friend or another player must revive you, Simply puting a [Gold Block Or Iron Block] down and a sign saying: "revive" on the first line. and the "dead players name" on the second line.
    GIVE SOME FEEDBACK!!!

    === WARNING: This Plugin Requires Spout Plugin===

    Latest Version: 2.0 [1.2.5 R1] DOWNLOAD SMP_Hardcore

    BUKKIT DEV

    Contact:
    - SKYPE: XDemonic25

    - SENDING ME A ERROR PLEASE READ!
    Ok so some people has problems installing this or not running properly. When I update the plugin I always test it on the latest RB. I Also post the known bugs/issues on the Versions below. BUT if you DO get a problem.. This is how I want Everyone to do so:
    Create a reply on this forum or contact me via Skype And Tell me:

    SMP_Harcore Version:
    BUKKIT Version
    Error:
    ------------------------------------------------------

    How To Install:
    Download and Install MYSQL - NOT NEEDED ANYMORE!
    Download And Add SpoutPlugin In Your Plugins Folder
    Download SMP_Hardcore Plugin (above)
    Extract SMP_Hardcore.zip
    Place SMP_Hardcore.jar into /plugins
    Run The Server (You will probably get a MYSQL Connect Error, This is normal)
    Stop The Server
    Open SMP_Hardcore Config in plugins/SMP_Hardcore/config.yml
    Change the MYSQL Settings Properly
    Start the Server and have Fun!

    Features:
    • A Fun Way To Die!
    • Health Display Above Players Heads! (Requires Spoutcraft)
    • Ghost Like Feature For Dead Players
    • Ghosts Invisible To Live Players
    • Chat System For Dead Players
    • Teleport Command For Ghosts (/Haunt Playername)
    • OP/Console Revive Command (/smprevive Playername)






    Config
    In The Config.ymlof SMP_Hardcore, You Will Find Theses

    Here Is Where you Config Your MYSQL Settings.

    This Is The Main Settings For The Plugin, Enable/Disable Things You Dont Want.
    Code:
    # Main Settings
    Enable_Plugin: true
    Ghost_Mode_Enabled: true
    Can_Ghost_Talk: true
    Enable_Secondary_Revive: true
    Live_Players_See_Ghosts: false
    Enable_Haunt_Command: true
    Enable_Pre_Rez: true
    Ghost_Smoke_Per_Tick: 3
    Ghost_Smoke: true
    These Are Settings For What King Of Block Can Revive A Player
    Code:
    #Primary Block To Revive, GOLD By Default
    Primary_Block: 41
    #Secondary Block To Revive, IRON By Default
    Secondary_Block: 42
    These Are New Settings To Disable/Enable Hunger_HP_Regen
    Code:
    #Making this false: Even if players have FULL Hunger,
    #They Will Not Regen HP. ONLY GOLDEN APPLES AND POTIONS Will Bring HP UP!
    Enable_Hunger_HP_Regen: true
    These Settings SHOULD NOT BE TOUCHED! Theses Are Experimental And May Not Work Properly!
    Code:
    #These Settings DO NOT WORK, Please DO NOT enable theses settings until a better update is released
    Ghost_Fly: false
    Want A Sneak Peak On Next Update?:
    • Disable/Enable Plugin To Specific Players
    • Set Time For Iron Blocks
    • More OP Commands
    • Bug Fixes
    Video:


    Q&A:
    Q: My Console Keeps Saying Ghost Timer Has Choked, What Is This?
    A: The Ghost Timer is the Ghost Smoke functions, and since its running "X" Amount of times a second (where X is the integer value of ghost_smoke_per_tick in the config) Sometimes it will choke, and not run it (but only that one time). If you see this just a few times, its fine, But if its spamming your console, I advise you to lower the amount of ghost smoke per tick.

    Q: Why cant I see all the Ghosts when I'm dead?
    A: This is a small bug I'm trying to squash. Its not a big bug and it will be fixed in the next update.

    Q: Can you release the source code?
    A: As of now, No, And please don't ask again.

    Q: Any more features being added to the plugin?
    A: I'm thinking of a few that I may add, I am also taking requests to add on to the plugin, So feel free to tell me your thoughts/ideas!

    Q: Can You Release This Without MYSQL?
    A: Already Implemented As Of Version 2.0
    ================================================================
    ChangeLog:
    Version 2.0
    • NO MORE MYSQL!
    • Added revive command [/smprevive [playername]]
    • Health Bars Display Over Players Heads! (Requires Server/Client Spout)
    KNOWN BUGS
    • On Death, No Text On Sign
    • A Exception Error Will pop up in console upon player logout, Ignore this
    • New Ghosts cant see Old Ghosts
    • Using the console revive sometimes makes the player still invisible
    Version 1.9

    • Support For 1.2.5!
    KNOWN BUGS
    • On Death, No Text On Sign
    Version 1.81

    Bug Fixes
    • Fixed Comparison If Statement On Startup
    Version 1.8
    • Support For R6! (Also R7)
    • Added New Config: Enable_Hunger_HP_Regen: [true/false] (This will make it so only Golden Apples and HP Potions will regan Health!)
    • Added New Config: Ghost_Smoke_Per_Tick: [integer] (How many Smoke Per Second For Ghost Players, More = More Lag, More Smoke)
    Version 1.7
    • Added Pre-Rez!
    • Made Ghost_Smoke Less Laggy
    • Pre-Rez Makes Player Immune To Fire/Lava for 30 Seconds.
    Bug Fixes
    • Fixed MYSQL Create Tables
    Version 1.5
    • Added More Flexibility With Configure
    • Added Ghosts Invisible To Live Players
    • Added Second Block To Revive A Dead Player (30 min wait)
    • Added Ghost Smoke Effect
    Bug Fixes
    • Fixed MYSQL Overflow when Entity Target Player
    • Fixed Bug Where "revive" Has To Be Lower Case

      Version 1.0
      -Initial Release
     
    seriouschiz likes this.
  2. Offline

    XDemonic25

    sorry for no updates... I am adding a big update later today... this update will include the following:

    v1.5
    - Added Secondary way to revive other player (iron blocks, can only be revived with this once every 30 minutes)
    - Added Ghost Command: "/haunt [playername]" (Teleport to target player)
    - Added more options such as "Ghost_Fly", "Respawn_Block_Enable", "Ghost_Invisisble" In the Config.
    - (Experimental) Added Ghost Invisible To Live players (ghosts can see other ghosts)

    Will Also be adding A Video

    Updated! Will be adding A Video Later, Hope You All Enjoy!

    Send Some Feedback!

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

    CainFoool

    As a suggestion to the MySQL Connect Error, I suggest shutting the plugin off with a message "This plugin cannot be enabled until you change the MySQL details."
     
  4. Offline

    XDemonic25

    Thanks for the suggestion. I was thinking about doing somthign like that on the first start up
     
  5. Offline

    XDemonic25

    Working on The pre-rez right now... will be adding a update over the weekend
     
  6. Offline

    md_5

    You need a non-attatchment link please
     
  7. Offline

    XDemonic25

    will do, thanks for tellin me. thought i could just attach it
     
  8. Offline

    XDemonic25

    New Update 1.7
    Added Pre-Rez!
    Ghost Smoke Less Laggy

    Also Created A Video, It Should Be Up Shortly...
     
  9. Offline

    NeatMonster

    Please upload your files on Dropbox. I advise you to replace your thread's title by this one:
    Also, did you know you can send your project on BukkitDev?
     
  10. Offline

    tuffveson

    Download-link dont work
     
  11. Offline

    Leetfaction

    If possible, you should add a prefix or tag for players that have died. For example, if a player dies and becomes a ghost, whenever they talk, it will show a prefix like "Ghost" or "Deceased" in red letters. Maybe you could let people configure the prefix and color themselves as well as enable or disable it all together.

    I'd also like to request an option that disables health regeneration based on the hunger meter so that way only gold apples and potions can bring your health back to add on to the 'hardcore' feel. I know this falls off the topic of ghosts, but I think it would be a nice addition since it's an SMP Hardcore plugin.

    On another note, the DropBox link appears to not be working. I'll definitely be sure to try out this plugin later though.

    Once I saw the Ultra Hardcore Mode Series with PauseUnpause, VintageBeef, Guude and Baj, I wanted to have a Hardcore SMP server with a small group of people and a set goal and then start a new world once everybody dies or if the goal is accomplished. This plugin will be perfect for that. :D
     
  12. Offline

    XDemonic25

    The Prefix Idea Is nice.. I like that.. I already have it so it says [Dead] Playername says: blah blah... But not in the permissions Prefix way.

    As for the golden apple and potions to heal you. i was planning on adding that feature later on..

    As for the dropbox... Ill see whats going on.

    DROPBOX Fixed... Im kinda new to this and i didnt put it in the public folder... oops... my bad >.>

    Posted in Bukkit dev. Will be adding a update later... Found a couple of small bugs i wish to fix...

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

    NeatMonster

    Please read the reason when your project requires changes and don't not ask for another review if the requested changes weren't made.
     
  14. Offline

    XDemonic25

    oops, Didn't read that right the first time.. was confused about it.. I think the appropriate changes has been made now.

    I feel so unprofessional x.x

    Updated v1.8! Support for R6!

    Version 1.81 Released.. Had to fix a minor bug

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

    number1_Master

    Looks nice. I don't need it for my server, but AWESOME PLUGIN!
    EDIT: And you are reading that from a pro ;)
     
  16. Offline

    XDemonic25

    Thanks =D That means alot. I worked pretty hard on this.But not getting as much replies as wanted xp.

    EDIT: Re-Uploaded Version R4, For whoever is using R4 Still (Because I am...)
     
  17. Offline

    Leetfaction

    Nice, you added the feature to disable HP regen! I'm new to MYSQL and can't seem to get it to work with the plugin. You're supposed to use WampServer, right? A small tutorial on how to properly set up MYSQL with the plugin would be awesome!

    I also heard that WampServer uses the same port as Skype so Skype won't work while your running it. I'm not sure if this is true or not though.

    This plugin is looking great so far and I really want to use it! I can't wait to see what else you can do with it if you decide to add more features!
     
  18. Offline

    XDemonic25

    sent you a message ill add this to the thread later
     
  19. Offline

    Sleepydragn1

    I would love to see a "/resurrect [player]" command (connected to permissions) that allows admins to resurrect players, a choice to enable/disable item drops upon death, a way to disable/configure the message that appears when someone haunts you, and a method to disable normal (i.e. gold block/silver block) resurrections.
     
  20. Offline

    XDemonic25

    I have no intentions of disabling the Gold block.. but you can disable the iron one.
    As for the resurrect command, This is coming in the next patch. The command can be used for OPs And Console. (i need to study about the permissions thing) And the disable/enable item drop.. I was thinking about this.. but no plans yet.
     
  21. Offline

    Sleepydragn1

    Alright, thanks for the info.

    Currently the plugin seems to have a lot of issues on my server. It doesn't respawn players into ghost mode, instead, it respawns them into a seemingly random location (every time a player dies it teleports them to a single location that doesn't seem to have any relation with the spawn area) and says that the player has been revived by "null". If players create a pre-rez, it confirms that they've created it, however, it just repeats the previously described behavior if they die (note that I've tested this without any other active plugins besides SMP_Hardcore).

    Additionally, it seems to conflict with the plugin "ChatManager" and "ColorMe" by not displaying player prefixes in chat and and disabling ColorMe's player name colors, while also making names green and player chat orange (also tested without any active plugins).

    It gives one error upon startup and an error every time a player dies. A server log containing this startup error and two deaths is displayed below:

    Code:
    [SEVERE] Could not pass event org.bukkit.event.player.PlayerJoinEvent to SMP_Hardcore
    org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1026)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:57)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:453)
        at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:133)
        at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:121)
        at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:40)
        at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:61)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1024)
        ... 9 more
    Caused by: java.lang.NoSuchMethodError: org.bukkit.entity.Player.showPlayer(Lorg/bukkit/entity/Player;)V
        at me.XDemonic.SMP_Hardcore.OnPlayer.onPlayerJoin(OnPlayer.java:580)
        ... 14 more
    2012-03-03 20:54:46 [INFO] revive
    2012-03-03 20:54:53 [INFO] The automatic update-Check only work every 1 hours, the last check was 3 minutes ago.
    2012-03-03 20:55:05 [SEVERE] Could not pass event org.bukkit.event.entity.PlayerDeathEvent to SMP_Hardcore
    org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1026)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:57)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:453)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerDeathEvent(CraftEventFactory.java:370)
        at net.minecraft.server.EntityPlayer.die(EntityPlayer.java:171)
        at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:544)
        at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:612)
        at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:213)
        at net.minecraft.server.EntityLiving.b(EntityLiving.java:699)
        at net.minecraft.server.EntityHuman.b(EntityHuman.java:1178)
        at net.minecraft.server.Entity.a(Entity.java:686)
        at net.minecraft.server.EntityPlayer.b(EntityPlayer.java:448)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:389)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:687)
        at net.minecraft.server.Packet10Flying.handle(SourceFile:126)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:552)
        at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1024)
        ... 21 more
    Caused by: java.lang.NoSuchMethodError: org.bukkit.event.entity.EntityDeathEvent.getEntity()Lorg/bukkit/entity/LivingEntity;
        at me.XDemonic.SMP_Hardcore.OnEntity.onEntityDeath(OnEntity.java:157)
        ... 26 more
    My current config file, if you want it:

    Code:
    # MYSQL Settings
    SQL_User: [redacted]
    SQL_Password: [redacted]
    SQL_Host: [redacted]
     
    # Main Settings
    Enable_Plugin: true
    Ghost_Mode_Enabled: true
    Can_Ghost_Talk: false
    Enable_Secondary_Revive: false
    Live_Players_See_Ghosts: false
    Enable_Haunt_Command: true
    Enable_Pre_Rez: true
     
    #Ghost Smoke Effect, More Per-Ticks = More Lag, More Smoke.
    Ghost_Smoke_Per_Tick: 3
    Ghost_Smoke: true
     
    #Primary Block To Revive, GOLD By Default
    Primary_Block: 120
    #Secondary Block To Revive, IRON By Default
    Secondary_Block: 0
     
    #Making this false: Even if players have FULL Hunger,
    #They Will Not Regen HP. ONLY GOLDEN APPLES AND POTIONS Will Bring HP UP!
    Enable_Hunger_HP_Regen: true
     
    #These Settings DO NOT WORK, Please DO NOT enable theses settings until a better update is released
    Ghost_Fly: false
    I'm currently running the latest CraftBukkit Recommended Build.

    Also, I tried setting the "Secondary_Block" setting to a valid ID, but that didn't change anything.
     
  22. Offline

    Leetfaction

    Alright so I got MYSQL working with the plugin and I got to try it and I have to say, it was pretty cool! Thanks for giving the link for the download.

    Some things that I think should be added/fixed:
    - A command for ops to bring people back to life
    - An option where if players die, they do not drop their inventory/equipped armor
    - Make it so mobs do not attack or acknowledge ghosts.
    - Make it so ghosts cannot bump into mobs.
    - An option to hide the HUD for ghosts but still allow the chat to show for them (If possible)
    - Make it so the chat system is configurable for titles and colors.
    - Configurable haunt message and an option to enable/disable the message.
    - Fix the grave signs so that they say R.I.P. Username since they appear to be blank.
    - Configurable motd and the ability to enable/disable it.
     
  23. Offline

    XDemonic25

    Ok the only thing i can think of is that u downloaded the worng version o f the plugin. I have one for R4 and R6... If u downloaded R6 using a R4 server there will be issues. Additioanlly, yes the smp_hardcore does color the char system for alive/dead players so there may be some conflict with other chat plugins.. i will be adding a option to disable this feature if neccesary

    Some things that I think should be added/fixed:
    - A command for ops to bring people back to life (WORKING ON IT)
    - An option where if players die, they do not drop their inventory/equipped armor (MAYBE)
    - Make it so mobs do not attack or acknowledge ghosts. (Already implemented)
    - Make it so ghosts cannot bump into mobs. (Cant do this.. i dont think)
    - An option to hide the HUD for ghosts but still allow the chat to show for them (If possible) (Would require Spout)
    - Make it so the chat system is configurable for titles and colors. (Already implemented)
    - Configurable haunt message and an option to enable/disable the message. (WORKING ON IT)
    - Fix the grave signs so that they say R.I.P. Username since they appear to be blank. (Blank?)
    - Configurable motd and the ability to enable/disable it. (WORKING ON IT)

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

    Leetfaction

    I tested it again, but mobs still try to go after ghosts and the signs that appear when somebody dies are still blank. :/ another thing I noticed is that the flame that appears after the lightning strike upon reviving somebody cannot be put out, but will go away once you disconnect and reconnect. The fire doesn't do damage though, it's just sort of weird.

    I'm currently using the R6 version in 1.2.3 with a dev build of craftbukkit if that helps.
     
  25. Offline

    Sleepydragn1

    That actually turned out to be the issue. I erroneously assumed that I was running the most recent recommended build since normally CraftBukkitUpToDate notifies me of a new build, but it turns out that it hasn't been working correctly as of late. Thanks for the help.

    Just to let you know, you can /haunt yourself as a ghost, and when done it says:
    "Haunting [player name]!"
    "[player name] Is Haunting You!"

    Also, as Leetfaction said, monsters still follow and attack ghosts, meaning that skeletons fire arrows at the ghosts and creepers chase ghosts and detonate.
     
  26. Offline

    XDemonic25

    As for the haunting yourself thing.. yea... im fixing that in the next update...

    But the Mob aggro is strange... what version of craftbukkit is this? im using R4 for my server with no issues.

    EDIT: Update.. Didnt Change Much... But switched out API's Ghosts are not seen by Mobs and the plugin is working fine with R7!
     
  27. Offline

    XDemonic25

    Bump... Ill add a update before spring break... I will most likely be offline through-out the spring break as well... taking me a vacation :cool:
     
  28. Offline

    Leetfaction

    I tried using your plugin again using the 1.2.3-R0.1 beta build of Craftbukkit but I still have problems with mobs attacking ghosts, blank gravestones, and the reviving lightning strike fire being all glitchy until you leave and rejoin the game. The chat system and motd isn't configurable either. :( I wasn't using any other plugins so there couldn't have been any conflicting issues. Would it be best to wait until the recommended build for 1.2.3 comes out?
     
  29. Offline

    XDemonic25

    I never tested the plugin on 1.2.3 And im not planning to debug for it until a recomended build is out for 1.2.3

    Right now its full support on the latest Recomended build for now. which is R7, and works perfectly fine on that.

    As for the MOTD configuration. Im adding it in the next update... Ive been busy with alot fo College work so i havnt had time doing it yet. Ill have the update today HOPEFULLY.. If not itll be within the next couple days when im spending my spring break with my fiance.
     
  30. Offline

    md_5

    Approved
     

Share This Page