[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. delete the npc in the npc files, the name was too long when the color was added to the NPC name.
     
  3. Try using iConomy 1.5.
     
  4. Offline

    Aeron

    Very sad, that Notch added this limit on names, which isn't the only limit, he has set for the game =/
     
  5. Offline

    Haekon

    I mean, for FFS...isn't this what we (don't) pay bukkit devs to do? I mean, gawd...get it together....LULZ GIMME TEH HAAAAAAX!!!!1 lol
     
  6. you can set unlimted, check out /trader help 2, for info on the command
     
  7. Offline

    Avous

    unlimited stock? i dont need that i need a way to have people sell them items but the item just gets deleted it doesnt go into their inventory does unlimited stock do that??? (testing)

    MAGICALLY Delicious! i thought unlimited stock meant unlimited things to sell. lol since thats what a stock is >.>.... words.

    the only problem is you'd have to left click and spam for each single item you wanted to sell you couldnt just drop it all in.
     
  8. Offline

    fugue2005

    did you try adding them to the Citizens.itemlookup file?
     
  9. Offline

    fugue2005

    he has said it's being fixed. mine got up to 204 megs before i killed my traders.
     
  10. Offline

    Avous

    @fullwall @NeonMaster @thempc @aPunch @Graloth

    I keep getting the error that you dont have enough money to sell (item name) when i have way way more than that and the npc has way more than the item cost. it does it with some blocks. others its fine...

    and on traders i cant seem to figure out how to sell items with data values. like 44:1
     
  11. Offline

    fullwall

    Well... the duplication bug was fixed a while ago... just needs a new release.
     
  12. Offline

    FitzChickens

    Does anyone know why essentials might be breaking this plugin for me?
     
  13. Offline

    aPunch

    It's a known bug. Please be patient for v1.0.8d and make sure you are using Essentials RELEASE VERSION 2.2.17 or above.
     
  14. Offline

    FitzChickens

    Thanks for the quick reply. And yes, i am using release version. :D
     
  15. I've only found one post with the below issue and couldn't find any response
    Code:
    2011-05-19 16:04:59 [SEVERE] Could not pass event ENTITY_TARGET to Citizens
    java.lang.NullPointerException
            at com.fullwall.resources.redecouverte.NPClib.NPCList.getBasicHumanNpc(NPCList.java:20)
            at com.fullwall.Citizens.NPCs.NPCManager.getNPC(NPCManager.java:140)
            at com.fullwall.Citizens.Listeners.EntityListen.onEntityTarget(EntityListen.java:165)
            at org.bukkit.plugin.java.JavaPluginLoader$52.execute(JavaPluginLoader.java:548)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
            at net.minecraft.server.EntityCreature.c_(EntityCreature.java:53)
            at net.minecraft.server.EntityWolf.c_(SourceFile:125)
            at net.minecraft.server.EntityLiving.u(EntityLiving.java:657)
            at net.minecraft.server.EntityWolf.u(SourceFile:160)
            at net.minecraft.server.EntityLiving.p_(EntityLiving.java:231)
            at net.minecraft.server.EntityWolf.p_(SourceFile:190)
            at net.minecraft.server.World.entityJoinedWorld(World.java:1009)
            at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:53)
            at net.minecraft.server.World.playerJoinedWorld(World.java:991)
            at net.minecraft.server.World.cleanUp(World.java:968)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:369)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
     
  16. Offline

    fullwall

    @tr0y - just messaged you about it?
     
  17. yes thanks
     
  18. Offline

    Chosen

    is possible to healer heal for money (iconomy) ?

    Respect
     
  19. Offline

    ledhead900

    I'm confused when you create a npc do you become the owner of that npc ID and anyone one else trying to modify that NPC cannot do it.

    Why can't the wiki and permissions be organized better into npc.player npc.create npc.admin or something like that that.

    The wiki is fine if your only going to allow admins and OP to use npcs but Id be damn if I'm going to test a whole heap of scenarios trying to work out what nodes to give to a specific player group.

    To allow them to create there own npcs.


    Essentially this is how I need the group to do.

    1.Copy an existing NPC
    2. Rename the copied NPC with out modify the orginal npc they copied
    3. Remove ONLY there copied NPC
    4. Define the TEXT msg and things like look and but only for there NPCS.

    I have no trouble setting this up to get working but its just the wiki and the information sorrounding this plugin leaves much trial and error.

    TBH be bluntly honest I think Mixxits NPCX is easier to under stand then this.

    I like everything in this better then NPCX but its still missing something I would preffer over Individual NPC setup.

    I would have prefferd the Item tables to be used rather then setting each npc that is not a copy up items all over again. What I liked about NPCX was that you could stuff like "/npcx npc addloottable <name>" then just do "/npcx npc loottable add <TableID> <ItemID:dmg> <Quntity>"

    This would setup a pre made list of items that could be set to any NPC like this.
    "/Npcx npc setloottable <TableID> <NpcID>"

    also Npcs were created via spawngroups you could have any number of Npcs in a spawngroup and when a npc died it pulled a random ID from that spawngroup list and spawned that npc in its place.

    For example you would add an npc like this.
    "/npcx npc spawngroupadd <name>" > then move to spot u where you want your Npc to be and do "/npcx npc spawngroupcreate <ID> this would then place a marker that any NPCS in that spawn group ID would spawn at.

    To add a Npc u just this
    "/npcx npc create <name>" As above with the existing created spawngroup you just did "/npcx npc add <spawngroupID> <NpcID>"


    and you where done.


    Then all a player had to do to create a npc was make a new spawngroup and add a npc ID to it then place the spawngroup where they wanted it. To do this all they needed was the npcx.user permission node.

    This allowed them only make a copy of an exisitng NPC ID and place it in the world since all the NPCS data was held in the NPC ID and all the trader info and loot it droped was held in the loottable assigned to the npc inc the what the items the npc was wearing the items it held.

    They did not have to create new npcs at all or anything they just looked up a list that had NPC names and ID's then picked an ID and made a spawn for it.

    That was all that was needed to be done to let others make use of npcs at its most simple level of use.


    I was kinda expecting this does the same but from reading the permissions and commands it looks like you need to indvidualy give each NEW npc Items you cant just assign a pre made KIT of items or a List of items for sale and prices.

    I had in NPCX trader lists like "blacksmith" when ever I wanted I differntly named NPC to sell items I just created a new NPC name looked up its ID assigned a trader item list ID and place him into an existing spawn group or made a new one for him.

    If I wanted to replicate a NPC same princible none of this COPY npc stuff it was just make a new spawn and give the spawn the NPCID a pre exisitng NPCID.

    I hope all of this makes sense and its not too long its not really a big deal and I know the commands I referenced are not 100% accurate but you get the idea and I just really would like some help if any one had sometime to help me drop me a PM.

    I can easily let staff use this as I would assume you could use a .* node to give all NPC permissiosn to that group tho It was not in the node list so maybe not will find out soon enough.

    My main concern is I just dont want others mucking around with others NPCS and I want then only be able to make NPCS traders based on a GLOBAL price list we already set up as a ITEMLIST.

    with staff having abiliy to modify everyones npcs as required.

    Sorry about the english its late kinda tired.
     
  20. Offline

    Randy Schouten

    Just a quick question:
    Could you guys consider releasing hot-fixes?
    It's rather annoing that my npc's don't talk :/
     
  21. Offline

    NOiR

    At this rate of updates you can concider each update a hotfix. Let's not encourage developers to spend more time getting something ready for a release than actually developing it.

    Next time something breaks for you in an update just roll back to the previous version.
     
  22. Offline

    QuestCraft

    I did that it still doesn't work.
     
  23. Offline

    esiao

    In my config file : Talkwhenclose = true
    The npc is in Talkwhenclose
    But he talk one time and never after. So what's the problem i have no errors in the console
     
  24. Offline

    ledhead900

    Anyone going to help me with my question ? :(
     
  25. Offline

    riuthamus

    For the traders, can we get an option to make it buy ANYTHING, this way we could have a general store for admin locations. That would be epic

    Also, would it be possible to link a players bank account ( using BOSEcon or iConomy ) to a trader?
     
  26. Offline

    Randy Schouten

    I tried rolling back without success. D:
     
  27. Offline

    TwolfWD

    Just want to follow up on my last post concerning lag. Turns out it was because of mobs spawning near NPCs. Some 500 mobs spawned in the area around an my spawn point NPC. Using the plugin iZone I created a large are where mobs couldn't spawn around the NPC, and the lag disappeared. So, it's not an issue with the plugin, but rather an unfortunate side effect.
     
  28. Offline

    Weirdo327

    Hey when are you guys (Fullwall etc.) going to release guards?
     
  29. Offline

    GoelieNL

    When the d version is gonna come out and it works with permissions and bukkit, I'm Sssoooooo gonna promote you guys in my youtube vids!!
     
  30. Offline

    MadcowD

    CakeCraft Error Report:
    After investigating issues with ym server start up I've pinpointed the error to:
    Code:
     Task of 'Citizens' generated an exception
    java.lang.NullPointerException
            at com.fullwall.Citizens.NPCs.NPCDataManager.addItems(NPCDataManager.java:36)
            at com.fullwall.Citizens.NPCs.NPCManager.loadBasic(NPCManager.java:142)
            at com.fullwall.Citizens.NPCs.NPCManager.registerNPC(NPCManager.java:74)
            at com.fullwall.Citizens.NPCs.BasicNPCHandler.spawnExistingNPC(BasicNPCHandler.java:43)
            at com.fullwall.Citizens.Citizens.setupNPCs(Citizens.java:297)
            at com.fullwall.Citizens.Citizens.access$0(Citizens.java:262)
            at com.fullwall.Citizens.Citizens$1.run(Citizens.java:106)
            at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:138)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:360)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    This error prevents players joining on server restart.
    I'm also noticing that when I do a command with traders the server freezes for a moment.

    Specs:
    CB#677
    Citizens1.0.8c
    Essentials 2.2.17 (or whatever)
    Permissions 2.7
    Iconomy 5
    Etc...

    Would appreciate some help!
    ~CakeCraft Staff
     
  31. Offline

    Avous

    I keep getting the error an internal error occured while attempting to preform this action when i set a large list of buy or sell on a vendor and it doesnt save the buy/sell after the servers reloaded or restarted. and it removes ALL their buy/sell listings... please help
    Code:
    011-05-19 07:22:15 [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.copyOfRange(Unknown Source)
        at java.lang.String.<init>(Unknown Source)
        at java.lang.StringBuffer.toString(Unknown Source)
        at java.util.Properties.saveConvert(Unknown Source)
        at java.util.Properties.store0(Unknown Source)
        at java.util.Properties.store(Unknown Source)
        at com.fullwall.Citizens.PropertyHandler.save(PropertyHandler.java:144)
        at com.fullwall.Citizens.PropertyHandler.setString(PropertyHandler.java:215)
        at com.fullwall.Citizens.PropertyHandler.setString(PropertyHandler.java:219)
        at com.fullwall.Citizens.Utils.TraderPropertyPool.setStockables(TraderPropertyPool.java:103)
        at com.fullwall.Citizens.Utils.TraderPropertyPool.saveStockables(TraderPropertyPool.java:121)
        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
     

Share This Page