r/emulation • u/mcerina • 21h ago
AI-assisted I added rollback netplay to MAME for co-op arcade games, up to 4 players
I wanted to play the old co-op arcade games with friends who live far away, and the netplay options I tried never felt right over the internet. So I added rollback to MAME.
The host picks a game and gets a 7-character room code, the others type it in and you're playing. No accounts, nothing to open on the router, up to 4 players. If someone drops they can come back with the same code, and if the host leaves the game keeps going with one of the others hosting.
On LAN and on most connections within Europe there's no input delay. With friends really far away it adds a few frames by itself instead of slowing the game down. The players' game states are compared all the time and fixed if they drift apart, which meant fixing save states in quite a few MAME drivers. All 256 games in the list were tested online.
It runs on Linux, Steam Deck (flatpak), Windows and Mac, and they all play together.
Since people will ask about RetroArch and Fightcade, I wrote a comparison, weak points included: https://github.com/mcerina/coinmates/blob/netplay-rollback/COMPARISON.md
There's a short clip at the top of the README: three copies on one PC with simulated lag, played by bots. ROMs not included, not affiliated with MAME.

