[FUN] Citizens v2.0.11 - Human NPCs for Bukkit [1.7.2]

Discussion in 'Archived: Plugin Releases' started by Citizens, Mar 5, 2011.

  1. Offline

    Citizens

    Citizens - Human NPCs for Bukkit
    Version: 2.0.11
    Authors: @fullwall and @aPunch
    Source: Citizens on GitHub

    Citizens is now on BukkitDev

    This thread will no longer be updated. We encourage you to use our page on BukkitDev. You can find information, links to our wiki and website, and the download page there.

    Showing Your Support

    We work hard to maintain Citizens. We've been working on Citizens2 around the clock on new and exciting features. A little motivation never hurts, so feel free to donate to us - fullwall and aPunch.

    If you can't donate, we appreciate a "hello" every now and then. Stop by the IRC channel #citizens on irc.esper.net to discuss Citizens and give thanks!
     
  2. Offline

    DetCox

    hey works great uding cb 1000 and v1.0.9d :)
    is there any way yet to have traders sell colored wool and stuff, if so i could not find anything on it in the wiki.
    thanks
     
  3. Offline

    gmore70

    Sorry to report it, but NPC have dissappeared. When I am using the latest and greatest.

    Citizens 1.0.9
    RB1000
    MC 1.7.3

    When I use /citizens reload I get:

    2011-07-25 17:21:05 [INFO] [Citizens] Reloading configuration settings....
    2011-07-25 17:21:05 [SEVERE] java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
    2011-07-25 17:21:05 [SEVERE] at com.citizens.SettingsManager$Constant.toBoolean(SettingsManager.java:150)
    2011-07-25 17:21:05 [SEVERE] at com.citizens.utils.Messaging.debug(Messaging.java:62)
    2011-07-25 17:21:05 [SEVERE] at com.citizens.SettingsManager.setupVariables(SettingsManager.java:187)
    2011-07-25 17:21:05 [SEVERE] at com.citizens.commands.commands.BasicCommands.reload(BasicCommands.java:100)
    2011-07-25 17:21:05 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2011-07-25 17:21:05 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    2011-07-25 17:21:05 [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    2011-07-25 17:21:05 [SEVERE] at java.lang.reflect.Method.invoke(Method.java:597)
    2011-07-25 17:21:05 [SEVERE] at com.citizens.resources.sk89q.CommandsManager.executeMethod(CommandsManager.java:518)
    2011-07-25 17:21:05 [SEVERE] at com.citizens.resources.sk89q.CommandsManager.execute(CommandsManager.java:404)
    2011-07-25 17:21:05 [SEVERE] at com.citizens.Citizens.onCommand(Citizens.java:196)
    2011-07-25 17:21:05 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    2011-07-25 17:21:05 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    2011-07-25 17:21:05 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
    2011-07-25 17:21:05 [SEVERE] at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
    2011-07-25 17:21:05 [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
    2011-07-25 17:21:05 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    2011-07-25 17:21:05 [SEVERE] at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    2011-07-25 17:21:05 [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    2011-07-25 17:21:05 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    2011-07-25 17:21:05 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    2011-07-25 17:21:05 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    2011-07-25 17:21:05 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-07-25 17:21:05 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

    I have turned on debug mode.
     
  4. Offline

    gmore70

    Sorry to report it, but NPC have dissappeared. I am using the latest and greatest.

    Citizens 1.0.9
    RB1000
    MC 1.7.3

    When I use /citizens reload I get:

    2011-07-25 17:21:05 [INFO] [Citizens] Reloading configuration settings....
    2011-07-25 17:21:05 [SEVERE] java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
    2011-07-25 17:21:05 [SEVERE] at com.citizens.SettingsManager$Constant.toBoolean(SettingsManager.java:150)
    2011-07-25 17:21:05 [SEVERE] at com.citizens.utils.Messaging.debug(Messaging.java:62)
    2011-07-25 17:21:05 [SEVERE] at com.citizens.SettingsManager.setupVariables(SettingsManager.java:187)
    2011-07-25 17:21:05 [SEVERE] at com.citizens.commands.commands.BasicCommands.reload(BasicCommands.java:100)
    2011-07-25 17:21:05 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2011-07-25 17:21:05 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    2011-07-25 17:21:05 [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    2011-07-25 17:21:05 [SEVERE] at java.lang.reflect.Method.invoke(Method.java:597)
    2011-07-25 17:21:05 [SEVERE] at com.citizens.resources.sk89q.CommandsManager.executeMethod(CommandsManager.java:518)
    2011-07-25 17:21:05 [SEVERE] at com.citizens.resources.sk89q.CommandsManager.execute(CommandsManager.java:404)
    2011-07-25 17:21:05 [SEVERE] at com.citizens.Citizens.onCommand(Citizens.java:196)
    2011-07-25 17:21:05 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    2011-07-25 17:21:05 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    2011-07-25 17:21:05 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
    2011-07-25 17:21:05 [SEVERE] at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
    2011-07-25 17:21:05 [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
    2011-07-25 17:21:05 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    2011-07-25 17:21:05 [SEVERE] at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    2011-07-25 17:21:05 [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    2011-07-25 17:21:05 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    2011-07-25 17:21:05 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    2011-07-25 17:21:05 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    2011-07-25 17:21:05 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-07-25 17:21:05 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

    I have turned on debug mode.

    Restarting server fixes it! But when you have 30 people on, kind of sucks to have to do a restart.

    Let me know what you need.
     
  5. Offline

    gmore70

    Okay...getting this a lot in my server with debug mode. As per comment above:

    2011-07-25 17:31:28 [SEVERE] Could not pass event CHUNK_UNLOAD to Citizens
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
    at com.citizens.SettingsManager$Constant.toBoolean(SettingsManager.java:150)
    at com.citizens.utils.Messaging.debug(Messaging.java:68)
    at com.citizens.listeners.WorldListen.onChunkUnload(WorldListen.java:42)
    at org.bukkit.plugin.java.JavaPluginLoader$49.execute(JavaPluginLoader.java:584)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at net.minecraft.server.ChunkProviderServer.unloadChunks(ChunkProviderServer.java:243)
    at net.minecraft.server.World.doTick(World.java:1705)
    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)
     
  6. Offline

    beefroast

    When I create an npc, I cannot interact with it. I spam right click and left click and the npc does not talk or do anything. I have it setup so when a person comes near the npc it talks, but i prefer someone to select it for them to talk.

    can anybody help?
     
  7. Offline

    beefroast

    When I create an npc, I cannot interact with it. I spam right click and left click and the npc does not talk or do anything. I have it setup so when a person comes near the npc it talks, but i prefer someone to select it for them to talk.

    can anybody help?
     
  8. Offline

    fullwall

    @gmore70 - your config still has '' in it.
     
  9. Offline

    LucidLethargy

    This error *completely* floods my consol when I use 1.0.9d (1.0.9c worked perfectly fine)

     
  10. Offline

    fullwall

  11. Offline

    aPunch

    Refer to the red text under the Known Bugs section in the OP.
     
  12. Offline

    aPunch

    Nope, it is related the single quotes thing. He still has single quotes in his configuration files.
     
  13. Offline

    gmore70

    strange because I completely blew away all yml files in my citizens folder except npc-profiles, so that the 1.0.9d jar file could unpack the default yml files. As you can see:

    range:
    guards:
    default-bouncer-protection-radius: 10
    pathfinding: 16.0
    basic:
    look: 5
    items:
    item-list-on: true
    basic:
    select-items: 1
    talk-items: 340,
    healers:
    give-health-item: 35
    take-health-item: 0
    wizards:
    mana-regen-item: 348
    interact-item: 0
    ticks:
    guards:
    respawn-delay: 100
    healers:
    health-regen-increment: 12000
    wizards:
    mana-regen-rate: 6000
    saving:
    save-often: true
    use-task: true
    delay: 72000
    pathing:
    max-stationary: -1
    max-pathing: -1
    waypoints:
    right-click-pause: 70
    general:
    delay: 1
    general:
    defaults:
    enable-following: true
    talk-when-close: false
    debug-mode: 'true'
    healers:
    pay-for-heal: true
    regen-health: true
    colors:
    use-npc-colours: true
    npc-colour: f
    wizards:
    regen-mana: true
    max-mana: 100
    wizard-max-locations: 10
    notify-updates: true
    chat:
    slashes-to-spaces: true
    selection-message: <g>You selected <y><npc><g> (ID <y><npcid><g>).
    default-text: Hello.;How are you today?;Having a nice day?;Good weather today.;Stop hitting me!;I'm bored.;
    creation-message: <g>The NPC <y><npc><g> was born!
    format: '[%name%]: '
    selection:
    quick-select: false
    use-bukkit-permissions: false
     
  14. Offline

    gmore70

    To be 100% clear...the npc...as per my log...despawn every few hours.

    And...you asked that if anyone experiences any (show stopping) despawns in the latest (1.0.9d) to post. I did, with full details so you can see this issue and resolve it. If you dont want help, fine, I will no longer take the time.

    And...Im using your yml files the come in your jar files that get unpacked when you install 1.0.93.

    If your short answer was to quick and you need something more or where trying to say something different do let me know cause I can know other users are having exactly the same issue... especially when they get a lot of users on their server. I am here to help, not annoy.
     
  15. Offline

    Exidous

    you cant kill evil npcs in a no-pvp area? including worldguard and towny. Can this be changed?
     
  16. Offline

    dezsta

    is there any way to make the npc log on so the server thinks they are realy player this only needs to bee for a couple of secounds cos with the bukkit contrib, and playeredit these skins would get changed automaticly, offline mode server or a option to so it could be used with that pluggin, otherwise i have to log each of the npcs using a moded mincefraft exe
     
  17. Offline

    aPunch

    It's not like I don't appreciate it when people report unknown bugs. But when there is a "Known Bugs" section with an explanation on how to fix errors in bold red text, you have to understand it gets pretty annoying.
     
  18. Offline

    gmore70

    its says:

    Guards and Questers are not finished yet, DO NOT REPORT BUGS ABOUT THEM
    NPCs can disappear when teleporting near them. (?)
    ENTITY_DAMAGE errors and "Could not cast blah to blah" errors - FIX THESE BY REMOVING ALL SINGLE QUOTES IN YOUR CONFIGURATION FILES BESIDES items.select-items and general.chat.format

    There is absolute nothing about NPCs dissappearing randomly unless you tp near them. No one is teleporting to them, its factions with warp and tp off. And like I said 2 times above, I dont have ', Im using your yml files zipped in your jar. So just going blah at me....when you have a show stopping bug. really!
     
  19. Offline

    fullwall

    @gmore70 - there are '' around debug-mode.
     
  20. Offline

    aPunch

    <.<
     
  21. Offline

    eoden13

    Hey! great plugin! I love it! I can't wait to see more on the guards/bouncers.

    I got a few suggestions... might have already been made but 219 pages is a lot to read.

    1. support for mocreatures for guards blacklist
    2. possibly a mercenary class? be a sub of the guard. players can buy them and then the players can deck them out with their own gear. the Mercenaries would follow the player and protect him. Like a wolf except not so dumb. :) maybe set like max mercs per player as well... be really sweet. :)

    thanks again!
     
  22. Offline

    TheSmokingMiner

    I only seem to be able to place one waypoint for my NPCs, and they don't walk to it when I type /npc path again. I am using all default settings with no single quotes, and I don;t get any console errors.

    Am I missing something?
     
  23. Offline

    Phantom Index

    Well then I don't want people buying NPCS with flowers. This config only has options for economy plugins that is not iConomy. Probably already know this, but.. sometimes.. NPCS just become nothing and you can't click them.
     
  24. Offline

    Exanimo

    Using the latest version 1.0.9.d and the NPC despawning is still in progress heavily :(
    Often they are directly reloaded but quite some times they're not.

    What i dó notice is it not just happens randomly, it seems to despawn a bunch of npcs guarantees when a user takes a portal to a different world (using Xcraftgate).
    I haven't checked yet if this despawns the same npcs over and over, could check that if that is interesting.
    Seems NPC 17 is often in the mix so i'm going to delete that and recreate it to see if that helps.

    If you tell me what info you need to further investigate this issue i will try to gather as much info on it as possible.
    Thanks for the effort once again!
     
  25. Offline

    niugnip

    NPCs with an underscore (_) in their name can be pushed around like normal players. Changing the item in the hand only shows up after a relog.
     
  26. Offline

    niugnip

    NPCs with an underscore (_) in their name can be pushed around like normal players. Changing the item in the hand only shows up after a relog.
     
  27. Offline

    Deathlysteve-

    punch! you lied! u sed 1.0.9d will enable npc to attack entities! ME SO ANGWY! :p
     
  28. Offline

    Hero_188

    Why the heck are all the npc gone when i have to reset my server?
     
  29. i've got trouble as soon as i give my npc's a path.. and if i try to rename them they dissapear stating:
    Java.lang.NullPointerExecption: Null
     
  30. Offline

    dpakman

    When guards are killed they come back as an active player on the system, taking up a slot in the number of players permitted on the server.

    I am using 1.0.9d with all correct permissions and no quotes in any config files. Everything else is functioning as advertised.

    How do I remove these newly spawned guards (since they do not appear as active NPCs in the /npc list command) from the player list?

    Thanks, great plugin!
     
  31. Offline

    arthoz

    Can't get Bukkit Permissions (PermissionsBukkit-1.1) to work with citizens, this with both use-bukkit-permissions: true in the general node, and general.use-bukkit-permissions: true as a standalone node in citizens.yml,

    Group has citizens.admin node attached to it.

    Says @ startup: [INFO] [Citizens] A Permissions plugin isn't loaded, commands can only be used by ops.
    And obviously, adding myself as an OP makes it work as it should. (so its not a critical bug for me atleast)

    And when trying to do any citizens command: You don't have permission to do that.

    Tested on v1.0.9d, as well as devbuilds #309 & #311
     
    razoreqx likes this.

Share This Page