Skip to content

Latest commit

 

History

History
55 lines (31 loc) · 2.45 KB

README.md

File metadata and controls

55 lines (31 loc) · 2.45 KB

IF-utils

Small collection of utilities related to interactive fiction.

all_lowercase_names.py

Converts all filename extensions in a directory to lowercase, after first checking that doing so will not clobber any existing files. This is occasionally useful for Linux users trying to play AGT games in agility.

Usage: all_lowercase_names.py [dirname]. If dirname is not specified, operates on the current working directory.

ap2zc.py

Extracts the Infocom story files (usually .z3 or .z5) from raw (256-byte sector) Apple II disk images.

Usage: ap2zc.py INPUT_FILE_NAME

check_anagram.py

Checks to see if two (or more) phrases are anagrams of each other.

Usage: check_anagram.py "a phrase" "another phrase" [...]

ll_hints.py

Decode numeric hints for IF games according to the type of "encoded" clues given in Scott Adams-style hints. Currently decodes hints for Wade Clarke's Leadlight Gamma, but may be adapted to be more flexible at some indefinite point in the future.

Usage ll_hints.py [no command-line options] and follow the prompts.

morse.py

Morse code decoder.

Usage: limited functionality as morse.py [a string], where [a string] uses (any) uppercase character as a dash and (any) non-uppercase character as a dot. Other arrangements are possible through a Python REPL.

numerical_name.py

For each word in a supplied input string, calculates a numerical value for the word by assiging each letter in the word a number based on its ordinal value in the English letter sequence (A=1, B=2, C=3, etc.) and summing those values.

Usage: numerical_name.py "a phrase".

text_rotate.py

Given a phrase, transforms it as ROT-1, ROT-2, ROT-3, ... ROT-25, to help with rotational decoding.

Usage: text_rotate.py "A phrase to transform"

transcript_utils/visual_transcript/

A series of scripts intended to help postprocess screencast videos of textual IF when standard transcripting is not possible. Run in numerical order to create a series of frames as .png files that have had duplicate frames largely removed from short sequences.

mod/

A folder containing Python code intended to be imported as modules by other Python code.

specific_games/

A set of folders contains scripts that do various things with specific games. See their own README files for more info. If you're looking for interesting code, it's largely in subdirectories of this folder.

 

This file last updated 25 Nov 2023.