1.8 DestroyPlayerObjects not work anymore

Options
friuns
friuns
public void OnPhotonPlayerDisconnected(PhotonPlayer player)
{
if (PhotonNetwork.isMasterClient)
PhotonNetwork.DestroyPlayerObjects(player);

this does nothing after i updated to 1.8, in 1.6 they removed always automaticly


PhotonPlayers are removed but not photonViews lol

Tobias, in workerDemo create room, join here and leave, the player stays here(its not removed). When 1.9 come :P?

Comments

  • friuns
    Options
    so any way to fix this?
  • Tobias
    Options
    Mike wanted to answer earlier today but somehow it seems he didn't.
    I will look into it tomorrow.
  • Leepo
    Options
    I'm looking into this right now.
  • Leepo
    Options
    Fixed, please update NetworkingPeer.cs (see attachment)
  • tutibueno
    Options
    It is working now! Thanks!
  • friuns
    Options
    Work when there is 2 players, but when i have 16 players seems its not work. Or there is some other bugs. 1.6 still most stable version)
  • Leepo
    Options
    That's odd. I've tested it with 3 players, which should act the same as with 16 players. Sorry for the trouble!

    Can you repro it in the demo worker scene with e.g. 3 players (or more?)
    Does it always happen or only rarely? If it's rare I suspect the master client switching sometimes causes problems with player cleanups.
  • friuns
    Options
    its hard but i will try. Its can be any other bug, its just not work when i put game online with 1.8
  • A`m download NetworkingPeer.cs. Error destroy fixes.

    New error: on use: "OnMasterClientSwitched(player: PhotonPlayer)" player = null

    Sorry, my bad english. ;)
  • Where I use this NetworkingPeer.cs? No have any file to overwrite! How to use it???
  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @ConceptFactory,

    This forum discussion is too old.
    You are probably using PUN 2 which does not have "NetworkingPeer.cs" file as it's part of PUN Classic only.
    The issue here is most likely not relevant anymore.