Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No skin on first encounter #1541

Closed
SlimeDog opened this Issue Jul 24, 2018 · 6 comments

Comments

Projects
None yet
4 participants
@SlimeDog
Copy link

SlimeDog commented Jul 24, 2018

>version
[06:14:13 INFO]: This server is running CraftBukkit version git-Spigot-0b44fa0-19ff43d (MC: 1.13) (Implementing API version 1.13-R0.1-SNAPSHOT)
[06:14:13 INFO]: You are 5 version(s) behind
>version Citizens
[06:14:17 INFO]: Citizens version 2.0.23-SNAPSHOT (build 1562)
[06:14:17 INFO]: Website: http://www.citizensnpcs.co
[06:14:17 INFO]: Authors: aPunch and fullwall

I have a simple player-skinned NPC for testing. On first encounter after server restart, the NPC is not skinned. If I log out/in, or move out of range then return, the NPC is correctly skinned.

Citizens/saves.yml (this NPC only, player name elided)

  '5':
    name: Jack
    uuid: 43cbc0f5-305f-4e8c-8236-05c181923ea8
    traits:
      type: PLAYER
      lookclose:
        enabled: true
        range: '5.0'
        realisticlooking: false
      location:
        world: world
        x: '1996.5'
        y: '88.0'
        z: '-4465.5'
        yaw: '-93.10314178466797'
        pitch: '0.0'
      spawned: true
      waypoints:
        linear:
          points:
            '0':
              location:
                world: world
                x: '1996.5'
                y: '88.0'
                z: '-4465.5'
                yaw: '-69.0'
                pitch: '0.0'
        provider: linear
      age:
        age: 0
        locked: true
      profession: LIBRARIAN
      gravity:
        enabled: false
      equipment: {}
      inventory: {}
      assignment:
        assignment: HELPPLAYGROUND
      triggers:
        enabled:
          CHAT: true
          CLICK: true
          PROXIMITY: true
          DAMAGE: false
        radius:
          PROXIMITY: 4
      owner:
        owner: ELIDED
        uuid: 3cf9b867-2577-49d1-affb-7ba8196a0d39
    traitnames: mounttrait,speech,location,profession,type,triggers,waypoints,assignment,equipment,owner,inventory,constants,anchors,age,gravity,spawned,lookclose
    navigator:
      stationaryticks: 100
      speedmodifier: '2.0'
      avoidwater: true
      usedefaultstuckaction: false
    metadata:
      protected: true
      player-skin-textures: eyJ0aW1lc3RhbXAiOjE1MjA1NTY5MzEyNjEsInByb2ZpbGVJZCI6IjNjZjliODY3MjU3NzQ5ZDFhZmZiN2JhODE5NmEwZDM5IiwicHJvZmlsZU5hbWUiOiJyYW1iZWF1Iiwic2lnbmF0dXJlUmVxdWlyZWQiOnRydWUsInRleHR1cmVzIjp7IlNLSU4iOnsidXJsIjoiaHR0cDovL3RleHR1cmVzLm1pbmVjcmFmdC5uZXQvdGV4dHVyZS9mY2QwYzRlNWMwYjdmOTc3OTIxZWQzYzM0ZjVjYjJiY2U3ZmZmMTE2MzZhZGMyZjI5ZWIxZWE0YjcyMjBjZSIsIm1ldGFkYXRhIjp7Im1vZGVsIjoic2xpbSJ9fX19
      cached-skin-uuid-name: ELIDED
      cached-skin-uuid: 3cf9b867-2577-49d1-affb-7ba8196a0d39
      player-skin-signature: Y5urok2wicPLIYUMN0XsgkMhcpJSfO8SCTmyGgEp25jU+LN8soHUxpK0O7JxBSAJzbXJOlTe3ToJjKceCUBZTZ268FW6FjpIw8aCJmHcGURqfx6xWHsEp8gJ5HR34VyLltk9B0OUVXCdTu6nvf2fpO6INlIiikNHeJgIO7UKx2mppLoqspKSU+KhIZY0LtCy8yfcyqzjfTw+Eu5POiEL96UJdruZrex2pOetR5ueptucdfDe1+lgJaqoXa5KlclAt6feKEfEwuwJXkebq8acYYAeasBIpvjTgpR15M1R8g9BPw8777ZQ6281M2HZgVbULk2wCEbsvjReQtFMcEY8Tzef4x1HsJvjrYDLRZcbVVTynObAN26AHoR86WW+zjxvj8Ob5hmNRi+cpVR1nfgiIboIISc8lLCdNriQtZX3XVbhwsh5jst4T6fFIcDW0VD2kCCPvGUWJHN0j6f3HxSkuZ2JUG/ONUwySlWfWtdz6L7wrdl2W8jx2rLnoM1bPeb5wzwIk9+y4pcJoiwdsD2bPK9lSLcR0CvnF1MCc3DuwsvcSreB1D5jnSOT7iizbQLj9hCreC0K1p/zM1Gc9VspadR8AoKbluvDZAxi/sl9ekMWPbkO4dVWA4ljXFqXj/5hyqmNDrAd9JOc8UG24aqgzk1yFnpqZSAjxB6IQ5LMisA=
      player-skin-name: ELIDED

Citizens/config.yml (relevant portion)

npc:    
...
  chunks:       
    always-keep-loaded: false
  skins:
    max-retries: -1
    retry-delay: 120
    rotation-update-degrees: 90.0
    use-latest: true
    view-distance: 100.0
    use-latest-by-default: false
...

@SlimeDog SlimeDog changed the title No skin on startup No skin on first encounter Jul 28, 2018

@axemwa

This comment has been minimized.

Copy link

axemwa commented Jul 31, 2018

I have this problem too

@fullwall

This comment has been minimized.

Copy link
Member

fullwall commented Aug 8, 2018

Can you get some output with debug-mode enabled please?

@axemwa

This comment has been minimized.

Copy link

axemwa commented Aug 8, 2018

After server loaded these messages were in console with debug on

https://pastebin.com/xSv0hMR5

Full log:

https://pastebin.com/mAYT2mxn

@SlimeDog

This comment has been minimized.

Copy link
Author

SlimeDog commented Aug 8, 2018

config.yml
PLAYER = player nickname elided
UUID = player UUID elided
IPADDRESS = player IP address elided

general:
  debug-mode:true

When player first connects, NPC 1 is not skinned (appears as Alex). After /essentials:ascend and /essentials:desc (approximately 30 blocks up and down), NPC 1 is skinned with player skin.

[07:26:08] [Server thread/INFO]: [Citizens] Loaded 5 NPCs.
[07:26:18] [Server thread/INFO]: [DelayJoin] Disabling DelayJoin v1.0-SNAPSHOT
[07:26:18] [Server thread/INFO]: This server is running CraftBukkit version git-Spigot-1503de9-4487c1f (MC: 1.13) (Implementing API version 1.13-R0.1-SNAPSHOT)
[07:26:18] [Server thread/INFO]: Checking version, please wait...
[07:26:18] [Server thread/INFO]: CONSOLE issued server command: /essentials:time set noon all
[07:26:18] [Server thread/INFO]: The time was set to 12:00 or 12:00 PM or 6000ticks in: cworld, world_nether, world_the_end.
[07:26:19] [Thread-13/INFO]: You are running the latest version
[07:26:29] [Server thread/INFO]: Removing 5 from skin tracker due to DespawnReason.CHUNK_UNLOAD
[07:26:29] [Server thread/INFO]: Despawned 5 DespawnReason. CHUNK_UNLOAD
[07:26:29] [Server thread/INFO]: Despawned id 5 due to chunk unload at [124,-280]
[07:26:29] [Server thread/INFO]: Removing 1 from skin tracker due to DespawnReason.CHUNK_UNLOAD
[07:26:29] [Server thread/INFO]: Despawned 1 DespawnReason. CHUNK_UNLOAD
[07:26:29] [Server thread/INFO]: Despawned id 1 due to chunk unload at [124,-280]
[07:26:29] [Server thread/INFO]: Removing 3 from skin tracker due to DespawnReason.CHUNK_UNLOAD
[07:26:29] [Server thread/INFO]: Despawned 3 DespawnReason. CHUNK_UNLOAD
[07:26:29] [Server thread/INFO]: Despawned id 3 due to chunk unload at [125,-279]
[07:26:29] [Server thread/INFO]: Removing 4 from skin tracker due to DespawnReason.CHUNK_UNLOAD
[07:26:29] [Server thread/INFO]: Despawned 4 DespawnReason. CHUNK_UNLOAD
[07:26:29] [Server thread/INFO]: Despawned id 4 due to chunk unload at [124,-279]
[07:26:29] [Server thread/INFO]: Removing 2 from skin tracker due to DespawnReason.CHUNK_UNLOAD
[07:26:29] [Server thread/INFO]: Despawned 2 DespawnReason. CHUNK_UNLOAD
[07:26:29] [Server thread/INFO]: Despawned id 2 due to chunk unload at [125,-280]
[07:31:33] [User Authenticator #1/INFO]: UUID of player PLAYER is UUID
[07:31:34] [Server thread/INFO]: [WorldResourcepacks] PLAYER matched global assignment
[07:31:34] [Server thread/INFO]: [WorldResourcepacks] Send pack blackpack (http://blackdog.straight8.com/minecraft/resourcepacks/blackdog-4.zip?u=0) to PLAYER
[07:31:34] [Server thread/INFO]: Spawned id 3 due to chunk event at [125,-279]
[07:31:34] [Server thread/INFO]: Spawned id 4 due to chunk event at [124,-279]
[07:31:34] [Server thread/INFO]: Spawned id 2 due to chunk event at [125,-280]
[07:31:34] [Server thread/INFO]: Spawned id 5 due to chunk event at [124,-280]
[07:31:34] [Server thread/INFO]: Spawned id 1 due to chunk event at [124,-280]
[07:31:35] [Server thread/INFO]: PLAYER[/IPADDRESS] logged in with entity id 276 at ([world]2004.797259094053, 88.0, -4456.48944149638)
[07:32:55] [Server thread/INFO]: PLAYER issued server command: /ascend
[07:33:04] [Server thread/INFO]: PLAYER issued server command: /desc
@SlimeDog

This comment has been minimized.

Copy link
Author

SlimeDog commented Oct 13, 2018

UPDATE:
Spigot 1.13.1 latest
Citizens 2.0.24-b1581

After arriving via /mvtp, if I move just a little in the same Y plane, the NPC will usually display the correct skin.

@fullwall

This comment has been minimized.

Copy link
Member

fullwall commented Jan 19, 2019

Seems similar to #1632

@fullwall fullwall closed this Jan 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.