Inactive [MECH] TeslaCoil v2.6.2 - Keep mobs at bay - the futuristic way! [CB 1.4.5-R0.2]

Discussion in 'Inactive/Unsupported Plugins' started by darklust, May 5, 2011.

  1. Offline

    darklust

    TeslaCoil - Tesla Coil mob control:
    Version: v2.6.2

    Usage: the player must construct a tower of no less than 3 iron(configurable) blocks, and connect this directly to a redstone current. While the current is active, all mobs within a radius proportionate to the height of the coil (3 blocks high = 3 block radius), above or below ground, will be fried. The towers ping every second, so mobs chasing you will quickly regret it

    Moved to BukkitDev: http://dev.bukkit.org/server-mods/teslacoil
     
  2. Offline

    zweigesicht

    Hi! So I'm not using permissions, let me know if I have to.

    In the config, I changed the block ID to 4 so I could use cobblestone. have a tower stacked 4 blocks high with just a switch on it. I added a redstone wire leading to it. I flick the switch on and off and nothing happened. I tried adding a sign and then added all the mob letters after [mobs] on top like your example but... it just doesn't seem to work. Am I doing anything wrong or do I really just need permissions? I noticed if I try to type /teslareload it just says internal system error :confused:

    So.. any help? thanks.

    Just managed to fix my silly problem. Make sure the mobs you are trying to kill are level with the base of the tower ;)

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

    darklust

    Additionally, you can modify the vradius property in the config to hit mobs above the tower, the default is 2, and therefore only mobs level with the base and the block above it are hit by default.
     
  4. Offline

    L24D

    @darklust
    Okay, i'm back, and the error is still there, apparently..
    Here's a peek at it:

    Code:
    2011-09-04 18:32:55 [SEVERE] Could not pass event PLAYER_INTERACT to TeslaCoil
    java.lang.NullPointerException
        at net.louderthanthunder.darklust.TeslaCoil.d.onPlayerInteract(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:314)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:139)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:805)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:128)
        at net.minecraft.server.Packet18ArmAnimation.a(SourceFile:35)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:478)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    NPE.. Anyways... hope this leads you on the path to finding it :)
    Thanks bunches!
     
  5. Offline

    darklust

    Damn yeah, has to do with thread-safe collections. This will be fixed in the next update, along with added player-target signs.
     
  6. Offline

    darklust

    I'M LIKE 98% SURE I FIXED THIS
    And to all posts like this, I've just added a new property to the config, safelightning: true/false, which doesn't cause the area-damage if you're around a mob that was targeted.

    NEW UPDATE:
    Player-target signs, now you can target permission groups as well. Added pumpkin-helmets as a safety thing, so you can get by a coil that is explicitly targeting you or your group. I think that's it.

    NEVERMIND.
    That spout error seems Spout-specific, I'm not using Spout so something in their plugin is erroneous.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 15, 2016
  7. Thank you darklust, but my problem is not area damage but it actually target players and not mobs,
    is the sign commands needed to avoid this ?
    Iv only successfully used the old version many months ago with mc 1.5.
     
  8. Offline

    Ceredorac

    this will bring great new ideas of base defence on rpg servers
     
  9. Offline

    darklust

    If you don't have any signs, the coil is programmed to do nothing. The only time the coil had this feature was back in May.
     
  10. Then explain why im killed.
     
  11. Offline

    darklust

    You saying that doesn't help. What bukkit version are you running, what plugins are you running, and when the coil is hitting you, is there an error in the console and, if so, what is it?
     
  12. Ok now everything survives, it target the mobs specified but no damage sound or animations, only sand to glass work.
     
  13. Offline

    Moonridden

    I was wondering if there was a way to specify ALL players when your not using perms. I'm really stubborn with permissions, since its a pain to setup and we have like 50 plugins. Can i set it to all players? Or do i just put no sign at all?
     
  14. Offline

    darklust

    Not currently, though note that if you were to target all players, you would also be hit upon activating it. I will add this however, as I plan to have the option to include/exclude certain players/groups, making it easier for larger player bases.
     
  15. Offline

    Moonridden

    Were on a Apoca-style server, pumpkins dont spawn, and i have godmode. But, since your incorperating a diffrent style of EXclusion, ill just wait. I cant wait for that integration. [diamond]
     
  16. Offline

    darklust


    New video addressing new features :]
     
  17. Offline

    ericyang158

    I've been having a problem where the tesla coils I build just do not work.

    the message that keeps appearing in my console is:

    20:28:18 [SEVERE] Could not pass event BLOCK_PHYSICS to TeslaCoil
    java.lang.NoSuchMethodError: org.bukkit.block.Block.getRelative(Lorg/bukkit/block/BlockFace;I)Lorg/bukkit/block/Block;
    at net.louderthanthunder.darklust.TeslaCoil.TeslaObject.isCoil(Unknown Source)
    at net.louderthanthunder.darklust.TeslaCoil.PowerListener.onBlockPhysics(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$25.execute(JavaPluginLoader.java:413)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
    at net.minecraft.server.World.k(World.java:443)
    at net.minecraft.server.World.applyPhysics(World.java:430)
    at net.minecraft.server.World.setData(World.java:343)
    at net.minecraft.server.BlockSoil.a(BlockSoil.java:47)
    at net.minecraft.server.World.j(World.java:1934)
    at net.minecraft.server.World.doTick(World.java:1706)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:441)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  18. Offline

    darklust

    What version of Bukkit are you using?
     
  19. Offline

    L24D

    @darklust
    Ah, crap... It appears to still be there..
    Slightly different this time though, i believe...
    Have a look, see what you think:
    Code:
    2011-09-09 16:33:00 [SEVERE] Could not pass event PLAYER_INTERACT to TeslaCoil
    java.lang.NullPointerException
        at net.louderthanthunder.darklust.TeslaCoil.d.onPlayerInteract(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:314)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:139)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:541)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:478)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    I'll see if i can give the spout guys a message too...
    alta189 might be able to pinpoint something, if all else fails.

    [EDIT]: it just threw another one... Slightly different...
    Code:
    2011-09-09 16:48:00 [SEVERE] Could not pass event PLAYER_INTERACT to TeslaCoil
    java.lang.NullPointerException
        at net.louderthanthunder.darklust.TeslaCoil.d.onPlayerInteract(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:314)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:139)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:805)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:128)
        at net.minecraft.server.Packet18ArmAnimation.a(SourceFile:35)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:478)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    Sorry, don't mean to spam you with random errors... i just noticed this one was different from the previous one...
     
  20. Offline

    flaviettotunz

    please updates the plugin for the 1.8 server
     
  21. Offline

    darklust

    Done, added endermen, wolves, and cave spiders as targets.

    I've added this feature with the newest update.
     
  22. Offline

    MommaCow

    I cant get it to work right >.< No matter how tall I make my tower it only hits mobs within a 3 block radius
     
  23. Offline

    darklust

    In the configuration, you can set the teslaradius to 0, which makes it rely on height.
     
  24. Offline

    Zenophobe

    1.8.1
    bukkit 1139

    I can't seem to get this to run.
    i've type
    telsareload in the pail server manager server control tab
    and other ways and just says unknown command

    I typed it into CraftBukkit Server vm screen and get error.

    >teslareload
    18:14:22 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'tesl
    areload' in plugin TeslaCoil v2.4
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:41)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:16
    3)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3
    53)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3
    49)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:499)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:478)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.command.Coloured
    ConsoleSender cannot be cast to org.bukkit.entity.Player
    at net.louderthanthunder.darklust.TeslaCoil.TeslaCoil.onCommand(Unknown
    Source)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:39)
    ... 7 more
     
  25. Offline

    darklust

    More of a laziness on my part, the command is only meant to be run by a player, and I did not include a check for if the sender is the console. I apologize, but running the command in-game will work.
     
  26. Offline

    darklust

    Rewrote the code in an effort to fix this.
    Fixed this.

    Anyone have more feature ideas?
     
  27. Offline

    Silvo

    btw... from which iron block is the radius calculated? Bottom block? Block on which is the lever? Or sign?

    Ah, yes. I setted my configuration to coil height x 2 = zap radius
     
  28. Offline

    darklust

    The radius, based on height, begins from the block where the power is input.
     
  29. Offline

    Moonridden

    So, dark, whats the setup for the signs to target players. I saw you integrated this into the update(i claim the idea), and id like to know how you would set that up. Again, we hate perms, because even using Essentials GM dosent even work. :s
     
  30. Offline

    darklust

    Signs on the block above the power input with [players] as the first line, and the players you want to target in the following lines. You could have 4 player targeting signs that target 12 players, if you don't have permissions, if you have permissions you can target player groups. If you include 'ex' like [players]ex, you can hit all players with only the players you want to exclude on the sign.
     
  31. Offline

    Moonridden

    Thats a very intriguing setup, and i approve of it. We finally got Perms, err GM, to work for us, after an eternity of fiddling. I actually have a suggestion, should you decide to implement it. Maybe you could also give the option/ability to have to towers fire ghast fireballs? Think... Cannon tower, which would be on par with the Tesla, depending on if and how you code it. Just an idea. :) Thanks for the integration. I still hate perms. :3
     

Share This Page