Research preview

King's Valley, measured from the cartridge

An open-source C# reconstruction of Konami's 1985 MSX game. The rooms, sprites and audio are extracted from a cartridge you own, and the gameplay rules are rebuilt from what the original code actually does — not from a description of it.

Download the preview View source

King's Valley I reconstruction - native extraction, room viewer and gameplay lab

What this is not: a finished game. Extraction, the room viewer and most gameplay rules work and are validated; the full campaign, part of the presentation and the expanded disk editor are still in progress.

Two editions, two different games

The 1985 cartridge and the 1988 disk collection are separate campaigns. They are not the same game with extra stages, and the project treats them separately.

Original cartridge

Konami RC727 · 1985 · 16 KiB

15 pyramids, no level editor. Structural extraction and a desktop room viewer for four inventoried cartridge hashes.

Expanded disk

Konami Game Collection Vol. 1 · 1988

60 levels, 95 rooms and a native level editor, also known as King's Valley Plus. Extraction and managed gameplay for all 60 pyramids; the editor is unfinished.

What works today

Everything below is implemented and compared against the cartridge's own routines.

Extraction

Six catalog identities by size and hash. Title, rooms, sprite patterns, font and native audio are extracted, validated and cached outside the repository. The input file is never modified.

Room viewer

Native 256×192 data, integer point scaling and ten pixels of padding in a 256×212 frame. Terrain, stairs and item layers stay separate, so hiding a gem is a rendering change.

Gameplay lab

Fractional walking, stairs, jumping, gems, pickaxe, knife, five mummy types, death and linked exits — each with recorded evidence and update counts.

Running on native data

Captured from the application, not from an emulator. Rooms, sprites and the HUD come from the cartridge bytes; the movement and the mummies come from the measured routines.

Pyramid 01 in the player lab with animated mummies, gems and the score HUD
Pyramid 01 in the player lab. The mummies and mechanisms animate with their native logic.

Evidence, not guesses

The project keeps the numbers. Controlled runs are compared against the original routines in the MiniMsx core, and every claim below comes from one of those runs.

88room backgrounds rebuilt from the native bytes
342kmummy AI updates compared
68,400expanded-disk player updates
6catalog identities recognized

Full tables and the methodology are in docs/.

How it is built

  1. Identify

    Compute SHA-1/SHA-256, check size and match one of six catalog entries before touching anything.

  2. Extract

    Assemble rooms and native audio with manifests and output hashes. A failed generation never replaces a working one.

  3. Compare

    Run controlled scenarios against the cartridge routines and record the update counts as evidence.

Download and run

Release packages are built by GitHub Actions for Windows, Linux and macOS (Intel and Apple silicon), self-contained. You still need your own supported cartridge or disk image.

Or build from source:

git clone --recursive https://github.com/wagenheimer/kings-valley-1.git
cd kings-valley-1
dotnet build KingsValley1.slnx

# identify an image without extracting anything
dotnet run --project tools/KingsValley1.Tool -- inspect /path/to/cartridge.rom

Frequently asked questions

Is this a finished remake?

No. It is a research preview with a working extraction pipeline, room viewer and a measured gameplay lab. The full campaign is not playable end to end yet.

Do I need to own the cartridge?

Yes. The repository ships no ROM, no extracted graphics, no room dumps and no audio. You supply a supported image and everything is prepared locally on your machine.

Does it work without an MSX or an emulator?

Yes. Extraction and the viewer are implemented in C#; no emulator, BIOS or MSX hardware is required. The MiniMsx core is only used as an internal comparison reference.

Which editions are supported?

The 1985 RC727 cartridge (15 pyramids) and the 1988 Konami Game Collection Vol. 1 disk (60 levels, 95 rooms). They are separate campaigns; see the ROM guide in the repository.

How is the reconstruction validated?

Controlled runs are compared against the cartridge's own routines in the MiniMsx core, and the evidence is recorded as update counts: 88 room backgrounds rebuilt from the native bytes and checked against the cartridge rendering, 342,000 mummy AI updates, 68,400 expanded-disk player updates and more.

Is the source code open source?

Yes. The original code, documentation and tooling are MIT licensed. Konami's game content is not included and is not covered by that license.