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

Photon not disconnecting if we disconnect internet while connected

Hi,We are facing this issue with PUN. While game is running and if we disconnect internet, we don't get disconnect callbacks and game keeps running.PUN + 1.73Unity 5.4.2p2Steps to reproduce1. Connect...

View Article


Shared ownership (soccer, air hockey etc)

This has been asked about before, but the answers doesn't help me with the small Ownership transfer lag.In a game like this: https://youtube.com/watch?v=wIsFce5SZ3II have two players and a ball with a...

View Article


Why ownership transfer slow ?

Im making online air hockey game. When player hit puck, player requesting ownership like puck.TransferOwnership(player.ownerID).But ownership transfering between 0.4 or 0.9 second. I need speed up this...

View Article

How to make work Photon with VRTK

Hello,I'm making a game with Photon and VRTK.I have a problem of synchronization of my object in the game.I explain : I have a gameObject with a component VRTK-interactableObject on it. I want to put...

View Article

Client becomes Master when entering the room, only on iOS, Any ideas?

I'm using UFPS and the UFPS Multiplayer Kit, the problem I have is that when a client enters the room the game crashes for the master only, everything works as expected on the client (now new master),...

View Article


Rejoin fail because player ttl isnt set on local server !

hi.im using Photon-OnPremise-Server-SDK_v4-0-29-11263and when i set player tll working on cloud servers but i get 0 ttl on local server..how i fix that?

View Article

OnStatusChanged: TimeoutDisconnect

I need help. My program run 5 or 10 second , then says https://pasteboard.co/HlTRKNY.pngPls Help Me

View Article

Image may be NSFW.
Clik here to view.

Got an error containing (not rejoining (JoinMode=1)) while trying to connect

Hello, i'm fairly new with photon and unity but could get photon to work with CustomAuth on my own webserver, got webhooks and all. What im doing right now server side is save the map on GameClose in a...

View Article


I'm trying to generate a random key and share it with other players using RPC.

This is the code that i'm currently using, i've tried may different logic but it's no use. Can someone please point out the problem? i think i'm using the RPC wrong.public class GeneratingKey :...

View Article


"OnConnectedToPhoton" and "OnConnectedToMaster" not getting called

Hi there,I have a question that I need help with. I'd like to first know if first I have the correct approach and secondly if I do, what am I doing wrong? In my game, at the start the user first...

View Article

How to determine animation state?

Hi, I'm making an FPS, so ideally, one character should have a few hitboxes. But Photon Server knows nothing about Animation/Animator at all, then how can it determine client's animation and hitboxes...

View Article

NavMeshAgent [Syncing only agent Destination gives inconsistent results]

Hey guys,Currently I am developing a game where I spawn units which are following way paths. I sync with RPC calls (which RPC is a coroutine) the agent destination (the next way point on the path). In...

View Article

No Rooms on OnReceivedRoomListUpdate after disconnection

Hi there,Been using PUN for quite a while now..I have an issue with players disconnecting when switching scenes that Im investigating, however, in the meanwhile I just want to implement a re-connection...

View Article


Getting loading bar progress while loading using PhotonNetwork.LoadLevel

I was getting the progress before by creating an async task and getting the task.progress. This does not seem possible in PUN. I read online that I can use PhotonNetwork.LoadLevelAsync but the method...

View Article

Physics gameplay - best practices?

Hi all!New user to PUN here. I'm working on a simple physics-based game, you can think of it as a Rocket League clone, and I'm interested in using PUN for networking. However, even trying the included...

View Article


Easy way to use PUN over LAN?

Hi all,While PUN's cloud-hosted servers and lobbies are a great convenience, it would also be great if I could connect only over my LAN. I'm working on an internal prototype/demo, so I don't need to...

View Article

stuttering / freezing on Hololens

helloI'm using PUN to send a moving object position using a TransformView from a PC to a Hololens.On the Hololens, the object freezes every .5 to 1 second, for about .5 to 1 second. It appears to just...

View Article


Sync rotation and animator states

Hello! I want to syncronize rotation and animator states (idle, run => trigger,bool, float) of main enity (RPG-character) . I was able to sync position with this:Client side:public void...

View Article

Stack Trace for RPC is too long. Hard to Debug.

Hi, apparently at some point I am trying to send a custom data type but get a "Exception: cannot serialize() customdata" which is fine, I would like to change it. But I am having difficult time trying...

View Article

Getting error 32748 (user does not exist in game) when using room.playerTTL...

Hi,The game I'm working on has been working fine up to now using the room options playerTTL set to a specific value at room creation. Players disconnecting during game were saved and game would be...

View Article
Browsing all 8947 articles
Browse latest View live


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