On this page

← All documentation

Submit to the verified catalogue

Build a mod, skin or playlist package, what the server checks and what the team reviews, how to send it from the game, and how updates and versions work.

The catalogue (the Mods, Skins and Playlists sections of the game's Download page, and the site pages /extensions/ and /playlists/) lists what players and the Prism team publish. A mod or a skin is sent from the game, signed in to your Prism account with a confirmed e-mail address: Publish to prism.am on the Mods or the Skins page. A playlist is still sent through the Contact page and added by the team. This page is what to prepare and what to expect. The contract of the list that results is on Catalogue API.

Mod Skin Playlist
File <id>-<version>.pvmod <id>.zip <name>.pvplaylist
Largest file 2 MiB 8 MiB 1 MiB
Sent from the game's Mods page the game's Skins page the Contact page
Public after the team approves it as soon as the checks pass after the team approves it
Per account 5 mods 2 distinct skin ids no limit
Permissions those the mod declares none none

1. Prepare the package

A mod

  1. Write the mod as a folder with a main.ts (first mod) and try it in the game.
  2. Export it from the Mods page. You get <id>-<version>.pvmod, a ZIP of the folder (how export works).
  3. Keep it within 2 MiB, with at most 256 files (the game's installer refuses more than 256 even though the server would take 512). Allowed files: .ts, .ttf, .otf, .png, .json, .md, .txt. main.ts or index.ts sits at the root or in the single top folder.
  4. Choose a stable id and use the same one in defineMod: lowercase letters, digits and - _ . inside, starting and ending with a letter or a digit, no .., 64 characters at most. The id identifies your mod for ever and is unique among mods.
  5. Declare only the permissions you need (stage, skinImport, network). Players see them before they install.
  6. Make sure apiVersion matches the game's current API (2 today): see Changes.

A skin

  1. Build the skin folder with a skin.ts (first skin) and export it from the Skins page: <id>.zip (how export works).
  2. Keep it within 8 MiB. Allowed files: .ts, .png, .ttf, .otf. Remove the key sounds (wav, ogg, flac, mp3): the game imports them, the catalogue server refuses them.
  3. A skin has no permissions: a skin declaring one in the catalogue entry is refused.
  4. One person may publish at most 2 distinct skin ids. New versions of those skins do not count again; withdrawing a skin frees its place.

A playlist

  1. Build the playlist in the game and export it from the Playlists page: <name>.pvplaylist.
  2. Keep it within 1 MiB, with at most 200 maps and a name of 1 to 64 characters (no control characters, no space at either end). The server reads the file the way the game does: a newer format version is refused.
  3. A playlist holds map identities, not maps: each entry names a chart by its content hash (chart_hash, see hashes) with its title, artist, difficulty and creator, and players need the maps to play it.

2. What is checked

Two checks, in this order.

The server checks the file, with the rules of the game's own importer, before anything is published. A file that fails is refused and nothing is stored:

  • the size, and a real ZIP archive (mod and skin);
  • safe relative paths (no absolute path, no .., no drive letter, no \), no symbolic link, no encryption, no duplicate name once case is ignored, allowed file types only, at most 1024 entries, 512 files, 16 MiB per file and 64 MiB unpacked, every entry holding the size it declares (read for real, so a zip bomb is refused);
  • the entry file: main.ts or index.ts for a mod, skin.ts for a skin, at the root or in the single top folder;
  • for a playlist, the JSON header, the version, the name and the number of maps;
  • the entry's texts: id, name (64 characters), author (64), version label (32), description (2000), permissions (8), tags (8 of 24 characters), screenshots (3 real images of 512 KiB at most).

The server does not run your code. The permissions of a mod's entry are the ones its defineMod declares, sent by the game with the package; the team checks them against what the code does.

The team reviews the item. A mod and a playlist stay invisible (state pending) until the team approves them. Nothing is served to the public before that, not even by guessing the file name. A skin is published as soon as it passes the checks. An approved item can be withdrawn later, at your request or if a problem appears.

Refusals you can meet: an id plus version that already exist, a file name already used, an id already held by another author, a third skin or a sixth mod of one account, a permission declared on a skin or a playlist, more than 5 sends in an hour (10 in a day). The game shows each one in words.

3. Send it

A mod or a skin: in the game, on the Mods or Skins page, choose Publish to prism.am on one of your own items (the game's shipped items cannot be sent), write a short description in English and send. The game builds the package as its Export does; the author shown is your account name. Offline mode sends nothing.

A playlist: send the file through the Contact page with its name, the author name to credit and a short description in English (and in French if you wish), as plain text.

4. Updates and versions

To publish an update, raise the version in main.ts or skin.ts and send again: the same id with a new version label. The label is free text, but the same id plus version twice is refused, and so is a file name already used. A version label is never compared by the server or the game.

What orders versions is seq: an integer that strictly increases per kind, in publication order. Each approved version has its own seq, and the entry players see is the one with the highest.

  • The catalogue keeps every approved version in versions[], newest first. A new version does not replace the old one on the server; it becomes the public version.
  • A new version of a mod is pending like the first one. Until the team approves it, the previous approved version stays the public one.
  • A new version of a skin is public as soon as it passes the checks.
  • Withdrawing a version removes it from the list. When no approved version is left, the item is gone from GET /api/catalog.
  • In the game, an installed item is an update when the catalogue's seq is greater than the one it was installed with. A mod update replaces the installed mod and keeps its enabled or disabled state. A skin update lands next to the old skin under a free folder name (neon-2): the game never overwrites a skin. A catalogue playlist is never an update: installing it adds a new playlist.

5. After approval

The item appears in the catalogue, in the game's Download page and on the site, with a mod's permissions shown before installation. A mod from the catalogue is installed disabled: the player turns it on from the Mods page, after reading what it asks for.

Source in the game repository: services/api/docs/CATALOG.md,services/api/src/controllers/catalog.rs,services/api/src/catalog/validate.rs,services/api/src/catalog/archive.rs,services/api/src/catalog/playlist.rs,services/api/src/catalog/store.rs,services/api/src/catalog/documents.rs,crates/downloader/src/repository.rs,apps/desktop/src/app/hosted.rs