No description, website, or topics provided.
Clone or download
Latest commit 6e87da5 Dec 13, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information. Add remote interfaces for other mods to register strings. Also allow … Mar 5, 2017
control.lua Truncate strings longer than 31 characters Mar 5, 2017
info.json Update for 0.16 Dec 13, 2017 Add Feb 12, 2017


This library provides common functions for handling strings on circuit networks. Strings are expressed as a bitmask of where each letter appears, LSB on the left. "FOOBAR" = {signal-F=1,signal-O=6,signal-B=8,signal-A=16,signal-R=32}

Strings may be converted to signals using'signalstrings','string_to_signals',"FOOBAR"), and optionally with extra data (in the form of Constant Combinator params to be prefixed) using'signalstrings','string_to_signals',"FOOBAR", extrasignals). Strings are automatically converted to all-caps to ease conversion, and non-representable characters are discarded (leaving empty space).

Signals may be converted back to a string using'signalstrings','signals_to_string',signallist). Non-string data is discarded, and overlapped characters may produce malformed strings.

Mods that add signals may register them for string conversions by calling'signalstrings','register_signal','signal-name','X') in their on_load and on_init events.