[FUN] AmnesiaCraft v1.1.2 - Fear the Dark [935]

Discussion in 'Inactive/Unsupported Plugins' started by Kevin Forte, Apr 28, 2011.

  1. Offline

    Kevin Forte

    AmnesiaCraft: Adding the Element of Fear
    Version: 1.1.2​
    Download: [JAR]

    Ever play "Amnesia: The Dark Descent"? I did, and it was amazing. I thought it would be a nice touch to make the dark more intimidating in Minecraft as well.

    Features:
    • Adds the elements of a player's heart rate and level of sanity, where sanity drops when in the dark and heart rate rises.
    • If sanity drops too low, player slowly takes damage until death.
    Commands:
    • /sanity
    Check your vitals. Usage can speed the process of going insane very slightly (The more often you question your own sanity, the more insane you become).

    Permissions:
    There is one node that will prevent a player from experiencing the effects of this plugin:
    Code:
    ac.levelhead
    
    To-do:
    • Drop sanity more quickly when monsters are in view.
    • Reduce the speed in which sanity drops when other players/wolves are near.
    • Various effects when sanity is very low.
    • A config file.
    • Multi-world support (be patient about this one please...)
    Possible To-do:
    • Consumable item to gain sanity.
    • Lightning striking near a player spikes their heart rate
    • Rewrite code more conviniently
    Bug list:
    • Null returns with /sanity.
    • Items are destroyed when a player dies.
    Changelog:
    Show Spoiler

    Version 1.1.2
    • Items now drop normally when a player dies.
    Version 1.1.1
    • Fixed the null returns.
    Version 1.1
    • Added a permission node to prevent sanity loss.
    • Lowered the light level at which a player loses sanity significantly.
    Version 1.0
    • Initial plugin release.
     
  2. Offline

    NightmareX91

    Since I'm a unix dummy, if I knew how to select a bunch of text (the comments.) to delete them at once without holding anything down I'd use permissions.

    EDIT:
    I just downloaded permissions and it works... I must learn more unix, but yes. Whenever you feel like it make it work with group manager for people who use it. Will switch to permissions, but I really want to slow down the death time. If only I could slow down my death speed to take 4 minutes before I actually finish my suicide. But it is annoying not being able to regain sanity by being in light (or am I missing on that?)

    Another edit:
    I figured out how to select lots of text in nano now :D Life will be easier!
     
  3. Offline

    TehJammers

    Dude how? :eek:
     
  4. Offline

    NightmareX91

    Alt + M to enable the mouse, click twice where you want to start the selection, and use the arrow keys to select the rest and then I just use Ctrl + K to remove them!
     
    TehJammers likes this.
  5. Offline

    KingPin

    yes im using permissions. will try again.
     
  6. Offline

    TehJammers

    You, sir, are a champion among gods.
     
  7. Offline

    NightmareX91

    Yay I'm a champion among gods *abuses AZP's thunder arrow'
     
  8. Offline

    Haekon


    Look up the WorldEdit client-side mod for an example...it's possible, but fuck-all difficult. I never could get it to work on linux. (Maybe I'm just retarded...it happens) But yes...you can do client-server connected modding. Only prob once you get over the hill of getting it coded, then you have to require the mod's use by every player. And then you get to play tech support every time somebody can't get it installed. http://wiki.sk89q.com/wiki/WorldEdit/Client_addon
     
  9. Offline

    philipborg

    tip for multiworl, use a permission for enabling the whole plugin for a specific player, then permission fix the multiworld for you ;)
     
  10. Offline

    Tulips

    i was healing myself with /heal (worldguard and worldedit command thing) it instantly heals me to full and i have levelcraft and the higher your health level is the more resistant u are to damage
     
  11. Offline

    Kevin Forte

    And what is the problem you mentioned in the original post again? I apologize, but I can't even find it it was so long ago.
     
  12. Offline

    kahlilnc

    can you add permissions for the group that can get amnesia?
     
  13. Offline

    Kevin Forte

    Well there is already a permission for the group that doesn't have it, why not just give that permission to every group except the group(s) you want affected?
     
  14. Now this plugin looks fun!
    If your looking for (reasonably) easy ideas to creep people out, how about fake chat messages that only the affected player can see, maybe even make them seem to come from another logged in playername, or perhaps a spookily named fake one.
    Messages could be like:
    "They're coming for you.....", "Join.....Us....", "You can't hide from me..." etc
    Or maybe some non scary ones , just to mess with their mind....

    affected_player: "So when you gonna give me that spare diamond?"
    other_player: "What you talking about?"
    affected_player: "You said you had a spare you would give me for free..."
    other_player: "You're crazy....."

    Just a thought....
     
  15. Offline

    kahlilnc

    What about inherent?
     
  16. Offline

    embty

  17. Offline

    Kevin Forte

    Last edited by a moderator: May 14, 2016
  18. Offline

    Trenix

    Code:
    18:33:02 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-753-
    g34e310c-b803jnks (MC: 1.5_02)
    18:33:02 [INFO] Preparing level "world"
    18:33:02 [INFO] Preparing start region
    18:33:03 [INFO] [AmnesiaCraft] Enabled. Breathe steadily and try to relax.
    18:33:03 [INFO] Done (0.065s)! For help, type "help" or "?"
    18:33:10 [INFO] Request: GET http://www.minecraft.net/game/checkserver.jsp?user=
    klipse&serverId=18b10791c4632f84
    Will go to http://mineshafter.appspot.com/game/checkserver.jsp?user=klipse&serve
    rId=18b10791c4632f84
    18:33:10 [INFO] resp: 200, len: 0
    18:33:10 [INFO] klipse [/192.168.2.4:60489] logged in with entity id 130 at (50.
    5, 65.62000000476837, 209.5)
    18:33:10 [SEVERE] Could not pass event PLAYER_JOIN to AmnesiaCraft
    org.bukkit.command.CommandException: Unhandled exception executing command 'amne
    sia' in plugin AmnesiaCraft v1.1.2
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:12
    7)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:2
    79)
            at org.bukkit.craftbukkit.entity.CraftPlayer.performCommand(CraftPlayer.
    java:144)
            at kforte318.AmnesiaCraft.AmnesiaPlayerListener.onPlayerJoin(AmnesiaPlay
    erListener.java:17)
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:243)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:310)
            at net.minecraft.server.ServerConfigurationManager.a(ServerConfiguration
    Manager.java:94)
            at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:96)
            at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:87)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:377)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:292)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHand
    ler
            at kforte318.AmnesiaCraft.AmnesiaCraft.onCommand(AmnesiaCraft.java:66)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 14 more
    Caused by: java.lang.ClassNotFoundException: com.nijiko.permissions.PermissionHa
    ndler
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:36)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:24)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 16 more
    That's the error I'm having, the /sanity command doesn't work either.
     
  19. Offline

    kahlilnc

    Permission's
    inheritance:
    -Default
     
  20. Offline

    embty

    Lol i meant adding portable torchs for avoiding the dark somtimes just like in amnesia game :p
     
  21. Offline

    Kevin Forte

    Ohhh haha gotcha xP Well, I would if that plugin didn't already exist :p

    Well yeah, you can do that. That's based on your permission's config though, I don't do that haha (Sorry if I'm misunderstanding what you're asking). If you want to reverse the permissions node so that only certain groups Are affected by AmnesiaCraft, put the 'ac.levelhead' node in default, and then put '-ac.levelhead' in any group you want affected.

    You need Permissions :)

    That's probably the best idea I've heard so far.

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

    Trenix

    I got it working but now "Unknown console command. Type "help" for help." spams up my whole chat. Also a suggestion, don't make us require permissions.
     
  23. Offline

    Kevin Forte

    It's hard to use a permission that negates the plugin without using permissions. It's more rare for a server to not use Permissions nowadays anyways, I believe. Send me your entire cmd prompt please?
     
  24. Offline

    Trenix

    This is when the game starts up...
    Code:
    16:50:56 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-753-
    g34e310c-b803jnks (MC: 1.5_02)
    16:50:56 [INFO] Preparing level "world"
    16:50:56 [INFO] Preparing start region
    16:50:57 [INFO] [Permissions] (Phoenix) was Initialized.
    16:50:57 [INFO] [AmnesiaCraft] Enabled. Breathe steadily and try to relax.
    16:50:57 [INFO] [Permissions] version [2.7.4] (Phoenix)  loaded
    16:50:57 [INFO] Done (0.074s)! For help, type "help" or "?"
    16:51:16 [INFO] Request: GET http://www.minecraft.net/game/checkserver.jsp?user=
    klipse&serverId=c21b55264dd0e0f
    Will go to http://mineshafter.appspot.com/game/checkserver.jsp?user=klipse&serve
    rId=c21b55264dd0e0f
    16:51:16 [INFO] resp: 200, len: 0
    16:51:16 [INFO] klipse [/192.168.2.4:53137] logged in with entity id 60 at (-26.
    5, 66.62000000476837, 9.5)
    >
    This comes up when I leave the server, not sure if it's supposed to do that.
    Code:
    16:55:00 [INFO] klipse lost connection: disconnect.quitting
    16:55:00 [INFO] Connection reset
    16:55:01 [WARNING] Task of 'AmnesiaCraft' generated an exception
    java.lang.NullPointerException
            at kforte318.AmnesiaCraft.AmnesiaCraft$2.run(AmnesiaCraft.java:218)
            at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(C
    raftScheduler.java:138)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:365)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:292)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    This is how my permissions are setup...
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '-ac.levelhead'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - '-ac.levelhead'
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
     
  25. Offline

    Tulips

    the problem was that i didnt lose sanity unless i was taking damage like that in pitch blackness :/
     
  26. Offline

    Kevin Forte

    Oh, that's because the default light level at which you lose sanity is Really low. I'll be adding a config soon.

    I already know about that, it doesn't affect anything, don't worry.

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

    Trenix

    So how do I stop it from spamming up in my chat?
     
  28. Offline

    Kevin Forte

    That's on me. I want to do a code cleansing/rewrite of most (if not all) of my plugins soon, and it will hopefully be solved then.
     
  29. Offline

    NightmareX91

    1.6 is out, you could maybe get that nether portal transition going :D
     
  30. Offline

    Kevin Forte

    We shall see how Bukkit responds :p
     
  31. Offline

    antonysze

    i want this too
     

Share This Page