Citizens2 icon indicating copy to clipboard operation
Citizens2 copied to clipboard

NPC's not loading their skins

Open GabrielPaisSM opened this issue 12 years ago • 39 comments

I've noticed that when you repeat the same user NPC (I mean, for example having 20 NPCs named Sniper) there's an error spamming on console:

11:46:18 PM CONSOLE: client has sent too many requests within a certain amount of time 11:46:18 PM CONSOLE: Source) [?:1.7.0] 11:46:19 PM CONSOLE: Source) [?:1.7.0] 11:46:19 PM CONSOLE: Source) [?:1.7.0] 11:46:19 PM CONSOLE: WARN]: Couldn't look up profile properties for net.minecraft.util.com.mojang.authlib.GameProfile@302917dd[id=615a0d98-c595-4b9a-97b6-d4a0d74c5030,name=,properties={},legacy=false]

Their skins do not load and I need to reload citizens in order to see their skins correctly.

Please it would be great if you could fix this, I'm using the latest citizens version 2.0.13 (alpha 1)

Thank you!

GabrielPaisSM avatar Oct 24 '14 21:10 GabrielPaisSM

Does this persist if you update to the latest dev build for your version http://wiki.citizensnpcs.co/Versions ?

mcmonkey4eva avatar Oct 24 '14 22:10 mcmonkey4eva

This is happening to me as well on latest patched spigot and using last dev build of citizens. Sometimes the skins show sometimes they don't

sirbrando avatar Oct 28 '14 04:10 sirbrando

There've been a few skin related updates, does it still occur on the new latest dev builds?

mcmonkey4eva avatar Nov 17 '14 05:11 mcmonkey4eva

Would you mind posting here the link to download it? I've never known exactly where to download the latest build :( when I download them I don't know where to see what build do I have

Thank you

GabrielPaisSM avatar Nov 17 '14 12:11 GabrielPaisSM

http://ci.citizensnpcs.co/job/Citizens2/ Use /citizens to see which build you have

mcmonkey4eva avatar Nov 17 '14 20:11 mcmonkey4eva

Using build #1183 the problem is still there. Sometimes the skins load sometimes they don't. And It almost seems client side, cause some people will see the skins on NPC's and others wont. Here's a couple examples http://imgur.com/UkYQHR5 Skins not working. http://imgur.com/V2fT60O 1 Skin working (sirbrando) another not working (Herobrine)

sirbrando avatar Nov 17 '14 21:11 sirbrando

It still occurs, either in 1182 and 1183. Skins continue to unload or not to load and names appear in tablist, here's a video showing (all npc's are from premium users):

https://www.youtube.com/watch?v=lN4xyDxlSgU&feature=youtu.be

And an image 5 minutes later: http://i.imgur.com/lLqqNwn.png

GabrielPaisSM avatar Nov 17 '14 21:11 GabrielPaisSM

I actually recently saw this on my public server... all skins loaded fine for me, but a user complained that he couldn't see a few skins. So And It almost seems client side I agree with.

The question is, what circumstances causes a skin to not be visible? Since the skin is sent with the spawn packet, it makes little sense for it to ever fail...

and holy s- @ that video... that's detailed. Any chance we could get a copy of that world/save file to experiment with?

mcmonkey4eva avatar Nov 17 '14 21:11 mcmonkey4eva

I'll add the NPC names aren't appearing in tablist for me. Which is good.

sirbrando avatar Nov 17 '14 21:11 sirbrando

What do you mean exactly by world/save file?

I'll also add that I am using Spigot with the 1.8 hack

GabrielPaisSM avatar Nov 17 '14 21:11 GabrielPaisSM

@StillSwingin Like... the world folder + the Citizens saves.yml file... so we can load it up ourselves and see this happening on a local server

mcmonkey4eva avatar Nov 17 '14 21:11 mcmonkey4eva

I'm sorry but the World folder is too big to upload it. Unfortunately I can only give you my saves.yml, which needs a world called Aurbis.

http://pastebin.com/2NfdsiiP

GabrielPaisSM avatar Nov 18 '14 00:11 GabrielPaisSM

same problem happens to me and i use latest spigot patch 20141113 and the last citizens dev build 2.0.13 build 1183 it happens with all the npcs i create they either dont get their skin directly and i have to despawn and respawn them. or they have it for couple of minutes and when they are reloaded the lose their skin again. i have not tested mass npc creation yet http://imgur.com/a/JLchT#0 on the left is what is supose to happen (i got that one working after despawning and respawning) on the right is what happens when i spawn it. and give it a skin. also. the left one loses his skin after i have been away reconnect or join.

mmuziek avatar Nov 20 '14 13:11 mmuziek

Please can you solve the problem of the tablist? It is a bit annoying when there are lots of npcs :(

Thank you!

GabrielPaisSM avatar Nov 28 '14 22:11 GabrielPaisSM

How are things working in Spigot 1.8?

This build contains patches for most known issues, including some listed above: https://dl.dropboxusercontent.com/u/54130586/citizens-2.0.14-SNAPSHOT.jar

mcmonkey4eva avatar Dec 12 '14 00:12 mcmonkey4eva

I am using:

  • Citizens2 v2.0.14-snapshot (Build 1194)
  • Craftbukkit version git-Bukkit-abc129a(MC:1.8) (Implementing API v1.8-R01-SNAPSHOT)
  • Other Plugins: TuxTwoLib,MultiInv,Slimefun,WorldEdit,Denizen,Announcer,Sentry,Multiverse-Core,GriefPrevention,mcMMO,CleanroomGeneratot,Essentials,Shopkeepers,IslandWorld

Collected information:

  • relogging resets skins back to default.
  • Typing '/citizens reload' loads the correct skins
  • warping to other worlds and back do not clear skins.
  • if I go 3-4 chuncks away and come back, the NPC's are invisable. '/citizens reload' brings them back.

My white listed server is at 173.243.117.171:25800 contact me at:[email protected] to get white listed.

eviltek2099 avatar Dec 13 '14 15:12 eviltek2099

Do the NPCs move on their own, or are they idle?

Only moving NPCs should be at risk of going invisible right now.

mcmonkey4eva avatar Dec 13 '14 21:12 mcmonkey4eva

only one NPC in world, It is idle with no scripts. Reproduce steps:

  • /npc create Grille
  • 50/50 a 'Steve' or 'Grille'. NPC appears where I stand.
  • 'citizens save' to be safe.
  • go 3-4 chuncks away and come back. (far enough from NPC for chunk to unload from view)
  • the NPC is invisible. .
  • '/citizens reload' brings them back as long as I have saved beforehand with 'citizens save'

Thanks in advance for all your hard work. the Private server i'm building is a X-mas gift for a friends kids. this makes a private server seem more alive.

eviltek2099 avatar Dec 13 '14 22:12 eviltek2099

I don't get it, it works perfectly for multiple NPCs, but when it's one NPC alone, it fails as you described. ... why even. @fullwall - any ideas?

mcmonkey4eva avatar Dec 13 '14 23:12 mcmonkey4eva

I just ran another test:

  • /npc create Grille
  • /npc create Guard
  • /citizens save
  • /citizens reload
  • "go far away for chunk to unload and come back"
  • Both Grille and Guard are "Steves"

I hope this is helpful.

eviltek2099 avatar Dec 13 '14 23:12 eviltek2099