Skip to content

Write tweaks

A tweak is a small text file that changes a game. It can patch code or give players a slider for a value, and turning it off puts everything back.

@tweak "No damage"
@key F8
@patch game.exe+0x1A2B3C expect "mov [rbx+0x98], eax"
nop

That’s the whole tweak. You write it in the Workbench while the game runs, and there’s nothing to build.

  • A game running with Wraith. See Install mods if you haven’t got that far.
  • The Workbench. Press Ctrl+Home in game to open it. It’s where you find things and write tweaks.
  • Optionally, the Wraith extension for VS Code. It’s useful for editing .rwt files outside the game, with highlighting and snippets.

Players don’t need any of that. Your tweaks show up in the overlay’s Tweaks menu, where they can switch them on and change their values.

Tweaks are for small changes to one game. If you want your own windows or something to put on the hub, write a plugin.

  1. Your first tweak walks through finding something and changing it.
  2. Tweak files covers everything a .rwt can have.
  3. Patch or inject? helps you pick how to change code.
  4. Finding addresses is about making tweaks survive game updates.
  5. Groups puts several tweaks in one file, sharing data and code.

Save your project when you’re done. See Projects.

Made with ♥ by Asgard