[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 - 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


    I used this command: /npc create dude

    And got this error:

    null pointer exception?
  3. Offline


    [INFO] [Citizens]: Permissions enabled.
    00:05:04 [SEVERE] For input string: "39,40," loading Citizens v1.0.8 (Is it up to date?)
    java.lang.NumberFormatException: For input string: "39,40,"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    at java.lang.Integer.parseInt(Integer.java:458)
    at java.lang.Integer.parseInt(Integer.java:499)
    at com.fullwall.Citizens.PropertyHandler.getInt(PropertyHandler.java:224)
    at com.fullwall.Citizens.Citizens.setupVariables(Citizens.java:243)
    at com.fullwall.Citizens.Citizens.onEnable(Citizens.java:97)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:632)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)

    WTF? every time the server restarts all my NPC's are gone and i get that plz help!
  4. Offline


    figured it out not supposed to be 2 numbers :D
  5. Offline


    Sorry, can you clarify: are you working on the ability to make NPC's patrol around? I searched back a bunch of pages and saw others asking so I just want to get clarification from the current team if possible. Thanks :)
  6. Offline


    Yes, we plan on implementing pathfinding and other guard features, such a NPC damaging.
  7. Offline


    So, if I tell an npc to sell wool, then i tell an npc to sell orange wool, it tells me it's already selling WOOL. It seems damage/data isn't working properly.
  8. Offline


    Eh,, I don't get how to create a trader. I selected him with a wooden sword, I type /toogle trader and it returns an unknown command. Yes, I've got permissions and I got the nodes right. What am I doing wrong?
  9. Offline


    It's /toGGle Trader not /toOGle Trader ;)
  10. Offline


    my god, LOL. Thanks btw.
  11. Offline


    It worked like a charm with WG. Thanks again.
  12. Offline


    Another trader bug worth noting: buy/sell lists are almost always truncated to the first three or so items and no pages.
  13. Offline


    almost everthing works perfect

    only thing I'm missing is the permission node for /basic help and can't find out how to sell the spruce and birch sapling
  14. Offline


    Hey everyone,
    I got citizens a while ago before what appears to be the most recent major update and thought it was brilliant. We'd filled up our town with all sorts of characters and life was good, until night came. At night we quickly realised that we couldn't sleep the night away, I unistalled citizens and hey presto, we could sleep again. I'm aware that we can also use the /set time command but that just isnt practical and takes away from the feel of the game. Does anyone know a fix for this or has it been fixed in an update or something?
  15. Offline


    I've never had problems with citizens < 1.0.7g (or 1.0.7h? dunno), at some point however the lag occured. So I had to remove the plugin, hoping that a newer version will extinguish this "bug".

    Maybe I should try it with a fresh install of Citizens 1.0.8c, though it'll be a pain in the ass to recreate every NPC D:
  16. Offline


    I think it's because they are treated like players, they are all on my "/who" list as online players
  17. Offline


    Hello there,

    You did an awesome job on pushing 1.0.8 out!
    Now I have 1 question, could you add iConomy Support?

    Yours sincerely,
  18. Offline


    It says it supports iConomy, I haven't tested this yet though so idk..is it just not updated for iConomy v5?
  19. Offline


    Nevermind, ignore my comment, it does support it.
    I just had my eyes in my butt orsomething. :p

    Either way: Great plugin Guys!
  20. What about this? Will there be any fix in near future, or is this iConomy related?
    I'd like to use the traders with iConomy, but with this bug I can't.
  21. Offline


    When I add some items to my trader I've got:
    2011-05-14 12:41:14 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'trader' in plugin Citizens v1.0.8
    	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
    	at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:278)
    	at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:682)
    	at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:645)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:639)
    	at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    	at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    	at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.OutOfMemoryError: Java heap space
    	at java.util.Arrays.copyOf(Unknown Source)
    	at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
    	at java.lang.AbstractStringBuilder.ensureCapacityInternal(Unknown Source)
    	at java.lang.AbstractStringBuilder.append(Unknown Source)
    	at java.lang.StringBuilder.append(Unknown Source)
    	at com.fullwall.Citizens.Utils.TraderPropertyPool.addToStockableString(TraderPropertyPool.java:99)
    	at com.fullwall.Citizens.Utils.TraderPropertyPool.saveStockables(TraderPropertyPool.java:119)
    	at com.fullwall.Citizens.Traders.TraderNPC.addStockable(TraderNPC.java:43)
    	at com.fullwall.Citizens.CommandExecutors.TraderExecutor.changeTraderStock(TraderExecutor.java:299)
    	at com.fullwall.Citizens.CommandExecutors.TraderExecutor.onCommand(TraderExecutor.java:95)
    	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more

    Did I put too many items?
  22. Offline


    you just rock, i just dumped wormhole extreme,localshops and autorepair due to your awesomeness
  23. Here's a slight problem (using 1.08c). One of my users managed to gain negative funds (-500 or so) by levelling up a healer. It charged them money that they didn't have and they then ended up with negative funds. I'm using iConomy 5 and I think it'd be a good idea if you added a check to see if they can actually afford to do something :p.
  24. Offline


    Is it possible to make mobs to not make npcs as a victim? they mostly stuck in walls, or make a ring around npc lol

    And is it possible to make healers, blacksmiths... work without economy? Like blocks-cost/free or something like this?
  25. Offline


    Hot do I talk to a NPC? I right-clicked a NPC I created and left-clicked him but nothing happend. I setted talk when close to true but the NPC will talk to me once and when I will come close to him again he wont talk until I disconnect and go back to the server. Is there a solution for this?
  26. Offline


    i had an idea, would you be able to get the blacksmiths to ask for more money with different types of armour or tools eg:

    wood axe cost to repair= 30 currency
    diamond axe cost to repair= 300 currency

    i would be cool if you could configure how much it costs to repair different types of tools/armour

    good work on the plugin
  27. Offline


    The version 1.08 npc will talk only once when player come close. Even you logout & login or walk far far away, they will not talk again. Any player right-clicking the npc will select them and give a funny message (You can disable it by setting selection-item in the config).

    I think the old one in 1.07 is better as it is talking and giving out information better. When a player right-click the npc, it will say one of the defined texts.

    I really want the old talkative npc in 1.07 more than the new one. But I do also want a to use trader too.

    Is that possible for you to consider changing the talkative npc back?
  28. Offline


    LoL. It's a bug and will be fixed
  29. Just a post to say thank you, I appreciate all the effort you put into it!
  30. Offline


    Yes If you go into the Citizens Economy file it will say Use Economy:Yes .. just change it to no ( its towards the top of the file) and then you can change with the files for healers,blacksmiths, ect what item and how many materials you need to create and level up. For example the default is like 10 yellow flowers.
  31. Offline


    Ok Sorry i have to Adress this again. But when i make a npc and I set him to "Talk When Close" He says it once and then he will not speak again. Also I was looking in the citizens default config and it says enable default follow or something? is this like a guard addon I havent seen any posts on it for like the last 3-4 pages so I thought i'd just ask so sorry if this has already been answered.
    Thank you

Share This Page