Anime, manga, and games, with a take · A Yukimedia publication

Two Brothers Finish 11-Year Wing Commander Co-Op Project

Daniel Horn and Patrick Horn, brothers who wanted to fly separate ships in the DOS version of Wing Commander as children, have released Wing Commander Together after 11 years of reverse engineering.

Reporting from 1 source: GIGAZINE.

Why it matters

The brothers' method, reading a game's live memory and hijacking its own functions through a dead string, is a working template for adding multiplayer to DOS games that never had it.

Two Brothers Finish 11-Year Wing Commander Co-Op Project

Key Facts

  • Daniel Horn and Patrick Horn began the Wing Commander Together project on October 4, 2015.
  • The brothers identified the player's ship position at memory address 13D3:A9C2 and velocity at CAE2.
  • A trampoline at 13D3:0187 overwrites the unused string "Loading WING COMMANDER" to call game functions such as fireAllGuns().
  • A TCP client and server using protobuf messages was built in August 2017 to sync ship positions and events each frame.
  • The project is documented at fireflyk64.github.io/wcmulti/.

The project began on October 4, 2015, when they realized the game's full memory footprint might fit inside DOS's 640KB of RAM. They found the ship's position at 13D3:A9C2 and velocity at CAE2, then built a TCP protocol to sync two players.

The brothers located the player's ship position at 13D3:A9C2 and velocity at CAE2 by comparing memory snapshots taken before and after movement in empty space, then cross-checking against the chase camera. Direction vectors followed: right at AEB6, up at B1B6, forward at B4B6. The game keeps entity properties in 64 slots, with the camera at 0x3D and temporary variables at 0x3F.

Simple memory writes could not fire weapons, so the project moved to calling the game's own functions. A trampoline at 13D3:0187 overwrites the unused string "Loading WING COMMANDER" with instructions, which lets the game call routines such as fireAllGuns(). A TCP client and server using protobuf messages, built in August 2017, sends ship positions, firing events, destruction and damage each frame.

Written with AI by Yomimono from the 1 cited source below, including Japanese-language reporting where cited. See our editorial policy.

Add Yomimono as a preferred source on Google

Sources