ALIS — the Silmarils engine in PHP

The virtual machine of the Silmarils games, rewritten from C to PHP, plays the original data in your browser.

Robinson's Requiem title screen rendered by the ALIS virtual machine in PHP ▶ Play Robinson's Requiem

What it is

The Silmarils games (Ishar, Transarctica, Robinson's Requiem, Targhan…) all run on the same virtual machine, ALIS (Actor Language Integrated System): the game is a script that the machine runs on each computer. This project ports to PHP the free re-implementation by Olivier Huguenot and Vadim Kindl and runs it on JumPHP, PHP compiled to WebAssembly. When it starts, the engine offers the games whose data it has; the first one is Robinson's Requiem (PC CD, 1994), a 3D survival adventure on a hostile planet.

Screenshots

The 3D jungle of Robinson's Requiem with the game's interface
The jungle, drawn by the original 3D engine ported to PHP.
The options menu of Robinson's Requiem
The options menu, with the mouse.
Robinson walking in the jungle
Walking to the hills.
Language choice with four waving flags
Choosing the language.

Three editions of the game

The game list offers Robinson's Requiem (PC CD), the original scripts; … - ALIS sources, the same game with each script compiled from its readable source; and … HD: the picture scaled by the GPU as sharp pixels, the game's texts redrawn with a real font at the screen's resolution, and the 3D rendered a second time, at twice the resolution, by the original 3D engine.

The jungle of Robinson's Requiem in HD: the 3D rendered at twice the resolution
The HD edition: the jungle at twice the resolution.
The menu of Robinson's Requiem in HD, its text written with a real font
The game's texts in a real font.

ALIS scripts you can read and change

The 109 scripts of Robinson's Requiem were decompiled to a reconstructed ALIS source language: the machine's instruction names, the original compiler's structures (if … { } else { }, while, labels, left-to-right expressions). Compiled again, they give back the scripts byte for byte. See the ALIS language (overview and the table of every instruction).

The same scripts also exist in the 90s form, as a developer of the time could have written them: French words, named and declared variables, si … alors … finsi blocks, $52 numbers. The two forms translate into each other word for word and give the same bytes.

And in ALIS BASIC, as close as can be to what Silmarils' developers most likely wrote on their Atari ST: the machine's original instruction names are GFA BASIC words (LOCATE, BOX, INK…), hence PUTNAT, IF … ENDIF, GOSUB, ADD x, n, &H52 and typed variables (vague|, souris_x&). F2 switches form in the editor.

The ALIS editor is built into the engine (home screen: ALIS EDITOR): colours, search, compiling with the line of the mistake, then F5 to play with your version of the script.

The ALIS editor open on the flags script, a compile error highlighted
The ALIS editor, in the browser.

Controls

Mouse: everything with a click, as on the PC. Keyboard: ↑ ↓ ← → to move, Esc for the game's menus, F11 / F12 quick save and load, F10 back to the game list. Gamepad: the d-pad and button A.

▶ Play

Credits

Robinson's Requiem © Silmarils 1994 (André Rocques, Louis-Marie Rocques, Fabrice Hautecloque, Jean-François Trévien, Éric Galand…). ALIS re-implementation: maestun/alis by Olivier Huguenot and Vadim Kindl (MIT licence). PHP port: JumPHP. The game's data is in no public repository.