Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Browsing all 8947 articles
Browse latest View live

i got this error always

can i remove this error??Cannot send op: 229 Not connected. PeerState: DisconnectedUnityEngine.Debug:LogError(Object)NetworkingPeer:DebugReturn(DebugLevel, String) (at Assets/Photon Unity...

View Article


Setting Custom player properties for a player who is in background from other...

Hi, We use ReconnectAndRejoin with PlayerTtl. Its a FPS game. So when a player goes to background. We want other players to still see him and be able to shoot and kill (in order to avoid exploit). For...

View Article


Creating Lobby using Photon Chat Channel

Hi,We have a live multiplayer game. Which uses Photon Realtime and Photon Chat. We have friends list coming from our server and using PUN Chat for online status and group chats. Now we want to...

View Article

Random matchmaking is not working after setting user id in AuthValues.

Hi,Random matchmaking is not working after setting user id in AuthValues. Players always join different rooms. I am using latest version of PUN+ (1.89). Match making works if i don't set AuthValues. I...

View Article

Debugging invalid cast

I recently ran in to a problem where I get an invalid cast exception but I can't figure out what is causing it or how to troubleshoot it. It appears only on client and I think it might be a PhotonView...

View Article


UNET vs PHOTON PUN: 1 to 1(ish) relation

Hi to everyone!I have been searching for quite a while, on a good doc for a 1 to 1(ish) relation between UNET and PHOTON PUN.The context is, that I have an asset from the unity asset store, that users...

View Article

Fast collisions with Photon Rigidbodys (Golf game)

I am working on a networked golf game and trying to add collision between the balls. Each player has a ball prefab with Photon components like so: https://imgur.com/VrP10JcAs it is right now, the balls...

View Article

What Does This Error Mean?

Hi,I'm using OnPhotonSerializeView to send and receive information between players. It works most of the time however I will occasionally get the following error:IndexOutOfRangeException: Array index...

View Article


Network object is forced to leave the room

My game is for multi users to come together in the same game room and fight each other.Sometimes, some users get kicked out of the room without any special reasons and get back to the lobby.In the last...

View Article


How to know whether player have joined room before when he disconnected?

I want to know that how to determine whether player joined a room and play before he disconnect(internet problem) and rejoin room. Or that just need use photonnetwork.reconnectandrejoin no matter which...

View Article

Pool game with Spectator/ Admin and two actual player

We are trying to create a 8 ball pool game with Spectator and two actual player. Here Spectator is the admin who will send the invitation to the other two player by using their registered ID. Neither...

View Article

CCU appears more than it should be?

CCU appears more than it should be when we are testing our multiplayer game. Why would something like this happen do you have any idea? Sometimes when we test with 2 computers our CCU appears 3 or 4 at...

View Article

Pooling Objects in PUN

Hi, So I am trying to create two pooling systems in Unity and so far I have been successful with one of them and failing horribly with the other. The first pool system I have is based on having each...

View Article


Any way to disable CloseConnection for master

The issue I have is a hacked client is able to kick all the player out of the room.I haven't found any way to prevent this or disable the functionality for the room.Any help would be appreciated.

View Article

Why Isn't my Game Object Instantiating over the Network?

I have the following line of code in my project: GameObject InstantiatePixel(Vector2 pos) { return PhotonNetwork.Instantiate("Pixel", pos, Quaternion.identity, 0); }. I was wondering why this line of...

View Article


Image may be NSFW.
Clik here to view.

Use room properties wrong my game.

Hello guys, I try to summarize my problem . First I have a GameManager prefab with a script to manage multiplayer part of the game, and here I made the code what is Instantiate my player. This prefab...

View Article

I need a new function for send rate

I show you in the example what I need: Start() { PhotonNetwork.sendRate = 1; } public void UpdateItem() { if(PhotonNetwork.nextSendinMilliseconds < 300) { PhotonNetwork.RaiseEvent(...); } else {...

View Article


Image may be NSFW.
Clik here to view.

Operation failed: OperationResponse 219: ReturnCode: -2 (Rpc is not enabled).

Hello, I have an error message that I would like to understand better, what does Rpc is not enabled mean? I presume this is an error message that is from within the Server - but since we don't use a...

View Article

Connecting to Master Server works in build but not editor.

Iv experience this issue several time once in unity 2018.1 and 2018.2.the editor will work for a period of time then after maybe 2 - 3 hours working, it no longer connects to the master.I then build...

View Article

Image may be NSFW.
Clik here to view.

PlayerName Bug

Hello guys!I'm doing a multiplayer game but I'm having a issue with the playerName when several players are conected in the game.When I run the game in my computer with a local client, the name above...

View Article
Browsing all 8947 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>