r/MultiplayerGameDevs • • Sep 11 '26

Discussion Making a rollback fighting game with my own open source engine with my own server hosting service

Thumbnail
gallery
0 Upvotes

Made with the Floptle Game Engine using Floptle Cloud.
Try both for free: https://fopull.com/cloud

My main goal is to make multiplayer development more accessible and less tightly controlled. Roblox gives you ease of access while heavily censoring you and stealing a large portion of your revenue, Steam gives you free relays but nothing else, and photon is way too expensive. All of my stuff is open source, ships to multiple platforms, and multiplayer is easier to use than ever with Floptle Cloud while you maintain full control of your own work. Thoughts on how I can improve it more, or feedback in general / discussion are greatly appreciated. It is my goal to ultimately be able to make a living off of working on things I'm passionate about, and this is the main way I can monetize this engine while still outdoing competitors and maintaining accessibility. If you want, you can still run your own servers outside of Floptle Cloud, you are not locked into using our hosting.


r/MultiplayerGameDevs • • Dec 15 '25

Is it much more complicated to make a multiplayer game than a singleplaer game?

Thumbnail reddit.com
0 Upvotes

r/MultiplayerGameDevs • • Dec 07 '25

Discussion Players chatting with each other - do you allow it multiplayer game devs?

Post image
1 Upvotes

Roblox are beginning their rollout of age-based chat, where players can only chat to other players of a similar age. Age is verified either by ID, or if you don't have ID, facial age estimation. Over 21 million people have verified their age using facial age estimation so far.

The AI-powered facial age estimation has seen some false positives, with one parent reporting their child was verified as much older than they are, immediately giving them access to content that the parent had been able to manually restrict them from before. One 20-year old reports they can no longer access the role-playing community they are in due to being classified as younger. One person mentions that they no longer have anyone to talk to since age-based chat rolled out.

Another person thinks that, despite its problems, it is a step in the right direction.

Chat in multiplayer games is an intriguing topic. I thought I'd bring this to you r/MultiplayerGameDevs and find out what you are doing with chat in your games.

For my multiplayer games, I think chat has been a truly wonderful thing overall, with many of my old players having met in my game and still being friends 7 years later. It has been worth the pain. I have a fairly basic system that shadow mutes people as soon as they say anything on a banned phrase list. To them, the chat looks like it works, but no one else sees what they are saying anymore for the next 3 minutes. Because the people don't know they are muted, they don't attempt to evade the ban. Often, even if they know the filter is there, they forget and trigger it anyway because there is no feedback.

The banned phrase list also performs a number of common transformations that are normally used to evade filters, like replacing "e" with "3". It also blocks against toxic chat, like people saying "EZ" after defeating another player, which is just uninviting to a newbies. It's not perfect but it has been more effective than you might think.

Multiplayer game devs, do you allow chat in your game? Why or why not? Do you perform any filtering of any kind? Have you got any stories, positive or negative, relating to chat in your multiplayer games?


r/MultiplayerGameDevs • • Dec 04 '25

I built a site that lets people vibe code and host simple multiplayer browser games

2 Upvotes

Hi guys! I wanted to share something I've been working on with a friend. It's called splork.io, a site that lets you turn natural language into simple multiplayer browser games. You can visit splork.io/how-it-works for a more in-depth explanation of the mechanics, but in essence: you describe a game, an LLM generates the client and server code, and the site handles hosting the servers for you.

It's currently super bare bones at the moment but thought it would be cool to get some initial thoughts, especially from multiplayer game devs like yourselves :)


r/MultiplayerGameDevs • • Jan 27 '26

Node.js Server With Unity Client - Basic Example

1 Upvotes

If anyone wants to try this, here is a bare-bones example for how I got it working.

Requirements:
- Node
- Unity (latest stable versions)
- WebsocketSharp for Unity: https://github.com/Rokobokode/websocket-sharp-unity

You will have to learn how to setup a node app if you don't know how. It's not hard, it just takes time to write a tutorial that you can find a million other places online or ask an AI. You will need to setup a node app in a folder and add the following code (server.js):

*CODE NOT TESTED* - If you have issues, let me know in the comments and I can address them if you have trouble figuring it out.

[The Server]

const WebSocket = require('ws');
const PORT = 3000;
async function startServer() {
wss = new WebSocket.Server({ port: PORT });
console.log('WebSocket running on ws://localhost:' + PORT);

wss.on('connection', (ws) => {
console.log('New client connected!');
ws.on('message', async (message) => {
console.log("Message from Client: " + message.toString('utf8'));
let rawString = message.toString('utf8');
const jsonStart = rawString.indexOf('{');

if (jsonStart !== -1) {
const jsonString = rawString.substring(jsonStart);

try {
const obj = JSON.parse(jsonString);
// console.log(obj);

if (obj.Type === 'ping') {
console.log("Request Player Stats");
ws.send(JSON.stringify({ type:'pong' }) + '\n');
}
} catch (e) {
console.error('JSON parse error:', e, jsonString);
}
} else {
console.error('No JSON object found in message:', rawString);
}
});

ws.on('close', async () => {
console.log('Client disconnected');
});

ws.on('error', async (err) => {
console.error('WebSocket error:', err);
});
});
}

startServer().catch(err => {
console.error(err);
process.exit(1);
});

Run the node app with 'node server.js' using a terminal or command prompt from the node folder.

[The Client]

This code will start a server listening on whatever IP address and port you choose. You will need to create a Unity program and add the following code to an empty GameObject (WebSocketClient.cs):

using Newtonsoft.Json;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using WebSocketSharp;

public class WebSocketClient : MonoBehaviour
{

WebSocket ws;
private Timer heartbeatTimer;
private float heartbeatInterval = 5f; // seconds
private float heartbeatTimeout = 30f; // seconds
private DateTime lastPongTime;
private Coroutine reconnectCoroutine;
private int reconnectDelaySeconds = 10; // seconds

private void Start()
{
    StartServer();
    StartWebSocketConnection();
}

private void OnDestroy()
{
    StopWebSocketReconnection();
    StopServer();
}

public void ConnectWebSocketWithRetry()
{
    StartCoroutine(ConnectAndRetryRoutine());
}

private IEnumerator ConnectAndRetryRoutine()
{
    while (true)
    {
        ws.Connect();
        yield return new WaitForSeconds(1f);

        if (ws != null && ws.IsAlive)
        {
            StartHeartbeat();
            EventBroker.Instance.Publish(new WebSocketClientEvent.Connected(true));
            yield break;
        }
        else
        {
            Debug.LogWarning("WebSocket is not connected. Retrying in " + reconnectDelaySeconds + " seconds...");
            EventBroker.Instance.Publish(new WebSocketClientEvent.Connected(false));
            yield return new WaitForSeconds(reconnectDelaySeconds);
        }
    }
}

public void StartWebSocketConnection()
{
    if (reconnectCoroutine != null)
        StopCoroutine(reconnectCoroutine);

    reconnectCoroutine = StartCoroutine(ConnectAndRetryRoutine());
}

public void StopWebSocketReconnection()
{
    if (reconnectCoroutine != null)
    {
        StopCoroutine(reconnectCoroutine);
        reconnectCoroutine = null;
    }
}

private void StopServer()
{
    if (ws != null)
    {
        StopHeartbeat();
        ws.Close();
    }
}

private void StartServer()
{
    string address = "ws://localhost:3000";
    ws = new WebSocket(address);

    ws.OnMessage += (sender, e) =>
    {
        Debug.Log("Message from server: " + e.Data);

        try
        {
            var baseMsg = JsonConvert.DeserializeObject<WsMessage>(e.Data);
            switch (baseMsg.Type)
            {
                case "pong":
                    lastPongTime = DateTime.UtcNow;
                    break;

                default:
                    break;
            }
        }
        catch(Exception exc)
        {
            // Not a JSON message or doesn't match our format
            MainThreadDispatcher.Enqueue(() =>
            {
                Debug.Log(exc);
                Debug.Log("Message From Server: Not a JSON message or doesn't match our format.");
                Debug.Log(e.Data);
            });
        }
    };
}

////////////////////
// HEARTBEAT CLASSES
// This keep active connections open were normally a server would close it.
////////////////////
private void StartHeartbeat()
{
    lastPongTime = DateTime.UtcNow;
    heartbeatTimer = new Timer(heartbeatInterval * 5000); // 5 seconds
    heartbeatTimer.Elapsed += (s, e) =>
    {
        //Debug.Log("Sent ping to server.");
        var pingData = new WsMessage { Type = "ping" };
        string jsonData = JsonUtility.ToJson(pingData);
        ws.Send(jsonData);

        // Check for timeout
        if ((DateTime.UtcNow - lastPongTime).TotalSeconds > heartbeatTimeout)
        {
            Debug.LogWarning("Server did not respond to heartbeat, disconnecting...");
            ws.Close();
        }
    };

    heartbeatTimer.Start();
    //Debug.Log("Heartbeat Started");
}

private void StopHeartbeat()
{
    if (heartbeatTimer != null)
    {
        heartbeatTimer.Stop();
        heartbeatTimer.Dispose();
        heartbeatTimer = null;
    }
    //Debug.Log("Heartbeat Stopped");
}

//////////////
// REQUESTS //
//////////////
[System.Serializable]
public class WsMessage
{
    public string Type;
}

///////////////
// RESPONSES //
///////////////
[System.Serializable]
public class ErrorResponse : WsMessage
{
    public string Status;
    public string Message;
}
}

In theory, when you run the node app and then run the Unity game, the server should detect that a client has connected or disconnected. It will also maintain connection with the server as long as they are both running. If the server goes down, the Unity game will attempt to reconnect every 10 seconds until it succeeds.

I'm sure there are many other ways to do this so use it as an example. Not sure if its useful for anyone but enjoy.

Let me know what you make with it.

Cheers.


r/MultiplayerGameDevs • • 4d ago

Discussion Public vs private lobbies, what approach have you taken for your game, r/MultiplayerGameDevs?

0 Upvotes

I've just been working on the party/lobby/room system for my game/game engine and I realised there are (at least) two schools of thought:

  • Public lobby by default: Games like agar.io match you with strangers by default, and if you want to play with only your friends, you have to intentionally create a private room.

  • Private lobby by default: Games like Overcooked or Stardew Valley are singleplayer until you add other people into your game, effectively meaning they are a private lobby by default. When you're in the menu, there is a "Add Player" button in the corner indicating you can add people if you like, but it is out of the way and you can easily ignore it.

I had to pick one of these methods to be the default, and so for my game engine I've chosen "public lobby" as the default because that's the world I have come from. It interesting seeing the extra code required to make a "private lobby by default" game, and I can understand this design could seem like unnecessary complexity to someone who thinks "private" should be the default.

I'm sure there are other ways to look at this problem. I thought it'd be interesting to see what other r/MultiplayerGameDevs are doing with this.

How do lobbies/rooms/parties work in your game? What is the workflow that your player follows to play with their friends? Any interesting edge cases you had to handle, for example:

  • What happens when someone invites their friend but by the time they accept the invite, the lobby is full, or the game has started?

  • What happens when someone invites their friend but they are from a different server region?


r/MultiplayerGameDevs • • Dec 13 '25

What do you do to keep your servers safe and secure, r/MultiplayerGameDevs?

2 Upvotes

A remote code execution vulnerability was announced in React Server Components about a week and a half ago. It only applies if you are running React Server Components, for example in Next.JS, the most popular React framework. Those of you making webgames, did this affect you?

For those who don't know, React Server Components is quite interesting because you can have both server-side code and client-side code in the same file. You put "use server" at the top of your function to denote it should run on the server. React automatically generates the necessary client-to-server call, handling all serialization.

As a feature, it's been a bit controversial, not everyone likes the mix of privileged server-side code being inside client-side code. To me, it felt a big dangerous, even though it should be perfectly safe. Should be.

Turns out, there was an unchecked deserialzation, meaning hackers could run any code they liked through server functions mechanism, including being able to run command line applications. This massive vulnerability meant hackers could exfiltrate private data and secret keys at will through your server. Or they could automate a scanner to install crypto miners on compromised servers, which is what they did.

Some server owners found their servers compromised despite not using React Server Components themselves, as the open source website analytics tool Umami was built upon Next.JS.

With so much at stake, Cloudflare moved quickly to block the React2Shell vulnerability, as it is now known, but a bug caused them to instead take down a substantial portion of the internet for around 25 minutes, Cloudflare's second outage in a month. With approximately 20% of the world's internet traffic going through Cloudflare, every Cloudflare outage is a big deal. But, I guess technically the hackers can't get you if Cloudflare is down.

I thought this could be an interesting conversation starter for r/MultiplayerGameDevs. Were you affected by React2Shell recently? What is your experience with people trying hack into your servers? What do you do to keep your servers safe?


r/MultiplayerGameDevs • • 5d ago

Post a screenshot of you making your game, r/MultiplayerGameDevs

Post image
2 Upvotes

I took this screenshot by accident and then realised it might be a fascinating exercise to see what other people's desktops look like when they're making their game. So take a random screenshot of just anything you're working on and post it in the comments!


r/MultiplayerGameDevs • • Nov 27 '25

Multiplayer prototype for mobile

5 Upvotes

I am developing a mobile game featuring mechanics inspired by GunZ: The Duel. This is an early-stage prototype that I am currently building independently


r/MultiplayerGameDevs • • Dec 24 '25

Question Does anyone here make a living from multiplayer games or game server–related work?

9 Upvotes

Hey devs, does anyone here make a living from multiplayer games or game server–related work?
Hello everyone,
Just a reality check: is anyone here making a living from multiplayer games or multiplayer servers?
Just wondering.


r/MultiplayerGameDevs • • May 08 '26

No one explains this CRITICAL multiplayer Concept: AUTHORITY

Thumbnail
youtube.com
0 Upvotes

r/MultiplayerGameDevs • • Nov 19 '25

Question Is "don't use TCP for realtime games" an outdated rule of thumb?

Thumbnail reddit.com
3 Upvotes

r/MultiplayerGameDevs • • 25d ago

I built my own game server orchestration platform

7 Upvotes

As the title says, I got tired of how hard it is to host dedicated game servers for my multiplayer projects, so I built my own game server orchestration platform.

I’ve worked on a few multiplayer games, and it’s always the same story with server hosting and matchmaking: long waits to get the right setup, and a pile of details to sort out before anything works. All I want is to deploy my game server and playtest with other people within a few minutes.

So that’s what this does. You can deploy servers worldwide, match players, and rate their skill, all in one place, so you can spend your time on the game itself instead of the infrastructure.

I’m sharing it with the community to get feedback, and in case anyone’s looking for a hosting solution. I’d especially like to hear: what’s missing / what engines you’d want supported / etc.

Thanks! :)


r/MultiplayerGameDevs • • Jul 22 '26

Is Tcp good enough?

8 Upvotes

Do you guys think TCP is good enough now, considering that internet connections and NICs are much faster than they were decades ago? I don't want to implement my own reliable, in-order delivery on top of UDP for my RTS game.


r/MultiplayerGameDevs • • Dec 02 '25

Discussion Developing multiplayer games without a server. Does anyone else do this?

8 Upvotes

My game currently supports 4 different networking modes with plans for a 5th. All modes share the same interface and behave similarly, so they can be swapped instantly with a config change. They are:

  • Broadcast channel (browser)

  • WebSocket relay (server acts as a relay)

  • Memory transport

  • Websocket dedicated server (real server)

  • WebRTC (planned)

Why do I have so many networking modes? Half of it is obsession, and the other half is because I'm allergic to servers. It sounds crazy because my goal is to make a MMO for the browser! But let me explain:

  • I hate having to refresh both my webclient/server on code change.

  • I hate it when my client/server are running different versions (cache issues) and I spend time hunting down non-existent bugs.

  • I hate debugging servers

  • I hate comparing logs across two different windows

  • I hate deploying servers

  • I hate paying for servers

I do not want to have to deal with servers at the beginning, not until I'm closer to alpha launch. So I've structured my code such that the core client and server functionality does not have any external dependencies. I can call const server = new Server() on my client, or const client = new Client() on my server. They communicate through one of the network modes above. Each type behaves as a socket, can simulate lag and can support multiple connections.


Broadcast transport This is my favorite and most used transport type >90% of the time. Browsers have a Broadcast Channel which allows tabs to communicate with one another. It's meant for simple messages but I'm using it as my networking backbone.

By default, the first gameclient to run will always starts a server on Broadcast Channel. If I want multiplayer, I just open up more tabs/windows and they automatically connect to it!

Websocket Relay My second favorite mode. It still runs the server + client in the browser tab, but it uses a dedicated server to relay packets to other clients. This allows real devices over the internet to communicate directly with my browser tab. Since the Websocket is just a dumb relay server, it doesn't require any maintenance or code changes.

Memory Transport This used to be my main development mode where it passes messages through function calls while behaving like a socket. I built it because wanted to structure my game around multiplayer from day 1, but I didn't want to deal with servers yet. Broadcast API has replaced this for dev usage, but I still use this for server/client integration in my unit tests.

Dedicated socket server The above transports were never meant to replace dedicated servers so I need to make sure this works as well. One surprising fact is that I developed 2 years without once running a dedicated server, then integrated it cleanly within half a day.

WebRTC This one's still on my bucket list. The idea of being able to host a real networked server directly from my tab and letting anyone connect directly is something my brain can't let go off.


Although it sounds like a lot of effort, the benefits are 100% worth it to me.

  • Having my client+server together makes it painless to debug my code.

  • Both client/server instantly refresh together within 1s.

  • All logs can be viewed in the browser console and I can trace logs as they happened exactly in order.

  • For extremely hard to trace bugs, they can directly access each other's memory to do direct comparisons.

  • I can also use the browser Console to directly inspect server memory at runtime.

Ultimately, the best thing about this setup is that the only thing I need for development is my IDE + web browser.


r/MultiplayerGameDevs • • Nov 27 '25

Indie Horror Game Prototype - Added Sounds

0 Upvotes

r/MultiplayerGameDevs • • Nov 28 '25

Discussion Multiplayer game devs, how much are you doing to make your game deterministic?

22 Upvotes

When a game simulation is deterministic, it means it will produce the same state given the same sequence of inputs, on every device. Determinism can be hard to achieve, because it requires avoiding a few common sources of non-determinism, such as:

  • Random number generation: Must make sure to use the same seed with the same algorithm so it comes up with the same answer on every device

  • Floating point math: Sometimes cannot guarantee it is calculated the same way on every machine

  • SIMD or other instructions: Not every device supports SIMD, and so non-SIMD devices may take different paths and come up with different answers

  • Multi-threading: Could mean the order of execution is not predictable and therefore the results not predictable

  • Variable time steps: Different timesteps on different machines could mean different answers

  • Hash map iteration: Got some hash maps that you want to iterate through? The iteration order depends on their capacity, and capacity might have been affected by things only that client saw due to differences in client-side prediction.

Some forms of netcode require 100% determinism, whereas others don't at all. Others only need it in certain situations, for certain subsystems, or for certain subsets of devices.

Multiplayer devs, what is your situation? How much effort are you putting into determinism for your particular game? Is it even relevant for your game? Are you doing anything to check or verify determinism is working, and anything to correct situations where the determinism fails? How have you found it - has it been difficult, easy, and in what way?


r/MultiplayerGameDevs • • Aug 07 '26

warsky.io and low retention d1

Thumbnail
gallery
1 Upvotes

gamelink

Hello,

I previously shared my io game here. It was in the basic launch phase on the Crazygames platform. Unfortunately, it was rejected because it didn't meet the required metrics (share in the photo). My game's retention d1 metric was particularly low. Due to developer blindness, I have no idea how to improve it. I feel stuck. Could you share your thoughts on the game?


r/MultiplayerGameDevs • • 10d ago

What are the specs of the device you develop your games on, r/MultiplayerGameDevs?

1 Upvotes

What kind of device do you develop on, and what are its specs? CPU, RAM, what kind of GPU, how much storage, etc? How do you find it, is it powerful enough? Too powerful?

Thought this might be an interesting question for this sub.


r/MultiplayerGameDevs • • Jan 25 '26

I need help for multiplayer in my game: The Silly Squad

1 Upvotes

we are trying to get multiplayer working but it's just too hard and I need people to help dm in discord if u can help username: lerebbelz


r/MultiplayerGameDevs • • Nov 16 '25

Discussion MMO Architecture: Source of truth, Dataflows, I/O bottlenecks and how to solve them

Thumbnail
prdeving.wordpress.com
1 Upvotes

What about this article stands out to you? How does it compare to your experience?


r/MultiplayerGameDevs • • Apr 22 '26

Discussion What are your plans for your game after your servers shut down, r/MultiplayerGameDevs

Post image
7 Upvotes

A few days ago, Hytopia announced it was shutting down its servers for 1-3 months due to cash flow issues. Some of the people who made games on its platform complained about investing so much time and suddenly losing access to all their hard work.

This made me think about how common it is for multiplayer games to go down when there is no longer any money to keep the servers going. Has this happened to you for any games you have loved?

As a multiplayer game dev, is this something you think about? Have you made any plans for the potential future day when your servers shut down? Perhaps you have thought about:

  • Adding an offline mode so players can still enjoy some parts of the game after the servers have gone

  • Releasing the server binaries or code for other people to run servers

  • Or perhaps you don't need servers because one of your peers acts as a server

For me, I spent many many hours on an old MMORPG called Astonia 3. After it shut down, many years later the creator released all the code and assets, and eventually a few fan-made servers came online. But the original community are all gone now, all the characters that we grinded for are gone, and so there is a certain something which can never be replaced.


r/MultiplayerGameDevs • • Dec 03 '25

Discussion Writing your own engine

15 Upvotes

Y’all are beasts saying oh yeah wrote my own. Wild. How many years did it take you? How many more until you think there are diminishing returns on feature improvements in the sense that making more progress would require a paradigm shift, not incremental improvements to your custom engine? And finally, what are some bottlenecks that you can see already for multiplayer games that would seemingly require a paradigm shift to get past or view differently so it’s not a bottleneck anymore?

Bonus question: what is one thing your custom engine no one else has. Feel free to brag hardcore with nerdy stats to make others feel how optimal your framework is 😎


r/MultiplayerGameDevs • • Apr 01 '26

Discussion What do you do to mitigate platform risk, r/MultiplayerGameDevs?

Post image
9 Upvotes

Today I saw Stormgate multiplayer is going down because its provider, Hathora, has been acquired and is now shutting down its service for game companies. Multiplayer game devs, is this something you worry about happening to you? What are you doing to mitigate your platform risk, if anything?


r/MultiplayerGameDevs • • Dec 22 '25

After months of debugging networking code, my word game finally has real-time multiplayer

Thumbnail
apps.apple.com
2 Upvotes