Oh no! Can I retrieve lost data from the .html version of my Twine story?

365 views
Skip to first unread message

Timm Woods

unread,
May 16, 2013, 8:14:40 AM5/16/13
to twee...@googlegroups.com
Very much a newcomer to Twine and coding in general. Last night my computer crashed after stupidly having not saved my story after a long and extensive night of work. I was, however, routinely testing my code using the "Build Story" function to save .html versions. The good news is that all of the actual prose I wrote is saved in the .html version. However, I'm regretting the lost code (which can't just be copy + pasted out of the .html document, as far as I know?). Does anyone know of a way I could restore my Twine Story file using only the exported .html file?

shadow...@gmail.com

unread,
May 16, 2013, 10:47:56 AM5/16/13
to twee...@googlegroups.com
If you have the command line tool Twee (available here http://twee.googlecode.com/files/twee-1.7.1.zip - you also need Python 2.7 from python.org )

This comes with a Python script called "untwee", which takes a HTML Twine story and restores it to Twee format, which can be imported into Twine.

Timm Woods

unread,
May 16, 2013, 2:56:07 PM5/16/13
to twee...@googlegroups.com
Thank you so much for the prompt response! I've downloaded both files, I see the "untwee" file that came with the zip, and I'm fiddling a bit with Python, but I'm still not totally sure how to run this. Any instruction from here would be much appreciated.

shadow...@gmail.com

unread,
May 16, 2013, 4:50:28 PM5/16/13
to twee...@googlegroups.com
Depends on what kind of computer you have. For Windows, assuming Python is in C:\python27, Twee is in c:\twee-1.7.1, and your HTML file is mygame.html which you've copied to the Twee directory, run the following commands from the Command Prompt:

set PATH=c:\python27\;%PATH%
cd c:\twee-1.7.1\
python untwee mygame.html >mygame.tw

This should create a file called mygame.tw in the Twee directory that you can then import into Twine.

Leon Arnott

unread,
May 16, 2013, 7:52:41 PM5/16/13
to twee...@googlegroups.com
Not to self-promote but I think using this web tool might be easier: http://www.glorioustrainwrecks.com/files/Twine_HTML_Twee_Converter_0.html

Timm Woods

unread,
May 17, 2013, 4:22:54 PM5/17/13
to twee...@googlegroups.com
@shadow, I got all the way to Importing the .tw file into Twine, but it kept coming up as a blank passage in the story. In any case, the converter's doing the trick for me, I can copy/paste everything from here into my Twine file. Both of you guys, thanks a TON for the help. Seriously saved my project.
Reply all
Reply to author
Forward
0 new messages