News for hackers. Stuff that matters.

Show HN: After a decade of reversing, I got co-op working in DOS Wing Commander

https://fireflyk64.github.io/wcmulti/

In 2015, I was playing the classic Wing Commander in DOSBox and suddenly realized the game state fit in the 64k data segment.

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 could fly the story missions together.

My favorite finding is that: the camera lives in entity slot 0x3D, which is possibly a "3D" reference by the original developers.

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. 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.

I'll be in the lobby for the next few hours if anyone wants to fly together.

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.

( 41 comments | on HN )
Re:Show HN: After a decade of reversing, I got co-op working... by daniel_rh on Wednesday November 04, 2026 @02:08PM (#50370118)
Author here: in 2015, I was playing the classic Wing Commander in DOSBox and suddenly realized the game state fit in the 64k data segment.

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.

My favorite finding is that the camera lives in entity slot 0x3D, which is possibly a "3D" reference by the original developers.

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. 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.

I'll be in the lobby for the next few hours if anyone wants to fly together.

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.

Re:Show HN: After a decade of reversing, I got co-op working... by frikk on Wednesday November 04, 2026 @03:47PM (#50371276)
helllllll yeah. i think it's awesome when domain experts and clever humans use AI to automate the implementation after they've designed the path through the forest. Nice work.
Re:Show HN: After a decade of reversing, I got co-op working... by daniel_rh on Wednesday November 04, 2026 @04:05PM (#50371512)
I definitely used AI to bring my old Vega Strike DOS game up to speed and make it work with the layout. Some of the art is better than the rest, but it did feel good to dust off the old dos game from the geocities era and write an equivalent "accelerator" in DOSBox, so that we could get 640x480 graphics in dos. The new Vega Strike is still being developed at https://www.vega-strike.org/

However, that original WC-only 8+ years of figuring out how the data segment was organized and how to call original functions was all by-hand hacking. It was indeed like cutting through a dark forest with no guide.

Re:Show HN: After a decade of reversing, I got co-op working... by cadr on Wednesday November 04, 2026 @04:02PM (#50371476)
I don't know if I'm more impressed with the result, or that you kept coming back to it for a decade. Super cool!
Re:Show HN: After a decade of reversing, I got co-op working... by genxy on Thursday November 05, 2026 @02:00AM (#50376032)
You write well.
Re:Show HN: After a decade of reversing, I got co-op working... by atakmim on Thursday November 05, 2026 @06:51AM (#50378062)
If you start today with AI assistance, how long will it take?
Re:Show HN: After a decade of reversing, I got co-op working... by daniel_rh on Friday November 06, 2026 @04:30AM (#50390163)
0 minutes because the entire 11 years this project has been open source on a dosbox branch; therefore, it has all been harvested in the training set, and it's a matter of requesting that the model reproduce the training set and replicate my and others' memory debugging adventures.
Re:Show HN: After a decade of reversing, I got co-op working... by atakmim on Friday November 06, 2026 @03:41PM (#50398204)
Reading my comment again, I realize it sounded not okay and even rude, sorry about that! I didn't want to say AI can just replace 8+ years of hard work and probing memory by hand. I'm curious what parts of the reverse engineering process can be faster with modern AI tools today? What parts still need 100% human logic and trial and error. Amazing job for not giving up on this for so long!
Re:Show HN: After a decade of reversing, I got co-op working... by spiritplumber on Thursday November 05, 2026 @08:05PM (#50386867)
HI DANIEL YOU'RE AWESOME <3 <3 <3

guess what me and kuprin who met on the privateer remake forum are a couple, and i got citizenship <3

miss you!

Re:Show HN: After a decade of reversing, I got co-op working... by n0th3rwcf4n2026 on Friday November 06, 2026 @04:40AM (#50390241)
Hey spiritplumber, that's a nick I have not seen in many years! Are you still working on any of the old models from back during the vegastrike era? I remember you prolificly produced a ton of wing commander models, I think at least some had gotten used in other projects, but then vegastrike 0.5 changed a bunch of formatting?

Anyways just wanted to say I appreciated all the work you did and thought it was cool to randomly run across you here!

Re:Show HN: After a decade of reversing, I got co-op working... by spiritplumber on Saturday November 07, 2026 @12:25PM (#50406278)
hi! did you see the new priv remake? (i wasn't in it) they saw WCU and basically ran with it

what i DID do is a bunch of accurate wing commander 1 and privateer ships for Space Engineers, just yoink them on the steam workshop :)

Re:Show HN: After a decade of reversing, I got co-op working... by AmazingEveryDay on Wednesday November 04, 2026 @05:58PM (#50372638)
It's just hard to trust Go again after the multipath tcp debacle.
Re:Show HN: After a decade of reversing, I got co-op working... by daniel_rh on Wednesday November 04, 2026 @06:02PM (#50372670)
I can port https://github.com/danielrh/lobbylink to rust if that's helpful.... probably would have the same external interface.
Re:Show HN: After a decade of reversing, I got co-op working... by terminalcommand on Thursday November 05, 2026 @05:40AM (#50377568)
That was a linux kernel bug, nothing to do with Go.
Re:Show HN: After a decade of reversing, I got co-op working... by abrookewood on Wednesday November 04, 2026 @06:00PM (#50372650)
Really cool write up - thanks for sharing.
Re:Show HN: After a decade of reversing, I got co-op working... by ShakataGaNai on Wednesday November 04, 2026 @06:07PM (#50372716)
Oh man. Blast from the past. I loved wing commander back in the day.
Re:Show HN: After a decade of reversing, I got co-op working... by Tepix on Wednesday November 04, 2026 @06:23PM (#50372848)
Neat! You're using the data channel for voice? why not the rtc stream?
Re:Show HN: After a decade of reversing, I got co-op working... by daniel_rh on Wednesday November 04, 2026 @06:32PM (#50372924)
Thanks for the feedback! I'll have a look. I do worry about congestion coupling since it would mean a bursty voice stream could affect game packets. Keeping it on a different stream allows game data priority over voice.
Re:Show HN: After a decade of reversing, I got co-op working... by JeppyG on Wednesday November 04, 2026 @06:28PM (#50372890)
Incredible. Honestly tweaking old games is one of my favorite things to do with AI. I've been having a huge go at Captain Claw, one of my favorite games from childhood. Thanks for sharing this. :)
Re:Show HN: After a decade of reversing, I got co-op working... by EmX_3000 on Wednesday November 04, 2026 @08:34PM (#50373926)
This reminds me of how I used to cheat at certain games back in the 8-bit olden days. You could change one thing at a time, save, then look through and see what changed on the disk. Eventually you could identify all the locations that held the values for inventory, stats, location, quest stages, NPC state, and so on. All you had to do after that was change those locations and - hopefully - you're all powered up. Among people my age this is the usual way you'd get started with something resembling hacking. It seems like the author is doing the same type of thing.
Re:Show HN: After a decade of reversing, I got co-op working... by daniel_rh on Wednesday November 04, 2026 @08:37PM (#50373954)
Yes! I remember finding out which integer was the money in my Sim City save. And I remember when I figured out the build order list for Star Trek: Armada 2 and fixed the Borg AI to be so formidable that we'd have to play the First Contact sound track at full blast to even have a chance of winning against 3 Borg players.
Re:Show HN: After a decade of reversing, I got co-op working... by EmX_3000 on Wednesday November 04, 2026 @08:43PM (#50374001)
By later times it seems this was tougher, I remember trying it with Ultima IX and utterly failing to locate a single relevant memory location after a solid week.
Re:Show HN: After a decade of reversing, I got co-op working... by daniel_rh on Wednesday November 04, 2026 @08:50PM (#50374054)
Ya especially with DRM or multiplayer lockdown measures.

But there is still a revolution where most game files are JSON or plain text (like that build list from Star Trek Armada 2).

Re:Show HN: After a decade of reversing, I got co-op working... by EmX_3000 on Wednesday November 04, 2026 @11:49PM (#50375325)
Dwarf Fortress is like this too, in fact much of the game can be modded from such files. I like that, but I do understand the frustrations of the developer who not only saw their games cracked but also trained back in the day. It presaged what was to come heh.
Re:Show HN: After a decade of reversing, I got co-op working... by adzm on Thursday November 05, 2026 @08:27AM (#50378814)
Not sure what game's save file it was, but I remember learning about big vs little endian this way. And before that, why I would suddenly get negative money if I made it too big!
Re:Show HN: After a decade of reversing, I got co-op working... by photios on Thursday November 05, 2026 @12:56AM (#50375702)
> With the WozMon you could even find the locations in memory

Never heard of WozMon before. I was a happy Game Wizard user :D

https://web.archive.org/web/19970119194137/http://www.gwiz.c...

Re:Show HN: After a decade of reversing, I got co-op working... by asdff on Thursday November 05, 2026 @02:01AM (#50376036)
The arms race honestly was so foolish. The era being discussed especially being pre achievements, pre internet in a lot of ways as we know it. So what if someone cheats in a ps2 game. Doesn’t hurt anyone.

And then you have to figure the devs realize you can do this and reverse engineer the entire game anyhow. Why even obfuscate it is the real question. Makes their workflow a little more awkward potentially and doesn’t do the intended thing.

I blame the nontechnical C suite. They don’t understand what I just wrote. So to them, this instead makes perfect sense. Lock it down, never mind why or if the lock works, just lock it and tell me its done. Command comes from upon high and so marches the industry and the hackers after them.

Re:Show HN: After a decade of reversing, I got co-op working... by smolder on Thursday November 05, 2026 @09:02AM (#50379181)
Back in the early days of video games, it was rare for people to actually beat one. The difficulty was inflated to create long term interest. You didn't just play things from start to finish and watch cinematics while pressing a button occasionally. Playing a game was about mastering it.

So, to game developers in the less-early-but-still-early days, letting people cheat their way through even a single player game was a danger in that it took away the prestige of actually succeeding by normal means. It was a shameful thing to do despite the triviality. To them, getting a high score or completing a game was serious business, and cheating deserved countermeasures. Nowadays people openly cheat in competitive games where it DOES impact other people, with no remorse. I would prefer the extreme where all cheating is treated like crime over people being proud of their ability to install an aimbot.

Re:Show HN: After a decade of reversing, I got co-op working... by t3r on Thursday November 05, 2026 @04:49AM (#50377239)
Wow, thanks for the fascinating bit of history! Sharing memory addresses through computer magazines sounds like a paper-based BBS, haha. I guess I'm just a Cheat Engine kid, though
Re:Show HN: After a decade of reversing, I got co-op working... by InsidiousWombat on Thursday November 05, 2026 @05:46AM (#50377620)
I remember how VtM: Bloodlines went as much as write entire voice acted lines for tutorial NPC making fun of you if you cheated in character creation.

That was, mind you, in game released prematurely with ton of bugs. They found time for that.

How I know that ? I didn't cheat knowingly. I just used the editor, couldn't make up my mind and I was going between the steps once or twice. I thought I forgot to spend some skill points, turned out when you went back to the skills screen, the ones you picked stayed but the game gave you new set of points to spend

They found the time for cheater heckling but not to make their character creator work right ;)

Re:Show HN: After a decade of reversing, I got co-op working... by vidarh on Thursday November 05, 2026 @11:13AM (#50380939)
On some platforms, like the Commodore 64, this to some extent became automated with freezer cartridges: Press a "freeze" button, pick a menu option, then re-enter the game, lose a life, and press the freeze button again, and it'd look for likely locations in memory based on what had changed and presumably some heuristics.
Re:Show HN: After a decade of reversing, I got co-op working... by dond1986 on Thursday November 05, 2026 @02:16AM (#50376135)
Could this approach be used to make a similar game? It looks like a lot of fun—thanks for sharing!
Re:Show HN: After a decade of reversing, I got co-op working... by daniel_rh on Thursday November 05, 2026 @02:23AM (#50376173)
I think we could target both Privateer (have it so that when your ship shows up at the same nav point as another you spawn the other player) or the x-wing and tie-fighter series.

One problem I'm noticing is that people are much more interested in one-click play (which means using the Open Source RetroVega space game, which I checked in at https://github.com/danielrh/wcmulti/tree/master/retrovega ) rather than going through the trouble to dig up the installer and get the full year 1990 retro experience with Wing Commander. I worry that making older games work is not worth the time it takes if no one tries it.

Re:Show HN: After a decade of reversing, I got co-op working... by herodoturtle on Thursday November 05, 2026 @03:21AM (#50376583)
These are the sorts of posts I come to Hacker News for.

What a brilliantly fun project to share with the world. Thank you to the authors.

Re:Show HN: After a decade of reversing, I got co-op working... by alexandrustanci on Thursday November 05, 2026 @04:33AM (#50377118)
cool. thanks for sharing
Re:Show HN: After a decade of reversing, I got co-op working... by harry_F on Thursday November 05, 2026 @05:27AM (#50377484)
I did a similar approach but completely without DOSBOX to get native ARM64 binaries on a Mac (using SDL3) or WASM (using canvas + HTML Audio): https://github.com/haraldF/wc-decomp - multiplayer is still very basic, though.
Re:Show HN: After a decade of reversing, I got co-op working... by daniel_rh on Thursday November 05, 2026 @03:29PM (#50384057)
I love what you've done. I see your multiplayer is on a lan with UDP. Would you mind looking into lobbylink ? Lobbylink uses webRTC to punch through firewalls and send both reliable and unreliable packets. It works with nearly every language on every platform. The server side is completely game-independent and feel free to use the same server I do for your game lobby if you want. If you need help getting started you can file an issue at https://github.com/danielrh/lobbylink or direct message me
Re:Show HN: After a decade of reversing, I got co-op working... by InsidiousWombat on Thursday November 05, 2026 @05:41AM (#50377583)
I think you could just point cheatEngine on dosbox process for finding the changed regions. Tho that has problem of not finding the offset from actual memory start, but once you have it you can just compare it to dump
Re:Show HN: After a decade of reversing, I got co-op working... by nnnlog on Thursday November 05, 2026 @06:28AM (#50377896)
Wow, that's amazing.
Re:Show HN: After a decade of reversing, I got co-op working... by xjlin0 on Thursday November 05, 2026 @07:15PM (#50386464)
Hmmm, wait, what? And why Tanaka Mariko die?
Re:Show HN: After a decade of reversing, I got co-op working... by joeadler on Monday November 09, 2026 @03:12PM (#50431265)
OMG, this brings back memories. So cool! Thanks for all the work you put in!