Out now on Steam. The full career is available for Windows today. Get it now

Guide

Trophy builder parts

The Mod Studio's trophy builder (1.0.5, PC) makes a trophy for a pack's events from parts: plinths, bases, stems, cups with their handles and lids, toppers, and snap-on bands, each shaped by sliders and finished zone by zone, with an engraved plate. Save to pack writes an ordinary trophy (see Trophy models)): a .glb in assets/trophies/, its two pictures, and a trophies record whose design lets the builder open it again. The game draws the model, as it draws an imported trophy. Phones show the pictures.

The parts, finishes, texture sets, plate fonts and templates are data: the core pack's data/trophy-parts.json, and any pack's own. Each pack's trophyParts records are laid over the others. A part, finish, set, font or template with an id that is already there replaces it, and a new id is added.

A trophyParts record#

[ { "id": "acme.trophy-parts", "data": {
    "parts": [ ... ], "finishes": [ ... ], "textures": [ ... ],
    "plate": { "finishes": ["gold"], "shapes": ["rect"], "fonts": [ ... ], "lines": 3, "maxLetters": 40 },
    "templates": [ ... ] } } ]

Settings in data (the last pack's win):

  • segments: turns of a made lathe (default 72).
  • mattStep: the roughness added for matt (0.3).
  • surfaceEnv: how much of the stage's bright surroundings a finish that is neither metal nor glass reflects (0.12). Showing all of it, a dark gloss reads as grey metal.
  • maxParts: parts in one trophy (12).
  • maxCopies: copies one repeat makes (24).
  • decor: gems, enamel panels and logos (see Decorations).
  • fit: pedestalTopMm, gripBaseMm and liftHeightMm, the builder's fit check.

Parts#

Kinds, foot first: plinth, base, stem, cup, lid, topper. Then the riders:

  • handle: mounted on the cup under it, right and mirrored left.
  • band: a ring fitted round the part under it.

Any part stacks on any other: each stands on the top socket of the part below. Any part can also be placed freely (see Placing freely, repeats and groups). A part with "placement": "free" (a blade made for repeating) always joins a trophy placed freely, and Randomise leaves it out.

A group part is made of other parts: its group lists them as a design's items, placed in the group's frame (its foot centre at the origin). The builder's "Save group as a part" writes one.

A part is a Blender model or pieces the builder makes from numbers (free create):

{ "id": "urn-classic", "kind": "cup", "model": "assets/trophies/parts/cup/urn-classic.glb",
  "height": 214, "footRadius": 36, "topRadius": 86,
  "zones": ["main", "trim", "inner"], "starts": { "inner": "gilt" },
  "adjust": { "height": [0.6, 1.6, 1], "width": [0.6, 1.6, 1], "taper": [-0.5, 0.5, 0], "curve": [-0.3, 0.4, 0], "twist": [0, 90, 0], "facets": [6, 8, 12] } }

Sizes are in millimetres. adjust sets each slider's range and starting value. facets lists the facet counts a faceted part of pieces may take.

A part's model (Blender)#

One part per .glb:

  • metres, y up, the front +z, the origin at the foot's centre;
  • one UV set tiled at 1 unit = 0.1 m (cylindrical on turned parts);
  • baked occlusion in the vertex colours (COLOR_0);
  • edge loops at most 8 mm apart up a turned part, so taper and curve bend smoothly;
  • up to 6,000 triangles (a cup 8,500).

Named empties:

EmptyOnMeaning
socket.topstacking partswhere the next part's foot stands
mount.handle, mount.handle.lowcupsthe right handle's joins (the left is mirrored)
mount.lidcupswhere a lid sits (the rim)
join.bottomhandlesthe handle's lower join: the handle is stretched upright to meet mount.handle.low
plate.frontplinths, basesthe plate's centre; extras width, height, radius (m, 0 for a flat face)
grip.barhandles, stemsa winner's hand bar: +z along it; extras radius, length (m)

Materials are named for their zone, not their look: zone.main (or zone.body), zone.trim, zone.inner, zone.stone and zone.plate. The builder puts the chosen finish in each zone. A zone.plate surface carries the engraving: give it a 0..1 UV square, its top-left the text's top-left.

A band is modelled once round the y axis with its inner face at refRadius (default 50 mm) and its height centred on y = 0. The builder scales it to the radius of the part it sits on.

A part of pieces (free create)#

{ "id": "my-vase", "kind": "cup", "height": 120,
  "marks": { "mount.handle": { "at": [48, 90, 0] }, "mount.lid": { "at": [0, 120, 0] } },
  "pieces": [
    { "shape": "lathe", "zone": "main", "profile": [[0,0],[30,0],[30,10],[20,40],[45,80],[50,120]], "sharp": [2], "smooth": true },
    { "shape": "extrude", "zone": "main", "at": [0,10,0], "outline": [[-40,100],[40,100],[40,50],[0,0],[-40,50]], "thickness": 14, "bevel": 2 } ] }

Shapes:

ShapeFields
latheprofile of [radius, height] points, outside first, foot up; optional sharp (corner indices), smooth (curves between corners), segments, phase
lathe with "fins": truethe profile as flat fins (a dart's flights): segments fins, thickness
extrudeoutline of [x, y] points standing in the front plane, thickness, bevel, tilt (turn, degrees)
boxat (bottom centre), size [w, h, d], bevel
sphereat, radius
ringat, radius, thickness, tilt
starat, points, outer, inner, thickness, bevel (the rim)
tubepath of [x, y, z] points, radius, mirror
sweepa section of [u, v] points carried along a path of [x, y, z] points; closed, caps (default true), twist (degrees along the path), mirror; the section's size along the path: scale [start, end], or scales (keys at even steps, up to 16, each 0.01 to 10); flats (the section's thickness along the path, keys as scales, each 0.05 to 10)

Any piece may carry a deform: { "taper", "bend", "twist", "squash" } (bend and twist in degrees, squash 1 for none).

socket.top is added at height when there is none. Marks are in millimetres.

Finishes and texture sets#

{ "id": "gold-brushed", "group": "metal", "colour": "#e9ba63", "metal": 1, "rough": 0.36, "set": "brushed", "normal": 1, "tiling": 1, "engrave": "#3a2a10" }

Finish fields:

  • group: metal, stone, wood, glass or paint. The builder offers a zone's own group first.
  • alpha below 1 draws glass.
  • tint: true lets the player pick the colour.
  • mattRough is the roughness when matt is chosen.
  • engrave is the letters' colour on a plate of this finish.
  • env (0 to 1, optional) is how much of the surroundings this finish reflects. Left out, metal and glass reflect all of it and other finishes the surfaceEnv share.

A texture set is a set of detail maps shared by many finishes. It is listed in textures:

{ "id": "brushed", "normal": "assets/trophies/textures/brushed_normal.png", "orm": "assets/trophies/textures/brushed_orm.png" }

The maps:

  • normal is OpenGL's convention (green up).
  • orm follows glTF's packing: occlusion 1 in red, roughness detail averaging 0.8 in green, metal mask in blue.
  • color is optional, for wood and stone (drawn as it is unless the finish takes a colour).

Maps are tileable PNGs: 1024 pixels for metals, 2048 for stone and wood.

Templates#

A template is a design: { "id", "stack": [ { "part", "finish": { "<zone>": { "id", "colour" } }, "height", "width", "taper", "curve", "twist", "turn", "at", "facets", "matt", "decor", "place", "repeat", "group" } ], "plate": { "finish", "font", "shape", "words", "logo" } }. Its name is the text mods.studio.trophyBuilder.template.<id>.

Placing freely, repeats and groups#

An item is stacked unless it has a place:

{ "part": "blade-sweep", "place": { "pos": [0, 0, 0], "rot": [0, 0, 0], "scale": [1, 1, 1], "on": 2, "mirror": false },
  "repeat": { "count": 10, "radius": 18, "start": 0, "spread": 360, "twist": 0, "falloff": 0, "about": -1 }, "group": "g1" }
  • pos is in millimetres from the trophy's foot centre, or from the foot of item on (its place in the stack, 0 first).
  • rot turns it about z, then x, then y (degrees).
  • scale sizes it on each axis.
  • mirror adds a twin across the front (x to -x).
  • repeat copies the item round the trophy's axis, or round item about's:
    • count copies, each radius mm out;
    • from start degrees, over spread degrees (360: evenly all round; less: an arc with both ends);
    • each copy turned twist degrees more on its own axis than the one before;
    • the last made falloff smaller.
  • Items with the same group move together in the builder and can be saved as one group part.

The core pack's rising-blades template is made this way: ten blades (free create's blade, saved as a part) placed freely on the column's foot and repeated round the axis, round a globe, on a stepped plinth.

Decorations#

A stacked plinth, base, stem, cup, lid or topper can carry decorations, each placed by its height on the part and its angle round the trophy, laid onto the surface and standing a little proud of it:

"decor": [ { "kind": "gem", "cut": "oval", "colour": "#c8102e", "at": 0.5, "around": 30, "size": 10, "mirror": true },
           { "kind": "enamel", "shape": "shield", "colour": "#1f5fbf", "at": 0.45, "around": 0, "size": 36, "height": 40, "rim": "gold" },
           { "kind": "logo", "image": "assets/trophies/logos/crest.png", "at": 0.5, "around": 0, "size": 30 } ]
  • at runs from the part's foot (0) to its top (1). around is degrees from the front, positive to the right.
  • size and height are millimetres.
  • mirror adds a twin at -around.
  • rim is the setting's or the rim's finish; left out, the part's trim.
  • A logo is a PNG of the pack, drawn with its see-through parts cut away. The plate takes one too (plate.logo), beside the words.

The rules are a record's decor:

"decor": { "max": 16, "proud": 0.6, "rim": 1.2, "minSize": 3, "maxSize": 80, "gemFinish": "gem", "enamelFinish": "enamel", "printFinish": "print",
  "cuts": [ { "id": "oval", "facets": 16, "table": 0.55, "crown": 0.3, "pavilion": 0.85, "stretch": 1.35 } ],
  "shapes": ["circle", "oval", "shield", "diamond", "star", "rounded"], "colours": ["#c8102e", "#1f5fbf"] }
  • max is the number on one trophy.
  • proud and rim are millimetres.
  • A cut's table, crown and pavilion are shares of its radius. stretch makes it oval, phase turns its facets, and dome: true makes a cabochon.
  • shapes choose among the outlines the game draws.
  • The gem, enamel and print finishes are ordinary finishes (group decor for the gem and print, so they are not offered for a zone).

The builder#

The builder is laid out like the game's designers:

  • On the left, a live 3D view drawn with the stage's own trophy materials:
    • Drag to turn, right-drag to pan, wheel to zoom.
    • Click a part to pick it; Ctrl-click to pick several.
    • A stacked part has a height handle and width handles at its foot, middle and top. A free part has move (x, y, z), turn and size handles.
    • Drag a decoration over its part to move it.
    • Snap (sizes by a twentieth, turns by 15 degrees, places by 5 mm) and Symmetry (a width handle widens the whole part) are toolbar switches. Shift and Ctrl do the opposite while held.
  • The toolbar sets the view, the light (stage, studio, cabinet) and the background.
  • On the right, the tabs:
    • Parts: the stack, top first; drag a row to move the part. And the parts library.
    • Shape: sliders with typed numbers.
    • Place: stacked or free, place, turn, size, mirror, repeat, groups.
    • Finish: a finish per zone, colour, matt; copy and paste.
    • Decor: gems, enamel panels, logos.
    • Plate: up to three lines, lettering, metal, edge, logo.
    • Events: which events play for the trophy.

The buttons:

  • Undo and Redo (Ctrl+Z, Ctrl+Y).
  • Randomise (R), which keeps locked parts.
  • Save to pack.

The view shows the trophy's size, its triangles and its file size, and the fit check:

  • too big (blocks Save);
  • a base too narrow for two hands;
  • wider than the pedestal;
  • taller than a winner lifts well.

Careers under way#

The trophy and its pictures are files of the pack, read from the installed pack whenever they are shown. A career under way therefore draws a rebuilt trophy at once. Which trophy an event plays for is the event's trophy field. A career keeps its own copy of its events from its start, so a trophy newly named on an event reaches a career under way through the pack's data update, for the events not yet begun.

Written for Darts Player Simulator 1.0.5. Built from the game's own schemas and its base pack.