Getting started

Getting started

Install the devkit, let it prepare your disc's data, make your first mod and see it in the game.

This page takes you from nothing to a working mod: the devkit open on your disc, a mod folder made, a change in it, and the change in the game. Every later page builds on these steps.

What you need

  • Return to Norrath installed (Windows 10/11 or Linux), with a Vulkan 1.3 graphics card.
  • Your own copy of the original game as a disc image: Champions: Return to Arms, USA v2.00 (SLUS-20973). The same image the game uses.
  • RTNDEVKIT.exe (Linux: RTNDEVKIT). It is installed beside RTN.exe; there is nothing else to download.

First start

Start RTNDEVKIT.exe. The devkit and the game share their data folder (data/ beside the exe): the same settings.ini, the same converted disc data (data/cache/), the same disc image and the same mods/ folder.

  • If the game has already run once, the devkit opens straight away on the data the game prepared.
  • If not, the devkit does what the game does on its first run: it asks for your disc image (remembered for both), checks it is the right game, and converts the disc's data with a progress bar. This takes a minute or two, once.
  • Cancelling the disc picker opens the devkit without the disc. Most modules need the disc's data, so you will want to pick it later.

Apart from preparing that data, the devkit writes only into the open mod's folder and its own log, data/RTNDEVKIT.log.

Tip The devkit opens on Home, a page listing every tool by section with a line on what it does. Press Ctrl+P anywhere to find a tool, a panel or an asset by name.

Make a mod

Everything the devkit makes goes into a mod folder under mods/. Make one with File > New Mod (or the New Mod... button on Home or in the Modules panel):

  1. Type a Name (for example Blue Barrels) and your Author name. The folder name, the mod's id, is made from the name and shown under it: mods/blue-barrels.
  2. Press Create. The devkit makes the folder with its mod.toml and opens it.
# mods/blue-barrels/mod.toml
[mod]
name = "Blue Barrels"
description = ""
author = "You"
version = "1.0"

The open mod is shown at the top of the Modules panel, where you can also edit its description, version and the mods it requires. The devkit remembers the open mod and module between starts.

To work on a mod you already have, pick it under File > Open Mod (every folder of mods/ is listed; Other folder... opens one elsewhere).

Your first change

Here are three small changes, each made a different way. Do any of them.

A: Change a number (Creature Editor)

  1. Open Characters & Animation > Creature Editor.
  2. Type kobold in the filter of the Details panel and select Kobold.
  3. On the Stats tab, set health to 200 (the original is 69: these are percentages of the game's formula).
  4. Press Save (or Ctrl+S, Save All).

The mod now has gamedata/monsters.toml with just your change:

[kind.Kobold]
health = 200

Mods hold only what they change. The game merges this over its own data key by key, so a later update of the game's data, or another mod changing another key, doesn't clash with it. Test in level on the Creature Editor plays a level with the creature in front of you to try it at once.

B: Replace a texture (a loose file)

Any file of the disc can be replaced by putting a file at its path in the mod. Each archive of the disc stands for a folder of the same name:

mods/blue-barrels/BG/DATA/BARREL.LMP/barrel.png

Paint the PNG (export the original first from the Model Replacer to have something to start from), save it at that path, then open Mod > Cook & Package and press Cook the mod. Images are cooked into the mod's pack (cooked/mod.rpak) in the same compressed format the disc's textures become.

C: Rename something (Text)

Open Scripts, Text & Audio > Text, type barrel in the filter, change the text of a key, and save. The mod gets BG/DATA/GTEXT.LMP/gtext.uni.txt (Text and sounds).

Cook

The game never reads a mod's sources (imported models, images, animations, replacers.toml). The devkit cooks them into cooked/mod.rpak, which is what the game reads. Open Mod > Cook & Package and press Cook the mod whenever you have changed models, textures or clips.

Tables (gamedata/*.toml), maps, scripts and text are read by the game as they are and need no cook. If you are not sure, cook: it only redoes what changed.

See it in the game

There are two ways:

  • From the devkit. The Level Editor's Play, the Creature Editor's and Script Editor's Test in level play in the devkit's own window. The pause menu's Return to Editor (or Ctrl+Shift+Q) comes back. A play test brings the enabled mods' data up to date first, so a mod you just cooked shows in it.
  • In the game. Start RTN.exe and choose Return to Norrath in the launcher. Open the Mods list and turn your mod on (a new mod folder starts off, so nothing changes until a player chooses it). Press Play.

The game prepares the mod's data the first time it sees it (and again only when something changed). Its log, data/rtanative.log, says what it loaded: see Testing your mod.

Where next

  • The devkit window: the panels and what every module shares.
  • The mod folder: every file a mod can hold and how mods combine.
  • The examples: complete mods to open in the devkit and learn from.
  • When it's ready, publish it so other players can install it from the launcher.