wcmulti
Co-op multiplayer for the classic DOS game Wing Commander, built over more than a decade with his brother by reverse engineering the game's memory: locating variables, injecting calls into game functions, and syncing game state across the network so players can fly the story missions together. Playable in the browser; owners of the game drag in their own installer files, and players without it get an open-sourced DOS/3Dfx Vega Strike build with upscaled, AI-redone art. The TCP networking stack was ported to WebRTC with voice chat, with AI used to help compile for the browser.
What it addresses
The DOS version of Wing Commander had no co-op support; players could not fly the story missions together.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
wcmulti
Co-op multiplayer for the classic DOS game Wing Commander, built over more than a decade with his brother by reverse engineering the game's memory: locating variables, injecting calls into game functions, and syncing game state across the network so players can fly the story missions together. Playable in the browser; owners of the game drag in their own installer files, and players without it get an open-sourced DOS/3Dfx Vega Strike build with upscaled, AI-redone art. The TCP networking stack was ported to WebRTC with voice chat, with AI used to help compile for the browser.
Problem: The DOS version of Wing Commander had no co-op support; players could not fly the story missions together.
Audience: Players of the classic DOS Wing Commander who want to fly the story missions together in co-op
Posted by @daniel_rh · Original source ↗
Story title · @daniel_rh · · Source ↗
Show HN: After a decade of reversing, I got co-op working in DOS Wing Commander
Submitted URL · @daniel_rh · · Source ↗
https://fireflyk64.github.io/wcmulti/
Source text · @daniel_rh · · Source ↗
Over ten years my brother and I went through a set of experiments (stop and go, turn, communicate) while probing the memory. We uncovered where the variables were, how to inject calls into the game functions, and how to sync the gamestate across the network, so we can fly the story missions together.
Source text · @daniel_rh · · Source ↗
You can play it at https://fireflyk64.github.io/dosbox in browser. If you own Wing Commander, drag in the installer since no game files are hosted.
Source text · @daniel_rh · · Source ↗
If you don't, the page will load the original DOS/3Dfx version of Vega Strike, before I open sourced it. I upscaled and redid DOS Vega Strike art using AI, but it now has multiplayer and a similar feel.
Source text · @daniel_rh · · Source ↗
Disclosure: I also used AI for the final step to help compile for the browser and port our TCP networking stack to WebRTC with voice and solve a few lingering bugs.
Source text · @daniel_rh · · Source ↗
I'll be in the lobby for the next few hours if anyone wants to fly together.
Source text · @daniel_rh · · Source ↗
https://github.com/danielrh/wcmulti/tree/master/retrovega