INFORM(1)

πŸ“¦
version 6.42 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– INFORM(1) πŸ’–

okay bestie, sit DOWN, we're talking about inform β€” that's the Inform v6.36 interactive fiction story file compiler, the whole entire queen of the page. she compiles Inform interactive fiction story files into Z-machine or Glulx bytecode. no cap.


✨ NAME ✨

inform β€” compile Inform interactive fiction story files to Z-machine or Glulx bytecode πŸ¦‹


🌸 SYNOPSIS 🌸

inform [options...] infile [outfile]

πŸ’… DESCRIPTION πŸ’…

so like, inform takes an Inform version 6 story file (usually it's got the .inf extension, that's her little signature) and compiles it into Z-machine or Glulx bytecode, which you can then run in a whole bunch of Z-machine or Glulx emulators. iconic behaviour honestly.

if you don't hand her an output filename on the command line, she'll just make one up from the input filename. she's resourceful like that πŸ’β€β™€οΈ

you can control how inform operates with three flavours of magic:

  • switches β€” one or two-character expressions, and they start with a dash (-)
  • path modifiers β€” these start with a plus sign (+)
  • memory strategy modifiers β€” these start with a dollar sign ($)

πŸŽ€ SWITCHES πŸŽ€

okay this is the long list, hydrate first, we're going through all of them fr fr.

  • -a β€” trace assembly-language (no hex dumps though; that's -t's job)
  • -c β€” more concise error messages
  • -d β€” contract double spaces after full stops in text
  • -d2 β€” contract double spaces after exclamation and question marks, too
  • -e β€” economy mode (slower): make use of declared abbreviations
  • -f β€” frequencies mode: show how useful abbreviations are
  • -g β€” traces calls to functions (except in the library)
  • -g2 β€” traces calls to all functions
  • --help, -h, -h1, -h2 β€” print usage information
  • -i β€” ignore default switches set within the file
  • -j β€” list objects as constructed
  • -k β€” output Infix debugging information to "gameinfo.dbg" (and switch -D on)
  • -l β€” list every statement run through Inform
  • -m β€” say how much memory has been allocated
  • -n β€” print numbers of properties, attributes and actions
  • -o β€” print offset addresses
  • -p β€” give percentage breakdown of story file
  • -q β€” keep quiet about obsolete usages
  • -r β€” record all the text to "gametext.txt"
  • -s β€” give statistics
  • -t β€” trace assembly-language (with full hex dumps; see -a)
  • -u β€” work out most useful abbreviations (very very slowly)
  • -vn β€” compile to a specific Z-code version; the default is 5. Available versions are:
    • 3 β€” version-3 ("Standard") story file
    • 4 β€” version-4 ("Plus") story file
    • 5 β€” version-5 ("Advanced") story file
    • 6 β€” version-6 (graphical) story file
    • 8 β€” version-8 (expanded "Advanced") story file
  • -w β€” disable warning messages
  • -x β€” print # for every 100 lines compiled
  • -y β€” trace linking system
  • -z β€” print memory map of the Z-machine
  • -B β€” use big memory model (for large version-6/version-7 files)
  • -Cn β€” select text character set (defaults to 1):
    • 0 β€” plain ASCII only
    • 1 β€” ISO 8859-1 (Latin1)
    • 2 β€” ISO 8859-2 (Latin2)
    • 3 β€” ISO 8859-3 (Latin3)
    • 4 β€” ISO 8859-4 (Latin4)
    • 5 β€” ISO 8859-5 (Cyrillic)
    • 6 β€” ISO 8859-6 (Arabic)
    • 7 β€” ISO 8859-7 (Greek)
    • 8 β€” ISO 8859-8 (Hebrew)
    • 9 β€” ISO 8859-9 (Latin5)
    • u β€” Unicode (UTF-8)
  • -D β€” insert "Constant DEBUG;" automatically
  • -En β€” select error message style (default is Archimedes):
    • 0 β€” Archimedes-style error messages
    • 1 β€” Microsoft-style error messages
    • 2 β€” Macintosh MPW-style error messages
  • -F1 β€” use temporary files to reduce memory consumption
  • -G β€” compile a Glulx game file
  • -H β€” use Huffman encoding to compress Glulx strings
  • -M β€” compile as a Module for future linking
  • -S β€” compile strict error-checking at run-time (on by default)
  • -U β€” insert "Constant USE_MODULES;" automatically
  • -V β€” display version and exit
  • -Wn β€” header extension table is at least n words (n = 3 to 99)
  • -X β€” compile with INFIX debugging facilities present

πŸ¦‹ PATH MODIFIERS πŸ¦‹

  • --path PATH=dir β€” change PATH to this directory
  • --addpath PATH=dir β€” add this directory to the PATH

🧚 PATH MODIFIERS (old style) 🧚

the vintage ones, we love a throwback πŸ’œ

  • +dir β€” set Include_Path to this directory
  • ++dir β€” add this directory to Include_Path
  • +PATH=dir β€” change PATH to this directory
  • ++PATH=dir β€” add this directory to the PATH

⭐ MEMORY SETTINGS ⭐

  • --list β€” List current memory allocation settings.
  • --helpopt SETTING β€” explain briefly what SETTING is for
  • --opt SETTING=number β€” change SETTING to given number
  • --define SYMBOL=number β€” define SYMBOL as a constant in this story
  • --config filename.icl β€” read in a list of commands (in the format above) from this setup file. See INFORM COMMAND LANGUAGE below

🌈 MEMORY STRATEGY MODIFIERS (old style) 🌈

bestie, heads up: you might have to quote these parameters so your shell doesn't go and expand them behind your back. don't let the shell do you like that πŸ’€
  • $list β€” list current memory allocation settings
  • $?SETTING β€” explain memory setting SETTING (see $list for available parameters)
  • $SETTING=number β€” manually set SETTING to given number
  • $#SYMBOL=number β€” define SYMBOL as a constant in the story
  • (filename.icl) β€” read in a list of commands (in the format above) from this setup file. See INFORM COMMAND LANGUAGE below

🫢 INFORM COMMAND LANGUAGE 🫢

so the Switches directive β€” you know, the one that let certain compiler switches get set from inside the source file instead of on the compiler command line β€” has been superseded by a way more powerful mechanism. RIP to her, she was doing her best.

the special comment characters "!%", sitting right there on the very first line or lines of the source file, let you specify Inform Command Language (ICL) commands to control the compilation. like so:

!% -E1G        ! Glulx, 'Microsoft' errors
!% -~S         ! disable Strict mode
!% +include_path=./test,./,../lib/contrib ! look in 'test' library
!% $MAX_STATIC_MEMORY=20000
Constant STORY "RUINS";
...

ICL is described in Section 39 of the Inform Designer's Manual. the short version: each line specifies a single command, starting with - to define one or more switches, + to define a path variable, or $ to define a memory setting. Comments are introduced by $. and the ICL command compile is not permitted at the head of a source file. nope. not happening. πŸ™ˆ


😭 CAVEATS 😭

  • inform is not capable of creating story files conforming to versions 1 or 2 of the Z-Machine. she simply will not, bestie.
  • Modules cannot be used with Glulx and are deprecated for Z-Machine.

πŸ‘‘ DOCUMENTATION πŸ‘‘

the canonical documentation for Inform6 is the Inform Designer's Manual. you can browse this work at http://inform-fiction.org/manual/html/contents.html download it from http://inform-fiction.org/manual/DM4.pdf and purchase it in hardcopy at http://amazon.com/

another noteworthy and somewhat more up-to-date resource is the Inform Beginner's Guide. you can download that work at http://inform-fiction.org/manual/download_ibg.html


πŸ”₯ SEE ALSO πŸ”₯

zcode-interpreter(6) and the manuals and language reference which can be found online at http://inform-fiction.org/manual/ and http://inform-fiction.org/inform6.html.


🌸 AUTHOR 🌸

the various iterations of the Inform language were created by Graham Nelson in 1993. the way that man invented a whole genre's toolchain... main character energy fr.

this manpage was written by Jan Nordholz <hesso@pool.math.tu-berlin.de> for the Debian Project and altered by David Griffith <dave@661.org>.


πŸŽ€ DISTRIBUTION πŸŽ€

the compiler and standard library for Inform6 are licensed under

  1. The traditional Inform license as described by the DM4, or
  2. The Artistic License 2.0 .

here's the relevant bit from the Inform Designer's Manual, 4th edition:

Copyright on Inform, the program and its source code, its example games and documentation (including this book) is retained by Graham Nelson, who asserts the moral right to be identified as the author under the Copyrights, Designs and Patents Act 1988. Having said this, I am happy for it to be freely distributed to anybody who wants a copy, provided that: (a) distributed copies are not substantially different from those archived by the author, (b) this and other copyright messages are always retained in full, and (c) no profit is involved. (Exceptions to these rules must be negotiated directly with the author.) However, a story file produced with the Inform compiler (and libraries) then belongs to its author, and may be sold for profit if desired, provided that its game banner contains the information that it was compiled by Inform, and the Inform version number.

The Artistic License 2.0 can be found at https://opensource.org/licenses/Artistic-2.0 and the file ARTISTIC in the Inform6 distribution archive.


okay that's the whole thing, you ate that reading session bestie πŸ’– this page is from Inform v6.36, dated 2022-02-19, and it's the INFORM(1) page β€” go forth and compile something iconic, periodt. βœ¨πŸŽ€πŸ¦‹