Oddballz Recomp
Oddballz Recomp is a native 64-bit Windows port of Oddballz that runs the original game natively with desktop mode and a breed editor.
- Type: PC port
- Game: Oddballz
- Runs on Windows
- By AdricCustoms
- Latest release v1.0.0, 2026-11-30
- Source: https://github.com/AdricCustoms/oddballz-recomp
README
Oddballz Recomp
A native 64-bit Windows rebuild of PF.Magic's Oddballz (1996), made by statically recompiling the original 16-bit Windows 3.1 game into C#. No emulator, no compatibility mode: it runs on Windows 10 and 11 like any modern program.

This project contains no Oddballz code, art or sound. The engine rebuilds the game from your own copy the first time it runs.
Features
- Plays the original game natively, including its own sounds (through a rewritten version of the 1996 WaveMix sound mixer).
- Desktop mode for today's Windows. The game's "Fullscreen" mode lets your Oddballz roam over your real desktop: clicks go through to your programs, and the pets stay on top.
- A launcher (
Oddballz.exe): play on any monitor, add, disable and reset breeds, and set options.- Sound on/off, volume, and keep playing in the background.
- Start in desktop mode, hide the web-address logo, show or hide the tips bar.
- Desktop-mode extras: pets pounce on desktop icons and carry them off, ride on windows you drag, and watch your cursor and windows opening and closing.
- A breed editor: a rotatable preview of every ball, textures from any picture, added balls and lines, info card and playpen hints, custom eggs from a picture, and other breeds' special tricks. Custom textures travel inside the breed file, so breeds can be shared.
Playing
- Download Oddballz Recomp.zip from the releases and unzip it anywhere.
- Start
Oddballz.exeand choose the folder where Oddballz is installed (the one withODDBALLZ.WAD). Your files are copied intoData\Game; the original folder is never changed. - The first start rebuilds the game from your copy (about 30 seconds). Then press Play Oddballz.
Made for Oddballz 1.0 for Windows 3.1/95; other versions may not work. The game may ask for its serial
number: it's on the CD sleeve, or in an old install's ODDBALLZ.INI (Serial Number=).
Making breeds
The breed editor guide walks through making Starhonk step by step, and its editor reference covers everything else.
Building from source
You need the .NET 9 SDK on Windows. Python 3 is only needed for the original research tools.
powershell -ExecutionPolicy Bypass -File make_release.ps1 -Out ..\release
That builds both downloads into ..\release:
- Oddballz Recomp:
Oddballz.exeplusData\Engine, and a.zipof it. - Oddballz Recomp source: this repository's files, and a
.zipof it.
The script checks that no game files slipped into either one.
Repository layout
| Path | What it is |
|---|---|
engine/ | The player-side engine: a C# port of the recompiler plus the C# compiler. OddballzGame.exe build <game folder> turns the player's ODDBALLZ.WAD into OddballzCode.dll + image.bin, then plays it. |
runtime/ | The Windows 3.1 that the recompiled game runs on: virtual CPU, memory, KERNEL/USER/GDI functions, desktop mode, the sound mixer (Sound.cs), player options (Options.cs) and the desktop-mode extras (World.cs). Compiled together with the generated code. |
launcher/ | Oddballz.exe: the launcher, set-up window, options and the breed editor (WPF). |
recomp.py, ne.py, x86.py | The original Python recompiler: NE reader, 16-bit x86 decoder, C# code generator. The engine's C# port gives byte-identical output. |
seeds_game.txt | Extra function and label addresses the automatic analysis misses. |
research/ | Research tools and notes, including BEHAVIOUR_NOTES.md (how the game's behaviour, breeds and desktop mode work). |
Guide/ | The breed editor guide. |
make_release.ps1 | Builds the two downloads. |
How the hard parts work
- Memory: 16-bit selector n lives at linear address n × 64K in one file mapping, so far pointers are plain constants. The game's WinG bitmaps are GDI DIB sections created directly over that memory.
- C++ exceptions: Borland's runtime unwinds by returning into the middle of another function. Every
retrecords where it returned to (Cpu.ra); every call site checks it and either jumps to its own catch label or returns to its caller. - Switches: Borland's value-table switches (16- and 32-bit case values) are recognised.
- Paths: the game always sees its folder as
C:\ODDBALLZ(Filesinruntime/Dos.cs), because its Windows 3.1 path buffers can't hold a long modern path. - Desktop mode: the 1996 game read the screen back and drew pets over a frozen picture of the desktop. Here the full-screen windows are layered windows: one palette colour the game never draws with becomes see-through, and the runtime hands Windows a 32-bit picture with that colour transparent.
- Sound: the game plays in-memory WAV files through WaveMix.
runtime/Sound.csdecodes them and mixes 8 channels into awaveOutstream on a background thread.
AI disclosure
This project was built with substantial help from AI. The recompiler, runtime, engine, launcher, breed editor, research notes and the breed editor guide were written by Claude (Anthropic's AI model, working through Claude Code), directed, reviewed and play-tested by AdricCustoms. The guide's screenshots were taken of the real editor while the sample breed was being built. Treat the code as you would any community project: read it before relying on it, and report problems as issues.
Legal
This project's own code and documentation are released under the MIT License. The license covers only this project, not Oddballz itself.
Oddballz is a trademark of its owners. This is an unofficial fan project, not affiliated with PF.Magic or its successors. It contains none of their code, art or sound, apart from the launcher's icon (a fan edit of the Oddballz egg icon) and the guide's screenshots of the editor. Breeds you make are built from the game's own data, so share them only with people who own the game.