Commander Genius
Commander Genius emulates Commander Keen. It reads 100 files, none of them required: it starts games without them.
About this profile
Install this emulator's files
With Batocera, RetroBat, KNULLI or RetroPie: the installer finds Batocera, RetroBat, KNULLI or RetroPie and its BIOS folder, then downloads only the files Commander Genius reads there and checks each one.
Open Start. Type PowerShell, press Enter. Click Copy. Right-click to paste. Press Enter.
&([scriptblock]::Create((irm https://abdess.github.io/retrobios/i.ps1))) --emulator cgeniusOpen a terminal on the device. Or connect from a computer with SSH, a terminal over the network. Paste the line. Press Enter.
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator cgeniusTechnical notes
Reimplementation of the Commander Keen engines: Vorticon (Keen 1 to 3), Galaxy (Keen 4 to 6) and Keen Dreams. It reads the data files of the DOS releases and the DOS executable itself, from which it extracts tables, texts and compressed headers.
Game detection. The launcher scans its root and every folder up to two
levels under games/ for .exe and .lua files (src/,
src/, 64-78). A file name containing
keenN.exe, keenNe.exe, keenN.lua or kNdemo.exe (N from 1 to 6) or kdreams
makes the folder a game (src/). Folder names
are free. The paths below use the folder names of the packages the project
publishes for its in-app downloader, which unpacks under games/
(src/). File lookups are case-insensitive.
Executable. readKeenExeData tries keenN.exe, keenNe.exe, kNdemo.exe, then
kdreams.exe (src/), unpacks LZEXE or PKLITE
compression (src/) and derives the version from
the size of the unpacked image, never from a hash
(src/):
Keen 1 100274 v1.1, 100484 v1.31, 100132 v1.34
Keen 2 118626 v1.0, 118672 v1.31
Keen 3 127598 v1.0, 127616 v1.31
Keen 4 258064 v1.0, 259232 v1.1, 263488 v1.4
Keen 5 262176 v1.0, 266096 v1.4
Keen 6 236112 v1.0 (the demo executable), 271696 v1.4, 270896 v1.5
Dreams 213536
The version selects the offsets used to read data out of the image. Tile
properties are known for Keen 1 v1.1, v1.31, v1.34, Keen 2 and 3 v1.0 and
v1.31, Keen 4 and 5 v1.4, Keen 6 v1.4 and v1.5, Keen Dreams and the Keen 6
demo (src/). The constructor also holds a
support map keyed by the same sizes (src/fileio/CExeFile.cpp:29-50). Its
result and the CRC comparison of getEXECrc are stored in the launcher entry
and read nowhere else (src/).
Vorticon episodes open egahead, egalatch and egasprit, one levelNN file per
map (80 is the world map, 81 the ending map, 90 the title map, and the other
numbers come from the world map data) and finale.ckN. Episode 1 also reads
its story, help and ending texts, its sounds and its preview screens from
files, while episodes 2 and 3 take texts and sounds from the executable
(src/,
src/,
src/). A sounds.ckN file, when
present, replaces the embedded sounds. Without the three EGA files or a
level file nothing is drawn or the map load fails. The text, finale, sound
and preview files are skipped when absent. High scores are kept in the
engine's own highscoreepN.dat, SCORES.CKN is not read
(src/).
Galaxy episodes open EGAGRAPH, GAMEMAPS and AUDIO. A missing EGAGRAPH ends
the load (src/). The graphics and
audio dictionaries, EGAHEAD, AUDIOHED and MAPHEAD come from the executable;
a file named egahead.ckN, egadict.ckN, audiohed.ckN, audiodct.ckN or
maphead.ckN in the game folder takes precedence when present, which is how
mods replace them (src/fileio/KeenFiles.h:41-48,
src/, 706-742,
src/, 389-411,
src/). The Keen 6 demo
uses its own offsets (src/,
src/).
Keen Dreams runs on an embedded Reflection Keen build for the EGA releases
(src/). The engine extracts nine tables
from KDREAMS.EXE at the offsets of shareware v1.13
(src/, 226-283, 438) and opens
KDREAMS.EGA, KDREAMS.MAP and KDREAMS.AUD, quitting when one is missing.
The same file lists a size and CRC-32 for each file of that release
(src/), but the routine that compared
them is commented out (src/), so
nothing is verified. LAST.SHL is in that list and is never opened.
A .pat file in the game folder can rename the header and map files and
patch the image (src/,
src/). Optional replacement graphics, sounds
and music (gfx/, snd/, music/, songlist.lst) and Lua scripts are looked up
in the game folder, some also in the bundled global/ folder
(GsKit/).
Cosmo's Cosmic Adventure is handled by a separate submodule compiled only
with BUILD_COSMOS, off by default (src/engine/CMakeLists.txt:3).
100 files: 0 required, 100 optional.
By kind: 100 game data.
In this collection: 44 in repo, 53 missing and 3 unsourceable.
Game data
Section titled “Game data”| File | Status | Hash |
|---|---|---|
keen1.exeKeen 1 executable, read for tables, texts and tile properties
Source
| optional in repo game data | - |
egahead.ck1Keen 1 EGA graphics header
Source | optional in repo game data | - |
egalatch.ck1Keen 1 tiles, fonts and bitmaps
Source | optional in repo game data | - |
| optional in repo game data | - | |
| optional in repo game data | - | |
| optional in repo game data | - | |
| optional in repo game data | - | |
| optional in repo game data | - | |
| optional in repo game data | - | |
| optional in repo game data | - | |
| optional in repo game data | - | |
| optional in repo game data | - | |
| optional in repo game data | - | |
| optional in repo game data | - | |
| optional in repo game data | - | |
| optional in repo game data | - | |
| optional in repo game data | - | |
| optional in repo game data | - | |
| optional in repo game data | - | |
| optional in repo game data | - | |
| optional in repo game data | - | |
| optional in repo game data | - | |
| optional in repo game data | - | |
finale.ck1Keen 1 ending picture
| optional in repo game data | - |
sounds.ck1Keen 1 PC speaker sounds
Source | optional in repo game data | - |
storytxt.ck1Keen 1 story text
Source | optional in repo game data | - |
helptext.ck1Keen 1 help text
Source | optional in repo game data | - |
| optional in repo game data | - | |
previews.ck1Keen 1 previews text, enables the Previews menu entry
| optional in repo game data | - |
preview2.ck1Keen 1 preview screen 2
Source | optional in repo game data | - |
preview3.ck1Keen 1 preview screen 3
Source | optional in repo game data | - |
keen2.exeKeen 2 executable, read for tables, texts and tile properties
Source
| optional missing game data | - |
| optional missing game data | - | |
egalatch.ck2Keen 2 tiles, fonts and bitmaps
Source | optional missing game data | - |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
keen3.exeKeen 3 executable, read for tables, texts and tile properties
Source
| optional missing game data | - |
| optional missing game data | - | |
egalatch.ck3Keen 3 tiles, fonts and bitmaps
Source | optional missing game data | - |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
keen4e.exeKeen 4 executable, read for dictionaries, headers, texts and tile properties
Source
| optional in repo game data | - |
egagraph.ck4Keen 4 EGA graphics
Source | optional in repo game data | - |
gamemaps.ck4Keen 4 level maps
| optional in repo game data | - |
audio.ck4Keen 4 sounds and music
| optional in repo game data | - |
keen5e.exeKeen 5 executable, read for dictionaries, headers, texts and tile properties
Source
| optional missing game data | - |
| optional missing game data | - | |
| optional missing game data | - | |
| optional missing game data | - | |
keen6e.exeKeen 6 executable, read for dictionaries, headers, texts and tile properties
Source
| optional missing game data | - |
egagraph.ck6Keen 6 EGA graphics
Source | optional unsourceable game data | - |
gamemaps.ck6Keen 6 level maps
| optional unsourceable game data | - |
audio.ck6Keen 6 sounds and music
| optional unsourceable game data | - |
k6demo.exeKeen 6 demo executable, read for dictionaries, headers, texts and tile properties
Source
| optional in repo game data | - |
egagraph.ck6Keen 6 demo EGA graphics
Source | optional in repo game data | - |
gamemaps.ck6Keen 6 demo level maps
| optional in repo game data | - |
| optional in repo game data | - | |
KDREAMS.EXEKeen Dreams executable, read for the nine embedded tables
Hashes and source
| optional in repo game data | CRC32 9dce0a39 |
KDREAMS.EGAKeen Dreams EGA graphics
Hashes and source
| optional in repo game data | CRC32 2dc94687 |
KDREAMS.MAPKeen Dreams level maps
Hashes and source
| optional in repo game data | CRC32 8dce09af |
KDREAMS.AUDKeen Dreams sounds
Hashes and source
| optional in repo game data | CRC32 80ac85e5 |
KDREAMS.CMPKeen Dreams title screen library, skipped when absent
Hashes and source | optional in repo game data | CRC32 97628ca0 |
Next steps
Section titled “Next steps”- Get the files, for the setup in use
- Every system, and the files each one needs
- When a game does not start