[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. No, data types aren't supported yet, afaik.
     
  3. Offline

    awesom03

    Wow thanks for the quick response, would anyone know if there is any chance of seeing it implemented in the near future?
     
  4. Offline

    Ins1d3r

    What about 1 npc being able to sell all kinds of items, and buy all kinds of items from players.

    I want players to for example mine important ores and sell them to the npc to earn money, and then be able to buy anything with that money.
     
  5. Offline

    DeltaDevil

    Bug in Citizens :
     
  6. Offline

    r0u9hneck

    Okay got the first test done. Java+Citizens seem to only access the harddrive when modifying the NPCs like creating, removing, setting text. Those were only write and read.
    For example creating a NPC gives me exactly (1. second 44, 2-3 second none and 4. second another 22) 66 access' on the harddrive.
    I'll set the filter to java overall to see if the number of access per second is in any relation to the number of NPCs on that server.
    So I'll test with 0 NPCs, 5 and 10 for now and give you a number of access per NPCs. If you need more detailed informations I could try to give you the log file instead. (Seperated by 0, 5 and 10.)

    Edit: Btw I found something strange. I've got a huge amount of access by Mcshield (McAfee AntiVir) and something called "Searchprotokolh" (yes, with a h at the end). Those were related to Citizens, too. Probably this causes the lag? I guess ill to a log file containing those.
     
  7. Offline

    Kimberly2000

    Perhaps I just keep overlooking it, but how do you setup the wizards to teleport players?
     
  8. I am running bukkit in RAM-Disk too and still i have lag.
    I am pretty sure it has nothing to do with disk access.
    Either there is a bug in net code or the plugin is colliding with some other one on my machine because my CPU is'nt loaded at all when this happens.
    The problems began with release of Minecraft 1.5beta and the following Bukkit 700 release.

    Edit:
    The lag becomes noticeable only after the server running for some time and getting worse and worse with time progressing, after 12 hours the game is not playable any more because of lags.
    Without Citizens no lag at all.

    Bukkit is running on:
    AMD Phenom II X6 1100
    16 Gigs of RAM
    Java version 1.6.0_20 64-Bit Server VM
     
  9. Offline

    Kimberly2000

    Nevermind... got it!
     
  10. Offline

    Kimberly2000

    Same problem with lag as the others, more than 2 npcs in an area about 64x64x64 causes incredible lag. :(
     
  11. Offline

    PoorPinkus

    sometimes when i set a price for an item in my traders inventory, people on my still can't buy the item. it's kinda odd because the items that people
    cant buy change. (i.e i set cookies to be 1 dollar and cake for 50. people on my server can buy the cake but they can't buy the cookies. the next day they can buu cookies but not cake)

    thanks
     
  12. I don't really have the lag, however I do suspect serious memory leaks. When I've been adding /trader buy lots I've got a Java Heap Exception (out of memory) on my 10th or 11th lot. This also happened on out production server which runs on 4x QuadCore Xeon E5355 and 12gb of RAM. As you can imagine, lag would be the last thing I would expect :)
     
  13. Offline

    r0u9hneck

    Got my testing done. Every disk access was recorded for 10 Seconds. The NPCs were placed together and I was staying close (with follow enabled) or not close. This time filter was set to record everything related to java.

    No NPCs and Citizens disabled / deleted => 1414
    No NPCs (Citizens enabled) => 1208
    5 NPCs close => 1863
    5 NPCs not close => 2932
    10 NPCs close => 548
    10 NPCs not close => 2073

    Those numbers are from the very last disk access recording. But it's always around 1000 - 1600 no matter how many NPCs around or Citizens enabled / disabled.
    The higher numbers definately have nothing to do with citizens. If there would be a high amount of disk access caused by Citizens I would have seen it when the filter was set to citizens.
     
  14. As mentioned before, people running ramdisk still have lag, so I doubt it has anything to do with disk.
    People do report lag building up which sounds very much like a memory problem.

    I suggest we all wait for 1.0.8d peacefully before we blow this thread up :D
     
  15. Offline

    r0u9hneck

    Well, keep an eye on your RAM usage?
    Btw, how many ram did you allocate for the server? (in the run script)
    And what connection are you using?
    Are you running the server local? Can you join using your LAN-Adress to see if the lags still there?

    Yeah, thats what I thought. Thats why I suggested to have a look at the ram usage.
     
  16. Offline

    fugue2005

    don't have to watch ram usage, look in your citizens/traders folder.

    my Citizens.stocking file was 204 megs. (with 11 items on 3 npc's) that's your memory leak

    fullwall says this should be fixed in the next release 1.0.8d

     
  17. Good catch.
     
  18. Offline

    fugue2005

    as soon as i deleted my traders the lag vanished, and i've had no lag since.
     
  19. Offline

    LlmDl

    Fullwall: You still adding an alias for the /toggle command in 1.08d? I'm holding off using this because I use xAuth and I read that it conflicted. Thanks!
     
  20. Offline

    TwolfWD

    I was getting the lag with strictly basic NPCs, and just 6 of them. CPU isn't going above 15% with all plugins active, so that's not it. All my sql databases (big brother, iConomy) are running on a second server with no lag, so I wouldn't be entirely surprise if it was my Disk, seeing as the NPCs don't use Sql. I'm running on a brick and mortar desktop which I upgraded to 8 gigs of DDR2 and a 2.8ghz Core 2 Quad, not sure if it's relevant.

    This is the behavior of the lag. When you first enter the area, you're fine. As you stay longer, it quickly increases. The odd part, is when you type anything or use a command, everyone outside of the area sees the result instantly. Example, if you used /home, everyone would see your avatar at your home instantly (assuming it was outside the lag zone), but you yourself could have as much as a minute delay before actually being teleported. This lag delay is relative to how long YOU have been in the area. You could be getting 2 minutes of lag, where as someone who just showed up would have just a few seconds of it.

    Very odd behavior. One of my players observed in 1.7 that an extraordinary number of mobs had spawned around any NPC, regardless of whether a player was around, which tended to be invisible to anyone who showed up. His theory was that these invisi-mobs were responsible for the lag. I myself am wondering if the same problem is persisting.

    I wanted to add that I am also hosting this on Ubuntu 64-bit 11.04
     
  21. Offline

    Joe Burton

    ok so im having problems with the permissions only admins can use the npcs but ive done the permission nodes so builders can buy/sell but my friend says when he right clicks my trader it says he doesnt have permission for that command and the only way i can make it work is to make him admin but there is problems with that so could you help me? like make the default setting so everyone can buy/sell thanks in advance
     
  22. Offline

    d00ba

    No problems with lag what so ever.

    The minecraft server is running on Ubuntu Server 10.04 with 2GB ram, dualcore processer.
    I spawned a couple of hundred NPC's, and left them there for a few hours (mostly in the same area with some elsewhere as well). No lag was caused at all, everything continued to run smoothly as if Citizens was not installed.

    Minecraft Server 1.5.02
    Ubuntu Server 10.04
    Bukkit Version (766)

    Plugins installed:
    Citizens
    LWC
    Permissions
    Tpack
    RegexFilter
    PlayerList
    iChat
    iConomy
    ColorMe
    iWolvesAdoption
    LoginMessage
    HeroicDeath
    NoSpawn
    Portecoulissante
     
  23. Offline

    d00ba

    It's probably a problem with your Permissions file. If you post it, I'l take a look and see if I can help
     
  24. Very nice observation.... i think we are getting closer to locating the problem because on my server i am using only basic npc's too. So the memory leak problem with traders won't affect me.
     
  25. Offline

    Joe Burton

    plugin:
    permissions: {system: default, copies: null}
    groups:
    Default:
    default: true
    info: {prefix: '', suffix: '', build: false}
    inheritance: null
    permissions: [foo.bar]
    Builder:
    default: false
    info: {prefix: '', suffix: '', build: true}
    inheritance: [Default]
    permissions: [bar.foo'iconomy.access''iconomy.list''iconomy.payment''SimpleWarp.warp''citizens.*''citizens.trader.*''citizens.trader.stock']
    Moderator:
    default: false
    info: {prefix: '', suffix: '', build: true}
    inheritance: [Builder]
    permissions: [bar.foo]
    Admins:
    default: false
    info: {prefix: '', suffix: '', build: true}
    inheritance: null
    permissions: ['*']
    users:
    vXBLaKXv:
    group: Admins
    permissions: ['*']
    Herpina:
    group: Moderator
    info: {prefix: Moo, suffix: Cow}
    permissions: [herp.derp]
    Derpina:
    group: Admins
    permissions: [-derp.derp]
    MoistEvilMonkey:
    group: Builder
    permissions: ['SimpleWarp.*''Citizens.Trader.Stock']
    michaelb8:
    group: Admins
    permissions: ['*']
    rapstar177:
    group: Builder
    permissions: ['SimpleWarp.Warp''Citizens.Trader.Stock']
     
  26. Offline

    Avous

    could someone please tell me how to sell data value items. like 17:1 or 44:2 whenever i try the input 17:1:1 it says LOG is already for sale. but when i try buying them it wont let me buy the data value 17:1:1 it says that its not for sale just log is. please help.
     
  27. Offline

    Joe Burton

    some of the text is a bit messed up since i used a permissions editing plugin
     
  28. Offline

    GoelieNL

    I've used citizens ever sins 1.6 came out, no problems... but now, when I try to create an npc it sais "An internal error occured while trying to preform the command". I dont know what to do, i tryed the .jar only and the .zip. help?!
     
  29. Offline

    d00ba

    you might wanna post it on pastebin.com and post the link :confused:
     
  30. Offline

    Unscrewed

    Do you have essentials?
     
  31. Offline

    Joe Burton

Share This Page