83dced745d
digiline_send(channel, "some string") will now echo "some string" to all alphanumeric tubes in a lineup, so long as they all face the same way, starting from the nixie the LuaC is connected to, going left to right. The other tubes in the line do not need to be connected to anything - think of them as being connected toghether internally. The string will spread until either a tube is found that faces the wrong way, or it has a channel that's not empty/nil and is set to something other than what the first is set to, or if a node is encountered that is not an alpha-numeric tube at all. Tubes to the left of the connected one are ignored; you can put multiple lines of tubes side by side, so long as each tube that starts each line has a unique channel. The string is padded with spaces and trimmed to 64 chars. Special messages: "off_multi" turns all tubes in the lineup off "allon_multi" turns on all anode segments of all tubes in the lineup. Note that the existing messages "get" and "getstr" will only read the one character from the first, connected tube, not the others in the lineup. |
||
---|---|---|
models | ||
textures | ||
depends.txt | ||
description.txt | ||
init.lua | ||
LICENSE | ||
mod.conf | ||
README.md | ||
screenshot.png |
nixie_tubes mod
by Vanessa Ezekowitz
This mod provides a set of classic Nixie tubes, and a set of alphanumeric 15-segment tubes similar to Burroughs B-7971, controlled by Mesecons' Digilines mod.
Simply place a tube, right-click it, and set a channel.
Then send a character or one of several control words to that channel from a Mesecons Lua Controller and the tube will try to display it.
The classic tubes are numeric with colon and period symbols, and hence will respond to the literal numbers 0-9, and the words "colon", "period", and "off". Any other symbol or word is ignored.
The alphanumeric tubes respond to characters from the standard 7-bit ASCII character set, along with these messages:
- "off", "colon" and "period" act the same as on the numeric tubes. Note that neither a colon nor a period actually look all that great on a 15-segment display, so use a classic tube for those, if you can.
- "del" or character code 127 displays an all-on square, but without segment #15 (the bottom, chevron-shaped one).
- "allon" or character code 128 will display an all-on square, with segment #15 lit also.
- "cursor" or character code 129 will display just segment 15.
Any unrecognized word or symbol outside the 32-129 range is ignored.
The Decatron tubes respond to 0-9 and "off", same as the others, along with the following actions:
- "inc" will increment the tube's current number value. If the value overflows from 9 back to 0, the tube will generate a "carry" message.
- "dec" will decrement the current value. If the value wraps from 0 back to 9, the tube will send out a "borrow" message.
- "get" will query the current state of the tube, responding with a single digit 0-9 or the word "off".
Tubes emit a small amount of light when displaying something.
Nixies can only be mounted on the floor, while Decatrons can be mounted on a wall (or a ceiling if so desired).
A Decatron has a small grey spot on its internal insulator to mark the "0" position.