player list not working

when i connect (as master of server) the list appears with my name, when a second user joins it will dissapear for both users and cause arrors

when i leave on the master account and the other user becomes the new master, they can see the player list and it has the names of both players even though i already left

im using the default worker scene and the script is attached to the scripts object (same as the chat) and added to its photon view script
https://i.imgur.com/uqddaOw.png

heres the code
https://pastebin.com/VuCZaB84

Comments

  • S_Oliver
    S_Oliver ✭✭✭
    edited July 2018
    --
  • Hi @noynac,

    when a second user joins it will dissapear for both users and cause arrors


    What kind of errors are logged to the console?

    when i leave on the master account and the other user becomes the new master, they can see the player list and it has the names of both players even though i already left


    Do you apply any other than the default RoomOptions when creating the room? If you set PlayerTtl the leaving client becomes inactive for a certain amount of time before he gets removed by the server.

    im using the default worker scene and the script is attached to the scripts object (same as the chat) and added to its photon view script


    The Leaderboard doesn't need to be observed by a PhotonView component. You can attach this script to a non-networked object.