A skin package is a ZIP of a skin folder, named <id>.zip. It has no version field and no manifest: the skin is its skin.ts. See Writing a skin for what goes inside.
What is in a package
my-skin.zip
├── skin.ts entry file (required)
├── preview.png shown on the Skins page
├── fonts/Title.ttf
├── images/note.png
└── sounds/kick.wav
The entry file is skin.ts, at the root of the ZIP or inside the one top folder that holds every file (that folder is stripped on import).
| Allowed extension | Used for |
|---|---|
ts |
Sources |
png |
Images (preview.png is the picture of the Skins page) |
ttf, otf |
Fonts |
wav, ogg, flac, mp3 |
Key sounds |
Any other extension makes the package invalid.
Limits
| Limit | Value |
|---|---|
| Package file | 64 MiB |
| Entries (files and folders) | 1024 |
| Files | 512 |
| One file, uncompressed | 32 MiB |
| All files, uncompressed | 64 MiB |
The archive rules are the same as for mod packages: safe relative paths only, no symbolic links, no encrypted entries, no two names that differ only by case, stored or deflate compression only. All limits are in Limits.
Export and import
On the Skins page, Export writes <id>.zip into a folder you choose and replaces a file of that name if there is one. Hidden files (names that start with .) are left out. Any other file must have an allowed extension, and a symbolic link fails the export.
Import… reads a package and installs it as a new folder of your skins folder. An import never replaces an existing skin. The folder name is the ZIP's top folder name when it has one, else the file name without .zip. Characters a file name cannot hold are replaced by -, leading and trailing dots and spaces are dropped, the name is cut to leave room for a suffix, and a name that is still not valid becomes skin. If that folder already exists (in your folder or in the skins shipped with the game), the game appends -2, -3… until it is free. The new skin then appears in the list; you choose it as usual.
Like a mod, the archive is checked in full before anything is written, extracted into a hidden staging folder, then renamed into place, so a failed import leaves your skins unchanged.
Errors
Every refusal starts with invalid skin package:. The reasons are the archive messages of the mod package table with one difference: the allowed-files message names a skin package and the skin list.
invalid skin package: "sounds/boom.aiff" cannot be in a skin package: allowed files are .ts, .png, .ttf, .otf, .wav, .ogg, .flac, .mp3
invalid skin package: no skin.ts at the root of the package
invalid skin package: the package has 1500 entries; the limit is 1024
The catalogue allows less
A skin you export with key sounds imports fine, but the catalogue server accepts only ts png ttf otf and a package of at most 8 MiB. Remove the wav, ogg, flac and mp3 files before publishing. A person may publish at most 2 distinct skin ids. See Catalogue.
Importing an osu! skin
An .osk is an osu! skin, a different ZIP with its own limits. The converter reads it and builds a Prism skin from it; it never writes a .osk. The limits and the conversion are in Importing an osu! skin.
Pitfalls
- Two ZIPs of the same skin never overwrite each other: import twice and you get two folders. Delete the old one from the Skins page.
- A package with
skin.tsone level too deep (two nested folders) fails withno skin.ts at the root of the package. - A skin id is a folder name: it cannot start with
.and must be a valid file name.