Back to Research Notes

I rebuilt Baldies without its source code

I directed AI coding agents to rebuild Baldies, a 1995 god game, without its source code. The Windows desktop build reads all 100 original levels from an owned copy; a procedural edition runs on this site.

Kind
Result, measured by the author or the team (the AI agents the author directs)
Published
Filed under
Baldies remake

I wanted to know whether AI coding agents could rebuild an old game from the outside, so I picked my favorite game: Baldies.

I directed the team (the AI coding agents I direct) across two earlier prototypes and merged them into one Python and pygame-ce engine. The Windows desktop build reads all 100 original levels from a copy you own. It is not distributed, and no original game files are published here.

Baldies was made by Creative Edge Software of Edinburgh, founded by David Wightman (lead designer and programmer), with art by Alan Duncan, David Brown, and Paul Docherty. It shipped first on the Atari Jaguar CD in December 1995 from Atari Corporation, then on PC in November 1996 from Panasonic Interactive Media. You breed a tribe of bald workers, put them to work as builders, soldiers, and scientists, research inventions, and outwit the Hairies.

It isn’t sold on GOG or Steam today. On October 14, 2026, it had 341 votes on GOG’s Dreamlist.

What happened, by calendar date

These dates record calendar time from preserved file and commit timestamps, not total hours or days of effort:

  • October 7, 2026: The earliest preserved prototype file was recorded on this date.
  • October 8: I reviewed two separate playable prototypes, each built by directing a different AI coding tool.
  • October 9: The combined remake was completed at commit c37f1b5, and 7 issues (F1 through F7) found by an AI red team were fixed and rechecked at commit 01415d3.
  • October 11: The verification checks were re-run on a fresh clone of the repository.

Combining the two prototypes

There was no original source code to start from. One prototype wrote a new Python gameplay simulation from public specifications without decompiling the executable. The other decoded the 1996 level files and used a disassembler and source-linked Consumption Engine context to extract data tables (such as house capacities at offset 0x44390), while also exploring decompiled routines.

I directed the architecture, chose which parts of each prototype to keep, set the verification checks, and decided when the merge was done. The combined remake (c37f1b5) pairs the first prototype’s Python simulation with the second prototype’s level loader and extracted data tables.

Two-prototype merge architecture for the Baldies remake at commit c37f1b5 Prototype 1 contributed the public-spec Python simulation and procedural art; Prototype 2 contributed the 1996 binary level loader and disassembled data tables such as house capacities 10, 20, 30, 40, 50. They merge into build c37f1b5, powering both the private desktop engine and the public browser procedural edition. First prototype (public specifications) Wrote new Python simulation without decompiling Kept: 20 Hz game loop, Hand, 4 jobs, flags, AI Kept: project-made procedural art and UI Second prototype (binary & disassembler) Decoded 1996 level files & 1,280 tiles (16x16) Kept: disassembled tables via Consumption Engine house_capacities = [10, 20, 30, 40, 50] (0x44390) Not kept: separate decompiled-routine simulation Combined Remake Engine (commit c37f1b5, rechecked 01415d3) 334 pytest pass | 100 levels x 4 views (0 errors) | 8 saves | 3 x 3,000 fuzz Windows desktop build (private) Reads owned 1996 copy; not distributed Browser procedural edition (live) Generated levels, project art, live sliders
Lineage of the combined Baldies remake at commit c37f1b5. The first prototype's public-specification simulation was paired with the second prototype's level loader and disassembled data tables.
Component First Prototype Second Prototype Combined Remake (c37f1b5)
Gameplay simulation Written from public specifications without decompiling the executable Explored decompiled routines Kept from the first prototype
Level loader and tile decoding Procedural maps only Decoded the 1996 level files and 1,280 tiles (16x16) Kept from the second prototype
Data tables (such as house capacities) Specification-based defaults Extracted via disassembler and Consumption Engine context (10, 20, 30, 40, 50) Uses second prototype’s extracted table (10, 20, 30, 40, 50)
Art and interface Project-made procedural art and UI Read original asset files Desktop reads owned original assets; browser uses procedural art

What the files showed

From the case study:

  • The whole world is drawn from 1,280 tiles, each 16 by 16 pixels.
  • A level file is a grid of tile numbers, plus who starts where and what can be researched. The simulation rules lived only inside the executable.
  • There are 31 inventions. Each level has its own settings for the Hairy AI.
  • The original ran ten steps a second. The remake runs twenty. In the remake, a house holds 10 Baldies and grows to 20, 30, 40, and 50.

What was checked and where it breaks

On the Windows desktop build at commit c37f1b5 (re-verified October 11, 2026 on a fresh clone). These are my own runs, with no outside rerun logged as of October 24, 2026 Reported:

  • 334 automated tests pass in 34 seconds (pytest, Windows 11, Python 3.11.9, pygame-ce 2.5.7).
  • All 100 original campaign levels load across 4 views with 0 errors (slowest level load: 479 ms).
  • Save and continue resumed identically in all 8 tested situations; 6 corrupted saves left the game running with a message, and a deliberately malicious save was refused.
  • 9,000 random actions across three seeded 3,000-action fuzz runs caused 0 exceptions (headless 95th-percentile frame time: 11.4 to 11.9 ms).

Limits and scope boundaries:

  • The simulation rules are the new engine’s own tuning and have not been verified against the original executable’s exact formulas.
  • The game has been playtested by me only, with no outside playtest.
  • The browser edition and live rules bridge were built after the c37f1b5 desktop checks and were not benchmarked in them.
  • The full desktop engine and raw test logs are private; the desktop build requires an owned copy of the 1996 game and is not distributed.

Play the procedural edition

The browser edition on this site plays five generated worlds with levels and pixel art made for this project. It contains no original game files. On its case study page you can change walking speed, breeding speed, house capacity, Hairy aggression, and the cost of the Hand while the simulation runs.

Grass world, a generated level in project-made pixel art: a green meadow dotted with trees and rocks, with a red-roofed house and a few small figures.
Still image from the procedural edition's Grass world (generated level and project-made pixel art).

Why it matters

Once a game’s rules are plain code, they can be read, tested, and changed. Preservation comes first for me: great programs should not vanish when the machines they ran on do. The next question is whether this two-prototype method can recover the file formats and tables of other old programs without redistributing their original assets.