Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOSED] Does opening twee files still work? #83

Closed
desplesda opened this issue Sep 18, 2019 · 8 comments
Closed

[CLOSED] Does opening twee files still work? #83

desplesda opened this issue Sep 18, 2019 · 8 comments

Comments

@desplesda
Copy link
Collaborator

Issue by fragmental
Thursday Sep 20, 2018 at 02:19 GMT
Originally opened as InfiniteAmmoInc/Yarn#83


Every twee file I have tried to open with the Yarn editor has caused the error "Unknown filetype!". This includes twee files that were exported from the Yarn editor.

However, I was able to open the twee file if it ended in .txt, and while the nodes were all there they had lost all their connections and the syntax for the connections was the same as it had been in twine, which doesn't work in yarn.

Bonus question: What file types can be opened?

@desplesda
Copy link
Collaborator Author

Comment by fragmental
Thursday Sep 20, 2018 at 02:52 GMT


I was using the release version of the yarn editor (2016-08-15) and I tried the latest code. Still has the same problem with .twee files, but I tried exporting a tw2 file and importing it and it seemed to work fine except that the connections were lost. It was weird too, because the syntax was mostly fine, except that one line was missing it's carriage return/new line, and there were some additional spaces at the end of two of the titles(One title had one space, and another title had two spaces). When I fixed those two issues most of the connections return. The remaining connections return when I do something arbitrary like opening and closing the affected node a second time.

The scene is a simple scene with 3 nodes and 4 connections.

@desplesda
Copy link
Collaborator Author

Comment by julsam
Thursday Sep 20, 2018 at 13:59 GMT


Not sure if it's related to #78 & #79 or not 🤔
Can you post your files here (both .twee and .tw2) so i can try to reproduce it?

@desplesda
Copy link
Collaborator Author

Comment by fragmental
Friday Sep 21, 2018 at 02:32 GMT


TestStory1.zip

Here's a zip file that contains the yarn story in .yarn.txt and a .twee and a .tw2 created with "save as twee" and "save as tw2" in the yarn editor.

I have also tried creating a twee with twine 1.4.2 and it also has the same result in yarn ("Unknown filetype!").

I have tested the twee from yarn editor in twine 1.4.2 and it works fine there. I have not tested the tw2, from yarn, in other software.

@desplesda
Copy link
Collaborator Author

Comment by fragmental
Friday Sep 21, 2018 at 03:10 GMT


I tested the twee file created with yarn, in tweego and it fails because it's looking for :: StoryTitle.
Adding:

:: StoryTitle
(Your Story Title)

to the twee makes it work, though.

Edit: I wasn't able to get the tw2 from yarn to work in tweego, though. It gives an error error: Starting passage "Start" not found. even though the passage is there. I suspect that the tw2 format may be unsupported in tweego. I'm not entirely sure where the tw2 file is supported. Possibly only Twee2.

Maybe @rcuddy knows more, since he added tw2 support

@desplesda
Copy link
Collaborator Author

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


Discovered something interesting. Renaming a .twee to .tw2 before import seems to work fine, in yarn.

@desplesda
Copy link
Collaborator Author

Comment by fragmental
Friday Sep 21, 2018 at 14:10 GMT


And I have also confirmed that if I edit the tw2 file, and remove the spaces between the Node name and the position, it then works correctly when I open it with the Yarn editor.

@desplesda
Copy link
Collaborator Author

Comment by fragmental
Friday Sep 21, 2018 at 14:12 GMT


I have also installed twee2 and tested the tw2 file with it and it works fine, with or without the extra spaces.

@desplesda
Copy link
Collaborator Author

Comment by blurymind
Saturday Nov 24, 2018 at 10:57 GMT


thank you for submitting this report.
I have fixed both bugs in my pull here
InfiniteAmmoInc/Yarn#80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant