Check, cook and publish

Publishing a mod

Share a mod on returntonorrath.com from the devkit's Publish module - signing in, versions, building and checking the package, uploading - and exactly what a published mod may contain.

Publish (Mod section) uploads a mod to returntonorrath.com, where players find it and install it from the launcher.

Before you publish

  1. Validate the mod and fix its errors (Validate).
  2. Cook it if it has sources (imported or replaced models, textures, clips): a mod with sources and no cooked pack can't be published (Cook and package).
  3. Fill in mod.toml: its name, description, author and version (see The mod folder).
  4. Test it in the game (Testing).

Publishing

1. Sign in

Sign in with your Return to Norrath account. The password is sent only as its proof, and the sign-in is kept in the devkit's settings until you Sign out.

Uploads need a verified e-mail. If yours isn't, Open my account page goes to the website to verify it; then press I've verified it.

2. Choose the mod

The open mod is chosen by default; Mod folder picks another folder of mods/. Its folder name is its id on the website: 3 to 48 characters of a-z, 0-9, _ and -, starting with a letter or digit. Rename the folder if it isn't.

The website is asked whether the mod exists:

The website says Then
New Publish new mod creates it
Yours, with its latest version Upload new version adds this one. mod.toml's version must be newer: raise it first.
Someone else's The id is taken: rename the folder

3. Build the package

Build the package packages the mod (as Package... does) into a temporary folder, never uploading from the mod folder itself. Every file is checked against what a mod may contain, and each refused file is named with the reason. Then a manifest listing every file (its path, size, SHA-256 and kind) is written, and the folder is zipped.

4. Upload

For a new mod, fill in:

  • Summary: one line for the mod list,
  • Description: Markdown (empty: mod.toml's description),
  • Tags: comma-separated (classes, maps, graphics...),
  • Changelog.

A new version needs only its changelog. Press Publish new mod or Upload new version: a progress bar shows the upload, and Open the mod's page opens it on the website when it is done.

What a mod may contain

A mod is meant to carry only its author's own work: the devkit's tables, maps, cloth, text, scripts and interface files, and the cooked pack of what the modder imported. Files in the disc's own formats (.vif, .tex, .anm, .vag, .bin, whole .LMP / .GOB archives...) can't be told apart from copies of the disc, and programs have no place in a mod, so neither is published. The devkit refuses anything else, and the website applies the same rules to every upload.

Kind Files Must be Largest
manifest mod.toml Text 64 KB
gamedata gamedata/*.toml Text 16 MB
text BG/DATA/GTEXT.LMP/gtext.uni.txt Text 16 MB
map maps/*.toml Text 16 MB
map-terrain maps/*.terrain Text 64 MB
map-heightfield maps/*.heightfield The Level Editor's ground 256 MB
map-voxels maps/*.voxels The Level Editor's caves 256 MB
map-automap maps/*.automap The Level Editor's map 64 MB
map-image maps/**/*.png PNG 64 MB
cloth cloth/*.cloth Text 16 MB
cooked-pack cooked/mod.rpak The devkit's cooked pack 512 MB
hero-script scripts/**/*.lua Text 1 MB
ui-script ui/**/*.lua, interface/**/*.lua Text 1 MB
ui-data ui/**/*.toml, interface/**/*.toml Text 4 MB
ui-image ui/**/*.png, interface/**/*.png PNG 64 MB
level-script BG/DATA/*.GOB/*.lmp/*.qs, *.pwn and *.inc there, maps/*.qs, maps/*.pwn, maps/**/*.inc Text 4 MB
pawn-script scripts/**/*.pwn, scripts/**/*.inc Text 1 MB
prefab prefabs/*.toml, prefabs/*.qs Text 16 MB
audio BG/DATA/*.LMP/*.wav WAV 64 MB

A mod may have at most 20,000 files and 512 MB in all. "Text" means UTF-8 with no NUL bytes; the binary kinds must start with their format's signature.

Everything else is refused, for example:

  • assets/ and replacers.toml: these are sources, already cooked into the pack (Package leaves them out),
  • any image other than PNG, and any PNG outside maps/, ui/ and interface/ (loose texture replacements are cooked into the pack),
  • the disc's formats and whole archives,
  • programs and system scripts (.exe, .dll, .bat, .ps1, .sh, .js, .jar...),
  • readme or text files outside the kinds above.

Note Scripts are published as their sources: QuestScript .qs, Pawn .pwn and .inc. A compiled script.scr, and Pawn files named .p or .pawn, are refused, so rename those to .pwn before you publish.

The package

The zip has one top folder, the mod's id:

<id>/
  rtnmod-package.json          the package manifest
  mod.toml
  ...                          every other file listed in the manifest, nothing else
{
  "schema": 1,
  "id": "tough-kobolds",
  "version": "1.0",
  "devkitVersion": "0.2.0",
  "createdAt": "2026-10-19T20:15:00Z",
  "files": [
    {"path": "cooked/mod.rpak", "size": 1048576, "sha256": "<64 lowercase hex>", "kind": "cooked-pack"},
    {"path": "gamedata/monsters.toml", "size": 812, "sha256": "...", "kind": "gamedata"},
    {"path": "mod.toml", "size": 120, "sha256": "...", "kind": "manifest"}
  ]
}

The website rejects a zip whose contents differ from its manifest in any way: a file missing from the zip or the manifest, a size or SHA-256 that differs, a kind that isn't the one the rules give the path, or a file the rules refuse. The game itself doesn't need the manifest: mods copied in by hand still load.

Updating a mod

Raise version in mod.toml, cook if needed, and publish again: Upload new version adds it with its changelog. Players who installed the mod from the launcher see it marked update in its Online Mods list.