Citizens2 icon indicating copy to clipboard operation
Citizens2 copied to clipboard

NPC rapid skin checking

Open baph-omet opened this issue 11 years ago • 7 comments

Using the latest dev build of citizens on spigot 1.8, if you assign a skin to an npc of a nonexistent account ("/npc skin asdf" for example), Citizens will continually try to update the skin, which effectively keeps respawning the NPC. What this used to do in 1.7 was it would check once, then just use the default skin if no account was found. This made it a helpful method for setting NPC's to the default skin. This issue does not occur when you set the initial name of an NPC to a nonexistent account with the /npc create command (i.e. "/npc create asdf").

baph-omet avatar Dec 06 '14 22:12 baph-omet

I can't reproduce this.

fullwall avatar Dec 09 '14 11:12 fullwall

I've seen it only a few times recently, it happens only in super rare cases. @griffenx can you narrow down when it happens any more?

mcmonkey4eva avatar Dec 09 '14 23:12 mcmonkey4eva

The issue is persisting with version 2.0.14a1. I turned on debug mode for a bit and found that for NPC's for which the rapid skin reload problem occurs, a message like this is spammed in console: "[Citizens] Using cached skin texture for NPC §cSanta§f UUID 3e581613-f6fc-462d-999a-3581bedd4b75" I changed the skins.max-retries config node to something small like 4, but that doesn't seem to limit the problem.

baph-omet avatar Dec 28 '14 19:12 baph-omet

also, reloading the plugin seems to stop the problem, but only for about a minute, after which it starts happening again.

baph-omet avatar Dec 28 '14 19:12 baph-omet

cant u limit it by letting it save the skin file and replacing them everyday

http://www.spigotmc.org/resources/bukkitnpcs.1880/

noorkoteb avatar Jan 23 '15 21:01 noorkoteb

Sorry to poke in but why is my plugin mentioned here?

ghost avatar Feb 22 '15 01:02 ghost

because it says in features,

  • Bypass Mojang's skin loading limit per minute by saving the skin info to file.
  • NPC Saving/Loading Using UUID file names so no file conflicts.

this is the issue we are having the skin disappears or keeps refreshing. idk anything about coding but i thought its code might help the issue here

noorkoteb avatar Feb 24 '15 21:02 noorkoteb