blockda / BlowTorch

A tool for playing text based adventure games that communicate over Telnet. Features include simple alias replacement, triggers, timers, custom speedwalks, xterm256 color support, lua scripting, plugins and miniwindows.
http://bt.offsetnull.com
MIT License
29 stars 13 forks source link

Logging #11

Open blockda opened 6 years ago

blockda commented 6 years ago

Logging logging logging logging logging.

Other clients do it. Logging. To the sdcard, internally. Anywhere.

Let them scroll through it. somehow get the time/date in there so you can see how far back in time the log goes.

jrsteensen commented 6 years ago

I had a kludged together version for the last released beta that did this, but I lost the settings file it was captured in.

Here are the few notes I could find:

Alias invoked on connect:

f = assert(io.open("/sdcard/cs.log.txt", "a"))
io.output(f)
io.write("test")
>>>io.write(capturetext, "\n")
io.close(f)
<trigger title="log.capture" pattern="^(.*)$" regexp="true">
<ack with="/local capture_text = &quot;$1&quot; io.write(capture_text, &quot;\n&quot;)" fireWhen="always"/> 
</trigger>
Taracair commented 5 years ago

Yes please! That feature is really needed.