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

realistic car controller, ufps and photon - almost working but how to grab...

I've been working on getting ufps - realistic car controller together in photon multiplayer. so far I've been able to - walk up to the vehicle, press the appropriate control to 'get in', drive around,...

View Article


Image may be NSFW.
Clik here to view.

PUN 1.66 ExecuteRpc bug

Exception:NullReferenceException: Object reference not set to an instance of an objectNetworkingPeer.LogObjectArray (System.Object[] data) (at Assets/Photon Unity...

View Article


PUN 1.66 - RPC & "synchronization" backwards compatibility

In changelog of v1.66 it says:Internal: Refactored RPCs and "Synchronization" updates to waste far less memory and perform better. For that, Hashtables were replaced with simpler object[]. This means,...

View Article

"You are not allowed to call this function when declaring a variable." Error...

Hey guysI recently got a random problem with photonit says "You are not allowed to call this function when declaring a variable" and it's referring to the "PhotonNetwork.cs" script on line 2987.I...

View Article

Photon on iOS Crash when back from Background

Hi,We found the following problem. While we are connected to Photon and we go into the background and after few seconds (PhotonNetwork.BackgroundTimeout is set to 5), if we open the app again, we get...

View Article


Synchronizing shared ball object for soccer/football game

Hello everyone.We are developing a realtime multiplayer soccer game with Unity and PUN. The gameplay consists of two bubblehead characters and a ball. We successfully synced players using PUN's great...

View Article

Image may be NSFW.
Clik here to view.

Only 1 Player Can't See Others

Hey guys, I recently picked up Photon (PUN) and have been messing with it. At first everything was going fine, I could see both my players and watch a very laggy ball bounce around. (For argument sake...

View Article

What are our Options?

We have a game we are developing with PUN. It's currently running through the cloud solution and one of the client acts as the Server. We want to create a Dedicated Server that players can run instead...

View Article


Image may be NSFW.
Clik here to view.

Sync game platforms

Hello. I have platforms in my game like the ones in the picture below. I am creating the platforms randomly. However, they need to be identical(same position, length, type etc.) for each player in the...

View Article


SceneObject new player not see scene object

How to make that the player can see the object scene set another player ???? We use this method , but the other player , who joins for the first time in the room can not see

View Article

Image may be NSFW.
Clik here to view.

OGame, Travian like games?

is it possible to develop mmo games like OGame or Travian using Photon? Is it possible to interact with a mysql database? do i need a dedicated server or will photon work as dedicated server? is it...

View Article

Photon Voice (beta)

There's a rumor floating around about a so called Photon Voice feature. Is it true ?I'm asking because there's nothing related to 3D voice chat in Unity using either Photon or UNET.For example, apart...

View Article

How to stay below 500 msg/sec limit while using VoIP

Hello,I'm developing a game similar to Second Life on Unity3D v5.3.3 Engine. Its multiplayer (obviously).Using Photon as my multiplayer solution. The game is VoIP capable. Using DF Voice for VoIP. A...

View Article


PhotonNetwork.time and networkingPeer.ServerTimeInMilliSeconds returning...

Hello! I have a question regarding the values returned from PhotonNetwork.time and networkingPeer.ServerTimeInMilliSeconds. In my game, when a match starts (on the OnJoinRoom callback), I store the...

View Article

RPC with PhotonTargets.Others does not reach others.

Hello.I've recently decided to convert my project from Unity's Networking to Photon. Now I am in the process of reworking everything. For the most part I can see that Photon has a simpler way of...

View Article


PUN RaiseEvent: Why only up to 199 and what can I do to get around this...

In the docs, it says PUN uses RaiseEvent under the hood for all communications.I'm guessing PunRPC also uses RaiseEvent so how can I make the "eventCode" be any value I want and not just 0-199?

View Article

PhotonNetwork.time & online timer

I'm making a timer based off the server time. This is what the docs have to say about PhotonNetwork.time:"Use this value with care: It can start with any positive value.It will "wrap around" from...

View Article


Optimizing PUN+ Networking

Hi devs! I'm working on a multiplayer FPS project with PUN+ and I was wondering what was the best method (or if there is a guide) to optimize the networking and minimize msg/s and the Traffic. My first...

View Article

PhotonTarget to one player?

Dear Photon developers,I want to send to player with ID number 2 an RPC call, but how can I do that?If I use:photonView.RPC("ReceivedCards", PhotonTargets.All, SortedScards2[i].name);I can only choose...

View Article

PhotonNetwork isMasterClient, both spawned players are master issue

I'm seeing an issue where the MasterClient is NOT being distinguished from the NON MasterClient.GOAL: I want the 1st player that joins to be tagged (Unity tag) as "Black".The next player to be tagged...

View Article
Browsing all 8947 articles
Browse latest View live


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