Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [multiplayer]

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

0
votes
1answer
30 views

Project organization for a multiplayer client-server game

I'm programming a game 100% in Java but I'm having some issues concerning the final games architecture. I plan on having two separate projects: one that will hold the client side of communication ...
0
votes
1answer
31 views

Unity Networked gaming 2019… What happened to NetworkBehaviour, OnServerStart() etc

After a long break, I am now trying to learn some basics in networked gaming in Unity. I've installed the latest beta client (because I want to ultimately make a network multiplayer game but it will ...
1
vote
0answers
18 views

Multiplayer game- Client Shooting backwards

Making a multiplayer game. The Host shoots properly but the other players would only shoot backwards. Shooting script: ...
0
votes
0answers
21 views

Only host can spawn object

I am currently making a multiplayer game however only the host has the capability to spawn projectiles. ...
3
votes
2answers
66 views

When to stop taking items from ever-growing queue and start processing them?

I am developing a fast-paced multiplayer shooting game and following instructions from this source http://www.gabrielgambetta.com/entity-interpolation.html. In the article it says that: several ...
0
votes
0answers
8 views

Unity only projectiles shot by host visible to all players

I am currently making a fps multiplayer game, i have successfully made it so that multiple players can join and that they can see each other moving around. However there is a problem with the shooting....
0
votes
0answers
9 views

Photon-Unity Instantiation not working

I use Unity and Photon for the multiplayer. I Instantiate my gameObjects using this method : ...
0
votes
0answers
39 views

writing a game loop for a networked multiplayer game

i am trying to implement a networked multiplaye game. i understand the game loop described here : ...
0
votes
0answers
18 views

Multiplayer physics out of sync

So I'm working on this multiplayer platformer game using Phaser, Matter.js, and Colyseus.js. I have a simple map and player controls set up and now I'm trying to copy my physics simulation on the ...
0
votes
0answers
13 views

How can I make a game-wide round timer with socket.io?

I'm making a javascript multiplayer networked game called "Ultimate Tag". It's basically a multiplayer tag with upgrade every time you tag someone. I want to have 5 minute rounds with timers, and a ...
0
votes
0answers
13 views

Client updating prefab on inspector, but spawning the old prefab

I am making an AR (ArCore Cloud anchor) multiplayer(UNet) game with unity. In the game, a player can select an object with ui buttons and touch on screen to place the object. This is how I have set up ...
0
votes
0answers
18 views

Custom server UE4

I am trying to create a custom server for my UE4 game for fun. I know that UE has built-in support for online multiplayer, but I still want to try and create my own networking solution. Is there a ...
0
votes
1answer
90 views

Too many objects to update in db too often

We are creating a RTS mobile game and we face some problem dealing with updating a lot of object in db too often. Our game is a RTS in which players can attack enemies cities an take them. The world ...
2
votes
2answers
147 views

How to make fighting roster fair

I plan on creating a fighting game in the future, and I'm wondering how to make a roster functionally fair, and feel fair. You see, Super Smash Brothers Ultimate is functionally fair (I think), but at ...
-1
votes
1answer
68 views

How would I create a multiplayer game owning a server?

I'm using gamemaker studio 2 to create an RPG, at the moment it's only single player but I would ideally like to make it multiplayer if possible. I've done a bit of research but all the information ...
1
vote
0answers
43 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
44 views

Unity - Bullet spawns in wrong position in client

I am making a multiplayer game with prefab shooting, but unfortunately the prefab sometimes spawns in the wrong position when I shoot from a client. The bullet ...
0
votes
1answer
52 views

Check if client is alive

I am having client/server application and i want to detect if client is alive. So i know that send() will return me null but it ...
0
votes
1answer
68 views

Server-side real time position calculation based on destination position - C#

What I want to achieve is to calculate the real object position based on its speed and a destination position. In my server, I have a MapInstance that have a list ...
2
votes
0answers
33 views

How can I add intermittent voice chat to a Unity multiplayer game?

I'm looking to make a multiplayer horror game with one of the main mechanics being the game's internal voice chat. Currently I plan on making it cut in and out so that the players (being on opposite ...
0
votes
1answer
58 views

How do i prevent IAP abuse using restoring purchases in an online game?

Lets say i have a mobile mmorpg (ios/android) where you can purchase premium currency using IAP's... how do i actually prevent the following case : Player purchases premium currency Server side ...
0
votes
0answers
64 views

Multiplayer Client Side Prediction and Extra/InterPolation

I'm developing a game like Slither.io but I have planned to add weapons and another additional stuff, I implemented the Gabriel Gambetta example which runs perfectly only if the character is updated (...
0
votes
0answers
63 views

How to propertly send map to clients in MMO?

I'm designing a game where the map has 1 M tiles. The game is simple, is a 2D game with low graphic requirements and without player movements, only change states, so I don't need to update player ...
0
votes
1answer
61 views

Unreal Engine: Third person example project and multiplayer

I was fiddling around with multiplayer stuff in Unreal Engine. I looked into events that run only on server, multicasting events, replication of variables... But there is something that I dont quite ...
1
vote
1answer
47 views

How do you build a matchmaking service for an iOS turn-based board game?

I want to build a board game that matches players with similar skill levels against each other. Take for example a chess iOS app. Log in, and the game pairs you up against someone with a similar elo ...
0
votes
0answers
83 views

What are the advantages and disadvantages of UPnP for my game?

I'm currently developing a multiplayer game in Java. Current architecture looks like that the players can host a server by themselfs. How ever they would to have manually open specific ports on there ...
0
votes
0answers
43 views

How can i manage input in a split-screen multiplayer game?

In non-online multiplayer games, you most often see a "Press A to join" screen. I'm currently trying to figure out how it would be possible to create such a system, that selects the player via ...
0
votes
1answer
74 views

Unity, tell matched players to go pick characters (Matchmaking)

I need to tell all the players in the match to go to some method that'd take them to character pick. The thing is that the pick happens inside the menu scene after the level get's preloaded (...
0
votes
1answer
62 views

Unity (UNET) Pass custom data when creating and joining a match in multiplayer

I've written some simple stuff to make a lobby for matchmaking. Now I want to pass some extra info besides the match name to the lobby. Something like Player's avatar and a number of players connected ...
3
votes
2answers
226 views

Is Apple Game Center Multiplayer Online?

I'm trying to build a real-time multiplayer game on Unity. I was thinking of using services such as PUN or UNet, but then I ran into Game Center's multiplayer API. I've read that Apple doesn't give ...
0
votes
1answer
71 views

lag compensation for slow bullets (opposing players perspective)

I have figured out how the server is suppose to "rewind" for bullet collisions so that when you hit a player on your screen, the server will also say you hit them. However, when you press a key to ...
1
vote
0answers
90 views

Is native performance of C++/C etc. relevant for game servers? [closed]

I am wondering if the performance of unmanaged languages like C++, Rust etc. is relevant when developing a game server or is it more about the network. For game clients, it makes sense and is probably ...
0
votes
1answer
118 views

Help needed with syncing animation speed of a player in a Networked game (Unity)

Follow-up with new code, as per below answer. Unfornutely i still have it wrong and now the character doesn't animate at all (it seems to stay at 0.00 of the clip for ever or constantly resets to 0.00 ...
5
votes
1answer
742 views

Multithreading MMO Server. A thread per area OK? [closed]

As a personal project, I'm setting up a MMO, and writing the server in C#/.NET Core. As of now my architecture is as follows: The world exists of different areas ( you can go from area to area trough ...
0
votes
1answer
108 views

How to use SyncVar/Command/Rpc in Unity to set the AnimSpeed for each player in the scene separately

Im making a simple as possible scene in Unity for mulitplayer game. The character has a walking animation of which the speed is to be set exactly the same as the Z velocity relative to the object. I ...
1
vote
1answer
365 views

Turn Based Game - Best approach for Server communication. TCP/IP or REST API?

I want to create a turn base multiplayer game where each player simultaneously takes his/her actions, and ends the turn. Both will see what the other player did afterwards and the next round begins. ...
0
votes
1answer
60 views

Realtime Multiplayer - How to handle user updates coming in different times

I have a game loop that sends new positions of every player to other players. But there is no guarantee that the users will send the server their new positions at the same time. Actually if their ...
1
vote
1answer
45 views

Compensate for animation time in multiplayer network game

I'm developing a multiplayer turn-based card game. In certain scenarios, the clients are required to perform an animation before moving on with the game. For example, the server informs the clients to ...
3
votes
2answers
116 views

Implementing multiplayer aspect of a simple HTML5 game

I've been thinking about this a lot. I am trying to implement a simple multiplayer game but I have difficulty figuring out how to "share the scene". For example, there are non-player entities like ...
0
votes
2answers
55 views

calculating and saving latencies for multiplayer game

i am making a simple multiplayer puzzle game which basically presents a group of connected users some simple questions and whoever answers first wins the game. but i am having some issue in designing ...
0
votes
1answer
51 views

processing request in order on game server

I am creating a simple multiplayer puzzle game in which multiple players can join a lobby and compete with each other. the player that submits the answer first gets the highest point, the player that ...
1
vote
0answers
50 views

Linear Interpolation Implementation

I'm trying to implement entity interpolation into my game. The structure is as follows: Send the keypress states from the client to the server Process the inputs and make calculations based on them ...
0
votes
2answers
59 views

Will Geolocations for IPs ever change?

I'm making a game where the geographic location of a user is used to give them a little flag icon next to their user name. To do this, I've been using the ipstack API. However, the API only allows up ...
5
votes
1answer
211 views

How to randomly create a fair maze for a multiplayer game?

I am creating a 2d multiplayer RTS game which happens inside a maze. I have used Growing Tree algorithm to randomly generate the maze. I thought that the maze would be fair for each team as long as ...
0
votes
2answers
105 views

shooting bullets without players being able to cheat

I'm working on a multiplayer game and for bullets that players shoot I was wondering what is the right way to do it: when a player press a key It send the key code to server and: a. server starts ...
0
votes
1answer
55 views

Implementing online connectivity and multiplayer/PVP for a newbie

Background I'm a noob programmer looking to create a simple turn based mobile game as a side project. I've pretty much got the game logic down and am left with implementing the online multiplayer/PVP ...
0
votes
2answers
73 views

Character appearance synchronization in open world multiplayer game

I am working on a multiplayer open world game where you can equip handhelds and armor pieces. In my architecture, there are clients and an authoritative server. Every equipable item is crafted by a ...
0
votes
0answers
11 views

Adding External Force to Client Side predicted Movement

So i have client side prediction implemented. The client applies the movements instantly and then applies reconciliation if anything is offset with the server. Now what I would like to do is add ...
1
vote
1answer
83 views

Network limitation in multiplayer game

I have a multiplayer cooperative game (PVE) in where there can be up to 200 enemies at a time (somewhere around that) and I was wondering how devs generally synchronize these? I already have packets ...
0
votes
0answers
27 views

Duplicate packets and termination of packets in multiplayer game

I'm making a multiplayer game (lazertag) with real hardware. After hours of research, I'm choosing the UDP instead of the TCP protocol to exchange data. Because of how unreliable UDP is and because ...