Getting started

Testing your mod

Play tests from the devkit, playing a mod in the game, the Developer Tools, the logs, and what to check when a change doesn't show up.

There are two ways to try a change: a play test from inside the devkit, which is quickest, and playing the mod in the game the way a player will. Use the first while you work and the second before you publish.

Play tests in the devkit

These modules play the game inside the devkit's own window, with the open mod:

Module Button Plays
Level Editor Play The open map from its start point (it is saved first).
Creature Editor Test in level A level with only a start point and the creature in front of you.
Script Editor Test in level The level whose script you are editing, with your script.

The pause menu's Return to Editor, or Ctrl+Shift+Q at any time, ends the test and brings back the devkit where you left it. A play test brings the mod's prepared data up to date first, so models and textures you just cooked are in it.

Other modules try things out in their own viewport without leaving the devkit: the Skill Designer casts a skill at training dummies with the game's own code, the Effect Creator plays an effect as you edit it, the Class & Race Editor shows the hero in its gear and clips, and the Weather module runs its particles on a level.

Playing the mod in the game

  1. Start RTN.exe and choose Return to Norrath.
  2. Open Mods and turn the mod on (and any mod it requires: the launcher offers to).
  3. Press Play.

The game prepares the mod's data the first time it sees it, and again only when something changed. A change to a table, map, script or text is read at the next start; a change to a model, texture or clip needs a Cook first (what needs a cook).

Tip Interface mods don't need a restart: F10 reloads every mod's ui/ while the game runs (Interface mods).

The Developer Tools

Turn on the built-in Developer Tools mod in the launcher's Mods list. It adds debug keys, all with Ctrl+Shift held:

Keys Does
Enter Fly the camera free (again: play on). WASD/QE and the right mouse button, or both sticks, R2/L2 up and down.
P Restart at the level's start
F5 / F9 Quick save / quick load
[ / ] Change level while flying
Tab The model viewer: Left/Right browse every model, Space cycles its animations
H, G, V Next hero type, armour, weapon
F11 The list of controls

Hold the controller's touchpad (PlayStation 4 and 5 pads) to noclip: the hero walks through walls, structures and the level's edges at the height it had when you pressed it, so it can't fall under the map. Let go and the floor and walls hold again from where it stands. Each local player's own pad noclips that player's hero; online it works for Administrators with the Developer Tools.

The pause menu gains a Developer Tools submenu:

  • Level Warp...: go to any level, your maps included.
  • Vars...: each mission's Available / Complete / Medal and its bonus variables (mxcm1..3: the mission's bronze, silver and gold medal crests), the good or evil choice, per difficulty. Use it to open a mission your map requires without playing up to it. Its Difficulty row goes from Adventurous (1) to Epic+10 (15): pick another one (Accept, or Left / Right) and leave with Back, and the game switches to it there and then (online too, for an Administrator), with no restart. Each difficulty keeps its own journal, variables, visited levels and place, so you can test your map at several difficulties with one hero; a difficulty not played yet starts fresh in the hub.
  • Item Spawner...: every item of the game and the loaded mods, by category (accessories and held lights under Accessories). Your new items are here, never-rolled ones too.
  • Item Editor...: change any carried item's base, prefix, suffix (the loaded mods' too), look and properties: its slot count (that item's own, 1 to 8), the property in each slot and its numbers (with RTN Rebalance a slot holds a port property too; the required level is the Item Level row, in no slot) and a mod's named bonus.
  • Learn All Skills, Add Level, Add Attributes, Add Skill Points: try a class at any level.
  • Debug Menu...: set the hero's gameplay variables in place - whether the ear is pierced (the second earring slot), gold, level (up or down), Strength / Intelligence / Dexterity / Stamina, unspent attribute and skill points - and refill health and energy. Left / Right steps a row, Accept takes a bigger step (Gold +100,000, an attribute +10, points +5) or flips a switch. Changes are kept when you save.
  • Invulnerability (also free spells and no weight limit), Save Game.
  • Clean Up: one heavy blow to everything in the level but bosses (creatures are hurt, breakables break), picks up the gold, opens what can be used, and sells the backpack's spare items.

The logs

The logs say what was loaded and what went wrong. Both are in the data/ folder beside the exe.

Log Written by Look for
data/rtanative.log The game (and a devkit play test) vfs: [mod:<id>] has N loose entries, cook: mod <id>: N cooked entries, a mod with sources but no cooked pack, a table that didn't parse, a QuestScript error with its file, line and column, a Lua error with the script's name, interface: ... for the UI
data/RTNDEVKIT.log The devkit A glTF or image that was rejected and why, a cook's warnings, anything shown in the Output Log

Lua scripts can write their own lines with rta.log("...").

The devkit's Output Log panel shows the devkit's log as it happens, and filters to warnings and errors.

When a change doesn't show

Go down this list:

  1. Is the mod on? In the launcher's Mods list (a new folder starts off). In a play test it always is.
  2. Did you cook? Models, textures, clips and Material graphs need Cook the mod after every change.
  3. Did you save? A module's unsaved changes are only in the devkit. File > Save All writes them.
  4. Is it at the right path? A replaced file must be at the exact archive and entry name of the disc. Select the original in the Asset Viewer or the Content Browser to see its path, or open the mod's file in the devkit (it opens in the module that uses it).
  5. Does another mod win? A mod further down the load order changes the same key or file.
  6. Is the key right? A misspelt key in a table is ignored. Open the file in the devkit (the editors only write keys they know) and run Validate, which checks the whole mod.
  7. Read the log. data/rtanative.log names every table that didn't parse and every script that failed.

To make the game prepare everything again from scratch, start it with RTN.exe --recook (the disc's data and every enabled mod). It's slow, and rarely needed: the game already notices changed files.

Multiplayer

A LAN game needs the same mods on every machine. When they differ, the joining player is told which mods the host has. To test a mod with two players on one machine, use shared-screen co-op.