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
3
votes
6 answers

Missing Photon Pun assembly reference with Visual Studio Code 1.50.1

I am developing Unity game apps on a PC using C#, using Visual Studio Code as the editor. The apps are targeted at PC and Android. Multiplayer uses Photon Pun 2. The Unity version is 2019.3.14F1 - I don't want to move forward just yet in case of…
nmw01223
  • 1,611
  • 3
  • 23
  • 40
3
votes
1 answer

Photon Bolt | Make room private after creation

I know how to play the game privately. BoltLauncher.StartSinglePlayer But this time instead of playing the game offline, what I want to know is how to make the room private so no more players can join. I set IsOpen to false and keep it private when…
user13337231
3
votes
1 answer

Unity Networked Ready check

Trying to create a ready check using PUN2 so that all players will load into the game scene at the same time, but I do not understand how to check another players custom property and keep a count of how many players are currently ready and if all…
3
votes
1 answer

Polling for available Unity Photon rooms with LoadBalancingClient while not in lobby?

Using Unity, C# and Photon (PUN2), I have the user already connected to a room, but now want to (without that user leaving the room) retrieve a list of currently available other Photon rooms, including their current online user count (which can…
Philipp Lenssen
  • 8,818
  • 13
  • 56
  • 77
3
votes
3 answers

Trying to send RPC with PunRPC (Unity and Photon) but getting error "Object reference not set to an instance of an object"

I am trying to make it where a certain number of players are required before the client sends everyone to the character select scene. Within a function I have... if (PhotonNetwork.PlayerList.Length == 1 & PhotonNetwork.IsMasterClient == true) { …
Tectrik
  • 61
  • 1
  • 5
3
votes
1 answer

how to run code in the background on ios unity

I have a waiting room in unity with photon and when there are enough players a countodown starts, only problem is if the master client is using IOS and they check notification or are not in the app then the game will never starts when it hits 0…
dj102
  • 33
  • 4
3
votes
0 answers

Eclipse Photon doesn't recognize my Junit 5 tests for 'Run As'

Assuming I have a simple test: import org.junit.jupiter.api.Test; public class MyTest { @Test public void test() { } } With only JUnit5 as a dependency org.junit.jupiter
3
votes
1 answer

How to spawn multiplayer user at fixed loaction in unity using photon?

I have been using Photon unity networking plugin for multiplayer. in the following code for character instantiation I want to spawn the player who joins to be spawned at a fixed point then random. I am new at this and I tried to edit it by giving…
RingR89
  • 89
  • 2
  • 13
3
votes
0 answers

Why is this code slow in Photon?

This code is supposed to generate new food in random positions over the network when the player eats the current one. The code runs smoothly on master client but it's kinda slow on other players. Any idea what am i doing wrong? using…
user6522807
3
votes
3 answers

Unity and Photon Networking - Wait for other players

I am currently trying to integrate a multiplayer option into my unity game with photon networking. However, I do have some questions: I created the GUI with Unity's new GUI System. I am not using OnGui at all. What I am trying to do is let a user…
user2669261
  • 396
  • 1
  • 5
  • 18
3
votes
1 answer

IndexOutOfRangeException thrown in foreach loop

I'm using the Photon server to run a multiplayer game, once in every 100+ games, the server stops responding to input -- looking at the log file I'm getting the following exception: 2013-07-30 12:31:24,918 [11] ERROR Lite.Room [(null)] - …
Jeremy Kalas
  • 114
  • 1
  • 10
3
votes
1 answer

Photon Server newbie questions

I've asked this question on official Photon Server forums, but it's less active than this website, so there might be people who understand what I'm talking about, so please, if you have time and knowledge, share it. Thank you! Here to comes... So,…
deb0rian
  • 966
  • 1
  • 13
  • 37
2
votes
0 answers

Syncing Zenject and StateMachine after scene division and loading it from Photon Fusion -Unity

I'm facing a critical issue with syncing Zenject and StateMachine after dividing my game into multiple scenes. Previously, the game ran in a single scene with GRPC networking, but due to changes, I've removed GRPC and split the game into four…
Humza Butt
  • 44
  • 2
2
votes
1 answer

how can I sync ragdolls with Using Photon

I'm developing a multiple fps game with Unity using Photon PUN2 and I get a problem with using ragdolls sync player positions on the network player position moving random on every client how can I fix it I enable ragdoll with this code: public…
TanerSHN
  • 31
  • 2
2
votes
0 answers

Unity and Photon: Scaling transforms of gameobjects in for loop causing jitter

The gameobjects in the array (SequenceItems) have at least 1 child, and in some cases 1 child and 1 grandchild. the Mesh Swapping works but it is very jittery when there are two players in the room. Also, when I place a sphere inside the mesh that…
cyo
  • 69
  • 1
  • 14
1
2
3
44 45