LiminaliaLiminalia
Migration guide: Migration guide

Migration guide

Scenarios written for other engines can be converted to .lim and imported. Labels, choices, conditional branches and variables are converted to the Liminalia way of writing them. Anything that can't be converted is kept as a comment line and listed in a report.

What you can import

Original engineFiles readStudioCommand
TyranoScript, TyranoBuilderThe .ks files in the project's data/scenarioSet the import source in the project settings, then Import againlim import
Ren'Py.rpyImport textlim import-renpy
Ink.inkImport textlim import-ink
Yarn Spinner.yarnImport textlim import-yarn
TwineTwee 3 .twee and .twImport textlim import-twine

Import in Studio

To bring in a single file, Import text in Studio is the easiest way.

  1. On the Script screen, select the line just before where you want to insert it.
  2. Click the heading above the scenario (the file name) and choose Import text from the menu.
  3. Paste the scenario into the left pane, or choose a file with Choose a file… at the top right. You can also drop a file onto the pane. The format is detected automatically; if it can't be detected, choose it under Format at the top.
  4. The converted result and the number of parts that couldn't be converted appear on the right. Press Insert after the cursor line, or enter a file name and press Make a new file.

Steps with screenshots are in Import text you've written all at once.

Import with commands

To bring in a whole folder or many files at once, use the lim commands. Create the project to import into first, and run the commands in its folder.

lim new my-game --blank
cd my-game
lim import-renpy game/           # every .rpy in the Ren'Py folder
lim import-ink story.ink         # also reads the files it INCLUDEs
lim import-yarn dialogue/        # every .yarn in the folder
lim import-twine story.twee
  • The converted .lim files are written to the project's scenario folder under their original file names.
  • Speakers are added to cast.json, and the initial values of variables to variables in liminalia.json. Initial values of variables that already exist aren't changed.
  • If a .lim with the same name already exists, it's overwritten only if the same command made it before. Other files aren't overwritten, and you're told about them (--force overwrites them).
  • The results are written to a report in the project, such as renpy-import-report.md (the report is in Japanese).

What to check after importing

  1. Read the report. Anything that couldn't be converted stays in the .lim as a // comment line, and the report lists how many there are and why. Replace them one by one with the Liminalia way of writing them.
  2. On the Check screen in Studio, or with lim check, look for missing assets, speakers that aren't registered and parameters of the wrong type.
  3. Put the backgrounds, sprites, BGM and other assets into the folders for each kind under assets in the project. Set up sprite variants and positions on the Characters screen.
  4. Check which file New Game starts from. The starting point is set by entry in liminalia.json.
  5. Run the all-routes test to check for scenes that can't be reached and places where the game gets stuck (Find gaps with the all-routes test).
  6. Test play it. Effect timings and where the game waits for a click can differ from the original engine.