Guide
Flight shapes
The flight designer starts a design from a preset: one wing's outline, a name and the shape it plays as. The presets are data, the flightShapes records in data/kit/flight-shapes.json (or one file each in data/kit/flight-shapes/). A pack or mod adds a preset, renames one or redraws one with no code. The core pack ships 20. Records merge by id, as for every other type, and the fields are checked against the flight shapes reference (a key the schema does not list is refused).
List the type in your mod.json provides as flightShapes. How the designer works for the player is in Equipment.
A preset#
| Key | Type | Meaning |
|---|---|---|
id | text | A namespaced id, such as my-mod.flight-shape.teardrop. Required. |
name | text, 1 to 30 characters | The name the designer shows. Required. |
playsAs | one of standard, slim, kite, pear, fantail, vortex | The flight class it plays as: fit, kit rules, the coach and the workshop's reports read this. Required. |
classic | true / false | Marks a preset as one of the reference shapes (see Classes). Left out: false. |
lengthMm | number, 10 to 60 | Where the back of the wing meets the shaft, from the flight's front (mm). Required. |
points | list of 3 to 24 points | One wing's free edge, from the front root to the back root. Required. |
twist | number, -0.5 to 0.5 | Radians the vanes turn by at the back. Left out: none. |
playOutline | { lengthMm, points } | The outline the preset's play figures are measured from, when it differs from the one drawn. See playOutline. Left out: the drawn outline. |
order | whole number, 0 to 9999 | Its place in the designer's list: lower first, then by id. Left out: 0, so the preset comes first. |
A point is [s, z, c], all in mm except c:
s: out from the dart's axis (0 to 60);z: back from the flight's front (-10 to 80);c: 1 for a smooth point, 0 for a corner.
The root edge along the shaft (from z 0 to lengthMm) closes the shape and is not listed. playOutline has the same form as the drawn outline: its own lengthMm and points.
Adding a preset#
Add a record to your pack's flight-shapes.json, with a new namespaced id and the class it plays as. This is a shipped preset, a feather-like vane that plays as a kite:
{"id": "core.flight-shape.feather", "name": "Feather", "playsAs": "kite", "lengthMm": 45, "points": [[2, 4, 1], [4.6, 11, 1], [8, 20, 1], [11, 29.5, 1], [12.6, 37, 1], [13, 41.5, 0], [12, 45, 0], [6, 45, 0]], "order": 190}- Draw the outline at the flight's real size:
pointsgives the look in the designer and on the 3D dart, and the designer measures what the player changes from it. - Choose
playsAsfor the class the flight should count as. An untouched preset plays as exactly that. - Leave
classicout. A preset that is notclassicplays as itsplaysAswhile it is untouched, and is not used as a reference when a player's edited outline is measured. orderplaces it in the designer's list: the core presets use 10, 20, 30 and so on, so a number between two of them puts yours between them. Give every preset of yours anorder, as one without comes first.
When a player edits a preset's outline, the game no longer takes its class from playsAs: it measures the new outline (stabilising area, span against length and where the centre of the wing sits along the length) and picks the nearest classic preset. So a nudge may or may not change the class.
The six classes#
Presets must play as one of six fixed classes: standard, slim, kite, pear, fantail and vortex. These are fixed in the game's rules (the balance table, the kit rules and the saved designs read them), and the schema refuses any other playsAs. A mod can add presets, but it cannot add a seventh class. A preset that should feel new has to play as the closest of the six.
The core pack has one classic preset for each class (standard, kite, pear, slim, fantail, vortex). The classic presets are the reference points for the measuring above; give a mod's new preset classic only if it is to become one.
Names and ids#
A preset's name is data and can change. The core pack's biggest class, fantail, is shown by the preset core.flight-shape.fantail as "Wide standard", and the preset core.flight-shape.vortex is shown as "Swallowtail". Ids never change: designs, items and kit rules refer to ids, and nothing in the game compares the English words. To rename a preset, ship a record with the same id and the new name.
playOutline: a preset drawn at one size that plays as another#
playOutline is for a preset that is drawn at one size but must keep the play figures of another. Its outline is the one the game measures for the preset's play: the class it plays as, the stabilising area and the span's bounce, and the reference the free-outline rule compares against. A design saved on the play outline still counts as the preset.
Use it when you redraw a preset at a different size from the one it was balanced at (for example, a kite drawn at its real width that must keep the play values the kite always had). Leave it out in every other case: a preset with no playOutline plays from the outline it is drawn with.
The shipped kite, drawn 33 mm across and playing from an outline 27.5 mm across:
{"id": "core.flight-shape.kite", "name": "Kite", "playsAs": "kite", "classic": true, "lengthMm": 41, "points": [[4.07, 6.33, 0], [8.14, 12.66, 0], [16.26, 25.33, 1], [16.5, 26.02, 1], [16.37, 26.73, 1], [10.51, 40.1, 1], [9.96, 40.75, 1], [9.13, 41.0, 1]], "playOutline": {"lengthMm": 41, "points": [[3.4, 6.33, 0], [6.79, 12.66, 0], [13.58, 25.33, 1], [13.77, 26.02, 1], [13.67, 26.73, 1], [8.78, 40.1, 1], [8.32, 40.75, 1], [7.62, 41, 1]]}, "order": 50}Give the two outlines the same number of points in the same order, each point matching its partner. The game then maps the drawn shape onto the play shape so that a design started from the preset is measured in the preset's own frame, and the preset's own outline gives exactly its play values. Where the two outlines do not match point for point, or the mapping would fold over itself, the game does not build the mapping and a design is measured on its own outline.
Ready-made flights (flightTemplates)#
The flight designer's Ready-made tab offers whole flights that a player picks as a new design and then changes. They are data too, the flightTemplates records in data/kit/flight-templates.json (or one file each in data/kit/flight-templates/). The core pack ships 52. List the type in your mod.json provides as flightTemplates.
| Key | Type | Meaning |
|---|---|---|
id | text | A namespaced id, such as my-mod.flight-template.club-blue. Required. |
name | text, 1 to 30 characters | The name the tab shows. Required. |
category | text, 1 to 24 characters | The shelf it sits on in the tab. Any word: the core pack uses classic, pro, bold, national, player and darts. Required. |
preset | a flightShapes id | The shape it is cut to. Give this or outline. |
outline | { lengthMm, points } | An outline of its own, in the same form as a preset's. Give this or preset. |
colour | a colour, such as #c8102e | The film or plastic. Required. |
layers | list of print layers | The print, bottom layer first. Left out: a plain flight. |
wings | 3 or 4 | The number of vanes. Left out: 4. |
material | one of standard, thick, nylon, moulded | What it is made of. |
micron | number, 50 to 900 | The film's thickness. |
finish | one of gloss, matt, holo, clear | The surface. Left out: gloss. |
dimples, ribs | true / false | A dimpled or ribbed surface. Left out: false. |
integrated | true / false | Moulded in one piece with its own shaft. Left out: false. |
shaft | number, 15 to 45 | The length in mm of an integrated flight's shaft. |
A shipped ready-made flight, a red standard with a white stripe:
{"id": "core.flight-template.club-red", "name": "Club Red", "category": "classic", "preset": "core.flight-shape.standard", "colour": "#c8102e", "layers": [{"id": "l1", "kind": "classic", "ref": "stripe", "colour": "#f5f5f2"}]}- A layer's
idisl1,l2and so on, each used once in the flight. - A layer's
kindisclassic(one of the game's flight prints),pattern(ashirtPatternsid),graphic(ashirtGraphicsid) ortext. A ready-made flight cannot have apicturelayer: pictures are the player's own. - The game keeps the first 16 layers and the first 3 pattern layers (
flight.layers.maxandflight.layers.maxPatternsin Tuning) and leaves the rest out. - A record with neither
presetnoroutlineis refused.
Careers already under way#
Flight presets are not copied by a career. They follow the installed packs every time the game loads, so a new, renamed or redrawn preset shows in a career under way at once. Items and designs already made keep the figures they were worked out with when they were made.