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

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#

KeyTypeMeaning
idtextA namespaced id, such as my-mod.flight-shape.teardrop. Required.
nametext, 1 to 30 charactersThe name the designer shows. Required.
playsAsone of standard, slim, kite, pear, fantail, vortexThe flight class it plays as: fit, kit rules, the coach and the workshop's reports read this. Required.
classictrue / falseMarks a preset as one of the reference shapes (see Classes). Left out: false.
lengthMmnumber, 10 to 60Where the back of the wing meets the shaft, from the flight's front (mm). Required.
pointslist of 3 to 24 pointsOne wing's free edge, from the front root to the back root. Required.
twistnumber, -0.5 to 0.5Radians 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.
orderwhole number, 0 to 9999Its 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: points gives the look in the designer and on the 3D dart, and the designer measures what the player changes from it.
  • Choose playsAs for the class the flight should count as. An untouched preset plays as exactly that.
  • Leave classic out. A preset that is not classic plays as its playsAs while it is untouched, and is not used as a reference when a player's edited outline is measured.
  • order places 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 an order, 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.

KeyTypeMeaning
idtextA namespaced id, such as my-mod.flight-template.club-blue. Required.
nametext, 1 to 30 charactersThe name the tab shows. Required.
categorytext, 1 to 24 charactersThe shelf it sits on in the tab. Any word: the core pack uses classic, pro, bold, national, player and darts. Required.
preseta flightShapes idThe 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.
coloura colour, such as #c8102eThe film or plastic. Required.
layerslist of print layersThe print, bottom layer first. Left out: a plain flight.
wings3 or 4The number of vanes. Left out: 4.
materialone of standard, thick, nylon, mouldedWhat it is made of.
micronnumber, 50 to 900The film's thickness.
finishone of gloss, matt, holo, clearThe surface. Left out: gloss.
dimples, ribstrue / falseA dimpled or ribbed surface. Left out: false.
integratedtrue / falseMoulded in one piece with its own shaft. Left out: false.
shaftnumber, 15 to 45The 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 id is l1, l2 and so on, each used once in the flight.
  • A layer's kind is classic (one of the game's flight prints), pattern (a shirtPatterns id), graphic (a shirtGraphics id) or text. A ready-made flight cannot have a picture layer: pictures are the player's own.
  • The game keeps the first 16 layers and the first 3 pattern layers (flight.layers.max and flight.layers.maxPatterns in Tuning) and leaves the rest out.
  • A record with neither preset nor outline is 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.

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