Turrets
Turrets
Automatic turrets for Bukkit servers (cleverly disguised as minecarts!)
I moved the project into Beta as there have been more people downloading and, I'm assuming, testing it, with no major issues. There is a lot going on in this plugin, and little changes can have far reaching consequences, let alone big changes, so I still won't stake my name on saying it absolutely won't mess anything on your server up. Please report any problems you have!
Currently working on: DisguiseCraft support. Give me your ideas on what you'd want from this :)
Details: I'm hooked into DisguiseCraft, just need ideas for what kind of features are desirable!
Download
I'll try and keep this up-to-date. If all goes as planned, this version should be the same or newer than the one linked to this BukkitDev entry.
A Jenkins job has been created to house dev builds. You can access it here!
v0.2.3a - Manual turret control!
For those of you antsy about getting a version for 1.4.4, here's an unofficial 1.4.4 dev build.
Link Removed: http://www.mediafire.com/download.php?85saz80idpsafef
Building turrets is easy: Just place a fence post, then right click with a minecart on top. It's so easy, even a guest could do it! (That's why Turrets has permissions support.)
Make sure you attach an ammo chest to the turret (see command page) or set turrets to have unlimited ammo (see config page).
Breaking turrets is also easy: Just left-click it until it breaks, just like a minecart.
Features
- Turrets target hostile mobs
- Turrets will avoid shooting through walls
- Turrets use ammo chests (configurable).
- Turrets are upgradable!
- Upgrade a turret by replacing the block under its fence post: iron -> gold -> diamond
- Better turrets can shoot faster, farther, more accurately
- Firing speed, range, and accuracy can be changed in the configuration
- Turrets are breakable! (With permissions, of course)
Possible future features
Commands
Permission Nodes
Also, thanks to damnnicholas for his YouTube video explaining the plugin.
Same as woxzi. I'm using 1.4.2 with the plugin version 1.4.2a. No errors, and Bukkit reports that the mod is being loaded. I'm opped, so it's not a permission problem. I just can't make turrets. Tried on every block type.
Edit: Just tried the 1.4.4 version of the plugin with Bukkit 1.4.4. Still can't make turrets.
So in other words, the mod in general hasn't worked for several versions?
@wristdirect
-.- idk if it's the dev version, but the plugin won't allow for placing of turrets. I've been testing it on a blank bukkit server with only vault to test the compatibility, but the plugin just won't cooperate.
@n33dy1
Bad news is the way the code works you can't really do that without potentially busting a whole crap load of stuff ><
Good news is it's a really easy fix for me to update to 1.4.4 :)
I can't make an official update with a dev build to dev.bukkit.org, but I can post a link here for you :)
Link Removed: http://www.mediafire.com/?durjbal51a4ztoy
@wristdirect
It would be cool if you had it check for what version they were running and have it be backwards compatible or something. Hope you fix the issue where turrets randomly disappear and don't come back until you do /turrets reload because it makes me sad.
@n33dy1
Yeah, I haven't updated to 1.4.4 yet. The problem is that if something breaks in a new dev version (here 1.4.4) and I fix it, the new version I make won't work with the old version (1.4.2).
I suppose I could just update it and make sure people know it's only for 1.4.4 if they update.
I'll check it out.
@wristdirect
1.4.4 is super weird when you enter a turret to man it. Might want to check that out.
@n33dy1
Oh, also n33dy1, in general you shouldn't have to blow away your config file or turret/turret owner database files. I almost always have it auto-check for old version stuff and update for you :) (like when I changed the blacklist/whitelist file, I had it change the filename and remove the old one)
@Redstoner_Pro
Try the new version. It should no longer produce that error.
@n33dy1
Yeah the disappearing things really sucks, and I have absolutely no clue what is causing it. It's been a problem since the beginning, though I did notice that it did seem a little worse in this last version; was hoping it was just me.
I sent a PM to a developer for Citizens, hoping that he would be able to shed light on this, as I remember Citizens having the same problem for me when I would load the server, and I'm pretty sure they got it fixed. Sadly I've gotten no reply yet :(
If anyone wants to appeal to any of the Citizens developers as well, I'm sure having more people ask wouldn't hurt :)
Sorry for that problem guys, I really wish I could figure out where it's coming from.
Yeah. just using 1.4.2 beta 2. I downgraded to previous version and everything works fine. Not sure exactly what causes it. All I do is place a fence, then click the top with a minecart, bam, error.
Edit - Ignore this. Just realizing you posted that you found the bug.
@wristdirect
Man, I love this. You're a very good dev. My players freaked when I started manually shooting at them.
EDIT: Is it just me or is this update (maybe since the last idk I skipped the last update) making the minecarts disappear more? I wish you'd make some very detailed, step-by-step update instructions. I just deleted my config file, threw in Turrets.jar, and restarted my server.
@n33dy1
good catch :) fixed it
Turrets v0.2.3a
edit: Oh, and apparently I fixed the bug with turret making. Sorry guys, it's been a hectic week, I guess I forgot I had fixed it and didn't upload the fix before ><
@Redstoner_Pro
@Nonewudknow
@Redstoner_Pro
Hmm, I can't seem to duplicate this guys...exactly what version of craftbukkit are you using? Is it the new 1.4.4? I haven't tried anything with that yet. So far with 1.4 I've stuck to Beta builds (so 1.4.2 right now)
Sorry for the delay guys, real life is really busy right now :/
I'll look into this a little tonight and hopefully have something tomorrow
@Bruno02468
havent figured out what it is yet. guess we are wating for a fix from the developer.
Im going to try an older version to see if it relates to last update or our servers.
@Redstoner_Pro
Same with me.
Do you have any idea of what that means? XD
If a user is being attacked by the turrets in my spawn because I added him to the blacklist, then I take him off the blacklist while the turrets are shooting at him, the server crashes.
@Redstoner_Pro
i get the same exact thing when i try to put a minecart on top of the fence
Any chance we'll see an API of sorts? ;)
Maybe an event so a plugin can hook in and decide what the turret shouldn't shoot at.
BTW, DisguiseCraft support means that disguises should be able to sit in the carts when the players do ;)
And maybe when I start implementing "dropped disguises" you can have a creeper sitting in your turret...
I get this when it click on the fence post with a minecart. I have tried with and without the supply chest. I cannot seem to build a turret.
2012-11-10 22:00:16 [SEVERE] Could not pass event PlayerInteractEvent to Turrets v0.2.3
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:341)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177)
at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:366)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:650)
at net.minecraft.server.Packet15Place.handle(SourceFile:58)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:282)
at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:111)
at net.minecraft.server.ServerConnection.b(SourceFile:35)
at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:569)
at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:215)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:486)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:419)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:818)
Caused by: java.lang.NullPointerException
at me.azazad.turrets.TurretsListener.onPlayerInteract(TurretsListener.java:199)
at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:339)
... 16 more
Okay guys, Turrets v0.2.3 is officially out! Full manual turret control (aiming and shooting) is now available! :D
As always, let me know of any problems you encounter, and I'll be sure to fix any bugs quickly if there are any.