# ๐Ÿ๏ธ Open Scrantic ### Johnny Castaway, the classic 1992 screensaver, rewritten in Rust and running natively on Windows, macOS and Linux. Open Scrantic โ€” a castaway with a spyglass on a tropical island [![CI](https://img.shields.io/github/actions/workflow/status/glauberlima/open-scrantic/ci.yml?branch=main&style=flat-square&label=ci)](https://github.com/glauberlima/open-scrantic/actions/workflows/ci.yml) [![Release](https://img.shields.io/github/v/release/glauberlima/open-scrantic?style=flat-square)](https://github.com/glauberlima/open-scrantic/releases/latest) [![License: MIT](https://img.shields.io/badge/license-MIT-green?style=flat-square)](LICENSE) [โ–ถ Watch a 30-second demo](docs/media/open-scrantic-demo.gif)
Open Scrantic brings the original _Screen Antics: Johnny Castaway_ screensaver (Sierra/Dynamix, 1992) back to modern computers: a free, open-source Rust reimplementation of the classic Windows 3.1 screensaver. Watch Johnny go about his days on his tiny island while a story unfolds from one day to the next, with the same behavior as the original. [Get started](#get-started) ยท [Windows screensaver](#install-as-a-windows-screensaver) ยท [Settings](#settings) ยท [FAQ](#faq) ยท [Why](#why-this-exists) ยท [Mentions](#mentions) ยท [For developers](#for-developers) ยท [AI disclosure](#ai-disclosure) ยท [Legal](#legal-notice) > [!IMPORTANT] > You need your own copy of the original screensaver files. This project does not include them > (see [What you need](#what-you-need)). ## Get started 1. **Download** the program for your system from the [latest release](https://github.com/glauberlima/open-scrantic/releases/latest): | System | File | | ------- | ------------------------------- | | Windows | `open-scrantic-windows-x64.exe` | | macOS | `open-scrantic-macos` | | Linux | `open-scrantic-linux-x64` | 2. **Put it in the same folder** as the three original screensaver files (`SCRANTIC.SCR`, `RESOURCE.MAP` and `RESOURCE.001`). 3. **Run it.** It opens in a window; press **Esc** to exit. Start it with `--fullscreen` to fill the screen. **F12** saves a screenshot (`-raw` as drawn, `-view` as shown) next to the executable. > [!TIP] > On Windows and want it as a real screensaver? Jump to > [Install as a Windows screensaver](#install-as-a-windows-screensaver).
Your system refuses to open the file? The program is not code-signed, so your system may warn about it. - **Windows:** in the SmartScreen window, click **More info**, then **Run anyway**. - **macOS:** open Terminal in the folder and run `chmod +x open-scrantic-macos && xattr -d com.apple.quarantine open-scrantic-macos`, then `./open-scrantic-macos`. - **Linux:** run `chmod +x open-scrantic-linux-x64`, then `./open-scrantic-linux-x64`. If it complains about a missing sound library, install ALSA (`libasound2` on Debian and Ubuntu).
## Install as a Windows screensaver Use the `open-scrantic-windows-x64.scr` file from the [latest release](https://github.com/glauberlima/open-scrantic/releases/latest) (not the `.exe`). You also need the three [original files](#what-you-need). 1. **Open PowerShell as administrator** (Start menu, type `PowerShell`, right-click, **Run as administrator**) and go to the folder that has the downloaded `.scr` and the three original files, for example `cd $env:USERPROFILE\Downloads`. 2. **Paste this**: ```powershell New-Item -ItemType Directory -Force "$env:APPDATA\OpenScrantic" | Out-Null Copy-Item SCRANTIC.SCR, RESOURCE.MAP, RESOURCE.001 "$env:APPDATA\OpenScrantic" Copy-Item .\open-scrantic-windows-x64.scr "$env:SystemRoot\System32\OpenScrantic.scr" ``` 3. **Pick it**: open **Screen Saver Settings** (Settings, Personalization, Lock screen, Screen saver settings), choose **OpenScrantic** and set the wait time. Click **Preview** to check it. Shortcut: press `Win+R` (or run in a terminal) `control desk.cpl,,@screensaver` to open that window directly. That is all. To try it first without installing, right-click the `.scr` and choose **Test**.
Details, settings and uninstall - The three original files go in `%APPDATA%\OpenScrantic` (usually `C:\Users\\AppData\Roaming\OpenScrantic`), because Windows only lists screensavers that are in `System32`. The `.scr` looks for them beside itself first and then there; the first folder that has `SCRANTIC.SCR` is the install, and `SCRANTIC.INI` is always read and written in that same folder (so nothing is ever written to `System32`). If the files are missing, the screensaver says where to put them and creates that folder. - If your administrator account is not the one you use every day, `%APPDATA%` in step 2 points to the administrator's profile; copy the three files to your own `%APPDATA%\OpenScrantic` instead. - When Windows starts it (`/s`) it runs fullscreen on the primary monitor (any other monitor goes black) and exits on any key, click or mouse movement. **Settings** (`/c`) opens a small dialog with the Background, Clouds, Waves, Sounds, Dedither and Soft audio checkboxes (the last two are off by default), saved to `SCRANTIC.INI`, plus the version and a link to report bugs or suggest features. **Preview** (`/p`) draws the island, silent, in the monitor picture of the Screen Saver Settings window. - This build takes only the switches Windows passes (`/s`, `/c`, `/p`, `/a`) and none of the options of the regular program. On macOS and Linux there is no screensaver build. - To remove it, delete `%SystemRoot%\System32\OpenScrantic.scr` (as administrator) and the `%APPDATA%\OpenScrantic` folder. - SmartScreen warning? See [Your system refuses to open the file?](#get-started).
## What you need The three files from the original _Screen Antics: Johnny Castaway_ installation (Windows 3.1), all in one folder next to the program: | File | Size | What it is | | -------------- | --------- | ------------------------------------ | | `SCRANTIC.SCR` | 295,952 | the original screensaver program | | `RESOURCE.MAP` | 1,461 | index of the screensaver's resources | | `RESOURCE.001` | 1,175,645 | the images and animation scripts |
Check that your files are the right ones | File | SHA-256 | | -------------- | ------------------------------------------------------------------ | | `SCRANTIC.SCR` | `7811b526b36bba2f08326d7a680f2f063190b4278e5a36393fde5a02080b0262` | | `RESOURCE.MAP` | `3d9ec330aab96bbe5a44ce34f5945703862e82b195088590b7adfef5d7345da7` | | `RESOURCE.001` | `df9c2213f7c0abacf4e302cb53a476f9f220579c07ba350b167e351eed548eae` | Run `shasum -a 256 SCRANTIC.SCR RESOURCE.MAP RESOURCE.001` (macOS) or `sha256sum` (Linux) and compare. On Windows, use `certutil -hashfile SHA256`.
## Settings Options and story progress are stored in `SCRANTIC.INI`, in the folder of the original files (next to the program; for the Windows screensaver, see [its details](#install-as-a-windows-screensaver)). It is created on the first run and rewritten whenever the story progresses and on exit, so a crash or a forced close loses nothing; edit it only while the program is closed. Keys are case-insensitive. **Options** (`0` = off, `1` = on; default `1`): | Key | Effect when off | | ------------ | --------------------------------- | | `Background` | no island or ocean background | | `Clouds` | no clouds in the sky | | `Waves` | no ocean whitecaps | | `Sounds` | sound effects muted | Two more keys are not in the original: `Dedither` and `SoftAudio` (off by default, `1` turns them on; the same as `--dedither` and `--soft-audio`). The original settings dialog offered only *Load Background* (`Background`), *Sounds*, a password and the start of the day. `Clouds` and `Waves` were never in the dialog: they can only be changed in this file, or on the command line. Each option can also be set for one run with `--background=N`, `--clouds=N`, `--waves=N` or `--sounds=N` (`N` is `0` or `1`). The command line wins over the file, and such a run never writes the value back to it. To start over, delete `SCRANTIC.INI`. If it contains an invalid value, it is replaced by the defaults, story progress included.
Story state (advanced) Maintained by the program; edit only to force a chapter or time of day. | Key | Default | Meaning | | ------------------------------------------- | ------- | --------------------------------------------------------------- | | `NumDays` | `0` | story chapter of the day, 1โ€“11; advances once per calendar day | | `Introduction` | `0` | next chapter to show; the chapter plays when it is `<= NumDays` | | `CurrentYear`, `CurrentMonth`, `CurrentDay` | `0` | date of the last run, used to detect a new day | | `StartTime` | `900` | start of the 16-half-hour day/night cycle, as `HHMM` | A `NumDays` of `0` or `1` restarts the story at chapter 1 on the next day change. A value above 11 is invalid, so the whole file is replaced by the defaults.
## FAQ **Why do I need the original files?** The art, animation scripts and sounds are copyrighted by their owners. This project reimplements only the engine and reads those assets when it runs. **Does it work with any build of the screensaver?** No. The loader checks known strings in `SCRANTIC.SCR` and rejects other builds of the executable. **Where is my progress saved?** In `SCRANTIC.INI` (see [Settings](#settings)). ## Why this exists Because it's cool, and because it's nostalgic. Johnny Castaway takes me back to my childhood, to simpler times, and I wanted it to keep running on the computers we use today, for me and for anyone else who remembers it. ## About the project Open Scrantic is a reverse-engineered reimplementation of _Screen Antics: Johnny Castaway_ (Sierra/Dynamix, 1992), rebuilt from the disassembly of the original Windows 3.1 screensaver. The program contains only the engine logic. ```text SCRANTIC.SCR โ”€โ”€โ–บ assets::exe โ”€โ”€โ–บ sounds, scene catalog, walk routes, RNG seed RESOURCE.MAP โ”€โ” RESOURCE.001 โ”€โ”ดโ–บ assets::resource โ”€โ”€โ–บ images, palette, TTM/ADS scripts โ”‚ engine: story planner โ”€โ”€โ–บ ADS scheduler โ”€โ”€โ–บ TTM frames โ”€โ”€โ–บ canvas (calendar, chapters) (z-order, tags) (draw, sound) โ”‚ winit + softbuffer + rodio ``` The disassembly is the ground truth for behavior, including the original 16-bit arithmetic and random number generator. Recovered formats, VM semantics, story rules, timing and the deliberate deviations (for example, full-frame redraw instead of dirty rectangles) are recorded in [`docs/ENGINE.md`](docs/ENGINE.md); the structure is drawn in [`docs/DIAGRAMS.md`](docs/DIAGRAMS.md). The original settings dialog is not reimplemented; options live in [`SCRANTIC.INI`](#settings). ## Mentions Open Scrantic has also been mentioned elsewhere: ### Articles and coverage - 2026-10-17 ยท News (in Czech) ยท [Open Scrantic: Johnny Castaway s pomocรญ AI](https://radyz.cz/rychle-zpravy/open-scrantic-ozivuje-johnnyho-castawaye-v-rustu-vznikal-s-claude-code-a-rea/) by Radyz - 2026-10-17 ยท Opinion (in Czech) ยท [Open Scrantic: AI vracรญ Johnnyho Castawaye](https://radyz.cz/nazory/open-scrantic-johnny-castaway-ai-zachrana-softwaru/) by Radyz - 2026-10-18 ยท Case study ยท [Open Scrantic: reconstructing the Johnny Castaway screensaver engine](https://awesomerea.org/resources/open-scrantic-screensaver-case/) by AwesomeREA.org - 2026-10-18 ยท Project card ยท [Johnny Castaway screensaver: reverse engineered with AI](https://reversedwithai.com/p/open-scrantic-johnny-castaway-rust-claude-code) by Reversed with AI - 2026-10-18 ยท Post on X ยท [@whyamas highlighting the Reversed with AI card](https://x.com/whyamas/status/2111784108414394597) - 2026-10-19 ยท Video ยท [Seu app favorito jรก tem cรณpia?](https://youtu.be/qq54tMuO7pY) by Ai Nico - 2026-10-30 ยท Post on X ยท [@whyamas sharing the Reversed with AI card again](https://x.com/whyamas/status/2116189662033465360) ### Lists and catalogs - 2026-10-19 ยท Catalog ยท [Open Scrantic](https://madewithrea.com/builds/open-scrantic) on Made with REA - Catalog ยท [Open Scrantic: clean-room rebuild, download & source](https://recompsoftware.com/p/open-scrantic/) on Recomp - Catalog ยท [Open Scrantic: Screen Antics: Johnny Castaway (1992)](https://awesomerea.com/projects/open-scrantic/) on AwesomeREA.com - Catalog ยท [open-scrantic](https://www.nicheloom.com/launches/59456/) on Nicheloom - App profile ยท [Open Scrantic](https://www.vibeleaderboard.ai/app/53832021-63c8-4328-819b-9b6626f16a1a) on VibeLeaderboard - Catalog ยท [Screen Antics: Johnny Castaway (PC): reimplementation](https://unbaked.games/games/screen-antics-johnny-castaway/) on unbaked - Catalog ยท [Play Johnny Castaway on Modern Systems](https://linkloot.io/loot/play-johnny-castaway-on-modern-systems) on LinkLoot - Product page ยท [Open Scrantic](https://shipdeck.co/products/open-scrantic-97c661) on ShipDeck - Awesome list ยท [reacher-z/Awesome-REA](https://github.com/reacher-z/Awesome-REA) - Awesome list ยท [jammyfu/rea-atlas](https://github.com/jammyfu/rea-atlas) - Awesome list ยท [kaixinbaba/awesome-rea](https://github.com/kaixinbaba/awesome-rea) ### Indexes, stats and reposts - Index ยท [Upstar](https://upstar.dev/r/glauberlima/open-scrantic) ยท repo activity - Index ยท [RepositoryStats](https://repositorystats.com/glauberlima/open-scrantic) ยท star and commit history - Index ยท [GitStock](https://gitstock.org/glauberlima/open-scrantic) ยท commit history chart - Index ยท [RepoRank](https://reporank.net/en/repo/glauberlima-open-scrantic.html) ยท project profile - Index ยท [Kaiyuanbang](https://kaiyuanbang.cn/zh-cn/repo/glauberlima-open-scrantic.html) ยท project profile (in Chinese) - Index ยท [LibHunt](https://www.libhunt.com/r/open-scrantic) ยท references the Show HN - 2026-10-17 ยท Bookmark ยท [johan.se](https://johan.se/post/261017-open-scrantic-johnny-castaway-in-rust-from-disassembly-via-rea) - 2026-10-17 ยท Repost ยท [Tsecurity.de](https://tsecurity.de/de/4279617/reverse-engineering/open-scrantic-johnny-castaway-1993-windows-31-screensaver-reimplemented-in-rust-from-its-disassembly-using-rea/) ยท mirrors the r/ReverseEngineering post - 2026-10-17 ยท Repost ยท [World Programming](https://www.worldprogramming.org/posts/open-scrantic-johnny-castaway-1993-windows-31-screensaver-reimplemented-in-rust-from-its-disassembly-using-rea-ewom56) ยท mirrors the r/ReverseEngineering post - 2026-10-17 ยท Repost ยท [Vuink](https://vuink.com/post/tvguho-d-dpbz/glauberlima/open-scrantic) - 2026-10-17 ยท Repost ยท [Rust News on Nostr](https://damus.io/nevent1qqspsxa2ln3vk0w3kv0cnxlxnrc4llasm7m7lda0c36glulqzwwpd6chrm5a3) ยท mirrors the r/rust post - Index ยท [Fetchlinks](https://fetchlinks.vercel.app/?author=glauberlima&source_type=reddit) ยท indexes the author's Reddit posts ### Community discussions Comments by others, on the repo and on the author's announcement threads: - 2026-10-17 ยท Issue ยท [Dedithered rendering from dosbox-staging (#1)](https://github.com/glauberlima/open-scrantic/issues/1) by bsdice - 2026-10-17 ยท Comments ยท [r/ReverseEngineering thread](https://www.reddit.com/r/ReverseEngineering/comments/1x8bpym/open_scrantic_johnny_castaway_1993_windows_31/) - 2026-10-17 ยท Comments ยท [r/rust thread](https://www.reddit.com/r/rust/comments/1x8botd/open_scrantic_johnny_castaway_1993_windows_31/) (post removed by moderators; comments still visible) - 2026-10-18 ยท Comments ยท [r/decomps thread](https://www.reddit.com/r/decomps/comments/1x8ra73/open_scrantic_johnny_castaway_1992_windows_31/) - 2026-11-02 ยท Comments ยท [r/retrocomputing thread](https://www.reddit.com/r/retrocomputing/comments/1xlyowk/open_scrantic_johnny_castaway_screensaver/) ## For developers ### Build from source Requires Rust 1.100.1 (pinned in `rust-toolchain.toml`). On Linux, also install the ALSA headers and `pkg-config` (`libasound2-dev pkg-config` on Debian and Ubuntu). ```sh cargo build --release cp /path/to/install/{SCRANTIC.SCR,RESOURCE.MAP,RESOURCE.001} target/release/ target/release/open-scrantic ``` The screensaver files and `SCRANTIC.INI` are read from the directory of the executable (the Windows `.scr` build also looks in `%APPDATA%\OpenScrantic`). | Option | Effect | | --------------- | ------------------------------------------------------------ | | `--fullscreen` | start fullscreen instead of windowed | | `--dedither` | blend the 1992 checkerboard dithering into solid colors | | `--soft-audio` | improve the sounds: resample, hide the 8-bit hiss, fade cuts | | `--background=N`, `--clouds=N`, `--waves=N`, `--sounds=N` | override that INI option for this run (`0` or `1`) | | `-V, --version` | print the version and exit | | `-h, --help` | print the usage and exit | The release profile is optimized and portable (fat LTO, a single codegen unit, `panic = "abort"`, stripped symbols). For a binary tuned to the build machine only (it may not run on older CPUs): ```sh RUSTFLAGS="-C target-cpu=native" cargo build --release ``` ### Development ```sh OPEN_SCRANTIC_DEBUG=1 target/release/open-scrantic # prints each session's plan cargo run --release --example snapshot -- /path/to/install /tmp/out 2000 100 1000 42 # headless PNG render ``` Architecture (the full write-up, with the data flow and how a frame is produced, is in [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md)): - `src/assets/` โ€” reading the original files: the Dynamix resource archive (RLE/LZW, BMP, SCR, PAL, TTM, ADS) and the NE executable (`WAVESFXn` sounds and data-segment tables). - `src/engine/` โ€” the engine: TTM VM (`ttm.rs`), ADS VM and scene scheduler (`ads.rs`), island and ambient animation (`island.rs`), walking (`walk.rs`), story planning (`mod.rs`), the original random number generator (`rng.rs`), drawing primitives (`gfx.rs`), INI settings (`config.rs`). - `src/main.rs` โ€” window (winit + softbuffer), clocks and input; `src/present.rs` โ€” frame to window pixels (dedithering, scaling); `src/audio.rs` โ€” sound (rodio). See [`AGENTS.md`](AGENTS.md) for the full architecture notes and conventions, and [`docs/DIAGRAMS.md`](docs/DIAGRAMS.md) for the main loop and the frame pipeline drawn as diagrams. ### Contributing Contributions are welcome: see [`CONTRIBUTING.md`](CONTRIBUTING.md) for the checks to run, the commit convention and how to check a change against the original, and the [Code of Conduct](CODE_OF_CONDUCT.md). Never commit screensaver data. ### Releases CI (format, clippy, release build on Linux, macOS and Windows) runs on every pull request and push to `main`. A release is cut manually from the **Release** workflow (Actions tab): it derives the next version from the Conventional Commits since the last tag (git-cliff), builds the binaries (Windows `.exe` and `.scr`, macOS and Linux), scans them with VirusTotal, commits the updated `CHANGELOG.md`, tags the version and publishes the GitHub release with the binaries and their SHA-256 checksums. If no commit since the last tag deserves a release (`feat`, `fix`, `perf`, `refactor`, `docs`), nothing is published. ## AI disclosure Generative AI was used throughout the development of Open Scrantic. The project was built with [Claude Code](https://claude.com/claude-code) (Anthropic) together with [REA: Reverse Engineer Anything](https://rea.tools/), a reverse-engineering toolkit exposed to the model. Together they were used to disassemble and decompile the original `SCRANTIC.SCR`, recover the resource formats and script semantics, and write the Rust code, tests and documentation. The developer directed the work and reviewed and integrated the AI-assisted results, checking the behavior against the original screensaver. ## Legal notice _Screen Antics: Johnny Castaway_ is a trademark and copyright of its respective owners (Sierra / Dynamix). This is an independent, non-commercial interoperability project, not affiliated with or endorsed by them. It does not include or distribute any original screensaver data. ## License Source code under the [MIT License](LICENSE).
Made in Campinas, Brazil ๐Ÿ‡ง๐Ÿ‡ท with โค๏ธ and โ˜•, [Claude Code](https://claude.com/claude-code) and [REA](https://rea.tools/)