OPENTYRIAN2000 / ENHANCED WIKI Site EN · wiki in English Download
Wiki / Modding / Limits and troubleshooting
Modding

Tyrian modding: limits and troubleshooting

The game treats a mod as untrusted data. A file over a limit produces an error or a warning, never a crash.

Limits

WhatLimit
Mods loaded32
mod.json1 MiB, nesting depth 48, strings of 16 KiB, 200,000 values
PNG files4 MiB, 2048 px per side, 1024 per folder
Level files64 per mod, 2500 events and 40 random enemies each
README.md1 KiB
Items added by all mods together20 weapons, 14 ships, 13 sidekicks, 9 shields, 16 specials, 100 new enemies, 1200 projectile slots
Items per shop category10 shown, level items included

Common problems

SymptomCheck
The mod is ERR in Setup → ModsRead the reason on its line, then run tyrian-mods check for every message.
Error about the format versionmod.json needs "format_version": 1; the game reads only this format.
“unknown key”A typo, or a field that is not part of the format: check it against mod.json and items.
A weapon makes a sound but nothing is drawnThe first projectile's sprite is missing or unknown.
An item is not in the shopAdd "always_available": true; remember the 10 items per category.
A new enemy never appearsCite it by its name in levels/*.json; tyrian-mods run --level epN_NN counts its appearances.
A ship is invisibleship_sprite must name a 24×28 PNG of sprites/ships/ or an original ship sprite.