User:Zamujasa/DWAINE for Smartasses
This is a work-in-progress guide on using DWAINE more better. Or something. I guess.
I wanted to put fun programs and programming techniques here but it turns out DWAINE is actually really awful and all the basic stuff breaks the moment you try to do anything fun with it.
Programs and scripts
Advanced tips and tricks
DWAINE for Dummies is pretty basic and there's a lot of weird shit you can do with the terminals and mainframe beyond what it explains (it also seems to be pretty out of date).
I'd like to make a better tutorial/guide for using it here.
Super user access
Run this somewhere. Requires
/mnt/term to exist.
echo registered=A|nassignment=A|naccess=34 ^ /mnt/term/loginpacket su file_send
su access, but the first thing you should do is copy
teleman out of the
/sys/srv folder into one you make yourself. Then run these wherever you copied it:
echo #!|nteleman coords $arg0 $arg1 $arg2|nteleman scan ^ scan echo #!|nteleman coords $arg0 $arg1 $arg2|nteleman receive ^ recv echo #!|nteleman coords $arg0 $arg1 $arg2|nteleman send ^ send echo #!|nteleman coords $arg0 $arg1 $arg2|nteleman portal ^ portal echo #!|nteleman relay $arg0 $arg1 $arg2 $arg3 $arg4 $arg5 ^ relay
These will combine the "set coordinates" and "do a thing" commands into one, simplifying things a great deal. The copy you make of
teleman also means you won't need su to access it again.
As an AI or Cyborg, terminal windows will stay with you and update, making it much more effective to use than trying to use the telescience computer itself, since the interface for that doesn't update if you aren't near it (and people can modify the numbers you input). As a human, if you can make a copy of this, you can use it anywhere a wireless computer can reach the mainframe! (Or if you're REALLY into it, PDA messages...)
Right now there's some bug that causes this to result in a stack overflow after enough uses (and some other weird bugs) so you have to occasionally reset the terminal and reconnect.
This will make a copy of the artlab utilities in the event some dummy breaks the tape drive or it goes offline or whatever, and provide a list of very handy shortcuts to make everything much easier. You'll still have to
gptio poke a few things but you usually only have to do that once.
mkdir /artlab cp /mnt/artlab/gptio /artlab cd /artlab echo #!|ngptio activate $arg0 ^ a echo #!|ngptio deactivate $arg0 ^ d echo #!|ngptio sense $arg0|ngptio read $arg0 ^ r echo #!|ngptio info $arg0 ^ i echo #!|ngptio poke heater temptarget 200 ^ cold echo #!|ngptio poke heater temptarget 400 ^ hot echo #!|ngptio poke impactpad stand 1 ^ raise echo #!|ngptio poke impactpad stand 0 ^ lower echo #!|ngptio poke xray radstrength $arg0 ^ radstrength echo #!|ngptio poke elecbox wattage $arg0|ngptio poke elecbox voltage $arg1 ^ elec
This creates a bunch of shortcuts in the current directory that let you use the Artlab equipment much faster:
- a (device): Activates a device.
- d (device): Deactivates a device.
- r (device): Reads and displays results.
- i (device): Gets information.
- hot: Sets the heater's temperature target to the highest setting.
- cold: Sets the heater's temperature target to the lowest setting.
- raise: Raises the impact pad's stand.
- lower: Lowers the impact pad's stand.
- radstrength (number): Sets the X-Ray's radiation strength.
- elec (wattage) (voltage): Sets the elecbox's wattage/voltage.
- Sorry, nothing for the pitcher's power, yet; just gptio poke pitcher power (1-100).
You also don't need to type the underscores in device names.
impactpad works for
xray works for
Fixing the mainframe
When the mainframe is restored (e.g. from a temporary power outage/APC issue),
gptio will helpfully forget all of the device names -- they'll all show up as
UNKNOWN, so you can't refer to them by name.
To get their names back, use
gptio info address, which will update its name and allow you to use it as a shortcut again.
If someone REALLY fucked it up and removed the memory core (only doable when it's unpowered), you'll have to get a replacement from Hemera or maybe the Lava Moon. Good luck!
Files not found
If you're missing some files you expected to be there, there's a backup ThinkTape in the RD's office you can insert into the databank. It contains a copy of everything in
/mnt/control, and when inserted into the RD's databank will show up at
You can then copy them back to where they're supposed to be (or other places, if you want).
You can scan paper and some other stuff by placing it on one of the scanners. Once it beeps, go to your local DWAINE terminal and look for
/mnt/sc-location. The scanned document will be at
/mnt/sc-location/document. Note that the formatting on scanned documents may be garbled or completely messed up.