Citizens2 icon indicating copy to clipboard operation
Citizens2 copied to clipboard

npcs appear and then disappear from tab list, also they disappear from world

Open intangir opened this issue 11 years ago • 32 comments

I have 47 npcs on my first world, but half of them disappear half the time, and not the same half

also i can see them all appearing on the tab list temporarily then disappearing

actually as i run up and down the hall

the closer ones in chunks already loaded are disappearing, while new ones in chunks being loaded seem to stay?

its like its removing ones already out

intangir avatar Dec 10 '14 07:12 intangir

NPCs showing in the tab list temporarily is a side effect of our fix for mojang for some stupid reason /requiring/ NPCs be on the tablist to not be invisible. As for disappearing, I have no explanation for you. We've done our best on latest builds to keep them both visible and off the tablist, and we've gotten somewhere in the middle. They're visible in 90% of cases and off the tab list 90% of the time. Could you try to narrow down more exactly which NPCs are invisible (particularly if they remain that way at close range) so we can try replicate the disappearing and write even more edge-case handling code for NPC visibility?

mcmonkey4eva avatar Dec 10 '14 23:12 mcmonkey4eva

you can see if the behavior reveals anything

join mc.intangir.org with 1.8 and walk down the expeditions hall, then go back towards the old worlds hall

you can see existing npcs disappear as new ones appear

its almost like its replacing them

intangir avatar Dec 11 '14 01:12 intangir

if you just log in right next to where they are, they remain there no problem

but walking away, and back, the closer ones disappear as further away ones reappear..

intangir avatar Dec 11 '14 01:12 intangir

Do these NPCs move on their own or are they static? (Can't really join servers ATM, too busy)

mcmonkey4eva avatar Dec 11 '14 01:12 mcmonkey4eva

they stand still, but they are set to lookclose

and theres like 40 all in one hall

intangir avatar Dec 11 '14 07:12 intangir

I see no reason that would happen then. Perhaps there's a new Mojangy cap to number of players visible at one time or something that applies when players aren't in the list. I'll have to try spawning a ton of NPCs spread out over an area... might learn something new. (Will do tomorrow).

mcmonkey4eva avatar Dec 11 '14 07:12 mcmonkey4eva

Is it always the npc's closest to you that are visible? or does it seem to be a radius thing? If you make more npc's closer, does the number of visible npc's remain the same?

ryantheleach avatar Dec 11 '14 12:12 ryantheleach

i haven't noticed any npcs disappear from creating ones with commands, and i did that too, didn't notice any disappear (but then i was only looking in one direction and a bunch were already gone)

its the ones further away that seem to be visible, the ones closer disappear as i approach others which appear

make a bunch of them in a line, and run away, then run back, thats when i see it, you can see it on mc.intangir.org, its in the spawn

intangir avatar Dec 11 '14 17:12 intangir

I was going to test if it is related to hiding the npcs from the tab list

but even with player: remove-from-list: false

it still removes them from the list (and they still disappear)

intangir avatar Dec 11 '14 18:12 intangir

i think bungeetablistplus will hide the npc names from the list for me so i want to try not hiding them from list and see if it fixes their disappearing, but it doesn't seem to be currently possible with the new removal magic tweaks

intangir avatar Dec 11 '14 19:12 intangir

fyi, if you are using the 80 player list, and the first 80 slots are filled, the npcs won't list

its sort of extreme for some servers, but it successfully keeps npcs heads hidden

intangir avatar Dec 11 '14 19:12 intangir

I spawned 54 NPCs, and can replicate your troubles... investigating...

mcmonkey4eva avatar Dec 11 '14 23:12 mcmonkey4eva

I've pushed an additional commit to my repo: I found out that the process of hiding NPCs from the playerlist better also is more likely to show NPCs instead of making them invisible -- it's a win-win! I got roughly ~45 out of 54 NPCs showing up.

EDIT: if you're too lazy to compile my repo, https://dl.dropboxusercontent.com/u/54130586/citizens-2.0.14-SNAPSHOT.jar

mcmonkey4eva avatar Dec 11 '14 23:12 mcmonkey4eva

Howed you get the capes on the NPC's ? I've never seen that cape design before.

ryantheleach avatar Dec 12 '14 14:12 ryantheleach

it was a scrolls release thing.. everyone had them, including npcs

intangir avatar Dec 12 '14 19:12 intangir

i have a issue with them disappearing in region guarded areas with spawn deny flag set. is your npc's in such a region? i use world guard for region protection

VerserVarlin avatar Dec 14 '14 00:12 VerserVarlin

I mod client side and i see npc destructions if you far 80 - 90 blocks and come back. The chunks aren't reload. If you die nearby npcs, they are destroyed on client side too. Good luck for resolve this bug.

diwaly avatar Dec 14 '14 14:12 diwaly

i rolled back a few builds from the junkins server, before all of the list removal changes, and it all works fine

they don't disappear anymore (and names remain hidden by bungee tab list plus)

intangir avatar Dec 14 '14 19:12 intangir

which build # are you using now?

VerserVarlin avatar Dec 14 '14 22:12 VerserVarlin

On build #1190 works fine, :) But not after this one.

diwaly avatar Dec 14 '14 23:12 diwaly