[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

    Musaddict

    Both of our statements are a matter of opinion. Chances are that Notch or Bukkit will not add the type of API Spout has to offer anytime soon. The level of customization available with Spout is pretty much endless (or at least will be). With it's own client, it downloads the servers client mods automatically to optimize the players experience. Based on what I've seen of Spout, it will only advance and stay ahead of the game with additional API.

    As for permissions, that is understandable. You just may want to warn people before you force them to either remove Citizens or completely change their server (more than a fine print spoiler). Something like that needs to be in size 5 or 6 font in red, near the top of your post.

    Especially since you say that it currently supports permissions 2.7/3. It's kinda misleading...
     
  3. Offline

    Boltblaster

    Compatibility with Spout would be great, seeing as quite a few plugins ultilise it and I get strange npc exceptions and disappearings. Better plugins will come, but if you don't support Spout just because of this, that's just sad :(.
    Anyways, like zenitha said, I noticed that NPCs don't always follow all waypoints, skipping many on occasions and going to places they shouldn't be...
     
  4. Offline

    Citizens

    @Musaddict There, now the first thing people see (hopefully) is that big red text explaining that Permissions support is being removed in favor of superperms.

     
  5. Offline

    Musaddict

    @aPunch Also, since you are basically completely rewriting this plugin from the ground up, will we still be able to transfer/keep our NPC settings files? Or are you basically gunna screw us over every way possible by redoing and changing everything...? I didnt like having to spend multiple hours redoing all my NPC's because I screwed up editing the config files in the last update, are you gunna make us redo all of our tireless work to get our server EXACTLY how we like it?

    Edit: sorry for seeming flustered, I just dont like forced change, or having to redo something multiple times...
     
  6. Offline

    Musaddict

    TY :)
     
  7. Offline

    aPunch

    We plan on making it as hard for every server admin to update to 1.1 as possible. The sole purpose of Citizens is to make you hate the developers by the end of the day.

    Honestly, one of the only things that we haven't modified is the npc-profiles.yml. You won't need to change much (if anything at all) with that file. Therefore, your NPCs are safe!
     
    Mordaith likes this.
  8. Offline

    Musaddict

    lol XD well thats good to know. At least one thing turned out ok :p

    edit: if 1.0 to 1.1 is a complete rewrite, i dont want to know what 2.0 looks like, lol
     
  9. Offline

    element

    Bump, sorry I see that you guys are pretty busy but I must know ^^
     
  10. Offline

    Musaddict

    Or you could convince them to hook into Spout. Just download the client, then all of the NPC's will have the ability to have custom skins!
     
  11. Offline

    tada

    i
    i did like you said and removed all the singel quotes.
    but when i created an npc i got the same error.

    here is my citizens.yml

    range:
    guards:
    default-bouncer-protection-radius: 10
    pathfinding: 16.0
    basic:
    look: 5
    items:
    item-list-on: true
    basic:
    select-items:
    talk-items: 340,
    healers:
    give-health-item: 35
    take-health-item: 278
    wizards:
    mana-regen-item: 348
    interact-item: 288
    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: 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%]:
    selection:
    quick-select: false
    use-bukkit-permissions: false
     
  12. Offline

    tada

    I removed all the singel quotes like you said.

    but then i triede creating an npc i got the same error.

    here is mt xitizens.yml

    range:
    guards:
    default-bouncer-protection-radius: 10
    pathfinding: 16.0
    basic:
    look: 5
    items:
    item-list-on: true
    basic:
    select-items:
    talk-items: 340,
    healers:
    give-health-item: 35
    take-health-item: 278
    wizards:
    mana-regen-item: 348
    interact-item: 288
    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: 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%]:
    selection:
    quick-select: false
    use-bukkit-permissions: false
     
  13. Offline

    brown34

    have a bug @trader. i cant use this plugin now.
     
  14. Offline

    Soulslayerzx

    Ok. I'm not gonna read all the 250 pages, but in case you guys are wondering. If you're tired of your ncps dissapearing when you shut down the server. Create the npc with the settings you want and leave your server on for 30 minutes. Then it'll say in the command prompt, saving npc data to something .I think it's crashing with essentials or something. Normally, when you create a npc, it just says create a blank txt file or sometihng in the command prompt. Weird. But yea that'll have your npc stay.
    Also, I need help. So I create a npc called John and then I typed /toggle trader. So he is now a trader. And the npc is so stupid. I can type /trader buy 1 1. he is suppose to buy 1 stone for a dollar. Then, I tye /trader sell 1 1. He is suppose to sell 1 stone for a dollar. I right click this queer and his inventory is empty and I can keep moving items in and out through my inventory to his. Me and the npc don't gain or lose any money. Only thing I'm proud of is the first item in the trader's inventory becomes the item he is holding.
     
  15. Offline

    demonlocke

    Thanks, checked it. Should work. If it's not to much to ask, it can help a lot of people if you guys made an official tutorial. Thanks.
     
  16. Offline

    coffeehedake

    @tada Take a look at my citizens.yml here: http://pastebin.com/UsCES4ab
    You got rid of the single quotes, but there are two places you need to keep them, those are the parts I posted in my last post.

    Also don't edit and save your configs while the server is up and running. If you have to... make a copy to your desktop, edit the copy, shut down the server, and paste your copy over the original, then restart the server.
     
    tada likes this.
  17. Offline

    mbsuperstar1

    Pro-tip:
    I'm creating a plugin using Citizens API that adds spout features...
    Negative-tip:
    The Citizens development team are not helping me code it, and it will not be up to their usual standards.
     
  18. Offline

    coffeehedake

    I don't think it's got anything to do with essentials... I don't even use essentials (barf) on my server and my NPCs despawn. On top of that, my server runs 24/7x365, with about 97% up-time. (Only time it's down is when I update a config and restart the service for 3 seconds).

    Yes, that is actually what he's supposed to do.
    As the creator and owner of the NPC trader, you can only restock him. You'd have to have another user try for you or use another account to test your trader. The inventory that comes up is his stockroom, basically... what he has for sale or the items he has purchased. You don't gain or lose any money because you're simply restocking him.

    Check over here for the methods and mechanics of the Trader NPC:
    http://citizens.wikia.com/wiki/Traders
     
  19. Offline

    scrollsmash

  20. Offline

    LordDead1233

    Could someone answer my question??
    how can I make Citizens evil (so they attack everyone they see or something)
     
  21. Offline

    sparkhead95

    HEY!!!
    I get this error when loading my server with this plugin....

    18:02:53 [WARNING] Task of 'Citizens' generated an exception
    java.lang.ArrayIndexOutOfBoundsException: 1
    at com.citizens.utils.LocationUtils.loadLocation(LocationUtils.java:64)
    at com.citizens.properties.properties.BasicProperties.getWaypoints(Basic
    Properties.java:261)
    at com.citizens.properties.properties.BasicProperties.loadState(BasicPro
    perties.java:312)
    at com.citizens.properties.PropertyManager.load(PropertyManager.java:51)

    at com.citizens.npcs.NPCManager.register(NPCManager.java:64)
    at com.citizens.Citizens.setupNPCs(Citizens.java:305)
    at com.citizens.Citizens.access$0(Citizens.java:286)
    at com.citizens.Citizens$1.run(Citizens.java:120)
    at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(C
    raftScheduler.java:137)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:428)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

    PLEASE HELP!!!!
     
  22. Offline

    mbsuperstar1

  23. Offline

    coffeehedake

    I answered several pages back.
    You cannot do this.

    http://citizens.wikia.com/wiki/Evil_NPCs
     
  24. Offline

    coffeehedake

    @sparkhead95

    You need to eliminate all single quotes from your citizens.yml except for two places:

    Code:
    items:
        item-list-on: true
        basic:
            select-items: '*'
            talk-items: 340,
    and 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%]: '
     
  25. Offline

    ladan208

    it says i dont have permission to use the command :(
    i am the server owner so why don't i have permission?
     
  26. Offline

    coffeehedake

    Going to need a little more info than that to help... Console logs, a general idea of your permissions set up etc, would be great.

    Sounds like a permissions problem though, what permissions plugin are you using, and what permissions nodes have you got configured for yourself?
     
  27. Offline

    tada

    i
    so i pasted that in to my citizens.yml but now i get this error

    java.lang.noclassdeffounderror: could not initalize class com.
    citizens.economy.economyhandler

    and this is my console


    15:33:00 [SEVERE] java.lang.NoClassDefFoundError: Could not initialize class com
    .citizens.economy.EconomyHandler
    15:33:00 [SEVERE] at com.citizens.npctypes.interfaces.OperationPurchaser.c
    anBuy(OperationPurchaser.java:18)
    15:33:00 [SEVERE] at com.citizens.commands.commands.ToggleCommands.buyStat
    e(ToggleCommands.java:130)
    15:33:00 [SEVERE] at com.citizens.commands.commands.ToggleCommands.toggle(
    ToggleCommands.java:69)
    15:33:00 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
    ethod)
    15:33:00 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown S
    ource)
    15:33:00 [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    15:33:00 [SEVERE] at java.lang.reflect.Method.invoke(Unknown Source)
    15:33:00 [SEVERE] at com.citizens.resources.sk89q.CommandsManager.executeM
    ethod(CommandsManager.java:518)
    15:33:00 [SEVERE] at com.citizens.resources.sk89q.CommandsManager.execute(
    CommandsManager.java:404)
    15:33:00 [SEVERE] at com.citizens.Citizens.onCommand(Citizens.java:196)
    15:33:00 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginComman
    d.java:35)
    15:33:00 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCo
    mmandMap.java:129)
    15:33:00 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(Cr
    aftServer.java:352)
    15:33:00 [SEVERE] at net.minecraft.server.NetServerHandler.handleCommand(N
    etServerHandler.java:737)
    15:33:00 [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerH
    andler.java:701)
    15:33:00 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:694)
    15:33:00 [SEVERE] at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:3
    3)
    15:33:00 [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.
    java:226)
    15:33:00 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:89)
    15:33:00 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile
    :105)
    15:33:00 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:454)
    15:33:00 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:363)
    15:33:00 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    15:43:18 [INFO] Connection reset
    15:43:18 [INFO] ankeborg lost connection: disconnect.quitting
    15:50:59 [WARNING] Can't keep up! Did the system time change, or is the server o
    verloaded?
    15:50:59 [INFO] Read timed out
    15:51:00 [INFO] zlatan lost connection: disconnect.endOfStream
    15:51:00 [SEVERE] java.net.SocketException: Socket closed
    15:51:00 [SEVERE] at java.net.SocketOutputStream.socketWrite(Unknown Sourc
    e)
    15:51:00 [SEVERE] at java.net.SocketOutputStream.write(Unknown Source)
    15:51:00 [SEVERE] at java.io.BufferedOutputStream.flushBuffer(Unknown Sour
    ce)
    15:51:00 [SEVERE] at java.io.BufferedOutputStream.flush(Unknown Source)
    15:51:00 [SEVERE] at java.io.DataOutputStream.flush(Unknown Source)
    15:51:00 [SEVERE] at net.minecraft.server.NetworkWriterThread.run(SourceFi
    le:116)




     
  28. Offline

    coffeehedake

    @tada

    You don't want to paste it in there, just edit it.

    Shut down the server, edit citizens.yml and leave the single quotes on the two items I mentioned, delete them everywhere else (in that config file)

    You didn't remove the single quotes from the other yml's did you?
     
  29. Offline

    Zudo

    i am new to citizens and are planning to have many traders in our world but we cant because we cant figure out how to make builders/non ops can buy stuff from the trader, right now only ops can trade with the traders
     
  30. Offline

    ladan208

    i dont really know its just named permissions
     
  31. Offline

    ladan208

Share This Page