FIZMO-SDL2(6)

πŸ’– FIZMO-SDL2(6) πŸ’– β€” the Games Manual, but make it cute

okay so bestie, welcome to the manual page for fizmo-sdl2, and yes it lives in the Games Manual section, and yes we're about to read the whole thing together. grab a snack. πŸ“


✨ NAME ✨

fizmo-sdl2 β€” an SDL2-based implementation of the fizmo Z-Machine Interpreter. that's the whole vibe. πŸ¦‹


✨ SYNOPSIS ✨

fizmo-sdl2 [ options ] [ storyfile [ blorbfile ] ]

like, that's it. options, then maybe a story file, then maybe a blorb file. slay. πŸ’…


✨ DESCRIPTION ✨

so fizmo-sdl2 is a frontend for the fizmo Z-Machine interpreter β€” the tagline for which is literally β€œFimzo interprets Z-machine opcodes” β€” and it's built on top of the SDL2 multimedia library. 🌈

it runs, like, most of the interactive fiction games (aka text adventures) that Infocom wrote, plus other games built on the Z-Machine. Currently all versions except version 6 are supported. noted. 🫢

it also does sound support (there's a whole subsection about it, keep reading) and it implements basic Blorb support. iconic honestly.

🌸 Starting a new game by providing a filename 🌸

just give the filename of the story file at the end of the command line. that's it. that's the whole move. ✨

πŸŽ€ Sound Support πŸŽ€

fizmo-sdl2 supports sound playback, periodt. πŸ’œ

sound files are either read from a blorb file, or β€” old-infocom-style-wise β€” from separate *.snd files that have to be stored in the same directory as the game file.

At the moment, only AIFF sounds can be read from a blorb file. fyi. πŸ’€

when the game requests a sound, fizmo uses the sound from the current blorb file. if no blorb file is given, or the sound can't be found inside it, fizmo tries to locate a file with the format β€œGAMFIL00.SND” where GAMEFIL symbolizes the game filename shortened to a maximum of six characters, then the sound number β€” eventually padded by a leading zero so it always has a length of two characters β€” and a β€œ.SND” suffix. πŸ¦‹

both upper- and lowercase filenames are attempted. which means you can directly use the sounds from the IF-archive at β€œ/if-archive/infocom/media/sound”. no cap, that's a real path. πŸ’…


✨ OPTIONS ✨

okay here's the menu, bestie. every single one. πŸ‘‘

  • -h, --help β€” Show help message and exit. 🫢
  • -b, --background-color <color-name> β€” Set background color. Valid color names are black, red, green, yellow, blue, magenta, cyan and white.
  • -cc, --cusor-color <color-name> β€” Set the cursor . Valid color names are black, red, green, yellow, blue, magenta, cyan and white. (yes the option is spelled like that, we don't ask questions πŸ’€)
  • -dh, --disable-hyphenation β€” Disable word hyphenation. Useful for languages other than the supported ones. 🌍
  • -ds, --disable-sound β€” Disable sound altogether. May be useful when playing on remote machines.
  • -f, --foreground-color <color-name> β€” Set foreground color. Valid color names are black, red, green, yellow, blue, magenta, cyan and white.
  • -fs, --font-size β€” Set text font size.
  • -fi, --start-file-input β€” Start game with input from file.
  • -if, --input-file β€” Filename to read commands from.
  • -l, --set-locale <locale-code> β€” Set locale name for interpreter messages. Currently valid locale codes are en_GB, de_DE and fr_FR.
  • -lm, --left-margin <width> β€” Set left margin width, requires a numeric argument.
  • -mu, --maximum-undo-steps β€” Set number of maximum undo steps.
  • -nx, --disable-x11-graphics β€” Disable X11 graphics.
  • -pr, --predictable β€” Start with random generator in predictable mode.
  • -ps, --process-sdl2-events β€” Setting this option to β€œqueue” defines that sdl2 resize-related events should be processed directly from the event queue; setting it to β€œfilter” uses SDL's event filter for these kind of events. Changing this setting might help in case resizing the interpreter window on your system does not work. πŸ™ˆ
  • -ra, --random β€” Start with random generator in standard random mode.
  • -rc, --record-commands β€” Activate recording of commands as soon as the game starts.
  • -rf, --record-filename β€” Filename to record input to.
  • -rm, --right-margin <width> β€” Set right margin width, requires a numeric argument.
  • -s8, --force-8bit-sound β€” Never use 16-bit resolution, always convert to 8bit (some systems may not be capable of 16-bit sound output).
  • -st, --start-transcript β€” Start game with scripting already enabled.
  • -sy, --sync-transcript β€” When a transcript is active, write data directly into the file as soon as possible.
  • -t, --set-tandy-flag β€” Sets the tandy flag, which emulates a game sold by the Tandy Corporation and slightly alters the game behaviour. See http://www.ifarchive.org/if-archive/infocom/info/tandy_bits.html for detailed information on what the tandy flag does. 🧚
  • -tf, --transcript-filename β€” Set transcript filename for the current session.
  • -um, --umem β€” Use UMem instead of CMem for saving.
  • -wh, --window-height β€” Define window height.
  • -ww, --window-width β€” Set window width.

✨ IN-GAME COMMANDS ✨

these are the ones you type inside the game, bestie, not on the command line. πŸ’–

  • /help β€” Displays the list of available in-game commands.
  • /info β€” Displays general version about the interpreter and its status, such as the version number, story release and serial number, stack, memory and random generator status.
  • /config β€” Displays current configuration values.
  • /predictable β€” Switches the random generator from β€œrandom” in β€œpredictable” state and vice-versa.
  • /recstart β€” Records all user input in a command-file.
  • /recstop β€” Stop recording user input.
  • /fileinput β€” Start reading commands from a file.

✨ ENVIRONMENT ✨

  • ZCODE_PATH β€” Default list of path names β€” separated by colons β€” to search for Z-Machine games.
  • INFOCOM_PATH β€” Alternate list of pathnames which is used when ZCODE_PATH is not set.
  • ZCODE_ROOT_PATH β€” List of colon-separated path names which are recursively searched for Z-Machine games. πŸ”

✨ FILES ✨

πŸ’œ List of files πŸ’œ

  • $HOME/.config/fizmo/config β€” May contain user configuration parameters. In case $XDG_CONFIG_HOME is defined and contains an absolute path, $XDG_CONFIG_HOME/fizmo/config is used; in case of a relative path $HOME/$XDG_CONFIG_HOME/fizmo/confg is read. 🫢
  • ($XDG_CONFIG_DIRS)/fizmo/config β€” $XDG_CONFIG_DIRS may contain a colon separated list of config directories to search. In case $XDG_CONFIG_DIRS is not set or empty, /etc/xdg is used instead. Every directory is searched for a subdirectory named fizmo containing a file config, which will be searched for configuration parameters.
  • /etc/fizmo.conf β€” Global configuration parameters.

πŸ’œ Option names for config files πŸ’œ

the following section lists the config-file's equivalents for the command line options. for a detailed description of these options, see the β€œOptions” section. ⭐

options have to start at the beginning of the line without any leading whitespace. comments start with a '#' at the beginning of the line.
background-color = <color-name>
foreground-color = <color-name>
transcript-filename = <filename>
command-filename = <filename>
cursor-color = <color-name>
font-search-path = <colon-separated-directory-names>
font-size = <font-size-value>
i18n-search-path = <colon-separated-directory-names>
locale = <language-code>
savegame-path = <directory-name>
random-mode = <random or predictable>
save-text-history-paragraphs = <number of paragraphs to store in
savegames>
z-code-path = <colon-separated-directory-names>
z-code-root-path = <colon-separated-directory-names>
disable-sound = <no value or β€œtrue” means yes, otherwise no>
quetzal-umem = <no value or β€œtrue” means yes, otherwise no>
set-tandy-flag = <no value or β€œtrue” means yes, otherwise no>
start-command-recording-when-story-starts = <no value or β€œtrue” means
yes, otherwise no>
start-file-input-when-story-starts = <no value or β€œtrue” means yes,
otherwise no>
start-script-when-story-starts = <no value or β€œtrue” means yes,
otherwise no>
disable-stream-2-hyphenation = <no value or β€œtrue” means yes, otherwise
no>
disable-stream-2-wrap = <no value or β€œtrue” means yes, otherwise no>
stream-2-line-width = <line-width>
stream-2-left-margin = <margin-size>
sync-transcript = <no value or β€œtrue” means yes, otherwise no>
left-margin = <number-of-columns>
right-margin = <number-of-columns>
disable-hyphenation = <no value or β€œtrue” means yes, otherwise no>
force-8bit-sound = <any value means yes, empty no>
enable-xterm-title = <no value or β€œtrue” means yes, otherwise no>
max-undo-steps = <maximum number of stored undo steps as numerical
value>
history-reformatting-during-refresh = <any value means yes, empty no>

πŸ’œ Font options for config files πŸ’œ

regular-font = <ttf or otf file>
italic-font = <ttf or otf file>
bold-font = <ttf or otf file>
bold-italic-font = <ttf or otf file>
fixed-regular-font = <ttf or otf file>
fixed-regular-font = <ttf or otf file>
fixed-bold-font = <ttf or otf file>
fixed-bold-italic-font = <ttf or otf file>
regular-font = <ttf or otf file>
italic-font = <ttf or otf file>
bold-font = <ttf or otf file>
bold-italic-font = <ttf or otf file>

(yes, some of these are listed twice. we're not editing the lore, bestie. πŸ’€βœ¨)

🌸 MISCELLANEOUS 🌸

Okay bestie, this is the grab-bag section, and it's lowkey iconic. Buckle up. πŸŽ€

Scrolling back πŸ’œ

Anytime you wanna peek at text that already scrolled past the top of your window, just hit PageUp and PageDown. That's it. Some terminals are extra and make you hold down shift too, but that's a terminal thing, not a Fizmo thing. πŸ™ˆ

Refreshing the screen ✨

CTRL-L refreshes whatever's currently on your display. Clean, simple, slay.

Redrawing the screen πŸ”₯

CTRL-R redraws the current display too, but here's the tea β€” it is not the same as CTRL-L. CTRL-L refreshes based on the current layout, whereas CTRL-R reconstructs the latest output based on the output history. That difference is the whole point: it helps you see output that's been hidden, like when a game clears the screen, writes some text into the top line, and then turns on the score line, which overlays that topmost line. Rude of the game, honestly. CTRL-R fixes it. πŸ’…

Resizing the screen πŸ¦‹

So, real talk: resizing generally works best for game versions 3 and before. Which is unfortunate, because that only covers a part of the old Infocom games and none of the modern ones. 😭 For everything else β€” and yes, that includes Seastalker β€” the upper window (which is mostly just the status bar) can't be resized and will stay fixed. It's giving immovable object.

Undocumented Infocom commands πŸ‘‘

Here's a list of commands that some of Infocom's games seem to support, even though I never saw them mentioned in a manual or a reference card. Secret menu energy. πŸ“

  • $verify, $ve, $ver β€” Verifies if the game file is correct (essentially it executes the verify opcode). $ve works in almost all original Infocom games. $ver works in AMFV, Beyond Zork, Bureaucracy, Nord and Bert, Sherlock, Trinity and Zork Zero.
  • $refre β€” Refreshes the screen. Works in AMFV, Arthur, Bureaucracy, Nord and Bert, Sherlock, Shogun, Trinity and Zork Zero.
  • $id β€” Gives you information about the interpreter. Works in Border Zone, Bureaucracy and Trinity.
  • $credi β€” Shows a credit screen in Trinity and Beyond Zork.
  • #comm, #command β€” This will read your input from a file. Works in AMFV, Ballyhoo, Bureaucracy, Enchanter, Hollywood Hjinx, Leather Goddesses, Lurking Horror, Plundered Hearts, Shogun, Sorcerer, Spellbreaker, Stationfall, Trinity and Zork Zero.
  • #rand <int> β€” Seeds the random generator with the given value. May be used in AMFV, Ballyhoo, Border Zone, Bureaucracy, Enchanter, Hollywood Hijinx, Leather Goddesses, Lurking Horror, Plundered Hearts, Shogun, Sorcerer, Spellbreaker, Stationfall and Zork Zero.
  • #reco, #record β€” This will record your commands into a file. Works in AMFV, Ballyhoo, Bureaucracy, Enchanter, Hollywood Hjinx, Leather Goddesses, Lurking Horror, Plundered Hearts, Shogun, Sorcerer, Spellbreaker, Stationfall and Zork Zero.
  • #unre, #unrecord β€” Stops recording commands into a file. Used in AMFV, Ballyhoo, Bureaucracy, Enchanter, Hollywood Hijinx, Leather Goddesses, Lurking Horror, Plundered Hearts, Shogun, Sorcerer, Spellbreaker, Stationfall and Zork Zero.

🫢 CREDITS 🫢

This is the part where we say thank you to everybody, and honestly they all ate. πŸ’–

ITF β€” The InfoTaskForce 🌈

All the people who worked on the Z-Machine Specification, in alphabetical order: Chris Tham, David Beazley, David Fillmore, George Janczuk, Graham Nelson, Mark Howell, Matthias Pfaller, Mike Threepoint, Paul David Doherty, Peter Lisle, Russell Hoare and Stefan Jokisch. See http://en.wikipedia.org/wiki/InfoTaskForce for more information. Legends, every single one. πŸ‘‘

The Frotz authors ⭐

When I got stuck I peeked into the frotz source. Thanks to Stefan Jokisch, Galen Hazelwood and David Griffith. No cap, lifesavers.

Mark Howell πŸ’œ

For the pix2gif code which is used in libdrilbo to parse the infocom .mg1 image files. The way that man carried this feature πŸ˜­πŸ’…

People helping with bug fixes, extensions, packaging, translations and more πŸŽ€

In alphabetical order: Andrew Plotkin, B. Watson, Michael Baltes, David Batchelder, David Leverton, Eric Forgeot, irb, Jared Reisinger, Lewis Gentry, Michael Dunlap, Mikko Torvinen, Nikos Chantziaras, Patrick MatthÀi, Samuel Verschelde, Stephen Gutknecht, Zachary Kline and the people at MacPorts. Besties fr fr. 🫢🌸


🌟 SEE ALSO 🌟

fizmo-ncursesw(6), fizmo-console(6), frotz(6), xzip(6), jzip(6), inform(1)

Go read those too, iykyk. πŸ¦‹


πŸ’– AUTHOR πŸ’–

Fizmo was written in 2005–2017 by Christoph Ender. That's a whole twelve years of main character energy. 😌


πŸ’€ BUGS πŸ’€

Fizmo is in beta stage and will probably still have some bugs. Which, okay, fair, it's beta. If you stumble upon one, please send an e-mail to fizmo@spellbreaker.org. Don't be shy, bestie, the bugs are literally waiting for you to report them. πŸ™ˆ

This page is for version 0.8.5, dated August 15, 2017, and it lives at FIZMO-SDL2(6). Thanks for reading the whole thing, you're iconic for that. Periodt. πŸ’…βœ¨