Citizens2 icon indicating copy to clipboard operation
Citizens2 copied to clipboard

NPCs Unloading Skins After Adding So Many

Open ArctoranDev opened this issue 9 years ago • 5 comments

So another skin issue yet again, I'm not entirely sure how you guys save the permanent skins but I've got 7 NPCs setup but the only problem is when I can only set 5 skins at a time for example when I set the 6th skin the first one disappears and when I set the 7th the 2nd disappears. I've tried keeping chunks loaded in the config but whenever I try and enable that the server will start up fine and instantly crash with an error saving chunks. Also I'm having problems with player's not seeing any, some or all skins but it varies per player and time.

[22:21:55] [Spigot Watchdog Thread/ERROR]: The server has stopped responding! [22:21:55] [Spigot Watchdog Thread/ERROR]: Please report this to http://www.spigotmc.org/ [22:21:55] [Spigot Watchdog Thread/ERROR]: Be sure to include ALL relevant console errors and Minecraft crash reports [22:21:55] [Spigot Watchdog Thread/ERROR]: Spigot version: git-Spigot-54ec0b8-be9ef98 (MC: 1.11.2) [22:21:55] [Spigot Watchdog Thread/ERROR]: ------------------------------ [22:21:55] [Spigot Watchdog Thread/ERROR]: Server thread dump (Look for plugins here before reporting to Spigot!): [22:21:55] [Spigot Watchdog Thread/ERROR]: ------------------------------ [22:21:55] [Spigot Watchdog Thread/ERROR]: Current Thread: Server thread [22:21:55] [Spigot Watchdog Thread/ERROR]: PID: 15 | Suspended: false | Native: false | State: RUNNABLE [22:21:55] [Spigot Watchdog Thread/ERROR]: Stack: [22:21:55] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_11_R1.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:120) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_11_R1.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:116) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_11_R1.World.getChunkAt(World.java:329) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_11_R1.World.getChunkAtWorldCoords(World.java:325) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_11_R1.World.getType(World.java:806) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_11_R1.World.b(World.java:601) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_11_R1.World.c(World.java:510) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_11_R1.World.notifyAndUpdatePhysics(World.java:429) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_11_R1.World.setTypeAndData(World.java:408) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_11_R1.WorldGenMinable.generate(SourceFile:71) [22:21:55] [Spigot Watchdog Thread/ERROR]: com.minelazz.epicworldgenerator.nativeAPI.implementations.v1_11_R1.generator.b.recreateStructures(b.java:341) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_11_R1.Chunk.a(Chunk.java:964) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_11_R1.Chunk.loadNearby(Chunk.java:950) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_11_R1.ChunkProviderServer.originalGetChunkAt(ChunkProviderServer.java:173) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_11_R1.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:140) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_11_R1.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:120) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_11_R1.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:116) [22:21:55] [Spigot Watchdog Thread/ERROR]: org.bukkit.craftbukkit.v1_11_R1.CraftWorld.getChunkAt(CraftWorld.java:131) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.citizensnpcs.api.astar.pathfinder.ChunkBlockSource.getChunkObject(ChunkBlockSource.java:18) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.citizensnpcs.api.astar.pathfinder.ChunkBlockSource.getChunkObject(ChunkBlockSource.java:7) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.citizensnpcs.api.astar.pathfinder.CachingChunkBlockSource.<init>(CachingChunkBlockSource.java:34) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.citizensnpcs.api.astar.pathfinder.CachingChunkBlockSource.<init>(CachingChunkBlockSource.java:22) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.citizensnpcs.api.astar.pathfinder.CachingChunkBlockSource.<init>(CachingChunkBlockSource.java:18) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.citizensnpcs.api.astar.pathfinder.ChunkBlockSource.<init>(ChunkBlockSource.java:9) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.citizensnpcs.npc.ai.AStarNavigationStrategy.update(AStarNavigationStrategy.java:83) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.citizensnpcs.npc.ai.CitizensNavigator.run(CitizensNavigator.java:164) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.citizensnpcs.npc.CitizensNPC.update(CitizensNPC.java:274) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.citizensnpcs.nms.v1_11_R1.entity.EntityHumanNPC.A_(EntityHumanNPC.java:140) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_11_R1.World.entityJoinedWorld(World.java:1631) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_11_R1.World.h(World.java:1606) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_11_R1.WorldServer.l(WorldServer.java:641) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_11_R1.World.tickEntities(World.java:1400) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_11_R1.WorldServer.tickEntities(WorldServer.java:618) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:814) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:399) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:678) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:576) [22:21:55] [Spigot Watchdog Thread/ERROR]: java.lang.Thread.run(Unknown Source) [22:21:55] [Spigot Watchdog Thread/ERROR]: ------------------------------ [22:21:55] [Spigot Watchdog Thread/ERROR]: Entire Thread Dump: [22:21:55] [Spigot Watchdog Thread/ERROR]: ------------------------------ [22:21:55] [Spigot Watchdog Thread/ERROR]: Current Thread: Downloader 1 [22:21:55] [Spigot Watchdog Thread/ERROR]: PID: 93 | Suspended: false | Native: false | State: TIMED_WAITING [22:21:55] [Spigot Watchdog Thread/ERROR]: Stack: [22:21:55] [Spigot Watchdog Thread/ERROR]: sun.misc.Unsafe.park(Native Method) [22:21:55] [Spigot Watchdog Thread/ERROR]: java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source) [22:21:55] [Spigot Watchdog Thread/ERROR]: java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(Unknown Source) [22:21:55] [Spigot Watchdog Thread/ERROR]: java.util.concurrent.SynchronousQueue$TransferStack.transfer(Unknown Source) [22:21:55] [Spigot Watchdog Thread/ERROR]: java.util.concurrent.SynchronousQueue.poll(Unknown Source) [22:21:55] [Spigot Watchdog Thread/ERROR]: java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source) [22:21:55] [Spigot Watchdog Thread/ERROR]: java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [22:21:55] [Spigot Watchdog Thread/ERROR]: java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [22:21:55] [Spigot Watchdog Thread/ERROR]: java.lang.Thread.run(Unknown Source) [22:21:55] [Spigot Watchdog Thread/ERROR]: ------------------------------ [22:21:55] [Spigot Watchdog Thread/ERROR]: Current Thread: Downloader 0 [22:21:55] [Spigot Watchdog Thread/ERROR]: PID: 92 | Suspended: false | Native: false | State: TIMED_WAITING [22:21:55] [Spigot Watchdog Thread/ERROR]: Stack: [22:21:55] [Spigot Watchdog Thread/ERROR]: sun.misc.Unsafe.park(Native Method) [22:21:55] [Spigot Watchdog Thread/ERROR]: java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source) [22:21:55] [Spigot Watchdog Thread/ERROR]: java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(Unknown Source) [22:21:55] [Spigot Watchdog Thread/ERROR]: java.util.concurrent.SynchronousQueue$TransferStack.transfer(Unknown Source) [22:21:55] [Spigot Watchdog Thread/ERROR]: java.util.concurrent.SynchronousQueue.poll(Unknown Source) [22:21:55] [Spigot Watchdog Thread/ERROR]: java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source) [22:21:55] [Spigot Watchdog Thread/ERROR]: java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [22:21:55] [Spigot Watchdog Thread/ERROR]: java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [22:21:55] [Spigot Watchdog Thread/ERROR]: java.lang.Thread.run(Unknown Source) [22:21:55] [Spigot Watchdog Thread/ERROR]: ------------------------------ [22:21:55] [Spigot Watchdog Thread/ERROR]: Current Thread: File IO Thread [22:21:55] [Spigot Watchdog Thread/ERROR]: PID: 91 | Suspended: false | Native: false | State: TIMED_WAITING [22:21:55] [Spigot Watchdog Thread/ERROR]: Stack: [22:21:55] [Spigot Watchdog Thread/ERROR]: java.lang.Thread.sleep(Native Method) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_11_R1.FileIOThread.c(SourceFile:51) [22:21:55] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_11_R1.FileIOThread.run(SourceFile:30) [22:21:55] [Spigot Watchdog Thread/ERROR]: java.lang.Thread.run(Unknown Source) [22:21:55] [Spigot Watchdog Thread/ERROR]: ------------------------------

Any solutions? Because at this rate I'll have to buy multiple accounts just to do it.

ArctoranDev avatar Apr 25 '17 08:04 ArctoranDev

Ive been using citizens 2 since it came out and i've only ever used one build that allowed npcs to keep their skins (but then all npcs would join the player-list), Losing skins still a problem in the latest dev version and I hope you find a solution. Just letting the developers know this is still a big issue.

seedie avatar May 05 '17 04:05 seedie

@seedie how long do you think Citizens 2 has been around? Prior to Minecraft 1.7.6 skins worked perfectly. Mojang borked a lot of skin-related things in 1.7.6 that we still haven't recovered from :/

mcmonkey4eva avatar May 05 '17 04:05 mcmonkey4eva

@mcmonkey4eva nice to see you are still active, I once tried to address this issue with you a couple of years ago https://github.com/CitizensDev/Citizens2/issues/359 after I was devastated to find upgrading broke the skins again. Thought it was finally solved with that build and to see it broken in every build since was disappointing. But I am glad someone is still looking into this, another method of applying the skins might be needed?

seedie avatar May 05 '17 05:05 seedie

Well what we're doing now is buying multiple slave accounts because from my research Mojang keeps a total of 7-8 skins cached on their servers so for every 8 NPCs we want to add we buy an account and upload all the skins to the cache, at this point it's the only work around I see unless we used a modded client.

ArctoranDev avatar May 21 '17 10:05 ArctoranDev

Should be better in the latest version.

fullwall avatar Mar 15 '18 08:03 fullwall