Ranged Wolves
RangedWolves - Bring out your hunting dogs!
Version: v1.0.2 - CB 1988 (1.1-R6)
Inactive until further notice!
Until setting targets for Wolves is fixed in CraftBukkit, I will not be releasing any updates. I will continue to add in any suggestions you may have, if I so choose, but I don't want to release something that doesn't work to the public. The builds I have now (1.0.2, 1.1, 1.2-Dev) don't even work for me, so they won't work for you.
This plugin allows for having your pet wolves attack your ranged target. In other words: if you attack a creature or player with any sort of projectile (arrow/snowball/etc), your wolves will attack that target!
I had been looking for this feature for a while and hadn't come across it, so I took it upon myself to build my java skills and make it happen!
Mob Arena is NOT required, however it is an awesome plugin.
If you do have Mob Arena, this is built against v0.94.4.64! This is a Dev build of MobArena, found here. I'd highly recommend giving it a try, and reading the changelog for it.
Many thanks to @garbagemule for helping me throughout the ordeal, and teaching me stuff about Java I didn't realize/learn yet in school. And also for making Mob Arena :)
Features:
- Makes wolves attack your ranged Targets
- Configurable for each World and (if applicable) each Arena
- Checks for World PvP (and MobArena PvP)
- 3 simple commands
- "/rw reload" - reloads the configuration file
- "/rw reloadMA" reruns the Mob Arena setup code and auto reloads
- Ops only (and console)
- "/rw retro" - searches for nearby wolves not already associated with their owner
- Anyone can use this
- Hopefully not required
- "/rw reload" - reloads the configuration file
- Very few permission nodes required, see here
Downloads/Links:
- Source Code - Github (also included in the jar file)
- Github (supposedly wget friendly)
- DropBox
Forum:
Configuration:
Things to know about the config.yml
Permissions:
Permission nodes: see here
NOTE! If not running any sort of permissions plugin, this should run as it always has, everyone can use it, and Ops get access to the reload commands
TODO:
- Any ideas will be considered (But not necessarily implemented)
- Edit the way the config works. See this comment for how it will end up working.
- Ensure wolves stay associated with their owner after server shut down/restart
- Unless there's an easy way to get Wolves by their Unique IDs that I'm completely overlooking, this isn't happening any time soon.
Known Issues:
- While testing on 1.2.X builds, I've noticed wolves don't actually go attack your target, even after playing with my code.
- Server restarts still don't retain the relationships, although relogging and reloading does retain them.
Submitting a bug report:
- Please provide as much information as you can so I can make bug fixes as quickly as possible
- Please include:
- CraftBukkit Build
- MobArena Version number (if applicable)
- StackTrace from your server.log file (if applicable)
- Reproduction steps to help me track down and squash these nasty bugs!
- The more detailed these are, the better!
Changelog:
Version 1.0.2 - 3/11/12
- Fixed checking Max Wolf cap for offline players, they were able to get as many wolves as they could before, now they're capped.
- Unfortunately, even if the player has permission to bypass the cap, I can't check an offline player's permissions.
- Cleaned up the onEntityDamage listener some.
- Fixed "/rw retro" command, it now takes into account if a nearby wolf's owner is offline or not, and the command now obeys the Max Wolf cap
- Added checks to the "/rw reloadMA" command to make sure MobArena is on the server and enabled before running the reloads
- Cleaned up "/rw reloadMA" command too
- Added a return to onEntityTame to make sure I don't add untamed wolves to a player's list and falsely inform the player they tamed a wolf
- Removed more references to my WIP targetting for now.
@BlahBerrys
Great, thank you so much!
I've been growing irritated that this developer doesn't feel like working on it, yet was still sitting on the project.
I notice now yours hasn't been updated in a while? Sigh. :(
Guess we all have to wait for someone to make a RangedWolves Reloaded.
I've continued this mod, it is now located at: http://dev.bukkit.org/server-mods/rangedwolves/
Hello, i know this is inactive, but i was wondering how you got the wolf to attack the player/ how you set the target. I am making a plugin like this with irongolems and all commands and that is all i need
@dasbreen
Getting this to work again would be great! I know of an admin who would add this in a heartbeat for the ultra hard core matches he hosts. :)
So people know, I'm going to slowly work on rewriting this. I feel the current code has gotten a bit... messy. I've gotten wolves to attack again, but you need to be fairly close for it to work properly. Classes are starting soon and I'm working on another project right now, but I'll try to keep the changelog page updated with any progress I've made and any changes/fixes/additions I've made
@defsin32
what version number of RangedWolves, MobArena, and CraftBukkit are you using?
@OriginalMadman
I get the same error. I have the Mob Arena plugin and decided to put in some Wolves for a class but it won't work properly because i get the error.
@spydercanopus
You and me both. Until they fix it I don't even have the desire to do what I planned for version 1.2. That and I typically only used it in Mob Arena myself as well.
This plugin made mob arena so much better. Hope they fix whatever it is in 1.3
@OriginalMadman
may I ask what version of RangedWolves you're using?
Plugin seems broken on upgrade to CB 1.2.5RB4.1 later dev versions (works fine in CB 1.2.5RB4 - all else equal)
2012-07-10 19:33:23 [SEVERE] Could not pass event EntityDamageEvent to RangedWolves org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304) 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 net.minecraft.server.EntityLiving.aA(EntityLiving.java:302) at net.minecraft.server.Entity.F_(Entity.java:269) at net.minecraft.server.EntityLiving.F_(EntityLiving.java:437) at net.minecraft.server.EntityMonster.F_(EntityMonster.java:25) at net.minecraft.server.World.entityJoinedWorld(World.java:1264) at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:106) at net.minecraft.server.World.playerJoinedWorld(World.java:1246) at net.minecraft.server.World.tickEntities(World.java:1153) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:560) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:461) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.NullPointerException at com.ACStache.RangedWolves.RWListener.onEntityDamage(RWListener.java:64) at sun.reflect.GeneratedMethodAccessor149.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ... 14 more
Hello, Can you make with this plugin that, tamed wolfs can attack any player if they go near them? I mean if player burgle (or break into i don't know which means that i think) into my house, my tamed wolf attacks him. Thanks and sorry about my bad english
@dasbreen
Well thanks a bunch for trying at least! I really hope you can figure it out
Any possibility of updating this? The Wolves attacking has been fixed I believe.
@jackdh
I've tried a couple things with no luck to work around the broken setTarget() issue. For now, it's not working. It's more an "inactive because the code doesn't work as intended, even if the author isn't inactive" type of situation :-/
however, if I feel up to it this weekend, I may try getting around it again.
Should this be changed to inactive? Or is there still hope?
@dasbreen @dasbreen
Awwww, damn, alright well i look forward to when it ca be updated and fixed, Ranger class is really hard without it.
@cena6665
At the moment it's out of date. I tend to keep the change log page up to date though. Basically with the new AI, the method used to set targets has stopped working properly for wolves (also other animals, but I only care about wolves lol). There seems to be a way around it, but I haven't tested it yet, and I won't be able to until after my final exams this week. Also in the case of Minecraft updating before Bukkit, this workaround would break. Hopefully I can get some testing and coding done this weekend.
so is this dead? out of date?
Please update it asap. I can't wait for it.