[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

    Citizens

    Version 1.0.9

    -updated to Minecraft Beta 1.7.2
    -updated to latest CraftBukkit Recommended Build
    -new save system, all NPCs will now save in npc-profiles.yml instead of in multiple files
    -fixed many bugs with commands (using sk89q's command interfaces - thanks sk89q!)
    -added API events for plugin authors - documentation to come later
    -added Evil NPCs, see mobs.yml for configurable settings
    -added ability to have custom NPC creation and selection messages in citizens.yml
    -blacksmith pricing changed - you can now specify the base price for each material (diamond, gold, wood, etc.)
    -added waypoints for NPCs - type /npc path in-game to edit an NPC's waypoints
    -moved item overrides to citizens.yml
    -data values now work for traders
    -added '/citizens' command to view version and authors
    -added '/citizens reload' command to reload Citizens settings
    -added '/citizens save' to force a save of Citizens files
    -pumpkins and jack-o-lanterns can now be used an helmets for NPCs

    Enjoy! :D
     
  3. Offline

    treymok

    On 953

    Code:
    03:32:39 [WARNING] Task of 'Citizens' generated an exception
    java.lang.ArrayIndexOutOfBoundsException: -1
            at java.util.ArrayList.get(Unknown Source)
            at com.citizens.Citizens.setupNPCs(Citizens.java:198)
            at com.citizens.Citizens.access$0(Citizens.java:175)
            at com.citizens.Citizens$1.run(Citizens.java:123)
            at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:438)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  4. Offline

    JoelDaMole789

    Im getting the same problem.
     
  5. Offline

    fullwall

    Sorry, a ninja fix will be coming soon (it happens because you have no npcs).
     
  6. Offline

    patrat123

    the only thing i dont like about this plugin is that for me it only puts skins on NPCs who there playe has been on the server and that they dont have numbers on there name
     
  7. Offline

    fullwall

    @patrat123 - no, it puts skins on actual player's names.
     
  8. Offline

    aPunch

    Both of those things are untrue.
     
  9. Offline

    aPunch

    treymok likes this.
  10. Offline

    treymok

    Works... Thanks!
     
  11. Offline

    treymok

    Is there a way to make them able to be killed?

    I need to learn to read... Then again it is almost 5am...

    -added Evil NPCs, see mobs.yml for configurable settings
     
  12. Hey, a suggestion for some things to add :) :
    - Paths that you can set for npc's to patrol. e.g. make a trader walk around his shop. <- derp, would have helped if i used /npc help
    - Custom Skins per NPC. make it so it gets its skin from the local server.
    (i can help with local server stuff if you will use php proxy or any form of php work)
     
  13. Offline

    some1

    eum got an little problem here
    2011-07-03 10:38:36 [SEVERE] Could not pass event ENTITY_TARGET to Citizens
    java.lang.NullPointerException
    at com.citizens.NPCTypes.Questers.QuesterNPC.cycle(QuesterNPC.java:111)
    at com.citizens.NPCTypes.Questers.QuesterNPC.onRightClick(QuesterNPC.java:89)
    at com.citizens.Resources.NPClib.HumanNPC.callRightClick(HumanNPC.java:162)
    at com.citizens.Listeners.EntityListen.onEntityTarget(EntityListen.java:128)
    at org.bukkit.plugin.java.JavaPluginLoader$60.execute(JavaPluginLoader.java:663)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
    at com.citizens.Listeners.PlayerListen.onPlayerInteractEntity(PlayerListen.java:92)
    at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:314)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:843)
    at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-03 10:38:37 [SEVERE] Could not pass event ENTITY_TARGET to Citizens
    java.lang.NullPointerException
    at com.citizens.NPCTypes.Questers.Quests.QuestProgress.getObjectives(QuestProgress.java:65)
    at com.citizens.NPCTypes.Questers.Quests.QuestProgress.<init>(QuestProgress.java:28)
    at com.citizens.NPCTypes.Questers.Quests.QuestManager.assignQuest(QuestManager.java:119)
    at com.citizens.NPCTypes.Questers.QuesterNPC.onRightClick(QuesterNPC.java:98)
    at com.citizens.Resources.NPClib.HumanNPC.callRightClick(HumanNPC.java:162)
    at com.citizens.Listeners.EntityListen.onEntityTarget(EntityListen.java:128)
    at org.bukkit.plugin.java.JavaPluginLoader$60.execute(JavaPluginLoader.java:663)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
    at com.citizens.Listeners.PlayerListen.onPlayerInteractEntity(PlayerListen.java:92)
    at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:314)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:843)
    at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    plz help ?
     
  14. Offline

    pandapipino

    when i tried to equip chest armor on npc it says successfully but it actually didn't show.
     
  15. Offline

    aPunch

    From the OP:

    "Guards and Questers are not finished yet, DO NOT REPORT BUGS ABOUT THEM"

    Report this as an issue on GitHub. I'll look into it.
     
  16. Offline

    Gammo

    My NPC's Keep flying away! I have tried disabaling flying on my server, but it didnt work! Does any 1 know whats wrong?
     
  17. Offline

    aPunch

    Upgrade to Citizens 1.0.9.
     
  18. Offline

    fullwall

    To all - we have just noticed a bug concerning removal of npcs - ie. it doesn't work. Working on fixing this...
     
  19. I see that the converter doesn't copy names aswell, my NPCs are nameless xD
    And as a OP I can't set owners of NPCs anymore :/
     
  20. Offline

    SkyCraft

    I didn't even know there was a converter, I had to copy my old npc-profiles.yml and paste it in the new one, that worked but it didn't copy over names.

    --EDIT--
    I also just discovered that Traders didn't keep their prices.
     
  21. Offline

    Bloodlex

    I don't have their names either and I can't change the owner, I hope it will be fixed soon, otherwise I would be forced to do it manually by editing config files or something. And by the way, I noticed that the description near "/citizens reload" in "/citizens help" is wrong ;) I didn't get confused but it would be nice to correct it.

    EDIT: And one question more, could you do something with changing the prices for traders? It can be really, really annoying to remove it in order to change the price. You could improve it so, that it would overwrite the previous price or so.
     
  22. Offline

    sme4gle

    Download links broken? D:
     
  23. Offline

    Bhikku

    Code:
    2011-07-03 11:52:39 [SEVERE] [LogBlock Consumer] SQL exception
    com.mysql.jdbc.MysqlDataTruncation: Data truncation: Out of range value adjusted for column 'z' at row 1
    	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3591)
    	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
    	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)
    	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
    	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2620)
    	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2570)
    	at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:779)
    	at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:877)
    	at de.diddiz.LogBlock.Consumer.run(Consumer.java:256)
    	at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
     at java.lang.Thread.run(Unknown Source)
    Heyho, this come up after my npc fly away @1.08, so i try to remove him (all too) @1.09, but i think he is still somewhere up in the air and fill the log with it, and now i see you say: remove npc doesnt work, this would explain a lot.
     
  24. Offline

    SkyCraft

    @Bhikku

    You could just remove it from the npc-profiles.yml I think.
     
  25. Offline

    ohmydoddtv

    Ok the only issue I can find is that the NPC's names have completely vanished from both the server and in the actual configuration files.

    Looks like I'm going to have to rename all my 149 NPC's :/

    EDIT: I've now noticed the NPC names still remain in the Basic NPC's file folder. This is good news :D
     
  26. Offline

    Bloodlex

    If they are yours, otherwise you can't change the owner and rename them.
     
  27. Offline

    fullwall

    We will put out a fix for these issues once I fix this removal bug.
     
  28. Offline

    fullwall

    (including names, you may want to wait). To redo the conversion later, just set general.convert-old to true. Also, you can change the owner if you have citizens.admin
     
  29. Offline

    SkyCraft

    I don't quite know what that did.
     
  30. Offline

    sme4gle

    erm .. hello .. I got the citizens 1.0.9 fixed now .. But if a moderator on my server makes an NPC i cant even remove it
    while i am a Owner (Wich is a higher rank) Can you fix this? (My rank got all permissions in the whole server)
     
  31. Offline

    SkyCraft

    Please read some of the latest posts before you reply. They are working on the remove bug right now.
     

Share This Page