[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

    fullwall

    @d00ba - shouldn't make any difference.
     
    mbsuperstar1 likes this.
  3. Offline

    skyforce77

    it is impossible make folder with skins for npcs?
    because i will make a secret project ;) for my server.
    and npc with skin and name ^^
     
  4. Offline

    kassad

    1.7 cant create Npcs 1.6 can it 1.7 have fatal error :((((((((((((((((((
     
  5. Offline

    Saibot

    I downloaded this plugin and I'm running it with Iconomy 5, LWC, and ChestShops. I went into the economy.ywl file and changed the "Use-econplugin" value to "true". After I did this, whenever I tried spawning an Npc it would give me a notification that says "Please report this erorr: 'java.lang.NullPointerException: null'". When I disable the use of the econ-plugin, it works fine. Is there something I'm doing wrong?
     
  6. Offline

    Mohammad

    Hey im gettingthis continuous error im using craftbukkit 1000 ( it was working before i updated )
    Code:
    19:37:34 [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$59.execute(JavaPluginLoader.java:656)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
            at net.minecraft.server.BlockCactus.a(BlockCactus.java:90)
            at net.minecraft.server.Entity.move(Entity.java:591)
            at net.minecraft.server.EntityLiving.a(EntityLiving.java:582)
            at net.minecraft.server.EntityLiving.v(EntityLiving.java:704)
            at net.minecraft.server.EntityLiving.m_(EntityLiving.java:218)
            at net.minecraft.server.World.entityJoinedWorld(World.java:1212)
            at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
            at net.minecraft.server.World.playerJoinedWorld(World.java:1194)
            at net.minecraft.server.World.cleanUp(World.java:1110)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:450)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    19:37:45 [SEVERE] Could not pass event ENTITY_DAMAGE to Citizens
    java.lang.NoClassDefFoundError: Could not initialize class com.citizens.CreatureTas
    and the error just keeps going on for ages and it wont stop.
    none of my npcs are showing up
    ive uploaded my config
     

    Attached Files:

  7. Offline

    coffeehedake

    Yes. They are working on my server. 173.162.128.70:25565 [​IMG]
    However, I had to add some previously un-noticed permissions to get them to work, which you can find here:
    https://github.com/fullwall/Citizens/wiki/Permissions

    Specifically:
    Code:
    citizens.trader.use.trade - ability to trade with a trader
    
    I added that to my bottom level permissions tier (which all of the others inherit from) and voila... trading works.
     
    undeadmach1ne likes this.
  8. Offline

    coffeehedake

    AppleJack, did you see my earlier post about the order of plugins? Make sure your BOSEconomy loads BEFORE Citizens. Even if your YML is configured properly, if BOSEcon doesn't load first, the plugin fails to find an economy plugin and disables that functionality.
     
  9. Offline

    Hryniu

    Man, dont do it to us.. Please make them in next version, as the spout launcher is only for premium players(The ones who bought the game) And some of my friends, aren't have it.. Just make an UnderName - or whatever to make it work. Please !!
     
  10. Offline

    coffeehedake

    EDIT: That wasn't for Saibot
    @Mohammad

    Check the first post, and if you go back a page or two, compare your configs to mine... you need to remove all of the single quotation marks from your configs except in two spots.

    Quoting myself:
    Sure, take a look at my configs for
    citizens.yml http://pastebin.com/UsCES4ab
    and
    economy.yml http://pastebin.com/6taW4gFx
    My pastebin version of npc-profiles is incorrect, so do not use that as an example.

    Basically you want to leave single quotes on only two parts in citizens.yml:

    Code:
    items:
        item-list-on: true
        basic:
            select-items: '*'
            talk-items: 340,
    and again here:

    Code:
    general:
        defaults:
            enable-following: true
            talk-when-close: false
        debug-mode: false
        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%]: '
     
  11. Offline

    Hryniu

    And please.. Just tell some of those details, just for me and others who want it, too. Please.
     
  12. Offline

    aPunch

    If you really want to know what is coming in 1.1, look at our GitHub commits. As for the custom skins....that isn't happening.
     
  13. Offline

    undeadmach1ne

    aww shit seriously? ok ill try that asap lol. i can almost promise you that is my problem. i am using - 'citizens.use.*'...thanks for pointing that out...
     
  14. Offline

    coffeehedake

    I think you're right... I was also using citizens.use.* previously, and just noticed the change. Let me know how this goes for you though, at least in case anyone else asks about it.
     
  15. Offline

    coffeehedake

    @kassad

    Could you post a copy (ideally on pastebin) of your console log? I may also ask later for your config files (citizens.yml, etc)
     
  16. Offline

    coffeehedake

    @Saibot

    Do you have a copy of your console too? I'd like to see if there's a pattern here.

    Something tells me that the majority of folks have a lot of issues with loading order of the plugins... and a subset of them have issues with the single quotes still hanging around somewhere in their configs.

    Saibot, you may also want to dump your configs on pastebin so we can take a look at them.
     
  17. Offline

    undeadmach1ne

    i will for sure. i wont get any time to test it out until later tonight though. one quick question before that: can i place multiple copies of the same npc around? say i fully outfit a trader to buy and sell all weapons (which will take a bit of time configuring), can i put a copy him in every weapon shop on all my multiworld maps without having to rebuild him in every instance?

    thanks for all your help btw :)
     
  18. Offline

    Saibot


    Right, here you go:
    17:12:37 [SEVERE] java.lang.NullPointerException
    17:12:38 [SEVERE] at com.citizens.properties.properties.UtilityProperties
    getPrice(UtilityProperties.java:38)
    17:12:38 [SEVERE] at com.citizens.economy.ItemInterface.hasEnough(ItemInt
    rface.java:25)
    17:12:38 [SEVERE] at com.citizens.economy.EconomyHandler.canBuy(EconomyHan
    dler.java:137)
    17:12:38 [SEVERE] at com.citizens.commands.commands.BasicCommands.create(B
    asicCommands.java:238)
    17:12:38 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
    ethod)
    17:12:38 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
    Source)
    17:12:38 [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    17:12:38 [SEVERE] at java.lang.reflect.Method.invoke(Unknown Source)
    17:12:38 [SEVERE] at com.citizens.resources.sk89q.CommandsManager.execute
    Method(CommandsManager.java:518)
    17:12:38 [SEVERE] at com.citizens.resources.sk89q.CommandsManager.execute
    CommandsManager.java:404)
    17:12:38 [SEVERE] at com.citizens.Citizens.onCommand(Citizens.java:196)
    17:12:38 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginComman
    d.java:35)
    17:12:38 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCo
    mmandMap.java:129)
    17:12:38 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(Cr
    aftServer.java:320)
    17:12:38 [SEVERE] at net.minecraft.server.NetServerHandler.handleCommand(
    etServerHandler.java:713)
    17:12:38 [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServer
    andler.java:677)
    17:12:38 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:670)
    17:12:38 [SEVERE] at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:
    3)
    17:12:38 [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager
    java:226)
    17:12:38 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:85)
    17:12:38 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile
    :105)
    17:12:38 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:451)
    17:12:38 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:361)
    17:12:38 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    >



    http://pastebin.com/9jpKe4qV -economy file

    http://pastebin.com/n4NJq7yC - citizens

    http://pastebin.com/5fZxBVBJ - mobs

    I hope this helps.
     
  19. Offline

    coffeehedake

    @Saibot
    Your configs look good, you have you NPC-profiles.yml handy too?

    Also, what is loading first in your console, the errors & citizens, or other plugins?

    @undeadmach1ne
    I want to say yes, but let me proof of concept that one first.
     
  20. Offline

    coffeehedake

    @undeadmach1ne

    I think it's working...

    [​IMG]

    All of these guys are traders, and at the very least I can load them up with stuff to sell. I just used the /npc copy command.

    What you'll have to do the first time:
    Make your "template" trader, load him up with armor and all that happy stuff, select him. Go to where you want to place the copy, and use /npc copy... he'll appear right where you are standing, pushing you out of the way.

    I'll try it again with my clone NPC (I use him to just spout out information as people come into the server, like registering on the forums for build rights, and so on) and see if it copies his armor and items.
     
  21. Offline

    Saibot



    18:19:47 [SEVERE] Error occurred while enabling Citizens v1.0.9 (Is it up to dat
    e?): null; mapping values are not allowed here
    mapping values are not allowed here
    in "<reader>", line 2, column 39:
    ... e-econplugin: true use-economy: true

    Found this while lurking around in my console. I observed that my plugins all load before this error occurs.

    And my npc-profiles.yml file is just two empty brackets. Literally just "{}"
     
  22. Offline

    coffeehedake

    @Saibot
    Ahh! I was reading this on my iphone before.

    This:
    Code:
    economy:
        use-econplugin: true   use-economy: true
    Should be this:
    Code:
    economy:
        use-econplugin: true
        use-economy: true
    http://pastebin.com/6taW4gFx
     
  23. Offline

    Saibot

    @coffeehedake

    Ah! Edited it and everything works fine. I no longer have the error. Thank you very much!
     
  24. Offline

    25CentStudios

  25. Offline

    Exidous

    my npcs are not disappearing but they do reset, like i have to toggle some to be traders again every time the server restarts, which is pretty annoying.
     
  26. Offline

    Huns

    Using CB 1060 and Citizens 1.0.9d, I get these:

    Code:
    2011-08-16 22:14:03 [SEVERE] Could not pass event CHUNK_UNLOAD to Citizens
    java.lang.NoClassDefFoundError: Could not initialize class com.citizens.CreatureTask
            at com.citizens.listeners.WorldListen.onChunkUnload(WorldListen.java:51)
            at org.bukkit.plugin.java.JavaPluginLoader$50.execute(JavaPluginLoader.java:591)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
            at net.minecraft.server.ChunkProviderServer.unloadChunks(ChunkProviderServer.java:243)
            at net.minecraft.server.World.doTick(World.java:1719)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:444)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    and...

    Code:
    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$59.execute(JavaPluginLoader.java:656)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
            at net.minecraft.server.EntityLiving.a(EntityLiving.java:486)
            at net.minecraft.server.Entity.a(Entity.java:635)
            at net.minecraft.server.Entity.move(Entity.java:513)
            at net.minecraft.server.EntityLiving.a(EntityLiving.java:582)
            at net.minecraft.server.EntityLiving.v(EntityLiving.java:704)
            at net.minecraft.server.EntityMonster.v(EntityMonster.java:26)
            at net.minecraft.server.EntityLiving.m_(EntityLiving.java:218)
            at net.minecraft.server.EntityMonster.m_(EntityMonster.java:30)
            at net.minecraft.server.EntityCreeper.m_(EntityCreeper.java:68)
            at net.minecraft.server.World.entityJoinedWorld(World.java:1212)
            at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
            at net.minecraft.server.World.playerJoinedWorld(World.java:1194)
            at net.minecraft.server.World.cleanUp(World.java:1110)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:450)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    and...

    Code:
    2011-08-16 22:15:39 [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$59.execute(JavaPluginLoader.java:656)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
            at net.minecraft.server.EntityLiving.a(EntityLiving.java:486
    
    These are repeated frequently.
     
  27. Offline

    LucidLethargy

    All of the players on my server have been able to take full stacks of items off NPC's after our server restarts for FREE then the plugin breaks... when it breaks the message I get when attempting to use the NPC further is "Only one person may be served at a time!"

    I feel like with all the problems i've had with Citizens over the months it's hard to trust the plugin... and this one could have easily broken my economy if someone found a full stack of gold and quietly exploited it over time. I am on version 1.0.9c since d breaks my current npc's. I don't mean to sound ungrateful here, I appreciate the work you guys do, but bugs like this far outweigh the benefits. I feel these bugs should at least be honestly presented after detection in BOLD on the OP to warn others as well if possible.
     
  28. Offline

    morizuki

    Since the new updates of CB.. NPCs are disappearing all of a sudden.. No errors or whatsoever..
     
  29. Offline

    Exidous

    you really should go through the process and update to version d, it fixes alot of those issues. Thats why there was an update. It doesn't break the plugin unless you do NOTHING and just swap out the jars. Read the bold print it tells you what you need to do to get it working. Took me literally 3 minutes to update from c to d. Dont complain about issues when your using an outdated version. seriously.
     
    mbsuperstar1 and Hopium like this.
  30. Offline

    fullwall

    @Huns - you need to remove single quotes from your config files (not npc-profiles.yml).
    @LucidLethargy - please understand that the trader bugs are not wholly our fault. We are waiting on inventory events to have proper, fully secure transactions with traders. Without these events having full security without terrible hacks is nearly impossible.
     
  31. Offline

    LordDead1233

    I am getting this crash if I try to create a NPC
    2011-08-17 14:24:59 [SEVERE] Could not pass event CHUNK_UNLOAD to Citizens
    java.lang.NoClassDefFoundError: Could not initialize class com.citizens.CreatureTask
    at com.citizens.listeners.WorldListen.onChunkUnload(WorldListen.java:51)
    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)
     

Share This Page