Wanted: a designer. The look of this website and of the launcher was made with AI as a placeholder. Anyone who knows how is free, and encouraged, to replace it (site/, launcher/ui/).

Open Catbox

Make your own

Modding

A mod changes what the game shows or plays: pictures, sprites, music, voices, movies, text, even the story. Mods work in Open Catbox only, not in the original game.

Try one in a minute

1

Download

The example mod puts an Open Catbox logo on the title screen and changes the second line of Episode 1.

2

Add it

In the launcher, open Mods and press Add .zip….

3

Play

Look at the title screen. Its files are a good start for your own (source).

Making a mod

A mod is a folder

It holds only the files it changes, at the same paths as in the game's data, plus a mod.json:

my-mod/
  mod.json              name, author, version, description
  title/logo.png        replaces a texture of /title.txa
  bgm/umib_013.ogg      replaces the music /bgm/umib_013.nxa
  text.tsv              changed lines (below)
  script.patch          story changes (below)
{
  "name": "My mod",
  "author": "Me",
  "version": "1.0",
  "description": "What it changes."
}

In the launcher, open Mods and press Add folder… or Add .zip… (on Android and iOS, only a .zip). Turn mods on and off and put them in order: the higher mod wins when two change the same file. Show folder shows where they are installed.

Getting the game's files

The tool is sdu. Download it, unpack it, and run it from a terminal in that folder (sdu --help lists what it does; on macOS and Linux, type ./sdu).

The game's data is in the launcher's data folder, one level above mods: data.rom, and each language's own versions of some files in languages/<language>/patch.rom. Extract both; a file in the language's folder is the one the game uses.

sdu rom extract data/data.rom game
sdu rom extract data/languages/en/patch.rom game-en

Pictures, sprites, sounds

Turn a game file into a common one with sdu, edit it, and put it in your mod at the same path. The game reads these forms directly.

Game fileIn your modTo start from it
picture name.picname.png sdu picture decode name.pic name.png
textures name.txaa folder name/ with only the PNGs you change, named as decodedsdu texture-archive decode name.txa name
sprite name.bupa folder name/ with only the parts you change (base.png, <expression>_face1.png, _mouth_1.png…) sdu bustup decode name.bup name
music, voice, sound name.nxaname.ogg (Opus) sdu audio remux name.nxa name.ogg
movie name.mp4name.mp4as it is

Keep a picture the size of the one it replaces. To make your own music:

ffmpeg -i song.wav -c:a libopus -b:a 160k -metadata LOOPSTART=441000 song.ogg

LOOPSTART is optional: the sample (48,000 a second) where the music starts again when it loops.

Text

A text.tsv at the top of your mod changes lines, choices, chapter titles, tips, character descriptions, music titles and menu texts, without touching the story. Write out every text of a language's script to find what to change:

sdu scenario export-text game-en/main.snr all-text.tsv

Copy the lines you want into your text.tsv and change their text. One line each: the key, a tab, then the text. # starts a comment.

# the speaker's name, @r, then the line
msg:110	@r(This line was changed by the example mod.)
music:3	A new title

Text mods keep saves working. The table works with any language, so a mod made for English shows English text in Japanese too.

Story

A script.patch adds, replaces or removes parts of the story. Write out the script as text, one instruction per line with its address:

sdu scenario export-script game-en/main.snr script.txt

Then name the script the patch is for (the hash is at the top of script.txt), and what to change:

@script c600e23a623c4527
@insert 000a97c8
Command(MSGSET((msg_id:90001,auto_wait:true,text:"Kyrie@r\"A new line.\"")))
  • @insert <address> puts lines before that address.
  • @replace <from> <to> replaces everything from one address up to the other; with nothing after it, removes it.
  • New lines take message numbers above the script's highest.
  • Check a patch with sdu scenario apply-patch game-en/main.snr out.snr script.patch.

A story patch works only with the language it was made for; the Mods tab says which. Saves made without it may load at another place, so the launcher asks before playing a save with other story mods.

Sharing

Zip your mod folder and share the zip. Put in only what you made or changed: never the game's own files.

More detail: modkit.md.