Migrating to v2
Move a v1 project to v2, the recommended version
Updated
Install v2 and run rogen init in the folder that holds .rogen.json. Add --dry-run to see the plan first.
init writes a config for each v1 mode, with routes that put every script where v1 did, and takes the tree from your project. It renames the files that v1 routed by a word in their name to the @ form, such as Combat_Server.luau to Combat@Server.luau, and renames .rogen.json to .rogen.json.v1.
It warns about what it can't carry over: tags, v1's marker files that don't route, and files that v1 placed by the deepest rule. Each warning says what to do. Run rogen check until it prints nothing, then rogen serve and compare Studio's Explorer with your v1 build. When every script sits where it did, delete .rogen.json.v1.
What Replaces Each v1 Feature
| v1 | v2 |
|---|---|
source, -s | sourcePaths |
aliases, built-in keywords | routes |
casing, unwrap, .unwrap | the route's target path |
| keywords in names | @key or a routing folder |
tags, -t | a source path listed after the others, whose files replace the ones at the same path |
modes, -m | a config for each mode, such as build.rogen.json |
a mode's build, -b | compiledPath |
project, template, -p | tree in the config |
.structure | a marker file such as @Shared |
.sync | a $path node in the tree |
| several places from one config | a config per place |