What a built mod contains
layout.tocis what makes the folder a mod with game data. See how a mod’s files take the place of the game’s.- Each superbundle’s table of contents lists the game’s bundles the mod rebuilt, and the bundles it added.
- The archives hold everything the mod changed or added: documents, resources and chunks.
- The build stamp names the game’s
Skate.exeby its hash. ReSkate leaves out a mod whose stamp names another build. - A map’s mod also holds its level’s superbundle and its reskate-levels.json.
Studio checks what it built
Every build ends by reading the mod back and holding it against the rules the game’s own files follow, for documents, textures, meshes and sounds. The build’s last step says how many things were checked and how many findings there were, and each finding is a warning on the item it is about. A finding does not stop the build. The game reads less than it writes, so a mod with a finding may still load. Treat a finding as the first place to look when something does not show in the game. Not checked by this step: Lua scripts, material blocks, collision and the other resources, which are counted only.Installing and undoing
Testing in the game installs the build asMods\<project title>.
Before anything is copied, Studio checks that the build’s stamp names the Skate.exe in the game folder, and that the game’s data files are the supported build’s. Then:
- The build is copied beside
Modsand compared byte for byte. - The version already in
Mods, if any, is moved aside. One version back is kept. - The copy is moved in.
Mods as it was. A folder in Mods that Studio did not install is never replaced. A map already installed under another folder name is updated there, so no two folders register one level.
Undoing the last install puts the kept version back, or takes the mod out when there was none. The folder that was installed is kept beside Mods, not deleted.
Turn off or remove your test install before you install the published version of the same mod, so the two do not conflict.
What ReSkate checks at launch
The launcher merges every enabled mod into one patch before the game starts. A mod is left out, whole, when:- its stamp names another game build (OUTDATED);
- its files cannot be read, or point at files it does not have;
- it conflicts with a mod above it;
- it adds an item that copies a store item.
The Thunderstore package
Publishing saves a zip with the mod’s files at its top, besidemanifest.json, icon.png (256 by 256) and README.md. The launcher finds a mod at any depth of an unpacked package. See publishing on Thunderstore.
- A package over 4 GB is refused.
- Studio writes an empty
dependencieslist. Add any your mod needs to themanifest.jsonin the zip. - While the project is what you last tested, with nothing changed or unsaved, the package is that very build. Otherwise Studio builds again and says the package has not been tested.
Why a build is the size it is
A mod can be far larger than what you changed. These are the reasons.Every bundle that holds a changed file is rebuilt
The game finds an asset through the bundles that list it, so a changed asset has to be listed again in every bundle that holds it. The mod carries each of those bundles’ lists in full, everything in the bundle and not only what changed, stored uncompressed. So the cost is set by the bundles that hold what you change, not by its own size. Two measured examples, each one replaced texture of 184 bytes:
The count of bundles alone does not decide it: what those bundles list does.
Changes that spread
- A changed game material goes into every material depot that holds its key, up to 236 of them: see materials.
- A cosmetic moved to another shader carries the game textures its new block names into the item’s bundles. Moving one pair of trousers took a mod from 3 MB to 22 MB.
- A map carries a copy of San Vansterdam’s root bundle list, the city’s bundles its start point loads, and the pause map’s 244 tiles.
Data that is simply larger
- A sound written as PCM, when the encoder is missing, is about three times the size of EA-XAS and about nine times the game’s Opus: see codecs.
- A texture from a DDS of a larger size than the game’s carries a new header and all its mips.
Keep it small
- Change as few game files as you can, and prefer files that sit in few bundles.
- Prefer a new item of your own over changing a game asset many things share.
- Keep the project and work folders on a short path: a build fails when a file it writes passes 260 characters.