Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Import over-right?

edited November 2016 in Help! with 2.0
I have a vague recollection of a brief discussion sometime about this little quirk of Twine's, but why exactly does importing a game with a different file name, over-right the one that's already loaded, so that you end up with two copies of the game you've just imported?

And doesn't this produce a huge risk to any game that you've not published yet?

Comments

  • The name given to an imported story HTML file is not derived from the file-name of the file, it is obtained from the name property of the story's tw-storydata element.
  • That may be so, greyelf, but if I have a game already loaded in Twine, and then import another, it over-rights the one that's already loaded, thus you lose that game if you haven't published it beforehand.
  • Which makes sense if the two versions of the same story have the same name (identifier) because the identifiers need to be unique.

    If you want two versions of the same story in your Story List then you will need to manually edit the story HTML file of one of them and change the identifier (the name property of the tw-storydata element) to something else before you import that story HTML file.
  • edited November 2016
    Do you mean this:
    <tw-storydata name="index" [...]
    
    So if I change 'index' to something else, and then open that in Twine alongside a game that's already open but with a different name (let's say 'main'), then I will have two different files open - one called 'index' and one called 'main' and 'main' won't over-right 'index'?

    It seems weird to me, though, that if I change the file name, it doesn't automatically change the the tw-storydata name too.

    All I can tell you, is that earlier today the file I'd been working on for several weeks (called 'Aftermath') which luckily I made a point of publishing each night, was over-written when I imported an earlier version of the game called 'index'. I then had two identical files open in Twine, both called index. In other words I would have lost the game I'd named 'Aftermath' (and countless hours of work to boot) if it wasn't for the fact I'd been publishing it each night.
Sign In or Register to comment.