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

Guide

Barrel creator data

The barrel creator (Workshop, Design a barrel) turns a barrel from a plain tungsten bar, cuts its grip zones and finishes it. Everything it offers is data: one barrelMaker record, data/kit/barrel-maker.json in the core pack (core.barrel-maker), with a twin file for the creator's own use, StreamingAssets/arena/barrel-editor.json. The twin holds the same data object without the record's id wrapper and must stay identical to it (at the time of writing it is). This page describes the options of its grip block, the finishes and paints, the barrel shapes, and what a made barrel costs. The record's file type and how it is loaded are in Equipment; the creator's price and grip-read numbers are in Tuning; the repeating patterns (motifs) are in Grip motifs).

Status. Every option below is in the core pack's data, motifs and the Razor cut's one-way option included. This page describes the data only, not the creator's on-screen controls.

Ranges are written as the data writes them: [min, max, step, default]. A slider reads its limits from the range, and a value outside it is pulled back to it. Costs, weights and the "can this be made" checks are done by the game from the design, so none of the options here has a figure of its own in play: a made barrel is its weight and length, and the cuts are looks (the metal a cut takes away changes the barrel's measured weight, and the order keeps that weight).

The grip block at a glance#

grip holds the zone limits, the list of cuts and one optional block for each extra option. A block that is not in the data means the option is simply not offered, and a design opened on that data is cut as it was before the option existed.

KeyTypeMeaning
maxZoneswhole numberThe most grip zones a barrel may have. Core: 8. Required.
maxCoatswhole number, 1 or moreThe most different finishes one barrel may show, the barrel's own counted. Core: 3. Left out: 1.
maxPaintswhole number, 1 or moreThe most different groove paints one barrel may have. Core: 3. Left out: 1.
maxBandswhole number, 0 or moreThe most colour bands one barrel may have (see Colour bands). Core: 6. Left out: 0, no bands offered.
ringFlankDegdegreesThe lean of each wall of a ring-type groove, from straight in (0 is a square wall; the core pack: 25). Required. Details below.
zoneMarginMm, minZoneMmmmHow far a zone keeps from the end chamfers, and the shortest a zone may be. Both required. Core: 0.6 and 2.
cutslistThe grip cuts, each with its own ranges (see Cut ranges).
groups, bead, pockets, stagger, studs, channels, oneWayblocksThe extra options, one section each below.
motifsblockRepeating patterns, with their own page: see Grip motifs) and Motifs.

The extra-option blocks all start with cuts, the ids of the cuts that may take the option. A cut not listed does not offer it. Naming a cut the creator cannot cut that way does nothing: grooves in groups and channels are cut for ring, micro, vcut, shark and razor only, the bead profile for ring, micro and spiral only, and one-way teeth for razor only.

**ringFlankDeg.** A ring-type groove (ring, micro, razor and spiral) is a flat bottom between two sloped walls. Each wall leans in by this angle measured from straight in, so the bottom is the groove's width at the surface less twice the depth times the tangent of the angle. 0 gives square walls; a larger angle gives a narrower bottom, and a V when the walls meet before full depth. The loader checks it when the pack loads: a number from 0 to 80, or the pack is refused (the core pack uses 25). Past about 81 every ring-type groove the core offers is already a V, so a steeper lean would change nothing, and towards 90 the tangent runs away. A cut may carry a flankDeg of its own that replaces it for that cut: the core Razor cut uses 4, nearly square. vcut is shaped by its own rule and ignores it.

Zones, coats and paints#

A barrel has up to maxZones grip zones. Each zone has the barrel's finish and groove paint unless it names its own: a zone's record may carry finish and paint (data ids from finishes and paints). Left out, or an id the data does not know: the barrel's own.

  • The zone's coat covers it from end to end, lands included. The nose, the rear and the plain stretches between zones take the barrel's own finish, unless a colour band covers them.
  • maxCoats counts the different finishes on the barrel, the barrel's own and each colour band's included. maxPaints counts the different groove paints that are not bare grooves (a paint with an empty colour).
  • A barrel over either limit cannot be made: the creator reports tooManyCoats or tooManyPaints as a problem with the design.
  • With maxCoats and maxPaints left out the limit is 1 each, so a zone cannot have a finish or paint of its own.
  • The price of extra coats and paints is in tuning: kitBarrel.finish.extraCoat, kitBarrel.finish.extraPaint and kitBarrel.paint.noneIds (the paint ids that count as bare grooves). The workshop's price range, kitBarrel.total.range, holds the total. See Tuning.

From the shipped data:

"grip": {
  "ringFlankDeg": 25,
  "zoneMarginMm": 0.6,
  "minZoneMm": 2,
  "maxZones": 8,
  "maxCoats": 3,
  "maxPaints": 3,
  "maxBands": 6,

A zone with its own finish and paint (the form the creator saves; the ids are from the shipped finishes and paints):

{ "op": "grip", "cut": "ring", "fromMm": 8, "toMm": 22, "pitchMm": 1.2, "depthMm": 0.3, "widthMm": 0.5, "finish": "gold", "paint": "red" }

Colour bands#

A design may coat any stretch of the barrel in a finish of its own, the nose and the rear included, whatever is cut there. A band is a record operation after the finish:

{ "op": "band", "fromMm": 0, "toMm": 6.5, "finish": "gold" }
  • fromMm and toMm are millimetres from the nose, as for zones; the creator moves them in 0.5 mm steps. finish is an id from finishes (one the data does not know: the barrel's own).
  • What a point of the barrel shows: a band's finish where a band covers it, else the zone's own finish, else the barrel's. Groove paint is always the zone's (or the barrel's).
  • Bands may not overlap (bandsOverlap), each is at least minZoneMm long (bandShort), and a barrel has at most maxBands (tooManyBands). Each problem stops the barrel being made.
  • Each band's finish counts towards maxCoats and is priced as any further coat (kitBarrel.finish.extraCoat plus that finish's price). A band adds no work: it is not a cut.
  • Left out (maxBands missing, as in a career's copy written before bands): no bands are offered. A design opened there that has bands keeps them, so they can be removed.
  • A design without bands is saved exactly as before. A game build from before bands skips the "band" operation, so it draws such a barrel without its bands.

Finishes#

finishes lists the barrel coatings. A finish has these keys:

KeyTypeMeaning
idtextIts id. A price in kitBarrel.finish.ids / prices and a grip bite in kitBarrel.gripRead.finish.ids / bite go by this id; an id not listed there takes the otherPrice / otherBite.
coatcolourThe coating's colour, as #rrggbb. Required.
metalnumber, 0 to 1How metallic it looks (the shipped finishes use 0 to 1). Required.
roughnumber, 0 to 1How rough the surface is (the shipped finishes use 0.07 to 0.88). Required.
marksnumber, 0 to 4How strongly the lathe's fine turning marks show through (0: none, as under paint; 1: a satin turned surface). Left out: 0. The shipped finishes use 0 to 1; a larger number shows the marks more strongly, up to 4 (at the core's marks.shade 0.12 and marks.roughRipple 0.35 a mark's valley is then about half as dark again, and the roughness ripple stays above zero).
recuttrue / falseThe grooves are cut through the coating to bare metal. Left out: false.
specular0 to 1How strongly the coat reflects the lights: 1 as metal or lacquer, lower for a matt coat. Left out: 1.
rainbowlist of coloursAn interference coating's colours, nose to rear, each #rrggbb.

Checked when the pack loads. A finish's coat, metal, rough, marks, specular and rainbow colours, grip.ringFlankDeg and each cut's own flankDeg must be in the ranges above. A pack with any value outside them is refused whole: it does not load, and the Mods screen shows it with an error that names the file, the record and the key (for example data/kit/barrel-maker.json, "acme.barrel-maker", [0].data.finishes[3].metal: finish "gold": "metal" must be a number from 0 to 1). Careers are not touched: a career's own copy is never checked again, so one that already holds such a value keeps it. A patch (data/patches/) that would give the record a value outside them is skipped with a warning, as for any record.

The soft-touch finish shows the keys together: a matt, non-metal coat with its grooves cut to the metal.

{ "id": "soft", "coat": "#3b3d42", "metal": 0, "rough": 0.88, "recut": true, "marks": 0, "specular": 0.25 }

A barrel with zones that have coats of their own is drawn with one material for its whole surface, so a soft-touch zone on a barrel of another finish is matt and non-metal but keeps full specular; only a whole soft-touch barrel has the low specular. To use a new finish with a price and a grip bite, add its id to the two tuning lists named above, with a price and a bite in the same position.

Barrel shapes#

shapes lists the turning shapes. Each has id, bellyAt (where the widest point is, 0 nose to 1 rear), noseTaperMm, rearTaperMm, curve and gameProfile (the game's barrel profile the shape is drawn as where only a preset can be: the shipped shapes use straight, torpedo, bomb and front). A new shape needs no code. The shipped cone-front shape, a torpedo profile with a long nose taper and almost no rear taper:

{ "id": "coneFront", "bellyAt": 0.45, "noseTaperMm": 1.3, "rearTaperMm": 0.1, "curve": 1, "gameProfile": "torpedo" }

A shape needs a name text, barrelEditor.shape.<id>, or the creator shows the key.

Cut ranges#

Each entry in grip.cuts gives the cut's own ranges, as [min, max, step, default], for the numbers it takes: pitchMm, depthMm, widthMm, angleDeg and count. In the core pack a ring's pitchMm runs to 6 mm and a flute's count starts at 2. A cut may also carry facing: true (a shark fin: it can face the nose or the rear) and flankDeg (its own wall lean, 0 to 80, see ringFlankDeg above); depthMm is required for every cut, the others are left out for a cut that does not take them. A value outside its range is pulled back to it.

{ "id": "ring", "pitchMm": [0.8, 6.0, 0.05, 1.0], "depthMm": [0.15, 0.6, 0.01, 0.35], "widthMm": [0.3, 1.6, 0.05, 0.5] },
{ "id": "flute", "depthMm": [0.15, 0.6, 0.01, 0.35], "widthMm": [0.5, 1.6, 0.05, 0.9], "count": [2, 12, 1, 8] }

Grouped rings (grip.groups)#

Grooves of a ring-type zone set in groups: a few rings close together, then a plain band, then the next group.

KeyTypeMeaning
cutslist of cut idsThe cuts that may be grouped. Core: ring, micro, vcut, razor, shark.
count[min, max, step, default]Rings a group. Core: [1, 6, 1, 1]. 1 is no group: the grooves are evenly spaced as always.
gapMm[min, max, step, default]The plain band between groups (mm). Core: [0.4, 10, 0.1, 2.0]. A zone given groups without a gap takes the default.
"groups": { "cuts": ["ring", "micro", "vcut", "razor", "shark"], "count": [1, 6, 1, 1], "gapMm": [0.4, 10, 0.1, 2.0] },

In a zone's record the keys are group and groupGapMm, written only when group is 2 or more. A group is its rings one pitchMm apart. Whole groups are laid out centred in the zone with the gap between each two; a zone too short for one whole group (group × pitchMm) cannot be made (groupNoRoom). Not listed in the data: no cut takes groups and every zone is cut evenly.

{ "op": "grip", "cut": "ring", "fromMm": 8, "toMm": 40, "pitchMm": 1.2, "depthMm": 0.3, "widthMm": 0.5, "group": 3, "groupGapMm": 2 }

Bead rings (grip.bead)#

The rounded profile: domed lands and round-bottomed grooves, a row of beads. On a spiral zone it makes a twisted rope.

KeyTypeMeaning
cutslist of cut idsThe cuts that may take it. Core: ring, micro, spiral.
domeShare0 to 1How far a land's dome falls at its edge, as a share of the lesser of half the land and the groove's depth. Core: 0.5.
"bead": { "cuts": ["ring", "micro", "spiral"], "domeShare": 0.5 },

A zone's record carries "profile": "bead". A record with it opened on data without grip.bead is flattened to ordinary rings; a made barrel's own record is drawn as made.

Block zones: the stud lattice, the window grid and staggered rows#

A block zone is a ring cut crossed by milled slots, leaving raised blocks. Three options change how it is milled. A zone's record names the style with style ("studs" or "pockets"; left out, the raised blocks as always) and the stagger with stagger.

Stud lattice (grip.studs): a fine grid of small square studs with square walls. It has ranges of its own that replace the block's own pitch, width, depth and count for a zone in that style, and each stud's size is checked.

KeyTypeMeaning
cutslist of cut idsThe cuts that may be milled this way. Core: block.
pitchMm[min, max, step, default]Stud spacing along the barrel. Core: [0.6, 1.6, 0.05, 0.9].
widthMm[min, max, step, default]The frame between studs. Core: [0.3, 0.6, 0.05, 0.35].
depthMm[min, max, step, default]Depth. Core: [0.15, 0.45, 0.01, 0.25].
count[min, max, step, default]Studs round the barrel. Core: [12, 36, 1, 24].
minBlockMmmmThe smallest side a stud or pocket may have, along (pitch less frame) and round the thinnest part of the zone. Smaller: blockTooSmall. Left out: 0, no rule.

Window grid (grip.pockets): the block lattice milled the other way round, square pockets sunk where the blocks stood, with the grooves and slots left as a raised frame. It has only cuts (core: block) and uses the block's own ranges. The blockTooSmall check applies to it too.

Staggered rows (grip.stagger): every other row of blocks or pockets turned half a block round. It has only cuts (core: block).

"pockets": { "cuts": ["block"] },
"stagger": { "cuts": ["block"] },
"studs": { "cuts": ["block"], "pitchMm": [0.6, 1.6, 0.05, 0.9], "widthMm": [0.3, 0.6, 0.05, 0.35], "depthMm": [0.15, 0.45, 0.01, 0.25], "count": [12, 36, 1, 24], "minBlockMm": 0.2 },

A stud zone:

{ "op": "grip", "cut": "block", "fromMm": 8, "toMm": 40, "style": "studs", "pitchMm": 0.9, "widthMm": 0.35, "depthMm": 0.25, "count": 24, "stagger": true }

Counts that divide 288 (12, 16, 18, 24, 32, 36) draw every stud alike on the barrel's mesh; other counts show studs that differ by a vertex. A style or stagger the data does not offer for the cut is dropped when a design is opened, leaving plain blocks.

Channelled rings (grip.channels)#

Long slots milled along a ring-type zone, across its grooves, evenly round the barrel, with round ends. Where a groove and a channel meet the deeper of the two is cut.

KeyTypeMeaning
cutslist of cut idsThe cuts that may have channels. Core: ring, micro, vcut, razor, shark.
count[min, max, step, default]Channels round the barrel. Core: [0, 6, 1, 0]; 0 is none.
widthMm[min, max, step, default]Width at the surface. Core: [0.3, 1.6, 0.05, 0.6].
depthMm[min, max, step, default]Depth. Core: [0.1, 0.8, 0.01, 0.4].
"channels": { "cuts": ["ring", "micro", "vcut", "razor", "shark"], "count": [0, 6, 1, 0], "widthMm": [0.3, 1.6, 0.05, 0.6], "depthMm": [0.1, 0.8, 0.01, 0.4] },

A zone's record has channels, channelWidthMm and channelDepthMm, written only when there are channels; channels raised from none take the data's default width and depth. Channels whose widths together fill the whole round of the barrel at the zone's thinnest cannot be made (channelNoLand). A zone with channels is a step of its own in the creator's step-through. Not listed in the data: no zone has channels.

{ "op": "grip", "cut": "ring", "fromMm": 8, "toMm": 40, "pitchMm": 1.2, "depthMm": 0.3, "widthMm": 0.5, "channels": 4, "channelWidthMm": 0.6, "channelDepthMm": 0.4 }

One-way teeth (grip.oneWay)#

The Razor cut's grooves cut as saw teeth instead of alike on both sides: a straight ramp from the far edge of the groove down to full depth, then a square wall straight back up on the facing side, all inside the razor's own narrow groove (the same pitch, width and depth as the symmetric razor, and groups and channels work as before). A tooth takes about 58% of the metal of a symmetric razor groove, so a one-way barrel is a little heavier.

KeyTypeMeaning
cutslist of cut idsThe cuts that may be cut one-way. Core: razor.
"oneWay": { "cuts": ["razor"] },

The block has no other keys. The data names the cut, but the creator's cutting code decides which cuts can take it, and today that is razor alone: naming ring or shark gives nothing. (A shark fin is one-way by nature and has its own facing switch.)

In a zone's record the option is oneWay, written only when it is true, with the direction in the zone's usual facing ("nose", written only when it is the nose; left out means the rear). A razor zone without oneWay is the symmetric razor, and its facing is ignored. When a design is opened, oneWay is dropped where the data does not offer it for the cut, and "nose" is kept only on a cut with facing: true, on a one-way razor zone, or on a motif that points one way; any other zone is set back to the rear.

{ "op": "grip", "cut": "razor", "fromMm": 8, "toMm": 40, "pitchMm": 0.9, "depthMm": 0.45, "widthMm": 0.25, "oneWay": true, "facing": "nose" }

Effect on the grip read: a groove whose two walls are far from alike, a steep wall against a long gentle ramp, with a neighbouring groove facing the same way, earns a bonus (see The grip read). The symmetric razor earns none.

Problems a design can report#

Besides the checks that were always there, the options add these problem ids: groupNoRoom, blockTooSmall, channelNoLand, tooManyCoats, tooManyPaints, and for motif zones motifNoRoom and motifTooFine (see Grip motifs)). One-way teeth add none. The creator shows a title and a hint for each from its texts (barrelEditor.problem.<id>.title and .hint). Localisation covers adding texts.

The grip read#

The creator shows a design's grip level (1 smooth to 5 aggressive) and where it is held (front, middle, back, or any when the barrel has too little grip to place). Both are for display only. They are worked out from the cut surface, are not saved, and nothing in play, kit fit, price or career reads them: grip cuts do not change how a dart plays (the only effect a cut has is the metal it takes away, which changes the weight). A barrel with no grip cuts reads hold any (its position is the balance point's).

The read looks at the finished surface, not at cut names, so a new cut or option is read with no change to its numbers, as long as the creator cuts it into the barrel. Its numbers are tuning keys, kitBarrel.gripRead.* (the finish bites, the window the fingers sit in, the level thresholds, the one-way bonus). They are in Tuning, not in barrel-maker.json.

The one-way bonus. Along the barrel, a groove whose one wall is far steeper than the other (a saw tooth: a steep wall and a long ramp) earns an extra share of that wall's bite, so teeth read above plain rings. The keys are kitBarrel.gripRead.oneWayFrom (3: the steep wall must be this many times steeper than the ramp before it earns anything), oneWayFull (8: at this many times or more it earns all of it, a straight share between), oneWayWeight (1.5: the bonus, as a multiple of the wall's own bite) and oneWayMatch (0.5: the ramp must climb at least this share of the wall's height). A tooth counts only beside another facing the same way, and a tooth facing the nose reads the same as one facing the rear. This is read from the slopes, so a shark fin and a one-way razor both earn it and a symmetric razor does not.

What a made barrel costs#

The price is the metal (the whole bar), the work (a base, plus a sum for each grip zone) and the finishes (each finish's price, plus a sum for each extra coat and each extra paint), held to the workshop's range, kitBarrel.total.range: [300, 850] in the core pack (the least applies to a barrel with at least kitBarrel.total.floorFromZones grip zones, 1 in the core pack, so a plain bar keeps its own, lower, sum). Every number is tuning (kitBarrel.*): the work is kitBarrel.work.base (190) plus kitBarrel.work.perZone (35) a zone; a finish's price is its entry in kitBarrel.finish.ids / prices (the Soft-touch finish, soft, is 35), each extra coat adds kitBarrel.finish.extraCoat (20) and each extra groove paint kitBarrel.finish.extraPaint (10). Every extra zone, group, channel, one-way tooth, motif or style is priced as an ordinary zone: no option on this page has a price of its own. The rows, and what each one means, are in Tuning. A made barrel keeps the price it was made at.

How data reaches careers already under way#

A career copies the installed packs' barrelMaker records when it starts, and the creator in that career works from the copy (it reads the last barrelMaker record that has data and does not merge records, so a record of a mod's own must hold the complete data). A barrel already made carries its own record and its own weight and price, so nothing below changes one.

What a career under way gets is decided by the game's data update, which runs when the player accepts an update for a pack the career already has (a pack's version is its mod.json version, and an update is offered only when the pack has a change line, a text data-update.<pack>.<major>.<minor>.<patch>.<name>, between the career's version and the installed one). It does two things to the barrel creator's data:

  1. An add-only refresh of every installed barrelMaker record. A record whose id the copy lacks is added whole. For a record the copy has, every value the copy holds stays exactly as it is, and only what is missing is added: a key the copy lacks (a whole new grip block such as oneWay or motifs, a new key inside a block) and, in each list of records with ids (finishes, shapes, paints, alloys, starts, grip.cuts, grip.motifs.list, and so on), the records whose ids it lacks, added at the end. A list of plain values, such as a block's cuts list of cut ids or a range, is not merged, and nothing the copy has is changed or removed.
  2. Named value changes for the core record only (core.barrel-maker), the 0.50.35 update barrel-zones: the zone limit grip.maxZones goes from 4 to 8, a ring's largest pitchMm from 3 to 6, a flute's smallest count from 4 to 2, a pattern's deepest cut (grip.motifs.depthMm, second number) from 0.5 to 0.7 mm and its starting depth (the last number) from 0.25 to 0.5 mm, each on its own, but only where the copy still holds the old shipped value and the installed packs the career records give the new one. A copy holding any other value keeps it. A career already on 0.50.35 when a value was added to this update is not offered it again: a version's lines and changes run once.

So a modder can rely on this: new options and new records reach careers under way when the pack's version rises with a change line; an existing value never changes, so a mod cannot retune a limit, a range or a motif for careers already started; and adding a list entry to a list of plain values (for example another cut id in grip.groups.cuts) does not reach them. A new career starts from the pack as it stands. Until a career has the update, a design opened on its copy is clamped back to what that copy offers (a copy without grip.oneWay offers the symmetric razor only, one without grip.motifs offers no motif cut), and a barrel already made is drawn as it was made.

A mod's own barrelMaker record, under an id other than core.barrel-maker, is treated the same way, and the tests prove it (BarrelMakerCopyTests in the Save tests). In a career that has the mod, when the mod's version rises with a change line, a record new to the career is added whole at the end of its copy and the creator reads it from then on (the last record with data); a record the career already has gains only the blocks and keyed entries it lacks, so a value the mod has retuned does not reach it. A version without a change line offers no update and changes nothing. A mod reaches only the careers that have it: the refresh of the creator's data takes only the records of packs the career records (the base game plus the mods it was started with), whichever pack's update is running. A core update taken while a mod is installed therefore leaves that mod's record out of a career that began without it; the core's own new blocks still come in. A mod that replaces core.barrel-maker under that same id, or patches it, is not in such a career either: the game keeps only the mod's version of that record, so while the mod is installed a career without it takes nothing for the creator from that update (not even the core's own additions); they come in at a later update taken with the mod removed. In a career that has the mod, a core update brings the mod's records in what the copy lacks, as above. This rule is for the barrel creator's data only.

Motifs#

grip.motifs holds repeating patterns (raised hexagons in a honeycomb, chevron pockets, clovers, fish scales, a diamond lattice) that a zone with the cut motif mills over its length. It is shipped in the core pack with five motifs, and the creator offers the motif cut only when the block is complete (its three ranges and at least one motif). The format, the problems a motif zone can report and the limits of the barrel's mesh are on their own page: Grip motifs).

A made barrel keeps its own copy of each motif it uses. When a barrel is ordered, its record stores the motifs its zones use as motif operations before the grip zones, so a later change to the pack's motif (a mod removed, a motif redrawn or dropped) does not change a barrel already made: it is drawn, weighed and reopened (New design from this) from its own copy. A career's own copy of the creator data, as it stands, is used only for designs not yet ordered. Picking a motif again in the creator takes the installed data's. The record's form is on the motifs page.

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