0 votes
asked ago by (120 points)
I'm attempting to open a twine game to view how it was written - I've done this with several games that I've played as I'm trying to learn to write my own. I've never had an issue with opening one in twine to look at before, but I can't even get this file to show up. I have tried drag and drop and also import from file, both in the destop program and the browser version. I checked in the browser dev console when playing the game and I can change variables using Sugarcube.state.variables.(variable being changed).

1 Answer

0 votes
answered ago by (57.1k points)
You could try Twine 1 or Tweego. Chances are it was made using a Twine 1-style process if it won't import into Twine 2.
commented ago by (120 points)
Thank you, I was able to open it in Twine 1.4.2. I wasn't able to even use tweego, but that's a problem for a different forum :)
commented ago by (120k points)

The Story Meta Data section of a story HTML file current has two different formats:

(note: the following data formats have been simplified for readability sake.)

1. The older "Twine 1.x" format.

This format can be imported into / read by: Twine 1.x application, TweeGo

<div id="store-area" data-size="876" hidden>
  <div tiddler="Passage Name 1" tags="tagA">...</div>
  <div tiddler="Passage Name 2" tags="tagB">...</div>
  ...
</div>

 

2. The newer "Twine 2.x" format.

This format can be imported into / read by: Twine 2.x application, TweeGo

<div id="store-area" hidden>
  <tw-storydata name="The Story Name" startnode="1" format="SugarCube" hidden>
    <tw-passagedata pid="1" name="Passage Name 1" tags="tagA">...</tw-passagedata>
    <tw-passagedata pid="2" name="Passage Name 2" tags="tagB">...</tw-passagedata>
    ...
  </tw-storydata>
</div>


The quickest way to tell which of the two Twine GUI applications to use when trying to import an existing story HTML file isto open it within a Text Editor and search for tw-storydata If it's found then its the newer format else it's the older one.

Or if you have installed the TweeGo compiler then just use its --decompile option to generate a TWEE based version of the story HTML, it automatically detects which data format was used. This compiler can also be used to convert a Twine 1.x based project into a Twine 2.x based one, and vice versa.

commented ago by (18k points)

Actually, if it's made using SugarCube, then you'll find "tw-storydata" in both Twine 1 and Twine 2 projects, since it's in SugarCube's CSS section.  It's actually easier and better to just search for "Twine" in the HTML text, since it's easier to remember and it usually takes you straight to the exact version number.

The first hit on "Twine" in a Twine v1 project will probably be something like:

  * Made in Twine 1.4.2 (running on Windows 8)

while in a Twine v2 project it will probably be more like:

creator="Twine" creator-version="2.2.1"

which, in this particular example, means it was made in Twine v2.2.1.

Hope that helps!  :-)

Welcome to Twine Q&A, where you can ask questions and receive answers from other members of the community.

You can also find hints and information on Twine on the official wiki and the old forums archive.

See a spam question? Flag it instead of downvoting. A question flagged enough times will automatically be hidden while moderators review it.
...