开发者 Daniel Rhodes 宣布成功在经典 DOS 游戏《Wing Commander》中实现网络合作模式,这一成果标志着他从2015年10月开始的长达十年的逆向工程与开发工作最终完成 1。该项目不仅将游戏移植到浏览器环境中运行,还通过开源工具“lobbylink”和修改版 DOSBox,允许玩家利用房间码在线联机 1。截至2026年1月1日,该版本已正式发布并开放给公众使用 1。
在技术实现上,Rhodes 利用了 IDA 反汇编工具、Protobuf 网络协议以及 TCP Client/Server 架构进行底层开发 1。为了确定关键的游戏状态数据,他精确定位了内存地址,包括位于 13D3:A9C2 的玩家坐标、13D3:D248 的任务树以及 13D3:C280 的胜利计数器 1。此外,项目引入了基于 Golang 编写的 lobbylink 大厅系统来协调 P2P WebRTC 连接,并支持 TURN 凭证以穿透防火墙限制 1。
该项目的部署方案基于 Emscripten 编译的 DOSBox 版本,用户可以直接在浏览器中加载从 GOG 平台安装的《Wing Commander》游戏文件进行游玩 1。除了核心的多人联机功能外,开发者还实现了实时游戏内语音聊天,该功能是通过建立第二个独立的 WebRTC Peer Connection 来实现的 1。相关代码已开源至 GitHub 仓库 danielrh/wcmulti 和 danielrh/lobbylink,演示网站则位于 fireflyk64.github.io/dosbox/ 1。
Developer Daniel Rhodes has successfully implemented networked cooperative play for the classic DOS title Wing Commander after approximately eleven years of reverse engineering and development work 1. The project, which began exploration in October 2015 and reached its final release in 2026, allows users to play the game together online directly within a web browser 1. This achievement relies on porting the game to an Emscripten-compiled version of DOSBox, enabling it to load game files installed via GOG without requiring native executables 1.
The technical infrastructure behind this breakthrough involves a custom suite of tools rather than standard emulation features alone. Rhodes utilized IDA disassembly and DOSBox debugging commands such as MEMDUMPBIN to map critical memory addresses, identifying player coordinates at 13D3:A9C2, the mission tree at 13D3:D248, and the victory counter at 13D3:C280 1. To facilitate multiplayer connectivity, he developed "lobbylink," an open-source lobby system written in Go that coordinates Peer-to-Peer WebRTC connections using TURN credentials to penetrate firewalls 1. Additionally, real-time in-game voice chat is supported through a second WebRTC Peer Connection established alongside the game data link 1.
The project is now available to the public as open-source software, with code hosted on GitHub under the repositories danielrh/wcmulti and danielrh/lobbylink 1. Users can access a live demonstration of the browser-based experience at fireflyk64.github.io/dosbox/ 1. The implementation was tested in collaboration with the author’s brother, Patrick, ensuring functional co-op gameplay over the newly established network architecture 1.
评论
还没有评论,欢迎留下第一条。