CitizensDev / Citizens

NPCs for Bukkit
citizensnpcs.co
Other
107 stars 53 forks source link

Guards Unresponsive #178

Open jaseaman opened 13 years ago

jaseaman commented 13 years ago

I know that this feature has not been completely implemented.

Here are the list of commands i do to make the NPC TRY to kill mobs, however they do not, they just ignore that mob.

/npc create Joe /toggle guard /guard bouncer /guard radius 50 /guard addflag 1 -m creeper /guard addflag 2 -m skeleton /guard addflag 3 -m spider /guard addflag 4 -m zombie /guard addflag 5 -m enderman

Thats what i do and ive cross referenced and YES the guard is set to agressive.

Any Ideas?

Thanks Myhijim

jaseaman commented 13 years ago

Do i need to add pathing?

fullwall commented 13 years ago

Shouldn't do... I'll look into it.

Williamsson commented 13 years ago

I'd also like to point out that I am experiencing the very same issue, and we're using bukkit: RB 1185 Citizens 1.1

jaseaman commented 13 years ago

Yep same version, i was thinking it was just laggy but no.

Btw i do love the plugin, this guards would be perfect for my zombie survival :D

fullwall commented 13 years ago

Hmmm... very strange - I can't reproduce - perhaps try the latest dev build and see if you get the same results?

jaseaman commented 13 years ago

Please link? Sorry i am quite new to this

quickclay commented 13 years ago

I also am getting the exact same issue, cb 1185, cit 1.1, PEX

fullwall commented 13 years ago

Stranger and stranger...

Williamsson commented 13 years ago

Solved it, there's a compatibility issue with some plugin. I removed a bunch plugin on my local server, and all of a sudden the npc, with bravery in his heart, charged at the skeleton with nothing but his fists. I fell in love with him, that handsome fella.

Aaaanyhow... Don't know what plugin it is yet, will implement them one at a time when I have time to. But it's not Citizens fault anyhow.

jaseaman commented 13 years ago

Okay Thanks But most of my plugins are essentail to my server :/

List: -Residences -MyWorlds/Multiverse -Essentials -Permissions -Pail (Shoulnt do but cant be too sure :P) -Turnstiles

And thats it as far as i can think of, i cant really check as im not at my server computer atm, but will add if there are anymore.

@Williamsson Did you remove any of these?

jaseaman commented 13 years ago

I believe it is an issue with multiworld at the moment, thats what i can see as the problem, not sure though.

Williamsson commented 13 years ago

The plugin I found to be the problem was MultiInv. I have no idea of why, but when it's installed the guards won't work. If you have it too, remove it and test. Otherwise test it on a different server and remove plugins one by one.

@fullwall I can haz cookie? :3

jaseaman commented 13 years ago

Hmmm I dont have Multi Inv but i will test the guards if i have time, of which i dont have now :/

Realexa commented 13 years ago

I don't have MultiInv but i dó have multiple worlds! I use Xcraftgate. After a server restart i logged in right away and i saw a guard butcher 1 sheep (and there was some wool on the floor from a previous one, i flagged sheep for testing). But when i came online he finished the one off and then stopped. Also, when i logged in, the console gave me a guard.jar specific error... with some permissions reference in it aswell (i just switched to PermissionsBukkit).

So i could imagen that Citizens (or the guard.jar) has issues locating on which world the npc is or something? And maybe it tried to check the group i was in when i logged in and thus came close?

jaseaman commented 13 years ago

Yeah that was my train of thought too, but even now on one of my worlds, when set to bouncer they wont even move

fullwall commented 13 years ago

@Realexa - if there's a permissionsmanager error, you likely need to update the rest of your type JARs @myhijim - which citizens version are you using? A plugin conflict would make sense - a multiworld plugin even more so if not using the latest dev builds.

jaseaman commented 13 years ago

1.1 I cant update to the dev builds due to my server being on a different computer... A shame if you ask me, infact my server just crashed then, mighty shame.

The Bouncers have now started to move around however, i did spawn 3 zombies infront of him and he didnt attack.

Realexa commented 13 years ago

I'm sorry.. i wasn't clear enough. The error is a citizens error (and mainly on the guard and its flags) but it does say in its error something about a permission aswell. Below the error pasted to make things more clear:

22:52:43 [WARNING] Task of 'Citizens' generated an exception java.lang.NoClassDefFoundError: net/citizensnpcs/permissions/PermissionManager at net.citizensnpcs.guards.flags.FlagSorter$6.apply(FlagSorter.java:103)

    at net.citizensnpcs.guards.flags.FlagSorter$6.apply(FlagSorter.java:85)
    at com.google.common.collect.Iterators$7.computeNext(Iterators.java:606)

    at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractI

terator.java:136) at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.j ava:131) at net.citizensnpcs.guards.flags.FlagSorter.getPossible(FlagSorter.java: 149) at net.citizensnpcs.guards.flags.FlagList.process(FlagList.java:38) at net.citizensnpcs.guards.flags.FlagList.processEntities(FlagList.java: 63) at net.citizensnpcs.guards.GuardTask.handleTarget(GuardTask.java:116) at net.citizensnpcs.guards.GuardTask.run(GuardTask.java:78) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(C raftScheduler.java:137) at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:439) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374) at net.minecraft.server.ThreadServerApplication.run(SourceFile:417) Caused by: java.lang.ClassNotFoundException: net.citizensnpcs.permissions.Permis sionManager at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.net.FactoryURLClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 14 more 22:52:43 [WARNING] Task of 'Citizens' generated an exception java.lang.NoClassDefFoundError: net/citizensnpcs/permissions/PermissionManager at net.citizensnpcs.guards.flags.FlagSorter$6.apply(FlagSorter.java:103)

    at net.citizensnpcs.guards.flags.FlagSorter$6.apply(FlagSorter.java:85)
    at com.google.common.collect.Iterators$7.computeNext(Iterators.java:606)

    at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractI

terator.java:136) at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.j ava:131) at net.citizensnpcs.guards.flags.FlagSorter.getPossible(FlagSorter.java: 149) at net.citizensnpcs.guards.flags.FlagList.process(FlagList.java:38) at net.citizensnpcs.guards.flags.FlagList.processEntities(FlagList.java: 63) at net.citizensnpcs.guards.GuardTask.handleTarget(GuardTask.java:116) at net.citizensnpcs.guards.GuardTask.run(GuardTask.java:78) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(C raftScheduler.java:137) at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:439) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374) at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)

quickclay commented 13 years ago

Of the multiworld plugins listed above, I also have XCraftGate. I will test removing that to confirm it's the source of the compatibility problem.

quickclay commented 13 years ago

Regarding getting the dev builds, I get 404 errors on citizensnpcs.net. Could you check on that, or host the latest dev build at BukkitDev? Thanks!

quickclay commented 13 years ago

Problem with xCraftGate multiworld manager confirmed. I unloaded XcraftGate and guards became responsive. Unfortunately I need xCraftGate for my server. Does the dev build of Citizens address this? Thanks!

quickclay commented 13 years ago

Sorry for the several posts. Strangely, after unloading xCraftGate, running the server, than reloading XCrafGate, guards now attack mobs properly?!

Realexa commented 13 years ago

@quickclay Which version of Xcraftgate do you use? I've got the latest one (3 days old, 0.10d4) but maybe the conflict doesnt exist in a different version?

Then again... Williamson has the problem using a different multi-world addon (Multiverse) so i guess this problem occurs in any situation multiple worlds are loaded. :(

jaseaman commented 13 years ago

Get the latest dev builds here guys, just figured it out myself

http://ci.citizensnpcs.net/

jaseaman commented 13 years ago

Yeah there seems to be no support for multiworld

Williamsson commented 13 years ago

@Relaxea No, not multiverse - Multi Inv, the plugin that sets different inventories per world. Multiverse (2) works just fine with citizens.

Realexa commented 13 years ago

Thanks! Getting the latest build from http://ci.citizensnpcs.net/ fixed it for me!

quickclay commented 13 years ago

@Realexa, I have been using xCraftGate version 0.9. I'll upgrade both it, and Citizens to latest dev build. Looks promising based on your above comment. :D

jaseaman commented 13 years ago

Ok well im still waiting to go to my server computer, mighty shame...

quickclay commented 13 years ago

The dev build looked promising, but after a short amount of time (maybe 15 minutes), Guards go back to being unresponsive with the dev build too. Also, I noticed that they didn't return to their tile after chasing an enemy unless a path was set, but if set, they returned there after each kill, even if other mobs were present.

Realexa commented 13 years ago

I've been running the server for at least an hour now and the guards keep working. The resetting is a bit off indeed, they often end up on a different tile. Make sure you update both the guard.jar as the citizens.jar (all of them actually) as different versions caused some errors for me.

In the later builds of today i think it works aswell, try a different build otherwise: http://jenkins.citizensnpcs.net:81/job/Citizens

jaseaman commented 13 years ago

ok thanks ill try it if my friend at the server computer responds... -_-

jaseaman commented 13 years ago

@quickclay I am experiencing exactly the same after updating to the newest dev build @fullwall Found a solution yet?

quickclay commented 13 years ago

Likewise. I still think it has to do with some sort of multi-world issue.

Patolord commented 12 years ago

same problem guard is unresponsive

Patolord commented 12 years ago

still waiting for a solution SIR DEVELOPER

fullwall commented 12 years ago

It's odd, because it works fine for me... :(

Williamsson commented 12 years ago

I suggest you all to remove all plugins but citizens, just as a test, and see if it works then. As I mentioned before, I had issues with multiinv, see if it works.

If it does, I hope fullwall have some idea of why it's so.

I don't know if we're still having that issue, since we're currently switching worlds and are not using citizens right now. I'll however come back if the issue is still there when we're done.

Cixxar commented 12 years ago

This is a problem for me also. please lookinto this