Moving from Twine
Twine stories can be imported once you've exported them in Twee 3 format (.twee, .tw). Passages become labels, and links become choices. The basic syntax of the Harlowe and SugarCube story formats is supported. Published .html files can't be read.
How to import
- Export the story from Twine in Twee 3 format.
- Run
lim import-twinein the folder of the project you're importing into. If you pass a folder or several files, they're treated as one story and become one.limfile.lim import-twine story.twee
The results are written to twine-import-report.md (in Japanese). For a single file, you can also use Import text in Studio and choose Twine (Twee 3) as the format (Import in Studio).
Side-by-side table
This is the real result of converting a SugarCube story with lim import-twine.
:: StoryInit
<<set $trust to 0>>
:: Start
Outside the window, the rain was letting up.
<<set $trust to $trust + 1>>
<<if $trust > 0>>I felt ''a little'' relieved.<</if>>
[[Go out->Go]]
[[Stay home|Stay]]
:: Go
We went out together. Visit number $trust.@set game.trust = 0
# Start
Outside the window, the rain was letting up.
@set game.trust = game.trust + 1
@if game.trust > 0
I felt {b a little} relieved.
@end
@choice
- Go out -> #Go
- Stay home -> #Stay
@end
# Go
We went out together. Visit number {= game.trust}.
@title-screen| Twine | .lim |
|---|---|
:: Name (a passage) | # Name |
[[Text]], [[Text->Target]], [[Target<-Text]], [[Text|Target]] | An @choice at the end of the passage |
$x, _x | game.x, temp.x |
''bold'', //italic//, <br> | {b …}, {i …}, {br} |
Harlowe (set: $x to it + 1) | @set game.x = game.x + 1 |
Harlowe (if:)[…], (else-if:)[…], (else:)[…] | @if, @elif, @else |
Harlowe (print:), (goto:), (either:) | {= …}, @jump, pick([…]) |
SugarCube <<set>>, <<if>>, <<elseif>>, <<else>> | @set, @if, @elif, @else |
SugarCube <<print>>, <<goto>>, <<link "Text" "Target">> | {= …}, @jump, a choice |
StoryInit (SugarCube) and the startup tag (Harlowe) | Run before the starting passage, and their set values become the initial values of the variables |
The full list of conversions is in Twine (Twee 3) import in the technical docs.
What can't be imported
The following aren't converted; they become comment lines and are listed in the report.
- Macros such as
(display:),<<include>>and<<widget>>. To reuse the same content, make it a Liminalia macro (@define) (Reuse the same scene or effect). containsandinin expressions. Rewrite them with array functions (list of functions).- Links to passages that don't exist.
HTML tags are removed, and only the text inside is kept. Passages tagged script, stylesheet or widget, and special passages such as StoryData, aren't converted. Recreate the look in Game settings in Studio.
What to check after importing
- Twine shows a whole passage at once, but in Liminalia one line of text is one click. Text inside conditional branches also goes on separate lines. Test play to check where the reading breaks fall.
- Set which file New Game starts from with
entryinliminalia.json. - Check for errors on the Check screen in Studio or with
lim check, and use the all-routes test to check for passages that can't be reached.