Oculus Avatar with PUN2
Hi there, I'm new with Photon and I've just learnt the basic with the tutorial. However, I'm stuck when I want to use the Oculus Avatar tutorial described here:...
View Articlehow to transfer game object ownership?
Hello, I am not so good with networking, (started it recently). In my game, I don't need any player prefab, there is two sides, let's say blue and red, I want the red player to have access to the red...
View Article[PUN 2] RPC only working in editor
Hello, When I test the game inside the editor there is no problems at all with RPCs but when the game is compiled for Standalone Windows, no one of them works. Here is the logs output: [Screenshot]...
View ArticleRPC AllBuffered not working when client joins.
What I want to achieve: 1. Player creates room 2. Generates a level based on seed 3. Sends the seed via RPC AllBuffered to any joining clients 4. A new player connects to the room. 5. Receives the seed...
View ArticleConvert Offline to online game
Hi guys, I'm a newbie in Unity, I have a single player offline 2d game, I want to make this game an online game. It should work like, 2 players join a match. The first player that finishes - for...
View ArticleOnPhotonSerializeView() issue ? Not working with two variables
i am working on a multiplayer game using photon. i am streaming the data using using OnPhotonSerializeView everything is working fine for one variable. like if (stream.IsWriting) {...
View ArticleCan GetCustomRoomList be called in a room?
Can I use the function GetCustomRoomList to refresh all the rooms' info every few seconds,and then call GetRoomList to get the rooms' info in a room (not in a lobby)??
View ArticlePUN2 scene not syncing
Hi all. I want to start new scene when both players clicked ready. For this I am using RPC This is my code: [PunRPC] void SetNext(int id) { if (id == 1) p1Restart = true; else p2Restart = true;...
View ArticlePhotonNetwork.GetRoomList() gone in PUN2. How can I modify this to work again?
Pretty Much what the title says. I've already spent hours trying. I'm still new to photon and followed a tutorial a while ago to get this working. I'm not sure how to cache the room lists. Any help...
View ArticleLoadLevel Times out in Editor Play Mode
I saw this thread from 2015 for PUN1: https://forum.photonengine.com/discussion/6750/server-timeoutdisconnect-when-in-unity-editor-mode I'm using PUN2, and every time I load my game scene in editor, I...
View ArticlePUN2 PhotonNetwork.AllocateViewID() different from PUN1?
Hello there, I am trying to make this piece of code work but in PUN2, PhotonNetwork.AllocateViewID() takes a PhotonViewComponent and return a bool: public void OnJoinedRoom() { int viewId =...
View ArticlePhotonNetwork.LoadLevelAsync removed in PUN 2?
I saw from the PUN 1.9 release notes that LoadLevelAsync was added, why has this not been included with PUN2? Is there another way to accomplish this with PUN 2? Thanks in advance!
View ArticleHow to actually "close server" with PUN
I want to kick everyone out and prevent all players from joining, how do I do this? Also, can I add certain IP or playerID to a whitelist and kick everyone else out?
View ArticleOperation failed: 32764 (Game closed) - doesn't raise OnPhotonRandomJoinFailed
Photon raises the OnJoinedLobby callback when the following error happens. "Operation failed: OperationResponse 226: ReturnCode: 32764 (Game closed). Parameters: {} Server: GameServer" I would expect...
View Articlepun 2 callback calling twice
im using pun 2 AND OnPlayerLeftRoom(Player otherPlayer) is calling twice When the other player left room
View ArticlePUN 2 Network Transform View Jittery Movement
Hi, I have been recently porting my project from PUN 1 to PUN 2. So naturally I used the Network Transform View that comes with PUN 2 (as I used it in 1 and it was pretty good). In any case, I just...
View ArticleMake master update position but not own photonView
Hey guys ! I want master updating player position (in OnPhotonSerializeView) and client sending inputs (raise events), Is there any way I can have master writing stream but not owning photonView ? The...
View ArticleSending player some initial data with OnPlayerEnteredRoom - does it work for...
I'm currently sending a newly joining client some initial data about an object by sending him an RPC in OnPlayerEnteredRoom, but I was wondering: if the players change scenes, and the MasterClient...
View ArticleRPC call only on same object
Hi, I have 3 player on the scene. And I have Shoot.cs on them. At shoot.cs i have shoot and remoteshoot functions. When i call remote shoot all players in the scene are shooting but i only want me and...
View ArticleReceiving failed. SocketException: ConnectionReset
Hello. I am showing a Unity Ads rewarded video ad in my game. When the ad is completed and I close it, I get the following log and photon is disconnected: Receiving failed. SocketException:...
View Article