Questions tagged [photon]

Photon is a realtime multiplayer cross-platform api from Exit Games.

Photon is a realtime multiplayer cross-platform api from Exit Games. It provides it's services in two forms. You can either choose to have it's fully managed Cloud service or can implement your own Server via it's Photon-Server api.

Links:-
Photon SDK

664 questions
2
votes
1 answer

How to install "com.unity.Mono.nuget.mono-cecil" package to Unity project

I was working on starting some work with Photon engine, and ne dependancy was the unity package version of Cecil. There is an API reference to it, but I cannot find it in the package manager or anywhere online. Can someone help me figure this out,…
2
votes
1 answer

Why am I not connecting to Photon Chat but rather disconnecting

Hi I am trying to connect to Photon Chat but I am not able to connect to it. Rather I am getting disconnected. If I don't put the if(chatclient!=null) chatclient.Service(); in the Update loop, it is not getting disconnected, but rather not…
chethanv77777
  • 480
  • 9
  • 18
2
votes
0 answers

How do I send a push notification for a friend request for multi-Player game in Unity using Playfab+photon

So here I am trying to convert my single player game into multiplayer game. I am able to work the part where the user can login to the game using Playfab via Username. I am able to create a friend screen and in that I can, say add PlayerB as his…
2
votes
2 answers

Unity/Pun2: 2 players control each other

I have a problem with movement 2 or more people in only one team. In one team it runs as it should, everyone controls himself, but in the other team if more than 1 player joins, so 1 controls the other. I have 4 player types (2 for one team and 2…
Gan
  • 53
  • 4
2
votes
1 answer

Error: "RPC method not found" on method that was never called

I have a really strange problem. Currently I am working on a little cross platform "game", where one user wears a Hololens and another user sits at the PC. The Hololens user solves a puzzle while the PC user helps the Hololens user by giving hints…
Vallout
  • 41
  • 6
2
votes
1 answer

PhotonView difference between CreatorActorNr, OwnerActorNr & ControllerActorNr

In Photon what is the difference between CreatorActorNr OwnerActorNr ControllerActorNr I only found them in the API of PhotonView but it doesn't explain the difference between / purpose of the entities in question.
2
votes
0 answers

How to fix error "A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade" after installing Photon in Unity

I am working on a multiPlayer game in Unity.The same works fine when just running it as it is. But after I install Photon2 in Unity and while trying to build the same to my android , I am getting the error "FAILURE: Build failed with an…
Chethan CV
  • 547
  • 1
  • 7
  • 23
2
votes
1 answer

Photon RPC sends wrong int values

So im trying to use RPC and send a list of int and an int as parameters, however, while the function sends the int list correctly, the int value it sends is wrong and different for each client even though I'm send the same value to all of them. This…
2
votes
0 answers

Photon: System.Collections.Hashtable vs ExitGames.Client.Photon.Hashtable

I am working with Photon in Unity now, and in all tutotials I can see that people use ExitGames.Client.Photon.Hashtable to set customRoomProperties. My question actually is: what are the difference between default C# Hashtable class and photon…
Viaceslavus
  • 180
  • 1
  • 8
2
votes
2 answers

Sync random colors for players across network with PUN2 unity

I'm using PUN2, When a player connects, I want their sprite render to be a random color, and for that color to be synced for all other players. For some reason the following code prevents the other players from appearing on the screen however I can…
Astrydax
  • 463
  • 3
  • 15
2
votes
1 answer

PUN2: is this recommended for a rigidbody sync state and collision?

I have managed to sync my ridigbodies real good but I just noticed that when a client (that's not the master) collides with one it doesn't move, it's locked, while reading on the net I had an idea when the object collides with a rigidbody I just…
Hex
  • 404
  • 7
  • 21
2
votes
1 answer

How to get player name from OwnerActorNr | PUN2

I'm making an online game and when a ball hit by a player hits another player, I want to get that player's name from OwnerActorNr. photonView.OwnerActorNr Is it possible to get player information from this number?
Beginner_
  • 645
  • 1
  • 11
  • 27
2
votes
2 answers

JoinRandomRoom no joined in the same room with 2 players?

this is my code... public class AutoLog : MonoBehaviourPunCallbacks { public void Connect() { if (!PhotonNetwork.IsConnected) { if (PhotonNetwork.ConnectUsingSettings()) { log.text += "\nConnected to…
jose moya
  • 35
  • 5
2
votes
1 answer

PUN 2 Audiosource plays multiple times

I have animation events linked up to my characters that play a random footstep noise when they step. I'm trying to set it up for multiplayer, but I'm having some issues. With one person, the sounds only play once when they're supposed to. However,…
2
votes
1 answer

PUN OnPlayerPropertiesChanged and Object Enabling

Edit: Changed arrays to be enabled into just objects for better readability. Currently I'm using Photon and have a OnPlayerPropertiesChanged function calling an RPC in the player script to change the player's model. What model they have depends on…
Jack Sebben
  • 69
  • 2
  • 9
1 2
3
44 45