Thanks for this. Some notes from my experience following it:
The sample code wouldn't compile without a "StoryTitle" passage ("error: Special passage "StoryTitle" not found.")
I'm also using VS Code, and I really wanted syntax highlighting. The only extension I could find was "Twee2 tw2 Syntax," which supposedly accommodates files with either the .tw or .tw2 extension; I tried both, but only .tw2 worked. And since Tweego's docs say the 'official' extensions are .tw and .twee, I'm not sure if using .tw2 will cause headaches later
philome.la appears to be 'read-only' now, so might want to remove the reference to that
PlayFab-Twine sounded interesting: is it possible to get it working with formats other than Harlowe?
Just added a StoryTitle passage to the sample, and removed philome.la (as sad as it makes me!)
I'm also using the "Twee2 tw2 Syntax" extension. It's been working fine for me with ".twee" files without any configuration. Also worth noting that, even if it's not picking up .tw files, you can click the language name in the bottom-right corner of your VS Code window and manually select "Twee" to enable syntax highlighting for any file regardless of extension.
Building something like PlayFab-Twine depends on hooking directly into the internals of a story format. It's definitely possible to get it working with formats other than Harlowe, but it's a non-trivial amount of work. If there was a lot of interest, I'd consider making a new version for Snowman or Sugarcube.
I'm definitely interested in a sugarcube version of PlayFab-Twine! It sounds amazing.
And thanks heaps for this informative blog post. I read it about 5 times before I could remotely understand it...but finally got tweego working yay! Next step Github actions!
Btw how did you get that AI collaboration working in VS??! Sounds so great
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for this. Some notes from my experience following it:
The sample code wouldn't compile without a "StoryTitle" passage ("error: Special passage "StoryTitle" not found.")
I'm also using VS Code, and I really wanted syntax highlighting. The only extension I could find was "Twee2 tw2 Syntax," which supposedly accommodates files with either the .tw or .tw2 extension; I tried both, but only .tw2 worked. And since Tweego's docs say the 'official' extensions are .tw and .twee, I'm not sure if using .tw2 will cause headaches later
philome.la appears to be 'read-only' now, so might want to remove the reference to that
PlayFab-Twine sounded interesting: is it possible to get it working with formats other than Harlowe?
Thanks for this!
Just added a StoryTitle passage to the sample, and removed philome.la (as sad as it makes me!)
I'm also using the "Twee2 tw2 Syntax" extension. It's been working fine for me with ".twee" files without any configuration. Also worth noting that, even if it's not picking up .tw files, you can click the language name in the bottom-right corner of your VS Code window and manually select "Twee" to enable syntax highlighting for any file regardless of extension.
Building something like PlayFab-Twine depends on hooking directly into the internals of a story format. It's definitely possible to get it working with formats other than Harlowe, but it's a non-trivial amount of work. If there was a lot of interest, I'd consider making a new version for Snowman or Sugarcube.
I'm definitely interested in a sugarcube version of PlayFab-Twine! It sounds amazing.
And thanks heaps for this informative blog post. I read it about 5 times before I could remotely understand it...but finally got tweego working yay! Next step Github actions!
Btw how did you get that AI collaboration working in VS??! Sounds so great