When I try to join some room with roomName ,I get this error,please,help me

The whole answer can be found below.

Please note: The Photon forum is closed permanently. After many dedicated years of service we have made the decision to retire our forum and switch to read-only: we've saved the best to last! And we offer you support through these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on PUN.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

When I try to join some room with roomName ,I get this error,please,help me

QT2022
2022-12-21 14:26:15

failed to find a photonview with id=1 for incoming ownershipupdate event (newowneractornumber=1), sender=1. if you load scenes, make sure to pause the message queue.

I just call the following Method : PhotonNetwork.JoinRoom(RoomInfo.Name)

but when I use PhotonNetwork.CreateOrJoinRoom it works

I use pun 2.41 version

Comments

Tobias
2022-12-21 15:27:13

A PhotonView.ViewID can only be 1 for "scene PhotonViews". So maybe the other loaded a scene with a PhotonView, took ownership and tries to tell you about it.

This might be related.

QT2022
2022-12-22 07:31:12

hey,I have a scene photon view with view ID 1 but it's at the same scene

QT2022
2022-12-22 07:41:59

Tobias 2022-12-21T15:27:13+00:00

A PhotonView.ViewID can only be 1 for "scene PhotonViews". So maybe the other loaded a scene with a PhotonView, took ownership and tries to tell you about it.

This might be related.

Hey,But I have a loaded one scene in game and I don't understand why it should print this error,and why it doesn't do when I use PhotonNetwork.CreateOrJoinRoom

QT2022
2022-12-22 11:52:28

I just find the problem is it that photonview gameobject is not active in hierarchy and PhotonHandler doesn't find it but I have another problem even if I activate the gameobject I doesn't get any server join request response my loading works infinitely

Back to top