Unity 5.1 introduced a new framework to handle client+server networking, also known as UNet.
1
vote
2answers
51 views
Player shooting himself when moving - Unity UNET
Setting : Creating my first multiplayer game and running into an odd issue. it's a tank game where players can shoot bullets and kill each other
Problem : When the client shoots while moving, the ...
0
votes
0answers
19 views
Object spawn only on Server in multiplayer unity3d game
In my game I have an object let say food, whoever eat that food that player will spawn one more element. I am sharing code here :- I am checking collision in Update. Following code is working fine on ...
0
votes
0answers
17 views
Communication between Photon Cloud game and web server [Unity3D; Photon]
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
0answers
51 views
Unity 5: Use Network Simulator, should I?
I am looking to test intelligent prioritisation of a client server game. In my scenario, two clients are connected to the server. I want one client to have a good connection to the server while the ...
0
votes
0answers
19 views
Animation with pivot-modification in Mecanim
Assume I have two animation cycles:
Walking
Crouching
Both assume that the model's pivot is on the same level as the model's feet.
Now I also have two animated transitions:
Get on all fours ...
1
vote
2answers
92 views
How to receive broadcast message in Unity?
I am trying to get the broadcasted message in overridden method of NetworkDiscovery.OnReceivedBroadcast(). For that what I had done is below:
I create class which implements NetworkDiscovery where I ...
1
vote
1answer
72 views
Unity 5 Command not being sent
I have a client server build in Unity 5. I want to send a command from the client to the server with a GUI button click, this is for testing purposes. So on my client all I want is to click a button ...
0
votes
0answers
13 views
Creating 2vs2 room with friends in Unity with PUN
I would like to create a game mode 2vs2 with our friends. I have no idea where to start off. How can we send them notification regarding some of our friends is looking for party. I think this is ...
1
vote
0answers
55 views
UNet send message by Client.Send error
I'm try to implement client-server communication base on UNET.
The problem i got now is send custom message to server, but the Client.Send always show error without my understanding.
So what i'm ...
0
votes
1answer
49 views
The best way to pass data between clients in a room
I am developing a backgammon game in Unity and tried to use Photon. But I could not find a step by step help for it and I also know that photon in real-time and it syncs data over 10 times per second. ...
1
vote
0answers
44 views
How do I allow clients to move a GameObject that exists on the server?
I started to delve into the UNet system for the first time the other day and I've run into a bit of an issue while testing on a localhost server. In the scene there is a Rigidbody ball that I want ...
0
votes
1answer
117 views
Unity - How to correctly sync an ArrayList of GameObjects on a server/client
I'm experimenting with networking in Unity and I can't seem to get an ArrayList of GameObjects to sync from the server to the client.
Here is the relevant code:
[SyncVar]
ArrayList walls = new ...
1
vote
0answers
41 views
Unity3D Photon - Failed to 'network-remove' GameObject"
Failed to 'network-remove' GameObject. Client is neither owner nor masterClient taking over for owner who left: View (0)2001 on Player(Clone)
This is the error I repeatedly get. I'm using ...
2
votes
1answer
50 views
Local player always at same position
I am trying out UNET ( Unity Multiplayer Service ) and I am building a space invaders like game but with two players at each side of the screen shooting at each other.
I want the local player to ...
3
votes
1answer
97 views
AddComponent with Network* at runtime?
I am trying to figure out how to dynamically add network components to game objects that are managed by the network.
I started unity about a month ago, and I started writing all sorts of components ...
1
vote
0answers
89 views
Unity nested network identity
I have a problem with nested GameObjects in Unity Networking (5.2);
One of my GameObjects (lets call it mother) has a network transform component.
Now the mother can have a variable number of childs ...
1
vote
2answers
51 views
List of Lists for sending paths from client to server? [closed]
I have a client server scenario and I'm looking into distributed AI. I want the server to move x amount of ai characters around a map by pathfinding and then send the x amount of paths to the client ...
1
vote
0answers
305 views
Failed to spawn server object, Unity UNET
I'm familiar with Unity and programming but I'm new to this site.
So I have an issue with clients on Unity. I start servers with no errors, flawless. But when I join a server as a client I get a ...
1
vote
0answers
250 views
Using unity app how to read the asset in android SDCard?
I am trying to read one file from my android sd card from my unity application, but its not reading.
using the asset bundle i have exported my file and kept in my android device sd card and i am ...
1
vote
0answers
225 views
Switch UNet From LocalHost to IP
I have set my game up so that I can run one instance as host and one instance as client and I see two people in the room. How do I get from that setup to another computer (as client) connecting to ...
1
vote
1answer
190 views
Unity 5.x Network Synchronization Concepts
Bear with me, It will be long read^^
I am working on the new Unity Networking system. I was using Photon and old (legacy) unity network API's before. But as it seems there are some good benefits of ...
0
votes
0answers
37 views
Requesting advice on network programming: How to do peer to peer networking for shooter game to avoid servers (Steam)
I've recently greenlit a game on Steam that is a 2D real time shooter. I'm trying to figure out networking and to prevent delay/ping problem, I'm trying to find a way to connect users directly to each ...
0
votes
1answer
261 views
UNET start game with friend by finding their name, Android
There is a game at the google play store called Fun Run 2- Multiplayer Race. I loved its feature to find friends by writing their names, and then to play with them. Is it possible to achieve that with ...
1
vote
0answers
318 views
Unity 5 Networking Send Rate: Send Rate is Zero but server movement is still happening
I have a client server scenario, just a player moving about on the client and he moves about on the server using the built in networking provided in Unity 5. I have my client scene running in the ...
1
vote
0answers
355 views
Unity3D LLAPI and Pyhton UDP communication
I need a Unity3D game on Android to receive UDP packages from a Python script running on a different device.
Using System.Net is not (yet) an option, as it is only supported on Android with a valid ...
1
vote
1answer
510 views
UNET Error handling
I am trying to handle errors received by a UNET (new Unity3D networking) client. The below code successfully connects to a server when it is present, but obviously gives a timeout error when there is ...
3
votes
1answer
347 views
How can the Server send a message to a single Client?
I'm trying to send an Rpc, or any sort of message, to a specific client instead of to them all.
I'm completely at the loss trying to associate a NetworkConnection with its own authoritative spawned ...
4
votes
1answer
158 views
Moving a character based on a list of Vector 3's
I have a client server scenario. On the server there is an AI character who chooses a random point on the map and pathfinds to it, when at that point it chooses a new point and pathfinds again etc. ...
1
vote
1answer
527 views
Making a master server in Photon Unity Network?
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 ...
1
vote
1answer
272 views
Can UNet do Rigidbody2D prediction? (i.e. using gravity)
Having a NetworkTransform with transformSyncMode set to SyncRigidbody2D (as opposite to a plain SyncTransform) I assumed it would try to sync all physics, hence handling gracefully forces, especially ...
4
votes
3answers
559 views
How can one add a level to an already published ios/android unity3D game on a daily basis?
How can one add a level to an already published iOS/Android Unity3D game on a daily/weekly basis?
I know this probably isn't feasible but it won't harm if I just made sure of it. Our game requires to ...
2
votes
1answer
1k views
Unity 5 Client RPC call: Failed to Invoke ClientRpc
I have a Unity 5 client and server running. On the server a path is generated and I want the client to receive the position of each target node on this path. Following the Client RPC calls section ...
2
votes
1answer
670 views
RPC's in Legacy Unity, what to use in Unity 5.1?
I have created a small experiment in 5.1, a server has an AI character pathfinding around a map over a grid, so its a straight line node to node before it reaches the end.
I would like for the ...
3
votes
1answer
3k views
How do I make the host work in UNet?
According to the "High Level API" documentation, unless I misread something, a Host "just" runs both as a Server and as a Client, so much that it would require no special support, i.e. it should run ...
2
votes
1answer
2k views
Why will my server not execute a command sent by the client in Unity 5.1?
I'm working on a very simple/basic client-server networking program, the basis of a future game I hope to create. Now the client program/project DOES successfully connect with the 'server ...
2
votes
2answers
2k views
How do I Sync data from client to server?
I'm trying to Sync data from the client to the server using the new Unity Networking, and I'm failing for some reason.
I've set up a prefab with a NetworkIdentity component with the attribute Local ...
0
votes
1answer
2k views
Objects spawned on clients only appear locally
I'm trying out the new Unity 5.1 networking for a Bomberman style game and i can't seem to get the bombs to instantiate on both the client and all those connected, what am i missing?
The code below ...
2
votes
1answer
1k views
Spawn scene object not found for 1
I'm getting this error with the new Unity Networking (5.1):
Spawn scene object not found for 1
UnityEngine.Networking.NetworkIdentity:UNetStaticUpdate()
This happens in the client, when it connects ...