Citizens2 icon indicating copy to clipboard operation
Citizens2 copied to clipboard

Villager NPCs are invisble

Open JanisRazen opened this issue 2 years ago • 37 comments

/version output

Paper: git-Paper-19 (MC: 1.18)

/version Citizens output

Citizens: 2.0.29-Snapshot (build 2416)

Log file

https://paste.denizenscript.com/View/90458

config.yml

https://paste.denizenscript.com/View/90459

saves.yml

https://paste.denizenscript.com/View/90460

Profiler report

No response

Description

Hello! So I had my already working Citizen NPCs in my 1.17. world, changed to Paper 1.18 dev-build, created a new 1.18 world and used /npc tphere to teleport the NPCs, that were in the old world, to the new world. It worked fine, until they just "disappeared". I'm not entirely sure if I relogged, changed worlds or just flew away, but they are invisible now. Doing /npc list, they are still there, and if I try to select them with /npc sel, they get selected.

So they are invisible and not clickable, but appear to be there.

JanisRazen avatar Dec 01 '21 17:12 JanisRazen

I am experiencing the same issue. Restarting generally brings them back for me but I'm not sure what triggers the disappearance.

baailey avatar Dec 15 '21 11:12 baailey

I am experiencing the same issue. I suddenly noticed it started messing up citizen names. I made backtomazes3 which sudenly changed his name to backtoparkour1 and teleported to place where other backtoparkour1 npc was.

so i ended up having 2 backtoparkour1 npc's in same place. but one ansvers being called as backtomazes3

jokbon avatar Dec 18 '21 03:12 jokbon

my coment wasnt out of topic as i described they flew away to other citizens and inherited theyr names. when i aproached spot there was 2 npcs. please try fixing this as i will be forced to move to boring gui's :/

jokbon avatar Dec 18 '21 19:12 jokbon

I believe that I am also experiencing the same exact issue. .. According to configs and npc commands, the NPC/s exist but they are not interactable and visually not there.

Paper 1.18.1 ver 81 Citizens2 Build2430

Getblock avatar Dec 23 '21 13:12 Getblock

@RazenHD Does this issue still occur for you in 1.18.1? Also, have you tried /npc tp to teleport yourself to the NPC, in case it's just been moved to a different location? Your log file was full of random error messages from other plugins, which will seemingly unrelated might actually have caused the issue indirectly. If you're still getting the issue on an up-to-date server, can you please post updated logs?

@Getblock do you actually have the same specific situation of having multiple worlds, transferred teleported NPCs from one world to another, and then they disappeared? If not, you're more likely to have a different but merely similar problem.

@baailey same question to you as to Getblock.

mcmonkey4eva avatar Dec 23 '21 13:12 mcmonkey4eva

After doing some experimentation on the NPCs to figure out why they are becoming invisible after server restarts.. We've somehow found out that setting the "Type" of the NPC to a "Villager" is the issue. We're not exactly sure the reason for that but after converting every NPC on server to a "player" type, this issue has stopped occurring for me.

Getblock avatar Dec 24 '21 08:12 Getblock

Same for me half NPC with villager type is disappeared.

Neeekss avatar Dec 25 '21 14:12 Neeekss

Same here, some npcs with type villager or vindicator are disappearing, always the 2 same, have to manually /citizens reload everytime

RSLuke avatar Dec 28 '21 13:12 RSLuke

Not convinced yall 3 are necessarily hitting the same issue as the original user, since they haven't specified, but since they're not replying, could at least one of you three please post a current latest.log from a server that's experiencing the issue?

Also please try to narrow down when your villager NPCs are disappearing specifically (is it a specific duration of time? Does it relate to an event from another plugin? Is it after you use a certain command?)

mcmonkey4eva avatar Dec 28 '21 13:12 mcmonkey4eva

I have 44 npcs on my server, 2 of them disappear every daily reboot but are not removed from the file since I can make them come back with the citizens reload comand I don't have anything in the logs but I'll check once more The 2 npcs are villager and vindicator type [05:04:59] [Server thread/INFO]: [Citizens] Enabling Citizens v2.0.29-SNAPSHOT (build 2428) [05:05:24] [Server thread/INFO]: [Citizens] Loaded 44 NPCs.

RSLuke avatar Dec 28 '21 13:12 RSLuke

Also enable citizens debug to at least log despawns/respawns.

fullwall avatar Dec 28 '21 13:12 fullwall

As requested :

[14:43:06] [Server thread/INFO]: [Citizens] Tried to despawn 70 while already despawned, DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Tried to despawn 69 while already despawned, DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Tried to despawn 68 while already despawned, DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Tried to despawn 67 while already despawned, DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 66 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 66 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Tried to despawn 65 while already despawned, DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 64 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 64 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 62 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 62 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 41 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 41 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 39 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 39 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 38 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 38 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 37 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 37 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 36 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 36 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 35 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 35 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Tried to despawn 34 while already despawned, DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Tried to despawn 33 while already despawned, DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 32 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 32 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 31 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 31 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Tried to despawn 30 while already despawned, DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 29 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 29 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 28 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 28 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 27 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 27 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 26 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 26 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 25 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 25 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 22 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 22 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 21 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 21 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 20 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 20 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 18 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 18 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 17 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 17 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 16 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 16 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 15 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 15 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 14 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 14 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 13 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 13 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 12 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 12 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 11 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 11 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 10 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 10 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 9 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 9 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 8 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 8 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 7 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 7 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 6 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 6 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 4 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 4 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 2 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 2 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 1 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 1 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 0 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 0 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Preventing further respawns of 0 due to DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 0 DespawnReason.RELOAD
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 4 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 4 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 2 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 2 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 1 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 1 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 0 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 0 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 10 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 10 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 9 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 9 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 8 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 8 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 7 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 7 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 6 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 6 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 18 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 18 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 17 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 17 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 16 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 16 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 15 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 15 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 14 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 14 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 13 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 13 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 12 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 12 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 11 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 11 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 21 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 21 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 20 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 20 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 22 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 22 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 25 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 25 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 32 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 32 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 31 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 31 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 29 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 29 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 28 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 28 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 27 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 27 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 26 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 26 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 36 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 36 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 35 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 35 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 39 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 0 due to SpawnReason.PLUGIN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 0 SpawnReason.PLUGIN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 39 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 38 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 38 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 37 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 37 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 41 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 41 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 62 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 62 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 64 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 64 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Retrying spawn of 65 later, SpawnReason.RESPAWN. Was loaded false is loaded false
[14:43:06] [Server thread/INFO]: [Citizens] Stored 65 for respawn from NPCNeedsRespawnEvent
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 70 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 70 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Retrying spawn of 69 later, SpawnReason.RESPAWN. Was loaded false is loaded false
[14:43:06] [Server thread/INFO]: [Citizens] Stored 69 for respawn from NPCNeedsRespawnEvent
[14:43:06] [Server thread/INFO]: [Citizens] Retrying spawn of 68 later, SpawnReason.RESPAWN. Was loaded false is loaded false
[14:43:06] [Server thread/INFO]: [Citizens] Stored 68 for respawn from NPCNeedsRespawnEvent
[14:43:06] [Server thread/INFO]: [Citizens] Retrying spawn of 67 later, SpawnReason.RESPAWN. Was loaded false is loaded false
[14:43:06] [Server thread/INFO]: [Citizens] Stored 67 for respawn from NPCNeedsRespawnEvent
[14:43:06] [Server thread/INFO]: [Citizens] Removing respawns of 66 due to SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Spawned 66 SpawnReason.RESPAWN
[14:43:06] [Server thread/INFO]: [Citizens] Removing 70 from skin tracker due to DespawnReason.CHUNK_UNLOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned 70 DespawnReason.CHUNK_UNLOAD
[14:43:06] [Server thread/INFO]: [Citizens] Despawned id 70 due to chunk unload at [-63,3]
[14:43:07] [Server thread/INFO]: Junior_Fork issued server command: /lieux
[14:43:08] [Server thread/INFO]: Junior_Fork a été téléporté à (Noel_2021,186,64,31).
[14:43:08] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 5086ms or 101 ticks behind
[14:43:08] [Server thread/INFO]: [Citizens] Respawning all NPCs at [7,0] due to org.bukkit.event.world.ChunkLoadEvent@a2131a8e
[14:43:08] [Server thread/INFO]: [Citizens] Removing respawns of 69 due to SpawnReason.CHUNK_LOAD
[14:43:08] [Server thread/INFO]: [Citizens] Spawned 69 SpawnReason.CHUNK_LOAD
[14:43:08] [Server thread/INFO]: [Citizens] Spawned id 69 during org.bukkit.event.world.ChunkLoadEvent@a2131a8e at [7,0]
[14:43:08] [Server thread/INFO]: [Citizens] Removing respawns of 68 due to SpawnReason.CHUNK_LOAD
[14:43:08] [Server thread/INFO]: [Citizens] Removing respawns of 0 due to SpawnReason.PLUGIN
[14:43:08] [Server thread/INFO]: [Citizens] Spawned 0 SpawnReason.PLUGIN
[14:43:08] [Server thread/INFO]: [Citizens] Spawned 68 SpawnReason.CHUNK_LOAD
[14:43:08] [Server thread/INFO]: [Citizens] Spawned id 68 during org.bukkit.event.world.ChunkLoadEvent@a2131a8e at [7,0]
[14:43:08] [Server thread/INFO]: [Citizens] Respawning all NPCs at [8,0] due to org.bukkit.event.world.ChunkLoadEvent@a45cab43
[14:43:08] [Server thread/INFO]: [Citizens] Removing respawns of 65 due to SpawnReason.CHUNK_LOAD
[14:43:08] [Server thread/INFO]: [Citizens] Spawned 65 SpawnReason.CHUNK_LOAD
[14:43:08] [Server thread/INFO]: [Citizens] Spawned id 65 during org.bukkit.event.world.ChunkLoadEvent@a45cab43 at [8,0]

RSLuke avatar Dec 28 '21 14:12 RSLuke

Missing the startup log, as well as the ID of the relevant NPC.

fullwall avatar Dec 28 '21 14:12 fullwall

``Anything related to Citizens : [05:04:48] [Server thread/INFO]: [Citizens] Loading Citizens v2.0.29-SNAPSHOT (build 2428) [05:04:59] [Server thread/INFO]: [Citizens] Enabling Citizens v2.0.29-SNAPSHOT (build 2428) [05:04:59] [Server thread/INFO]: [GCore-8.33.0] Enabled integration for Citizens [05:05:04] [Server thread/INFO]: [QuestCreator-6.33.1] Enabled integration for Citizens [05:05:18] [Server thread/INFO]: ┏━━━┓ ┏━┓┏━┓ ┏━━┓ [05:05:18] [Server thread/INFO]: ┃┏━┓┃ ┃ ┗┛ ┃ ┗┫┣┛ [05:05:18] [Server thread/INFO]: ┃┃ ┗┛ ┃┏┓┏┓┃ ┃┃ [05:05:18] [Server thread/INFO]: ┃┃ ┏┓ ┃┃┃┃┃┃ ┃┃ [05:05:18] [Server thread/INFO]: ┃┗━┛┃ ┃┃┃┃┃┃ ┏┫┣┓ [05:05:18] [Server thread/INFO]: ┗━━━┛ ┗┛┗┛┗┛ ┗━━┛ [05:05:18] [Server thread/INFO]: _______________________________________________________ [05:05:18] [Server thread/INFO]: Integrating PaperSpigot async methods [05:05:18] [Server thread/INFO]: Citizens found. [05:05:24] [Server thread/INFO]: [Citizens] Loaded 44 NPCs. NPC IDs : 64 and 70

I do have this, dunno if it is relevant :

[14:43:55] [Server thread/INFO]: [Citizens] Removing 65 from skin tracker due to DespawnReason.CHUNK_UNLOAD
[14:43:55] [Server thread/INFO]: [Citizens] Despawned 65 DespawnReason.CHUNK_UNLOAD
[14:43:55] [Server thread/INFO]: [Citizens] Despawned id 65 due to chunk unload at [8,0]
[14:43:55] [Server thread/INFO]: [Citizens] Removing 69 from skin tracker due to DespawnReason.CHUNK_UNLOAD
[14:43:55] [Server thread/INFO]: [Citizens] Despawned 69 DespawnReason.CHUNK_UNLOAD
[14:43:55] [Server thread/INFO]: [Citizens] Despawned id 69 due to chunk unload at [7,0]
[14:43:55] [Server thread/INFO]: [Citizens] Removing 68 from skin tracker due to DespawnReason.CHUNK_UNLOAD
[14:43:55] [Server thread/INFO]: [Citizens] Preventing further respawns of 0 due to DespawnReason.REMOVAL
[14:43:55] [Server thread/INFO]: [Citizens] Despawned 0 DespawnReason.REMOVAL
[14:43:55] [Server thread/INFO]: [Citizens] Despawned 68 DespawnReason.CHUNK_UNLOAD
[14:43:55] [Server thread/INFO]: [Citizens] Despawned id 68 due to chunk unload at [7,0]
[14:43:55] [Server thread/INFO]: [Citizens] Tried to despawn 0 while already despawned, DespawnReason.CHUNK_UNLOAD
[14:43:55] [Server thread/INFO]: [Citizens] Despawned id 0 due to chunk unload at [7,0]

RSLuke avatar Dec 28 '21 14:12 RSLuke

Getting this issue with player citizens as well. No errors, NPC's just missing, when I try to tp them to me it says it did but there is no NPC there, reloading does not fix this.

bipedd avatar Jan 01 '22 10:01 bipedd

Still waiting for anybody to post full logs/latest.log relevant to the issue.

mcmonkey4eva avatar Jan 01 '22 11:01 mcmonkey4eva

I posted full log multiple times in your discord. Heres non full log of plugin behavior so you will hopefully finaly notice actualy whats happening. My worlds developer added citizens 2 as soft dependency at my request. And yes npcs still act weird at worlds provided by folowing plugins: multiverse & my worlds.

:(

[02:20:48] [Server thread/INFO]: [BKCommonLib] Loading BKCommonLib v1.18.1-v1 [02:20:57] [Server thread/INFO]: [My_Worlds] Loading My_Worlds v1.18.1-v2-SNAPSHOT [02:20:57] [Server thread/INFO]: [Citizens] Loading Citizens v2.0.29-SNAPSHOT (build 2422) [02:21:00] [Server thread/INFO]: [BKCommonLib] Enabling BKCommonLib v1.18.1-v1 [02:21:05] [Server thread/INFO]: [My_Worlds] Enabling My_Worlds v1.18.1-v2-SNAPSHOT [02:21:05] [Server thread/INFO]: [My_Worlds] Loading world 'VD-Quarry' [02:21:06] [Server thread/INFO]: [My_Worlds] Loading world 'TB-Forest' [02:21:06] [Server thread/INFO]: [My_Worlds] Loading world 'MM-Offices' [02:21:06] [Server thread/INFO]: [My_Worlds] Loading world 'MM-HountedHouse' [02:21:06] [Server thread/INFO]: [My_Worlds] Loading world 'Parkour' using chunk generator: ':minecraft:air;minecraft:the_void' [02:21:06] [Server thread/INFO]: [My_Worlds] Loading world 'MM-SantaFactory' [02:21:06] [Server thread/INFO]: [My_Worlds] Loading world 'TB-Fortress' [02:21:06] [Server thread/INFO]: [My_Worlds] Loading world 'Maze' using chunk generator: ':minecraft:air;minecraft:the_void' [02:21:06] [Server thread/INFO]: [My_Worlds] My_Worlds version 1.18.1-v2-SNAPSHOT (build: NO-CI) enabled! (0.927s) [02:21:07] [Server thread/INFO]: [Citizens] Enabling Citizens v2.0.29-SNAPSHOT (build 2422) [02:21:08] [Server thread/INFO]: [Citizens] Loaded 27 NPCs.

jokbon avatar Jan 01 '22 14:01 jokbon

Hello, not sure if this issue will still be looked at due to being closed, but today 4 of my villager NPCs have disappeared. Here is the latest log: https://mcpaste.io/1801e31f3a99c927

Although I'n running build 2419, I'll be updating to build 2454 when the server automatically restarts in 12 hours. I'll post an update if they're or not when I can.

baailey avatar Jan 20 '22 03:01 baailey

Please use https://paste.denizenscript.com/New/Log to paste logs

mcmonkey4eva avatar Jan 20 '22 08:01 mcmonkey4eva

the 4 villager npcs are still missing https://paste.denizenscript.com/View/92411

baailey avatar Jan 20 '22 15:01 baailey

If you need any other information, please let me know. I'd like to get this fixed as soon as possible.

EDIT: Just tried making a villager, only for it to disappear instantly. Simply did /npc create test and then /npc type villager. Disappears right in front of me. Running version: 2.0.29 (build 2456).

Disregard the last edit, that specific issue was caused by a private plugin. The random disappearing is replicable with only Citizens installed.

baailey avatar Jan 27 '22 10:01 baailey

Can you provide logs with at least citizens debug enabled??

fullwall avatar Feb 14 '22 16:02 fullwall

Sorry for the delay, I hope this has the info you're after https://paste.denizenscript.com/View/93891

baailey avatar Feb 28 '22 06:02 baailey

Any news ?

WarnDa avatar May 22 '22 12:05 WarnDa

edit: i missed the logs above;

they're working on it as they can

BehrRiley avatar May 22 '22 12:05 BehrRiley

https://github.com/CitizensDev/Citizens2/issues/2821

Thin-Troll avatar Jun 26 '22 21:06 Thin-Troll

Since another person has reported this; still waiting for consistently reproducible steps ideally with a citizens debug log and IDs of the affected NPCs.

fullwall avatar Jun 27 '22 04:06 fullwall

Since another person has reported this; still waiting for consistently reproducible steps ideally with a citizens debug log and IDs of the affected NPCs.

what exactly is required? what logs and debugs, can you describe the actions in detail? my residents disappear every reboot, I can easily show and repeat that the residents are not visible

Thin-Troll avatar Jun 27 '22 17:06 Thin-Troll

Enable citizens debug in settings Tell me which IDs are affected Post a log including after the point the villagers disappear Ideally this would be on a test server with only citizens installed

fullwall avatar Jun 27 '22 23:06 fullwall

After some followup from a user on Discord seeing this issue got a good lead, this commit: https://github.com/CitizensDev/Citizens2/commit/dfbdfaed0954684d00520389f9c7ea98a8e9e186 adds a config setting that lets you configure lag compensation (compensates for a lag-related bug on modern Paper servers).

So for those replicating the issue in this thread, try updating to the latest Citizens dev build from https://ci.citizensnpcs.co/job/Citizens2/, then edit your config.yml to raise general.entity-spawn-wait-ticks to a higher value like 20 or 30, and see if it reduces the issue.

EDIT: to clarify, this isn't necessarily a fix for the issue in this thread, but it might be relevant, so it's a thing to test

mcmonkey4eva avatar Jul 03 '22 06:07 mcmonkey4eva