Rogen

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

v1v2
source, -ssourcePaths
aliases, built-in keywordsroutes
casing, unwrap, .unwrapthe route's target path
keywords in names@key or a routing folder
tags, -ta source path listed after the others, whose files replace the ones at the same path
modes, -ma config for each mode, such as build.rogen.json
a mode's build, -bcompiledPath
project, template, -ptree in the config
.structurea marker file such as @Shared
.synca $path node in the tree
several places from one configa config per place

On this page