The one game build
ReSkate supports exactly one build of skate., and it is not moving to newer ones. Everything in this group was measured on that build. A mod with game data carries a build stamp that names the game it was built against. ReSkate leaves out a mod built for another build: see what ReSkate refuses.From the top down
The bytes themselves are in archives (
cas_NN.cas), compressed in blocks of at most 64 KB. A file named layout.toc at the top of the data says which superbundles exist and which archives hold them.
Documents, resources and chunks work together
Most things are all three. A texture is a document (its name and settings), a resource (a 180-byte header: size, format, mips) and a chunk (the pixels). A mesh is a document, a MeshSet resource and one chunk for each detail level. A sound is a wave document, a bank resource and one or more chunks. A document points at its resource by id and at other documents by their guids. It never holds the bulk data itself.Bundles decide what is in memory
The game only has a document while a bundle that lists it is loaded. That is why every new thing in a mod has to say which bundles it belongs in:- a prop or a new sound goes in the root level’s bundle, which every map loads;
- a cosmetic’s parts go in bundles that load when the item is worn;
- a new document goes in every bundle of a game document you name it with: see what a mod may add.
Chunks a bundle does not list
A superbundle’s table of contents lists chunks apart from its bundles. Some chunks are listed there and in no bundle at all, so the game reads them only when it asks for them:- the sharpest mips of a large texture: see streaming;
- sounds that stream, or that load on demand: see where the samples are kept;
- the game’s movies.
The type library
Every document is made of objects, and every object is an instance of a type with named fields: aTextureAsset, a MeshAsset, an ObjectBlueprint. The game ships no list of its types. Each document carries a description of the types it uses.
Studio reads all of the game’s documents once (185,301 of them) and collects their descriptions into a type library: 4,060 types, each with its fields. It keeps the library in a cache file, so this takes about half a minute the first time only. With it, Studio can write a document the game has never had, field by field, and lay it out the way the game’s own tools do. See documents.
How a mod’s files take the place of the game’s
You never change the game’s own files. A built mod is a folder with:- its own
layout.toc, which is the game’s with the mod’s superbundles and archives added; - a patch table of contents for each superbundle the mod touches, listing the bundles it rebuilt;
- archives with the mod’s own data.
Mods\.reskate, before the game starts. When two mods change the same game file, ReSkate combines both changes onto the game’s copy; only changes that cannot be combined are a conflict. See the load order and the merge.
A Studio-built mod loads only under ReSkate. Copying its files over the game’s by hand does not work.