blurymind / YarnClassic

A tool for writing interactive dialogue in games!
MIT License
515 stars 51 forks source link

Exporting back to Twine? #64

Open desplesda opened 5 years ago

desplesda commented 5 years ago

Issue by DongerZone Friday Mar 02, 2018 at 17:10 GMT Originally opened as https://github.com/InfiniteAmmoInc/Yarn/issues/64


Twine doesn't use the .twee format anymore, so I'm not able to even use the Twee export tool at all.

desplesda commented 5 years ago

Comment by fragmental Thursday Sep 20, 2018 at 03:07 GMT


@DongerZone I think you can use twee2 to convert twee files into the html files that twine2 understands. https://github.com/Dan-Q/twee2. But I haven't tried it.

desplesda commented 5 years ago

Comment by fragmental Thursday Sep 20, 2018 at 03:15 GMT


https://twinery.org/forum/discussion/2849/can-i-import-a-tw-file-into-the-twine2-gui here is another potential option.

It would be nice if yarn could export twine2 files, but I'm actually more interested in importing them.

desplesda commented 5 years ago

Comment by fragmental Friday Sep 21, 2018 at 04:23 GMT


http://www.motoslave.net/tweego/ is probably the easiest solution, if you can handle a command line

Edit: I just extracted the tweego archive and then extracted the story formats into that folder. Then I opened a command line in that folder and did a command that looked like this tweego -o example_1.html example_1.twee , to turn the twee into a Harlowe html file, which I can then open with Twine 2. However, the first time I ran the command, I was given some code :: StorySettings(you'll need both lines). I opened the file in a code editor(I used notepad++) and pasted the code at the top. In addition you will also want to add some lines that look like this:

:: StoryTitle
Untitled Story

replacing "Untitled Story" with the name of your story and optionally

:: StoryAuthor
Anonymous

replacing "Anonymous" with the name of the author/

There are other options you can use, like changing which story format is created, which is outlined in the documentation