Worms 3D Decomp
Worms 3D Decomp is a native macOS port of Worms 3D that allows playing the game with recovered code.
- Type: PC port
- Game: Worms 3D
- Runs on macOS
- By EstebanPdN
- Latest release macos-preview-01, 2026-11-25
- Source: https://github.com/EstebanPdN/worms-3d-decomp
- Website: https://estebanpdn.github.io/worms-3d-decomp/
README
Worms 3D Decomp
I started recovering the European GameCube version of Worms 3D so I could bring it to New Nintendo 3DS. This is my recovery work, the function tracker I used along the way, and my native Apple Silicon port. Both ports read game data from your own disc.
Explore the function map · Download the Mac app · Worms 3DS
This project was developed with the help of OpenAI Codex and Claude Code. Learn more about the development process here.
How much have I recovered?
17,214 functions covering 3,017,696 of 3,523,296 instruction bytes (85.64980064%) for disc ID GWMP8P, revision 0. My ledger counts a function once its linked instructions match the reference build. The denominator is the size of all nonempty text sections in the original DOL, including the startup section. A short function contributes fewer bytes than a long one. Data, textures, levels, music, scripts, and playability are outside this percentage.
| Source recorded in my ledger | Functions | Exact instruction bytes |
|---|---|---|
| My project's matching units, including generated families and automatic decompilation | 16,719 | 2,928,436 |
| Lua runtime and library build variants | 383 | 67,016 |
| Public Lua, newlib and zlib sources matched directly | 112 | 22,244 |
| All admitted units | 17,214 | 3,017,696 |
The first row covers 83.11637739% of the original text. It identifies where the matching implementation lives. It includes 7,722 functions in the generated-family directory and 1,811 in the automatic decompilation directory. I use those figures to track the work on my project. The records do not measure how many bytes I typed by hand. The original game and the libraries retain their own authorship.
You can check every recorded address, length and SHA-256 against your own disc. The verifier rejects overlaps and recomputes the denominator from the DOL header. This repeats the accounting and the disc comparison. The historical PowerPC compiler and per-unit ELF evidence used to admit a match are separate from the native Mac build.
python3 tools/verify_progress.py "/path/to/GWMP8P/sys/main.dol"
Run on macOS
- Use an Apple Silicon Mac with macOS 27 or later and a Metal-capable display environment. Install SDL3 with Apple Silicon Homebrew using
brew install sdl3. The executable loads SDL3 from/opt/homebrew/opt/sdl3/lib/libSDL3.0.dylib. - Extract your own European GameCube disc into a folder. Using nodtool, run
nodtool extract "Worms 3D.rvz" "GWMP8P". The same command accepts a clean GameCube ISO. Keep the fullfiles/andsys/directories together. The expected SHA-256 ofsys/main.dolisbb1b36b9bbb806688e616208254907ae2af59d2e191ff839b3a046a6c2c6f514. - Download and unzip Worms-3D-macOS-arm64.zip. Open Worms 3D.app and select the extracted folder. To pass it on launch, use the command below. The preview is ad-hoc signed. macOS may ask you to approve opening a downloaded app in Privacy & Security.
open -a "./Worms 3D.app" --args "$PWD/GWMP8P"
Press Return at the title. Use the arrow keys to navigate, Space for A and left Shift for B. Click the lower screen for touch controls. On a controller the right face button is A and the lower face button is B. Save data lives under ~/Library/Application Support/Worms3D/.
I tested this preview on macOS 27.0.1 with SDL 3.4.18, using a fresh RVZ extraction. I reached the title screen, opened the main menu and started a Quick Start match with terrain, two teams and the lower-screen radar. Other modes and a complete match remain untested in this release.
Build the Mac app
I used Apple Clang on Apple Silicon, Python 3, zsh and Homebrew SDL3. Install the Xcode command-line tools and select an SDK that supports macOS 27. The build compiles the recovered units as native arm64 code, emits LLVM IR for the linker, then links the platform code against SDL3 and Metal. Allow several GB of temporary space.
git clone https://github.com/EstebanPdN/worms-3d-decomp.git
cd worms-3d-decomp
brew install sdl3
python3 tools/verify_progress.py "/path/to/GWMP8P/sys/main.dol"
zsh port/build.sh "/path/to/GWMP8P"
zsh port/package-macos.sh
open -a "./port/build/Worms 3D.app" --args "/path/to/GWMP8P"
The default output directory is port/build/. The app includes my port code and twelve interface graphics drawn for the port. It reads original textures, scripts, levels, audio and DOL data from your extracted folder. I left the optional Ultimate Mayhem asset packs out of this preview.
Where to find the code
- Matching source and unit definitions contain the C/C++ implementations, reference entry points and per-unit settings.
- Recovery ledger and reference linker scripts record the function identities, lengths, instruction hashes and placements. Historical
build/lua-*-sourcenames in the ledger refer to intermediate Lua builds. The upstream Lua distribution and the converted native sources are in source/vendor and port/core/lua. - Native core, platform layer and conversion and linking tools build the Mac version. Some unmatched routines still use mechanically translated C++ or stubs. They do not increase the exact-match total.
- Tracker source and public data are the HTML, JavaScript, styles and function map served by GitHub Pages. My original tracker pipeline builds the map from private reference-build receipts. The published snapshot runs directly from GitHub. To run the site locally, use
python3 -m http.server 8000 --directory docsand openhttp://localhost:8000/.
Credits
I recovered and organized the matching units, built the tracker and developed the native ports. Team17 developed Worms 3D. The game, artwork, audio and trademarks belong to their respective rights holders.
Lua, zlib, newlib, STLport and the GCC STL contributors wrote the libraries used in this work. Their copyright notices, license terms and source provenance are retained with the vendor sources. SDL3 is provided separately by the SDL project. I used Ghidra for function discovery and REA for instruction analysis. Nunito and Lilita One carry their respective SIL Open Font License notices in the tracker assets.