Skip to main content
3 votes
Accepted

Photon Realtime, StripKeysWithNullValues cause heavy GC Alloc

I don't know anything about Photon, but I suspect your keys array is very large. The CopyTo method is allocating all of that memory, and then it must be cleaned up....
Evorlor's user avatar
  • 5,803
2 votes
Accepted

Photon Unity Network with Socket IO Ambiguities

After a lot of searching I found this link: https://developer.ibm.com/answers/questions/323592/watson-sdk-photon-networking-unity-conflict.html As per the above link, I deleted the websocket-sharp....
Vishal Mohan's user avatar
2 votes
Accepted

Why am I disconnecting from Photon Chat immediately after Connecting?

So the mistake I was doing was connecting to Photon Chat Server with "in" (India) in the server location. Actually for PUN "in" will be alright but for Photon Chat "asia" ...
chethanv77777's user avatar
2 votes

How to load additive scenes to the master client, per player, in unity using photon?

This might not be the most elegant solution but it's certainly an effective one: What I have done in the past when using PUN for this is to use the ...
Thomas Mathieson's user avatar
1 vote
Accepted

Empty room list on region change

I haven't tested myself, but what's sticking out to me is that you're attempting to join lobby right away after calling ConnectUsingSettings, which has some asynchronous work to do. In my project I ...
Chromega's user avatar
1 vote

Get count of players in room by room name

You cannot change the name of a room once you've created it. While you can still use the room/level naming convention for the name of the room, you will have to create another script to display the ...
MariaA's user avatar
  • 59
1 vote

regarding about game servers performance and security

You can do whichever one you want. Note that the second option is more work. Note that the database is already an API, so if you want to put your own API on top of that API you'd better have a good ...
Stack Exchange Supports Israel's user avatar
1 vote
Accepted

Photon Transforms syncing other transforms

I got my own solution after testing for hours. Essentially, when I create the My Player prefab which has its own PhotonView and I instantiate this prefab by the ...
CraftedGaming's user avatar
1 vote

How to load additive scenes to the master client, per player, in unity using photon?

I basically combined Thomas Mathieson's answer combined with DMGregory's response to successfully add two players. I used if (photonView.IsMine) and within it I ...
EmperiumIce's user avatar
1 vote

Unity3D: Photon syncing physics events

Unity's physics engine, NVIDIA's PhysX, is not deterministic. You're not going to get the same physics simulation twice even on the same machine because the physics engine was just not made to work ...
Cobertos's user avatar
  • 1,644
1 vote

What's wrong with my food generating code?

I'm not sure how your code is failing (you only say it doesn't do the right behavior, not what the actual observed behavior is), but I can see what looks like two issues. A better explanation of what ...
Tal's user avatar
  • 111
1 vote

How to manage this problem in a multiplayer client-server game with Photon ?

Use : if (PhotonNetwork.isMasterClient){ generate bounds run RPC } master client is the first player who joined the room .
Yaser Alosh's user avatar
1 vote
Accepted

How to sync new object (weapons/bullet) in a multiplayer photon game ?

You don't need to continuosly sync the position of your bullets, you only need to know when and where a bullet was fired. This should be fine for most cases: ...
Iggy's user avatar
  • 640
1 vote

Getting user id from one scene then to the next scene

If you want to keep track of the order when users joined the room (which should actually not matter much) you just need to keep track of them when they join the room. Photon is providing the player ...
Zibelas's user avatar
  • 4,393
1 vote

Getting user id from one scene then to the next scene

If you're using Photon, you should be able to set each user id in one of the following ways: Once authenticated, a Photon client will keep the same UserID until disconnected. The UserID for a ...
Chris Trott's user avatar
1 vote

Could use some help figuring out bouncy physics material in this PhotonEngine game

I would try to assume that the reason for this is that the new coordinates of the second player's movement are transferred from the master to the client a little bit later than the player on the ...
Serg's user avatar
  • 383
1 vote
Accepted

In Photon, What happens networked GameObject's ownership when master client disconnects?

I just asked to the Photon's forum, and I got the answer. The point is it's not. Setting autoCleanUpPlayerObjects will not transfer ownership to new master client automatically. To do that, you ...
modernator's user avatar
  • 1,213
1 vote
Accepted

synchronized transform is always 0,0,0 in Photon unity

I solved this problem by using RPC. Remove whole OnPhotonSerializeView code and add new RPC Function like this: ...
modernator's user avatar
  • 1,213
1 vote

How can I get fastest region server in Photon C++ Client API?

The optional Listener::onAvailableRegions() callback only gets called, when you pass RegionSelectionMode::SELECT to the Client constructor. This approach is useful when you have special criteria for ...
Kaiserludi's user avatar
1 vote

Synchronization between server's value and the one showed in a stat bar (health, stamina, mana...)

What I suggest you do is to simulate the change client-side, using the same calculation on server-side, and send request to the server at the same time, using a timestamp to know what value it is. ...
cocosushi's user avatar
1 vote

How to share some elements of array with different players on Photon in the same Room? Unity3d

Make a CmdPullCard command for the host, send the command from the player, check if the card has been already pulled before, if not send the card string to the player. (If you're unsure on how to do ...
John Hamilton's user avatar
1 vote
Accepted

Server logic on client side?

Alright, since this question seems like it was answered in the comments, let's turn that into an actual answer shall we? Photon Unity 3D Networking (PUN) works by connecting people to each other ...
John Hamilton's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible