[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

    T1tan1umTurtl3

    You gies know names that have a skin? So far i got "Guard","Notch","Weir",'Steven",and people on my server.
    if u know some that i dont have Pm me
     
  3. Offline

    Izbay

    Loooove this addon! :D

    I'm running into a few NPCs who's items and/or armor doesn't load. They still appear to have them set in the config files and rebooting the server doesn't seem to help. Is this a common problem at all? :S

    Edit: I've found a workaround to get broken armor to display. If you move the NPC (then move it back if you want) you can retype the codes to put the armor back on (/npc torso Ralph 304... etc) and it will display again. No luck with the in-hand items, though.
     
  4. I can't seem to be able to make my npcs speak....
     
  5. Offline

    tonym

    I am running craftbukkit 493.
     
  6. Offline

    chernobyl360

    LOL something odd is going on here. i was able to change the color of 3 npcs but the 4th one *Earl* wont allow his color to be changed.
    *internal error* then on the console i get this. this only happens with the NPC *earl* all the other npcs cooperate fine.


    Code:
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:229)
        at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:645)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:608)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
        at net.minecraft.server.Packet3Chat.a(SourceFile:24)
        at net.minecraft.server.NetworkManager.a(SourceFile:230)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NullPointerException
        at com.fullwall.Citizens.BasicNPCHandler.setColour(BasicNPCHandler.java:261)
        at com.fullwall.Citizens.Citizens.setColour(Citizens.java:318)
        at com.fullwall.Citizens.Citizens.onCommand(Citizens.java:200)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    2011-03-18 22:44:06 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'npc' in plugin Citizens v1.06
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:229)
        at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:645)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:608)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
        at net.minecraft.server.Packet3Chat.a(SourceFile:24)
        at net.minecraft.server.NetworkManager.a(SourceFile:230)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NullPointerException
        at com.fullwall.Citizens.BasicNPCHandler.setColour(BasicNPCHandler.java:261)
        at com.fullwall.Citizens.Citizens.setColour(Citizens.java:318)
        at com.fullwall.Citizens.Citizens.onCommand(Citizens.java:200)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    2011-03-18 22:44:23 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'npc' in plugin Citizens v1.06
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:229)
        at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:645)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:608)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
        at net.minecraft.server.Packet3Chat.a(SourceFile:24)
        at net.minecraft.server.NetworkManager.a(SourceFile:230)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NullPointerException
        at com.fullwall.Citizens.BasicNPCHandler.setColour(BasicNPCHandler.java:261)
        at com.fullwall.Citizens.Citizens.setColour(Citizens.java:318)
        at com.fullwall.Citizens.Citizens.onCommand(Citizens.java:200)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    2011-03-18 22:44:45 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'npc' in plugin Citizens v1.06
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:229)
        at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:645)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:608)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
        at net.minecraft.server.Packet3Chat.a(SourceFile:24)
        at net.minecraft.server.NetworkManager.a(SourceFile:230)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NullPointerException
        at com.fullwall.Citizens.BasicNPCHandler.setColour(BasicNPCHandler.java:261)
        at com.fullwall.Citizens.Citizens.setColour(Citizens.java:318)
        at com.fullwall.Citizens.Citizens.onCommand(Citizens.java:200)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    2011-03-18 22:45:07 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'npc' in plugin Citizens v1.06
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:229)
        at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:645)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:608)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
        at net.minecraft.server.Packet3Chat.a(SourceFile:24)
        at net.minecraft.server.NetworkManager.a(SourceFile:230)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NullPointerException
        at com.fullwall.Citizens.BasicNPCHandler.setColour(BasicNPCHandler.java:261)
        at com.fullwall.Citizens.Citizens.setColour(Citizens.java:318)
        at com.fullwall.Citizens.Citizens.onCommand(Citizens.java:200)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    2011-03-18 22:45:46 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'npc' in plugin Citizens v1.06
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:229)
        at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:645)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:608)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
        at net.minecraft.server.Packet3Chat.a(SourceFile:24)
        at net.minecraft.server.NetworkManager.a(SourceFile:230)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NullPointerException
        at com.fullwall.Citizens.BasicNPCHandler.setColour(BasicNPCHandler.java:261)
        at com.fullwall.Citizens.Citizens.setColour(Citizens.java:318)
        at com.fullwall.Citizens.Citizens.onCommand(Citizens.java:200)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    2011-03-18 22:46:25 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'npc' in plugin Citizens v1.06
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:229)
        at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:645)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:608)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
        at net.minecraft.server.Packet3Chat.a(SourceFile:24)
        at net.minecraft.server.NetworkManager.a(SourceFile:230)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NullPointerException
        at com.fullwall.Citizens.BasicNPCHandler.setColour(BasicNPCHandler.java:261)
        at com.fullwall.Citizens.Citizens.setColour(Citizens.java:318)
        at com.fullwall.Citizens.Citizens.onCommand(Citizens.java:200)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    
    ill have to make a youtube video. cuase its plain hilarious :D.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 11, 2016
  7. Offline

    ZirixZero

    Splashes = Link skin
     
  8. Offline

    MonsterTV

    I'm having trouble getting NPCs to display their set text. /npc create works, but the text I set does not display when I right click them. /npc set has the same results. I noticed in the OP it says something about NPCs displaying text when clicked with "the right item" but I don't know how to set that. It does not appear to be the same as the item I place in the NPCs hand. I am running CB 556 if this is an error, and not just me doing it wrong.
     
  9. Offline

    fullwall

    Do you have the settings file in your plugins/Citizens folder? You should be able to configure the item there. By default its a book.
     
  10. Offline

    MonsterTV

    I can't believe I didn't look in the config file. . . Talk about a facepalm moment.
     
  11. Offline

    DiseasedFox

    Whenever I try to create a new NPC, I get this error in the console:

    2011-03-18 22:54:21 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'npc' in plugin Citizens v1.06
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:183)
    at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:643)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:606)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:600)
    at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHandler
    at com.fullwall.Citizens.Permission.permission(Permission.java:37)
    at com.fullwall.Citizens.Permission.generic(Permission.java:49)
    at com.fullwall.Citizens.Citizens.onCommand(Citizens.java:146)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
     
  12. Offline

    fullwall

    Hmmmm... looks like you don't use the Permissions plugin. Not sure why that error is popping up though :S.
     
  13. Offline

    Karinth

    So for the people who have no clue how to do it, do you feel up to making a small guide? Step by step to use it?
     
  14. Offline

    DiseasedFox

    I do, actually. I use it for everything. Nothing else is broken when it comes to permissions :S
     
  15. Offline

    fullwall

    What kind of Permissions are you using then? Karinth - check Nijikokun's original thread for a guide.
     
  16. Offline

    den

    I'm a bit swamped with work atm, but give me a couple days and I'll try to make a video tutorial of some sort.
     
  17. Offline

    Karinth

    Thank you so much, that will literally finish the creation of the server and then I can go live.
     
  18. Offline

    den

    No one but you will be able to see the skins unless all your players edit their hosts as well... just so you're aware, though I'm pretty sure that fact was mentioned when the discussion began a page or two back.
     
  19. Offline

    fullwall

    Agree with den. I could make a client mod to pull skins from a folder in your computer...
     
  20. Offline

    den

    A client mod would be far safer to users. I know many users that can't unzip things correctly half the time. These are not the kind of people I want to suggest editing a windows file to... (Not trying to insult anyone, but I can just see the WTF YOU BROKE MY PC posts if things like this became widespread)

    Either one has the drawback of needing player interaction in order to see the skins, and unfortunately I don't see a way around that.
     
  21. Offline

    MrCamping

    I'm a little confused.
    I use CB 556, But I had same problem with CB 440.
    When I first load the plugin, with default config files. Everything works properly. I can create NPCs and everything goes as it should.
    I have created 3 NPCs called Notch, Guard and Elder, that's all I did, only 3 /npc create

    However, when I /stop the server, I get this
    Code:
    11:03:24 [GRAVE] java.lang.NullPointerException
    11:03:24 [GRAVE]        at com.fullwall.resources.redecouverte.NPClib.NPCSpawner.RemoveBasicHumanNpc(NPCSpawner.java:101)
    11:03:24 [GRAVE]        at com.fullwall.Citizens.BasicNPCHandler.despawnAllNPCs(BasicNPCHandler.java:427)
    11:03:24 [GRAVE]        at com.fullwall.Citizens.Citizens.onDisable(Citizens.java:134)
    11:03:24 [GRAVE]        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:120)
    11:03:24 [GRAVE]        at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:465)
    11:03:24 [GRAVE]        at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:229)
    11:03:24 [GRAVE]        at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:223)
    11:03:24 [GRAVE]        at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:81)
    11:03:24 [GRAVE]        at net.minecraft.server.MinecraftServer.g(MinecraftServer.java:227)
    11:03:24 [GRAVE]        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:302)
    11:03:24 [GRAVE]        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    11:03:24 [INFO] [Citizens]: version [1.06] (Helpers) disabled
    And when I reboot, I get this
    Code:
    11:03:53 [GRAVE] null loading Citizens v1.06 (Is it up to date?)
    java.lang.NullPointerException
            at com.fullwall.Citizens.BasicNPCHandler.spawnNPC(BasicNPCHandler.java:96)
            at com.fullwall.Citizens.Citizens.setupNPCs(Citizens.java:127)
            at com.fullwall.Citizens.Citizens.onEnable(Citizens.java:61)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:92)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:70)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Help plz :s
     
  22. Offline

    fullwall

    Check your settings files for any errors.
     
  23. Offline

    spoonikle

    oohhh, i very much like the "way point" idea, i could have random NPC's walking the streets of my city, going into bars, shops, library's, parks. Finally when no one is playing there will be more than animals running around.

    I cant wait for this to be implemented.
     
  24. Suggestion for the waypoints: Perhaps be able to set a message an NPC should say when they get close to another NPC (One of the NPC's has to have a waypoint set for this message to work). This way you could have an NPC who walks around the streets and then heads into a bar and asks the barkeep for a beer. Would be a nice way to bring more life into Minecraft :D.

    Or even perhaps timed messages. So that the NPC will say something every x second/minute/hour.
     
  25. Offline

    joshcvb

    @fullwall

    Do you have a percentage done for you future features to your plugin, like waypoints or quests.
     
  26. Offline

    MrCamping

    I use Basic config file, the one provided in your zip file.
    Didn't made any changes on it

    I've made a second try creating only one NPC, same probleme. If I delete everything located in BasicNPC directory, plugin load correctly. So I guess the problem doesn't come from config file. Here's what I get after creating 1 npc. (Towny is the name of my world btw)

    citizens.locations
    Code:
    #Minecraft Properties File
    #Sat Mar 19 15:49:18 EDT 2011
    Guard=Towny,133.1116017309671,82.5,-43.82248465486154,-226.6501,29.850021
    list=Guard,
    citizens..texts
    Code:
    #Minecraft Properties File
    #Sat Mar 19 15:49:18 EDT 2011
    Guard=
    
    citizens.colours
    Code:
    #Minecraft Properties File
    #Sat Mar 19 15:49:18 EDT 2011
    Guard=\u00A7f
    citizens.items
    Code:
    #Minecraft Properties File
    #Sat Mar 19 15:48:00 EDT 2011
    citizens.armor
    Code:
    #Minecraft Properties File
    #Sat Mar 19 15:48:00 EDT 2011
    citizens.settings
    Code:
    #Specify whether to use the items list or not.
    item-list-on=true
    
    #Specify item IDs (0 is for empty hands). Separated by commas, leave one trailing.
    items=340,
    
    #If true, NPCs look at you when you get closer.
    enable-following=true
    
    #Specifies how long to wait before checking if NPCs have to look at a player.
    #Higher values = less server load, but longer delay between looking (jerky).
    tick-delay=1
    
    #Specifies how many blocks away a player can be before an NPC starts to look at them.
    look-range=4
    
    #If set to true, the NPC will use it's name colour in chat.
    #If false, the NPC's name colour in chat will be the colour specified in npc-colour.
    use-npc-colours=true
    
    #If use-npc-colours is false, NPC names in chat will be the colour specified here.
    #Default is white, go to http://wiki.hey0.net/index.php?title=Colors for the others.
    npc-colour=§f
    
    # Use this setting to alter the way the NPC is displayed in chat.
    # %name% will be replaced by the NPC's name.
    # The message will be displayed immediately after the set format,
    # so you may want to leave a trailing space.
    # Supports colours with &code.
    chat-format=[%name%]:
    
    #If an NPC's text is not set, the text displayed will be chosen at random from here.
    #Lines are separated by ';'
    default-text=Hello.;How are you today?;Having a nice day?;Good weather today.;Stop hitting me\!;I'm bored.;
    
    #If set to true, this property will make NPCs say their message when you get close.
    #Requires enable-following to be true.
    talk-when-close=false
    
     
  27. Offline

    Penorzilla

    I have an issue that started happening after about 1 week of using the plugin. Now every NPC we make from now on will no longer be there after a restart. They will be in the config files but when you do /npc move <name> it says "Couldn't find the NPC you specified"

    Any help?
     
  28. Offline

    fullwall

    The code has been changed so much, that I can't really track the bugs you're giving me. The codebase has been changed a lot 1.06 -> 1.07
     
  29. Offline

    qrux

    @fullwall Do you have an ETA for the Trader function to be implemented?
    No worries with that, i'm just curious! :)
     
  30. Offline

    fullwall

    Depends, really. Could be from next week to next fortnight :S.
     
  31. Offline

    qrux

    Well, good luck then! :)
     

Share This Page