Madison Scott-Clary

Sometimes I come up with silly one-page projects, or documents, or other things to share. Those will wind up here for me to link out or for you to paw through!


Watch Star Fork

Some Twine2 tools


twine2svg takes a Twine2 file and generates an SVG of the map from it.

twine2svg.rb 0.0.2 - convert a twine file to an SVG map

Usage: twine2svg.rb [options] twine_file

    -t, --with-title                 add passage title to passages
    -i, --ids                        add passage IDs to passages
    -e, --embed                      generate an SVG for embedding (just the <svg> tag)
    -s, --stroke=COLOR               sets the stroke color
    -f, --fill=COLOR                 sets the fill color
        --no-style                   do not embed style information
    -h, --help                       prints this help

Tested on Harlowe formatted games, not yet any others.


Twine SVG



Coming soon.


Coming soon.


I’ve been really itching to learn Ruby, and, as I was working on a twine game at the time, this seemed like a prime opportunity to do so! Formats aside, the twine itself is just an XML blob embedded in the file. Easy enough to send Nokogiri after.

Another reason, though, and the reason for the name Twinedown, is that I spend most of my day embedded in a text editor I have set up just the way I like for writing markdown, and I really wanted the ability to use that in Twine-land. Also, for proofing games written in Twine, I wanted the ability to export that to Markdown and proof there, then reload into twine.

I’m very new to Ruby, but would love critique and contributions. Will be getting CI and tests set up soon!