Gargoyle
Gargoyle emulates ADRIFT, AdvSys, Adventure Game Toolkit and 11 more systems.
About this profile
Technical notes
Interactive fiction player built on the Glk library implementation garglk,
shipping one interpreter binary per story format. The gargoyle binary reads
the first 32 bytes of the file, matches it against a magic-number table,
falls back to the extension, and executes the matching interpreter.
ref: garglk/launcher.cpp:114-189 (probe, extensions, interpreters), 379-419 (rungame)
Formats and the interpreter each one runs: Adrift 4 and Adrift 5 both
default to scarier, which handles the two. Scare takes Adrift 4 and
FrankenDrift takes Adrift 5 only where the build asked for them, since each
covers a single format. Then AdvSys (advsys), AGT (agility), Alan 2 (alan2), Alan 3
(alan3), Glulx (git), Hugo (hugo), JACL (jacl), Level 9 (level9), Magnetic
Scrolls (magnetic), Scott Adams Graphic Adventures Plus (plus), Scott Adams
(scott), TADS 2 and 3 (tadsr), TaylorMade (taylor), Z-machine (bocfel).
Blorb files are unwrapped first and dispatched on the Exec chunk type.
ref: garglk/launcher.cpp:50-74 (interpreter names), 276-328 (runblorb)
Adrift 5 needs the FrankenDrift runner, a .NET build option that is off by
default, including in the official AppImage. Without it the launcher reports
that Adrift 5 is unsupported and stops.
ref: CMakeLists.txt:77 (WITH_FRANKENDRIFT), gargoyle-appimage.sh:14,
garglk/launcher.cpp:174-175,212
Every glyph is drawn through FreeType rather than by the operating system,
so a font file has to be reachable. The default config asks for the families
"Gargoyle Mono" and "Gargoyle Serif". If fontconfig cannot resolve them, the
interpreter loads the shipped TTF files by name from the data directory,
then the executable directory, then the working directory, and calls
winabort() when all three miss.
ref: garglk/garglk.h:694-695 (defaults), garglk/garglk.ini:205,208, garglk/fontfc.cpp:83-154
(fontconfig lookup), garglk/draw.cpp:381-408 (path fallbacks), 300-350
(make_font, abort), 490-498 (file names)
Gargoyle Serif is Charis SIL and Gargoyle Mono is Go Mono, both renamed so they can be installed system-wide without clashing. Font embedding was dropped because the OFL and the GPL do not mix, which is why the files are loaded from disk. ref: fonts/README
Data directory by platform: /usr/share/gargoyle on Unix,
<binary>/../share/gargoyle for the AppImage, the install directory on
Windows, and the bundle Resources directory on macOS. Fonts sit at its root
and themes in its themes subdirectory. macOS keeps the eight Gargoyle faces
in Resources/Fonts and Unifont in Resources, and the Windows installer also
registers the eight faces as system fonts.
ref: garglk/sysqt.cpp:960-1004, garglk/sysmac.mm:1013-1030, garglk/CMakeLists.txt:137,145,
519-543, gargoyle_osx.sh:124-125,211-213, installer.nsi:89-90,208-215
Themes are read from every *.json in the theme directories, which are the
Qt application data locations plus the executable directory on Windows and
the data directory for the AppImage. A parse failure is reported and the
file skipped. The light and dark themes are also compiled into the binary,
so the on-disk copies of those two replace identical entries.
ref: garglk/theme.cpp:266-319, garglk/sysqt.cpp:982-1004, garglk/CMakeLists.txt:81-93
garglk.ini is not distributed: the default config is compiled in as a string
and written to the highest-priority user location on demand. Installing a
system copy is an off-by-default build option.
ref: garglk/config.cpp:443-493, garglk/CMakeLists.txt:15 (INSTALL_GARGLKINI),
garglk/CMakeLists.txt:61-79 (vtk_encode_string)
MIDI in Blorb resources goes through FluidSynth, which needs a SoundFont.
Gargoyle names none: the soundfont list is empty unless the user sets it in
garglk.ini or the build hardcodes one, and the fallback is whatever
FluidSynth reports as its own default.
ref: garglk/config.cpp:294-298,864-872, garglk/snddecode.cpp:373-395,
garglk/CMakeLists.txt:58 (DEFAULT_SOUNDFONT), INSTALL.md:155-159
Story files are content. Formats that carry companion data read it from the
story file's own name or directory, so it travels with the game: Level 9
graphics as PICTURE.DAT, Magnetic Scrolls graphics and hints as .gfx and
.hnt, Alan 3 resources as .a3r, TADS resources as .t3r, and the extra disk
sides the Scott Adams, Plus and TaylorMade interpreters read from C64,
Atari 8-bit and Apple II images.
ref: terps/, terps/,
terps/CMakeLists.txt:69,73,376,527,625 (c64diskimage, unp64)
0 files: 0 required, 0 optional. 19 more files come with the app.
Comes with the app
Section titled “Comes with the app”| File | Hash |
|---|---|
Gargoyle-Mono.ttfGargoyle Mono regular (Go Mono)
Hashes and source
|
MD5 f32a4d2aee19 |
Gargoyle-Mono-Bold.ttfGargoyle Mono bold (Go Mono)
Hashes and source
|
MD5 750428793e9a |
Gargoyle-Mono-Italic.ttfGargoyle Mono italic (Go Mono)
Hashes and source
|
MD5 873e8ea7a53a |
Gargoyle-Mono-Bold-Italic.ttfGargoyle Mono bold italic (Go Mono)
Hashes and source
|
MD5 d534b7b59e44 |
Gargoyle-Serif.ttfGargoyle Serif regular (Charis SIL)
Hashes and source
|
MD5 b43719e0af7d |
Gargoyle-Serif-Bold.ttfGargoyle Serif bold (Charis SIL)
Hashes and source
|
MD5 35a62c77d2a6 |
Gargoyle-Serif-Italic.ttfGargoyle Serif italic (Charis SIL)
Hashes and source
|
MD5 80c584701955 |
Gargoyle-Serif-Bold-Italic.ttfGargoyle Serif bold italic (Charis SIL)
Hashes and source
|
MD5 84d0a6059796 |
unifont.otfGNU Unifont, Basic Multilingual Plane glyph fallback
Hashes and source
|
MD5 9edf66ff1c62 |
unifont_upper.otfGNU Unifont, planes above the BMP
Hashes and source
|
MD5 863db23db082 |
Blue.jsonBlue color theme
Hashes and source
|
MD5 4a2fc2266fb1 |
Breeze Darker.jsonBreeze Darker color theme
Hashes and source
|
MD5 597f5b89772b |
Lectrote Dark.jsonLectrote Dark color theme
Hashes and source
|
MD5 83b81c33ec97 |
Lectrote Sepia.jsonLectrote Sepia color theme
Hashes and source
|
MD5 d766895891cc |
Lectrote Slate.jsonLectrote Slate color theme
Hashes and source
|
MD5 3a06a19b8441 |
Pencil.jsonPencil color theme
Hashes and source
|
MD5 6e1743b8b40e |
Zoom.jsonZoom color theme
Hashes and source
|
MD5 641c88ce7f5e |
dark.jsonDark color theme
Hashes and source
|
MD5 2614becc041f |
light.jsonLight color theme
Hashes and source
|
MD5 37c78cb6e010 |
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