Questions tagged [photon]
Photon is networking and multiplayer middleware.
43
questions
0
votes
0answers
10 views
how to make my camera follow script work for Photon Pun2
I´m currently working on the Multiplayer part for a 2D top-down game. I´m using Photon Pun2, to do this. My problem is, that always just the last player, who joined the game get´s my camera follow ...
0
votes
0answers
10 views
Loading Data From Lobby Scene to Gameplay Scene with Photon Network
As the title suggests, I am currently stuck trying to program a way to load some game mode preferences (ie. what type of game mode/players on each team/ etc...) from a player lobby scene to the actual ...
0
votes
0answers
10 views
photon unity why error GO:Networking Manager appears when trying to make the scene not restart / reload when another clients join the room
photon unity why error
Debug.LogError("Illegal view ID:" + view.viewID + " method: " + methodName + " GO:" + view.gameObject.name);
appear
the code
...
0
votes
0answers
46 views
How to get good movement synchronization in a networked game (action/shooter)
I've spent the last two days trying to get good movement interpolation with Photon in Unity but I can't get anything that I'm happy with. I've tried several methods but none satisfied me. My ...
0
votes
0answers
23 views
Streamline login, so user types their ID just once
I have been watching tutorials and have these two scripts that I didn't write. One script asks for the username for the player to input. When the player enters the room I have a chat system that pops ...
0
votes
0answers
25 views
Billboard nametag not working
I'm using PUN2 and trying to use nametag billboards for my players but it's not working. I think it has something to do with me destroying the camera on the player controller script.
When I load the ...
0
votes
0answers
24 views
Object destroyed when applying WebCamTexture across Photon
This script turns the texture from WebCamTexture into a byte array to send across Photon as an RPC. However, when it is called, it displays the WebCamTexture for 1 frame before destroying the entire ...
0
votes
0answers
12 views
Photon Camera Conflicts
I'm new on this forum as I'm new on unity ^^
I hope I'm not writing this thread in the wrong place.
So, I'm trying to get this 3rd person multiplayer Tank with RTC controller game to work, where you ...
0
votes
2answers
403 views
How to load additive scenes to the master client, per player, in unity using photon?
I have already successfully created a multiplayer scene where multiple users can join, however there are some issues like unity not allowing multiple sound listeners per scene. In order to alleviate ...
0
votes
0answers
219 views
PUN2 > Displaying all players' HP to a single pannel of a UI
I've set up a scoreboard-like UI to display all players' in the room as shown in the capture above.
What I'd like to do is to display each player's own status info - Life amount as of now then ...
1
vote
1answer
49 views
Photon Realtime, StripKeysWithNullValues cause heavy GC Alloc
In our current project, we use Photon room properties to sync entities. and i noticed some heavy GC Allocs while deep profiling the game and it always ends down to this method.
Have anyone faced this ...
0
votes
2answers
156 views
Getting user id from one scene then to the next scene
I'm new to multiplayer and photon so pardon me if this question is somewhat frequent.
I have successfully set up my project to start from a main menu - waiting room - actual gameplay scene.
However I ...
0
votes
0answers
145 views
Cost of Unity Local Multiplayer VS Unity Online Multiplayer
I know that making multiplayer games in Unity costs money because of the servers that are used in connecting the players. So basically its free upto 20 CCU and then it increases as per the CCU. Its ...
1
vote
1answer
45 views
Could use some help figuring out bouncy physics material in this PhotonEngine game
So I'm trying to prototype a primitive 1v1 fighting game where the goal is to push the opponent off of the platform rather than actually fight. This is working great in a local multiplayer setup using ...
0
votes
0answers
113 views
Unity network player synchronization issues with HingeJoint(s)
I have a vehicle with custom wheels which are connected to it by the HingeJoint components. Everything works perfectly when using this car in single-player mode. Wheels are actually as ...
0
votes
1answer
64 views
Photon2 Unity2D How to send float with RPC
I have big problem in my code .. I want to spawn obstacle exactly on the same position as on the server is spawned so I made rpc Method and tried to pass random variable of float , but when i run the ...
0
votes
0answers
323 views
Photon-Unity Instantiation not working
I use Unity and Photon for the multiplayer. I Instantiate my gameObjects using this method :
...
2
votes
0answers
190 views
How to make an authoritative multiplayer game deterministic for all clients? [closed]
I'm starting to create a multiplayer online game, with an authoritative server. As it is, the clients send inputs to the server which do the simulation and then send back to clients the updated state. ...
0
votes
0answers
98 views
Unity Photon multiplayer :: check distance between two players
How to get distance between two player in a photon multiplayer game. Condition is both the player is moving.
I have tried something like this, in my player control script:
...
0
votes
1answer
640 views
In Photon, What happens networked GameObject's ownership when master client disconnects?
I'm creating multiplayer game with Photon. When player disconnects, especially master client does, every GameObject instantiated from Master client is gone, so I can prevent with this:
...
0
votes
1answer
1k views
Photon disconnected without any error/warning message
I'm making online game with Photon and Unity. It was working fine, but suddenly players are disconnected without any warning or errors.
It just happens sometimes fast, sometimes slow, but always ...
1
vote
2answers
980 views
synchronized transform is always 0,0,0 in Photon unity
I'm making a simple zombie co-op game with Unity and Photon and have problem with sync enemy transform.
First, I need to explain my idea of chasing enemy AI. Enemies are using NavMeshAgent to finding ...
0
votes
1answer
732 views
How can I get fastest region server in Photon C++ Client API?
I am facing problem with my online multiplayer board game. It takes long time to create and join room. Also sometimes other player doesn't get the data. After searching all over the Photon C++ code I ...
1
vote
1answer
442 views
InvalidCastException when instantiating a prefab on the network using Photon
As stated in the title, I get this error when I try to instantiate a game object using Photon:
InvalidCastException: Cannot cast from source type to destination type.
NetworkingPeer.DoInstantiate (...
1
vote
0answers
56 views
Best way to connect and save data in an online Android game [closed]
I'm new here, I'm in need of a help as it would be the most ideal way to proceed with my project.
The project is very simple, a basic online rpg for android in specific (in the future can be migrated ...
0
votes
1answer
356 views
Synchronization between server's value and the one showed in a stat bar (health, stamina, mana…)
I am trying to implement a stamina system for my mmo. In few words, I computed everything on the server that then notifies the client. On the client I have a stamina bar that shows the stamina amount. ...
0
votes
0answers
323 views
Unity3D and Photon Networking RPG
Good time of the day.
My question might sound stupid, due to the knowledge you might have, but here it is.
I've purchased Diablo 3 a long time ago and been enjoying it since then. Since many of my ...
0
votes
1answer
209 views
How to share some elements of array with different players on Photon in the same Room? Unity3d
I want to assign cards to different players in the room. I've a Class "Cards" that contains an array of 52 cards like this: "2_of_spades","3_of_spades"....... and so on. All i want is to assign random ...
2
votes
1answer
955 views
Server logic on client side?
I am very confused by the PUN implementation of the Photon networking engine. It looks like I don't have to write a separate server so I'm very curious how this works. I have done quite some KryoNet ...
1
vote
1answer
474 views
Photon Unity Network with Socket IO Ambiguities
When trying to use Socket.IO along with PUN I get multiple errors similar to the one below:
...
0
votes
1answer
2k views
Unity3D: Photon syncing physics events
I'm making a billiard game and I wanna implement multiplayer in it. Since updating the movement in every frame is inefficient and laggy, I thought I could remake the events in game happen in all ...
1
vote
2answers
2k views
Not able to connect to Photon(PUN).photon unity networking error
I'm new to photon Networking. My game was working great suddenly this is appearing
Cannot send messages when not connected. Either connect to Photon OR use offline mode! UnityEngine.Debug:LogError(...
1
vote
1answer
208 views
What's wrong with my food generating code?
This script is intended to produce amount of (food) objects for the players over the network. What should happen is that when a player eats one food, another food object gets created in another random ...
1
vote
1answer
150 views
How to manage this problem in a multiplayer client-server game with Photon ?
Good day.
I'm developing my first simple game, a racing car, using Unity and Photon.
In my game there are a function that generate random Bonus on random position each (for instance) 5 seconds.
...
1
vote
0answers
259 views
What i'm missing in this multiplayer Unity / photon code?
i'm having some troubles in my first, simple, multiplayer racing game, using Photon and Unity.
Following classic photon tutorial i've written the code below, but, it won't work properly.
In ...
2
votes
1answer
2k views
How to sync new object (weapons/bullet) in a multiplayer photon game ?
I'm using Photon to develop a multiplayer game.
I would like to know the best way to synchronize "weapons" bullets object between network players.
Thanks
1
vote
1answer
902 views
Communication between Photon Cloud game and web server
I am creating a multiplayer game using Photon Cloud (Photon Unity Network). For storage of player data (profile, inventory, achievments) I use web server (asp.net mvc & sql server). How to ...
3
votes
1answer
737 views
How to sync random incidents over network?
In my Photon powered game, I have a shotgun weapon and when a player fires a bullet, I call an RPC on other clients and it's bullets get direction from a random function, Random.Range, and on ...
1
vote
1answer
5k views
Sending message to all players in room from Photon server?
I need to send a message to all players in the room from a Photon server. Sending the message from a player would introduce too much latency so I need the server to collect data and distribute ...
1
vote
0answers
2k views
Unity Photon Networking - Cant understand OnPhotonSerializeView
In all tutorials I see that an object sends data over the network and receives the data.
For sync in the same method:
Code:
...
2
votes
1answer
56 views
invaliduriexception with photon unity
I am using photon unity networking right now to make a multiplayer game. When I publish to windows the build works fine, but when I change unitys build settings from windows to webgl it gives my a ...
2
votes
1answer
3k views
Making a master server in Photon Unity Network? [closed]
I am trying to make a game that requires a dedicated server running 24/7 and I would like to use Photon Networking but can Photon Network handle/do a dedicated server setup?
The reason I ask is ...
4
votes
1answer
845 views
Photon alongside LibGDX
Can anyone point me to a possible implementation of the Photon network engine along with LibGDX for Android? Or any multiplayer networking SDK for all that matters.
From reading source code it ...