Played by multiple players, cooperatively or competitively, locally or remotely.

learn more… | top users | synonyms

2
votes
1answer
5k views

Sending RPC calls from server to client inside Unity

In my game inside Unity, I have two scenes setup. One for the main server ( acts like authoritative server ) and the other scene for my client. The game starts once my client connects to the server. ...
1
vote
1answer
55 views

How to handle two players playing on one keyboard with Box2D (LibGDX)?

I'm making a racing game with LibGDX and Box2D. I've been using this tutorial to implement the basic physics, and it works properly. My main problem is to implement two different sets of keys ...
1
vote
1answer
39 views

How do you use SoundManager for multiple player games over the network?

I have created a basic sound manager according to this unity tutorial (https://unity3d.com/learn/tutorials/projects/2d-roguelike/audio). However, I need it to work for multiple players over the ...
1
vote
1answer
91 views

UDK ping check without joining a game?

I have made great strides in creating a custom built server browser for UDK. It registers servers with a master, and the client can download the list and populate the server browser. However I'd like ...
1
vote
1answer
356 views

How to make unitypackage from allseen alliance's android sdk?

Im making an offline multiplayer for Android device by Unity and I found only one way to do this is the allseenalliance sdk. After download its from here I found that to use it I need to create an ...
0
votes
1answer
76 views

Poker Game Multiplayer network logic

I created a single player poker game. Now I want to change it to a network game. I want to use Photon(for network) and Playfab(game server) or SmartFoxServer. My problem: I want to run important ...
0
votes
1answer
26 views

Turn-based multiplayer animate moves from last turn

I'm trying to make a 2-player turn-based strategy game, using the Google Play Games APIs According to the documentation, As a match progresses, the current player can modify and store the game ...
0
votes
1answer
137 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
votes
1answer
157 views

Show message to one player issue in multi-player game

I Needed to show message to only one person of the multi player game,i am using smartfoxserver to developed a board based game and in this game how to differentiate 2 players in unity c#,and also how ...
2
votes
0answers
49 views

Improving Position Sync Bandwidth Usage in a Multiplayer Game

This is the class i use to sync position between clients in a multiplayer top-down 2D shooter game: [System.Serializable] public class MovementUpdateClass { public int MessageTime ...
2
votes
0answers
66 views

Facebook data exchange for mobile games (multiplayer)

A multiplayer mobile game that we are working on connects players through Google Play and Game Center but we would also like to add an option to play with your Facebook friends and here's the ...
1
vote
0answers
51 views

What player rating system can I use when the rating can only get larger?

I am developing a turn-based multiplayer app (2 players per match) for Android. As backend I use Google Play Game Services. I have implemented a leaderboard. Now I consider how to design the ranking ...
1
vote
0answers
24 views

Player Position interpolation - question

I have a 1v1 real-time game. I'm sending packets with UDP, I'm using Kryonet. I had gameloop on a client that was working like this (just an example): while(true){ if(player_me.getState == ...
1
vote
0answers
216 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 (csharp): void OnPhotonSerializeView(PhotonStream stream, PhotonMessageInfo ...
1
vote
0answers
47 views

How to detect when client state drifts from server state?

I'm obviously talking about an authoritative server to which client sends commands and gets state updates. My question is when I get a position update and know how many milliseconds ago it was ...
1
vote
0answers
71 views

Need to boost the number of simultaneous players in single (existing) game with Unity3d

I have created a turn based multiplayer game (with Unity3d) in which three teams battle to finish constructing a cake before one another. The game mostly targets on entertaining kids at certain ...
1
vote
0answers
248 views

Google turn based multiplayer automatch criteria

I've set up a multiplayer game using Google's turn-based API. I now want to put some qualifiers on auto-matching and am racking my brain on how to solve this issue... I'm using GetVariant() to ...
1
vote
0answers
298 views

Cocos2D v3 and Physics simulation on server

I'm trying to develop a real time multiplayer game using Cococs2d v3. The game is basically a side scrolling racing game. I wanted to develop the client using Cococs2d for iPhone, and the server side ...
1
vote
0answers
136 views

How to perform game object smoothing in multiplayer games

We're developing an infrastructure to support multiplayer games for our game engine. In simple terms, each client (player) engine sends some pieces of data regarding the relevant game objects at a ...
1
vote
0answers
142 views

What are the disadvantages of client-side prediction?

There's lots of talk of server-side prediction, but I haven't seen a client-side alternative implemented anywhere. My game uses mouse-based movement, so it's easy to predict the player's location ...
0
votes
0answers
54 views

Multiplayer through blocked Firewall Ports?

im currently trying to develop a little game. I thought it would be a great idea to implement coop multiplayer, only lan. So i took kryonet and created a server. On my home wlan it works great im able ...
0
votes
0answers
27 views

Unexpected Execution Order in Unity (uNet)

I made a little game in Unity. It works fine in the Editor. But if I run the build version I get a NullReferenceException. This problem does only appear if the build-version-client hosts the game. ...
0
votes
0answers
29 views

Multiplayer Keeping the Client and Server Updates in Sync?

I am working on a Multiplayer Game, I have a client loop which can run at 30-60fps. Inside of that Loop I check whether the players left mouse is down. If it is, send a shoot command to the server. On ...
0
votes
0answers
19 views

Multiplayer Spawn not working

The error message I get is SpawnObject for Player(Clone) (UnityEngine.GameObject), NetworkServer is not active. Cannot spawn objects without an active server. I know that the server is ...
0
votes
0answers
35 views

Unity WebGL build throws errors

I am working on a multiplayer game for WebGL platform and i am using (http://lockstep.io/ - SocketIo & node.js server ) for handling the game. I am facing these issues as shown in the attached ...
0
votes
0answers
60 views

Unity stream webcam to other player (Multiplayer)

I want to make it possible, that I can draw on the stream of another player in my Unity game. The networked drawing works just fine, my problem is to stream the webcam. I've got the webcam input ...
0
votes
0answers
23 views

Movement prediction on client

Im pretty new to game development. Currently I try to predict the movement of the player on the client. But my client and my server are calculating different values. Im using a delta time for the ...
0
votes
0answers
42 views

UNet - Local Player Authority

I have an NPC. I would like to give the player the ability to possess the NPC by clicking on it. //Prefab is spawned with networkIdentity.localPlayerAuthority = true ...
0
votes
0answers
38 views

Multiplayer rigidbody not receiving velocity syncvar on the client

I have a scene in which on a certain event the client spawns a prefab with the variables of position, rotation and rigidbody velocity set for it. It is working perfectly, it spawns in the right ...
0
votes
0answers
39 views

Authentication in network game servers

I'm currently building a UDP server that my game will talk to. The users will need to have an account created, either by using a Single Sign-On account such as Facebook or Google, or by creating an ...
0
votes
0answers
48 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
61 views

How to load new scenes or models from network in unity or unreal engine?

I have a project to be done. I had done some research to accomplish some features. Event so, I couldn't find some answers. The project needs to have some features as follow; Charachter creation in ...
0
votes
0answers
46 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 ...
0
votes
0answers
17 views

How to make my Minecraft Mod useable by a Multiplayer server?

I coded my Mod using Eclipse and Minecraft Forge. Then I built my .jar file and I put it in the mods folder of Minecraft. The problem is, my custom commands and Blocks work perfectly in the single ...
0
votes
0answers
49 views

Unity3d NetworkServer.SpawnWithClientAuthority

How do I spawn a gameObject with client authority from outside of the main client? I'm trying to make this function: http://hastebin.com/bobezisexa.avrasm But it keeps saying "trying to spawn ...
0
votes
0answers
55 views

How long should interpolation last in multiplayer game?

I'm making a multiplayer game. Server is sending update packets 20x per second, that contain players positions, velocities and other important data. I want to interpolate between current and updated ...
0
votes
0answers
44 views

multiplayer/network security and guidelines

I am about to start programming a multiplayer game that uses TCP to transmit data. Just sending data, prozessing data on the server and displaying results on the client isnt that complicated i guess. ...
0
votes
0answers
77 views

Singleplayer and multiplayer using same gameobjects in Unity?

There are a lot of topics about converting singleplayer to multiplayer games. But I could not find the accepted practice of keeping singleplayer gameplay available. Will this just work if I manually ...
0
votes
0answers
22 views

badumna how to use different prefab for different entity in the game

our project uses badunma which is an open source p2p c# framework for unity https://bitbucket.org/badumna/badumna/overview currently we are using the badunma scene for our open world replication. The ...
0
votes
0answers
18 views

Photon Connections without Concurrent Users? Or other networking?

I am going to be making a multiplayer game and use http://pupnp.sourceforge.net/ for setting up connections without having the player to port forward. The game will let you make or join a room using ...
0
votes
0answers
46 views

cannot sync for connected player after spawning meteorite ( photon PUN and ufps)

did anyone run into such bug? It happens when second player connects to a game, and that's what he sees. But players who connected earlier see everything well: meteors which I spawn by master-client ...
0
votes
0answers
30 views

setting up data exchange in game center

I just set up a game center game where 2 people can do matchmaking. Everything is working great but there are times when the movement gets laggy. Currently I'm sending data to the other player from ...
0
votes
0answers
39 views

xna multiplayer movement

So I have a tcp sockets network setup with the ability for clients to connect to the server. I'm currently trying to do movement. And iv discovers that tcp is terrible for sending out the x and y ...
0
votes
0answers
102 views

KryoNet/Multiplayer Basic Design Questions

I am building a simple turn-based multiplayer Android game that resembles chess a bit. I'm using KryoNet for the multiplayer. The only thing I got working so far is the login server and game ...
0
votes
0answers
170 views

How to smoothly display opponents in realtime multiplayer game

I'm implementing a small-scale multiplayer racing game. As of right now, the client sends updates to the opponents on a fixed interval (or as fast as possible), containing location on the map etc. ...
0
votes
0answers
552 views

Android Studio libgdx multiplayer

Does anyone know if it's possible to setup a multiplayer game using libgdx in Android Studio? I've been trying to convert my game to multiplayer using all kinds of tutorials on libgdx & ...
0
votes
0answers
57 views

Fix latency when sending state

I have a multiplayer game done with Phaser, which runs in the browser and on a node.js server. The server is authoritative, every 50ms or so it sends the game state object to all clients. The clients ...
0
votes
0answers
300 views

Unity Photon/PUN - Updating booleans with RPCs

I'm using the latest version of unity with Photon's PUN library. I used a tutorial to make a really simple multiplayer game (cubes moving around) which works fine. Now I'm trying to make a turn based ...
0
votes
0answers
30 views

Reverting 2d canvas?

I'm making a multiplayer game which involves drawing lines. It's based this game: http://curvefever.com/sites/default/files/resize/remote/ef86488088c618df13b34f8b87aafd4e-1107x808.jpg. The game is ...
0
votes
0answers
81 views

What is an efficient/safe way to broker head to head communication for a mobile game

I have a mobile game written in XNA/MonoGame with a wcf server and I am currently designing the head to head competition mode. Previously I have created a game that used UDP to set up communication ...