[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

    Noobpunisber117

    Yes but they dont attack just yet, I was hoping this new update would fix that but no :(
     
  3. Offline

    Syntaxlb

    I tried to rename BOSEconomy.jar to zzzBOSEconomy.jar for Citizens load BOSEconomy before iConomy. But don't work, it's load BOSEconomy :(

    It's possible to make a new entry in configuration for choose between iConomy or BOSEconomy ?
     
  4. Offline

    dervonz

    Shouldn't Evil NPC's take damage or attack? Nothing happens.. ?!
     
  5. Offline

    ohmydoddtv

    Code:
    java.lang.NoClassDefFoundError: Could not initialize class com.citizens.Creature
    Task
    at com.citizens.listeners.EntityListen.onEntityDamage(EntityListen.java:
    47)
    at org.bukkit.plugin.java.JavaPluginLoader$58.execute(JavaPluginLoader.j
    ava:649)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:332)
    at net.minecraft.server.EntityLiving.R(EntityLiving.java:122)
    at net.minecraft.server.Entity.m_(Entity.java:195)
    at net.minecraft.server.EntityLiving.m_(EntityLiving.java:217)
    at net.minecraft.server.EntityWolf.m_(EntityWolf.java:161)
    at net.minecraft.server.World.entityJoinedWorld(World.java:1198)
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:4
    8)
    at net.minecraft.server.World.playerJoinedWorld(World.java:1180)
    at net.minecraft.server.World.cleanUp(World.java:1104)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:447)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    20:36:08 [SEVERE] Could not pass event ENTITY_DAMAGE to Citizens
    ? :/
     
  6. Offline

    kwigle

    I was using v1.0.9c ok, upgraded to 1.0.9d and get this:
    17:03:35 [SEVERE] Error occurred while enabling Citizens v1.0.9 (Is it up to date?): null
    java.lang.ExceptionInInitializerError
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at java.lang.Class.getEnumConstantsShared(Unknown Source)
    at java.lang.System$2.getEnumConstantsShared(Unknown Source)
    at java.util.EnumMap.getKeyUniverse(Unknown Source)
    at java.util.EnumMap.<init>(Unknown Source)
    at com.citizens.CreatureTask.<clinit>(CreatureTask.java:22)
    at com.citizens.Citizens.onEnable(Citizens.java:109)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
    at com.citizens.SettingsManager$Constant.toInt(SettingsManager.java:159)
    at com.citizens.resources.npclib.creatures.CreatureNPCType.<clinit>(CreatureNPCType.java:8)
    ... 20 more
     
  7. Offline

    Noobpunisber117

    Yes but they dont attack yet :(
     
  8. Offline

    Timecpo

    Can you add the option to select the position/stance of an NPC? I'd like to add sitting NPC's to a restaurant :)
     
  9. Same thing here :/ Now even downgrading didn't work properly :confused:
     
  10. Offline

    aPunch

    EVERYONE GETTING THIS ISSUE:

    Remove all single quotes in your configuration files. (citizens.yml, economy.yml, mobs.yml). I gave plenty warning in at least 3 of my previous posts for this change.
     
    LarsMaehlum likes this.
  11. Woooow chill bro D: The error didn't say that THIS was causing the issue else I would have fixed it D:

    Thanks anyways

    Btw it still doesn't work for me im afraid D:

    RB 1000

    and it throws this error

    Code:
    00:14:04 [SEVERE] Could not pass event ENTITY_DAMAGE to Citizens
    java.lang.NoClassDefFoundError: Could not initialize class com.citizens.CreatureTask
            at com.citizens.listeners.EntityListen.onEntityDamage(EntityListen.java:47)
            at org.bukkit.plugin.java.JavaPluginLoader$58.execute(JavaPluginLoader.java:649)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
            at net.minecraft.server.EntityLiving.R(EntityLiving.java:122)
            at net.minecraft.server.Entity.m_(Entity.java:195)
            at net.minecraft.server.EntityLiving.m_(EntityLiving.java:217)
            at net.minecraft.server.EntityWolf.m_(EntityWolf.java:161)
            at net.minecraft.server.World.entityJoinedWorld(World.java:1198)
            at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
            at net.minecraft.server.World.playerJoinedWorld(World.java:1180)
            at net.minecraft.server.World.cleanUp(World.java:1104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:447)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    00:14:04 [SEVERE] Could not pass event ENTITY_DAMAGE to Citizens
    java.lang.NoClassDefFoundError: Could not initialize class com.citizens.CreatureTask
            at com.citizens.listeners.EntityListen.onEntityDamage(EntityListen.java:47)
            at org.bukkit.plugin.java.JavaPluginLoader$58.execute(JavaPluginLoader.java:649)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
            at net.minecraft.server.EntityLiving.R(EntityLiving.java:122)
            at net.minecraft.server.Entity.m_(Entity.java:195)
            at net.minecraft.server.EntityLiving.m_(EntityLiving.java:217)
            at net.minecraft.server.EntityWolf.m_(EntityWolf.java:161)
            at net.minecraft.server.World.entityJoinedWorld(World.java:1198)
            at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
            at net.minecraft.server.World.playerJoinedWorld(World.java:1180)
            at net.minecraft.server.World.cleanUp(World.java:1104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:447)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    and alot more just like this :/

    yes i replaced every ' with "
     
  12. Offline

    ferretlegs

    Hi Guys, have done some brief testing with 1.09d and here's what I've found so far:
    1. Am unable to add additional tp locations to my existing wizard, says it adds ok but it doesnt update the file or appear in the cycle through list. Havent tested with a new wizard yet.
    2. Pathing seems to have been damaged - I noticed that my patrolling town guard keeps getting stuck, going back to previous point, move forward a half dozen blocks or so, get stuck again, repeat. I removed the guard and created a new one - same problem in different area, seems that pathing definitely not working as well as it was. This was not overly complicated pathing with waypoints every 3 or 4 blocks or so. Tried various /npc move but he just got stuck somewhere else.
    3. Can confirm that the visibility problem has not been resolved in latest version. Can confirm that with dreamland disabled I never have a problem now (so I've left it disabled until a fix can be found), but when I did test with dreamland the npcs became invisible again when i returned to main world. I have found some important points regards this though in addition to previous posts:
    a) The problem only seems to occur when you drop into the void in dreamland and return in the normal way. If I use /home to get back to mainworld from dreamland, the npcs are all still fine when I get back. So perhaps there is something different in how the main world loads in the two scenarios?
    b) I also found I could trigger a npc to disappear if I rolled back the immediate area with logblock. Had a creeper blow up a poorly protected hut and when i rolled it back the npc was gone, still talking but not visible.
    Hope this helps :)
     
  13. Offline

    beefroast

    When i create an npc i cannot interact with it. When i right click and left click the npc does not talk
    can anybody help?
     
  14. Offline

    gmore70

    @aPunch @Citizens oh...I have a great idea....
    Can you make NPCs that are really annoying ... like some of those that post here. And they keep saying stuff ingame. Fill up your console with useless chatter asking the same stupid questions.
    Then you can make it default on. So you have to read the wiki to know how to turn it off. You could even use some of the usernames in this forum...that would be AWESOME!!!!
     
    LarsMaehlum likes this.
  15. Offline

    kwigle

    ok - so I removed all single quotes - to what end you might ask?
    00:33:12 [SEVERE] Error occurred while enabling Citizens v1.0.9 (Is it up to date?): null
    java.lang.ExceptionInInitializerError
    at com.citizens.Citizens.registerTypes(Citizens.java:272)
    at com.citizens.Citizens.onEnable(Citizens.java:87)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: mapping values are not allowed here
    in "<reader>", line 47, column 25:
    mode: TELEPORT'3:
    ^
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:745)
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:307)
    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:564)
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    at org.bukkit.util.config.Configuration.load(Configuration.java:82)
    at com.citizens.properties.CachedYAMLHandler.load(CachedYAMLHandler.java:36)
    at com.citizens.properties.CachedYAMLHandler.<init>(CachedYAMLHandler.java:29)
    at com.citizens.properties.PropertyManager.<clinit>(PropertyManager.java:15)
    ... 12 more
    *EDIT: as I was just beginning anyway I blew away the Citizens folder, started the server and Citizens rebuilt everything. Stopped and started again and Citizens 1.0.9d seems to have loaded without error this time - haven't tested it yet, lost of my old NCP pals though.
     
  16. Offline

    kwigle

    get rid of quotes period! Looked at the files after new install and there are NO quotes. ' or "
     
    FireFreak111 likes this.
  17. Offline

    FireFreak111

    lol pwn
     
  18. Offline

    ugoff

    The changelog only mentions single quotes.
     
  19. Offline

    Exanimo

    Ok fixed the error...

    Apparently NOT all ' may be removed in citizens.yml
    '[%name%]: ' needs to remain as it is.

    Also * should stay '*'
     
  20. Offline

    fullwall

    @ferretlegs - the npc disappearing problem definitely seems to be an issue with chunks triggering an unload event (but not actually unloading) and then never getting a reload event. The pathing bug looks like a silly mistake of mine that snuck into the release :(. It's fixed in the latest builds (but these are unstable atm).
     
  21. Offline

    Deathlysteve-

    THAT WAS MY IDEA :D :D :D
     
  22. Offline

    GoldenX

    citizens.basic.use.list permission doesn't work for me.
    And the bug I mentionned to aPunch Yesterday (or before, I don't remember) isn't fixed. (the bug with food in the hand which doesn't disapear when we talk to a trader Npc)
    :) have a good day
     
    morizuki likes this.
  23. Offline

    ugoff

    I also have discovered the waypoint/path issue. Upon loading the previous version of the npc-profiles, the waypoint system gets converted to the new one, and exhibits this behavior. I used to put 30+ waypoints in the same place to create a pause on 1.0.9c and the conversion caused the plugin to have exceptions in the console when starting up. I had to manually remove the waypoints from the file.
     
  24. Read the main post, guards aren't done yet.
     
  25. Offline

    aPunch

    He isn't talking about Guards. He is talking about pathing. The two are completely separate.

    That citizens.basic.use.list bug was a silly mistake of mine, change the permission to 'citizens.basic.modify.list' for now until the fixed version is released.
     
  26. Offline

    jedk1

    how do i make a guard attack pigs? or cant i yet?
     
  27. Offline

    aPunch

    You cannot at this point. Version 1.1 will include finished guards.
     
  28. Offline

    morizuki

    Interacting Item on Wizard set to '*', but it's doing nothing..

    The Bugs in traders that you can get the item for free is still there.. I don't know what causing but sometimes.. when you look at the List of the traders, you will see the price is blank and when u try to get the item on the trader inventory, you will pick up the item and put it into your inventory and it will duplicate.. and the wizard will be having also a bug that u need 10 flowers to teleport.. seems like they can't see the iConomy suddenly..

    EDIT: About the error on getting the Items for free.. I found the cause.. It's because of the restartNow plugin using the command /reloadplugin <Plugin>..
     
  29. Offline

    jedk1

    also when i give a npc a chestplate they dont wear it?
     
  30. Offline

    aPunch

    Relog. This issue has to do with your client not updating properly.
     
  31. Offline

    gebuswon

    Im having some problems with the sell/buy function. apparently my server doesn't have the iconomy plugin.. however i do have it! can someone help please? i basically can't sell or buy things from /trader
     

Share This Page