erkyrath / lectrote

The IF interpreter in an Electron shell
Other
248 stars 28 forks source link

Feature: enhanced transcript mode #151

Open erkyrath opened 1 year ago

erkyrath commented 1 year ago

Interpreter-managed transcript mode which writes out the GlkOte update stream for any game. That would either be a sequence of JSON objects or an array containing JSON objects.

(A single array is better, but requires the interpreter to back up and overwrite the final ] every time output is added.)

(Bonus: timestamp each object.)

We could then have tools to parse the JSON and create a formatted transcript, a blow-by-blow replay, or whatever else you wanted.