How an item is put together
An item is one document underitems/<category folder>/. It has two parts.
The item says what the inventory and the menus need:
The item’s data says what the item is made of. Its main list names the item’s assets, each with a type: an appearance preset, a mesh or morph preset, a texture, a full-body costume’s eight presets, a head’s normal map. Beside it the data can hold a swatch colour for the menu, the body regions the item hides, other slots it hides, sound overrides, game states it sets, shape weights, a painted layer or colours, depending on the kind of item.
Appearance presets
An appearance preset sets the material of an item’s mesh. It lists the shader parameters it changes, each by its key with a value: a picture, a colour, a number, a switch. Many items share one mesh and differ only by preset, which is why a colourway is a new preset and not a new mesh. See materials.Names, not references
An item names its assets as text. The game looks each name up in a table of bundles when the item is worn, and loads the bundle that holds it. So everything an item uses has to be in that table, and Studio adds rows for the meshes, presets and textures it makes beside the rows of the item they came from.Slots and the menu
The skater has 45 slots (head, eyes, tops, hats, hair colour and so on) and the board 8 (grip colour, wheel colour, bottom art, grip pattern, truck and three stickers). Each slot takes one category. A slot shows in the menu only when a page of the menu names it, and the game’s item table is filled from item collections. Studio adds a new item to the collection that holds the item it was made from.What the store shows
An item’s price, rarity and store description are in none of the game’s files: the store’s catalogue comes from the game’s online service. For an item of a mod, ReSkate shows the name made from the key (a leadingOwn_ taken off and underscores turned into spaces) and the rarity collector.
What an item does in play
Wearing an item can set values of the game’s animation states, which the animation already switches on:
An item sets a value the game already has. It cannot name a value of its own, and it cannot point at an animation clip.
Movement
How a garment swings is in its mesh: its swing bones and its cloth. Every item made from the same garment shares that mesh, the game’s own included, so changing it would change them all. Studio shows an item’s swing bones and does not change them.The categories
The game has 33 categories underitems/. A new item can be made in 29 of them.
Why four take no new item:
- Bodies. The body page is not a list: it has a build selector and a height selector, and their choices are the game’s 24 bodies, each tied to one pose of the skeleton. A 25th body would have no choice in the menu and no pose of its own.
- Locomotion. An item holds one value of the walking style, and the game has exactly two styles with animation for each. A third item could only be one of those two again.
- Makeup. Nothing in the game lets a player put makeup on: no menu page names the slot, the slot is not saved with the skater, and its one visible item is a placeholder. Eye makeup is made as an eyes item.
- Facial hair colours. No slot takes this category: a beard’s colour is a hair colour item. The seven items in it are empty leftovers.
An item of your own
A mod’s item starts from an item the game has, of the kind you want, and keeps its structure. It gets:- a key of its own, and so a name of its own in the game;
- its own copies of what you changed (a mesh, a preset, a texture, a layer), each registered beside the original so the game can find it;
- its own menu pictures, or the item it came from’s;
- a place in the item collection, so the game’s item table has it.
The rule on items the game sells
Every item the game sells in its store stays sold. ReSkate does not hand out store items, and a mod cannot either. A mod that adds an item copying a store item is left out at launch, whole: see copies of store items. Studio does not know which items are sold, so it hands out no unchanged copy of any item. Every new item has to carry something of your own, compared against the game’s item by what the item is made of:- a picture whose pixels differ from the game’s;
- a colour of a colour item, a shape weight, a colour or number of the material;
- a model whose most detailed level differs from the game’s in its triangles, positions, normals, texture coordinates or weights;
- an effect the game’s item does not have, or shader code of your own.