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

Guide

Entry selection (filters, quotas, priorities, fallbacks)

Entry selection is one way of saying who may enter an event and who gets its places, for any field you can think of: "1 Taiwanese, 1 American, 4 of the best women on a women's ranking and 8 from the main tour's table", a county championship for one county's players, a legends' invitational for former champions over 50, a national team picked by named players first and the ranking after.

It has three parts, used in three places:

PartWhereWhat it does
A filtereverywhere belowSays which players something takes: nationality, county, gender, age, a place on any ranking, a tour played, a Tour Card, titles, achievements, named players, retired or not; combined with all, any and not.
A select routean event's entryRoutes ("kind": "select")Fills places: quotas with their own filters, orders and priorities, exclusions, and fallbacks when a quota cannot be filled.
restrict.wherean event's restrictA filter every entrant must pass.
teams.selectiona team event's teamsHow each nation, county or club picks its players. See the Nations Cup).
A ranking's wheredata/rankingsWho is on a custom ranking. See Custom rankings.

Everything here is optional. An event that uses none of it is filled exactly as before: the older route kinds (ranking, winners, qualifier, pool, players, fill, form) and restrict's own fields keep working as they always have, and you can mix them with select routes in one event. (The tests prove every core and example event draws the same field as in 1.0.0, and that each older route written as a select route, as in the table at the end, gives the same field.)

Filters#

A filter is a JSON object. Every condition you give must hold. An empty filter {} takes everyone.

{ "nations": ["TWN"] }
{ "gender": "f", "ranking": { "ranking": "custom:acme.ranking.women", "to": 64 } }
{ "minAge": 50, "titles": { "events": ["core.event.world-championship"], "within": "2years" } }
{ "any": [ { "nations": ["USA"] }, { "nations": ["CAN"] } ], "not": { "tourCard": true } }
ConditionExampleHolds when
nations["TWN", "JPN"]the player's nationality is one of these.
residence["NED"]the player lives in one of these countries.
counties["Kent", "Essex"]the player's county is one of these: the county of a pack's player record, or the county the human registered with.
gender"f"the player is a woman ("f") or a man ("m").
minAge, maxAge50the player's age on the event's first day (a ranking: on the day it is made) is at least / at most this.
minLevel, maxLevel70the player's overall rating, rounded as it is shown, is at least / at most this.
tiers[1, 2]the player's tier is one of these (1 the top, to 5).
tourCardtruetrue: holds a Tour Card this season. false: does not.
cards["acme.tour.elite"]holds a tour's own card (a tour's rules.cards, see tours) into one of these tours.
tours["core.tour.pro"]has won money on one of these tours this season.
ranking{ "ranking": "oom", "from": 1, "to": 32 }has a place from from to to (both inclusive; left out: the top and the bottom) on any ranking a route can read, a custom ranking (custom:<id>) included. { "ranking": "oom", "unranked": true }: has no place on it.
titles{ "events": ["core.event.masters"], "within": "12months", "min": 1 }has won at least min (default 1) of these events in the window: season (this calendar year, the default), 12months or 2years before the event. "finalists": true counts a runner-up's place as well.
records[{ "key": "titles", "min": 10 }]an achievement: each career record listed is within its min and max (a record the player has not set counts as 0). The keys are the career's records, as the Records page shows them: titles, nineDarters, highestCheckout, bestMatchAverage, most180sMatch and fewestDartsLeg (lower is better: give it a max, and a min of 1 to leave out players who have not set one).
ids["acme.player.legend"]the player is one of these.
retiredfalsetrue: retired players only; false: active players only. A retired player enters no event, so in an entry rule this only matters as false.
namedtruetrue: players written in a pack (and you); false: players the career made.
humanfalsetrue: the human player only; false: the computer's players only.
all[ {...}, {...} ]every filter in the list holds.
any[ {...}, {...} ]at least one filter in the list holds.
not{...}the filter does not hold.

Filters nest three deep: a filter's all, any and not hold filters, whose own all, any and not hold filters with conditions only. That is enough for any "(A or B) and not (C and D)".

Select routes: quotas, priorities, exclusions, fallbacks#

A select route is one more kind of entry route (see calendar): it runs in its place among the event's routes, skips players already in, and never goes past fieldSize.

"entryRoutes": [
  {
    "kind": "select",
    "exclude": { "ids": ["acme.player.banned"] },
    "quotas": [
      { "where": { "nations": ["TWN"] }, "count": 1, "label": "Taiwan qualifier",
        "fallback": [ { "where": { "nations": ["JPN", "KOR"] }, "label": "Asia qualifier" } ] },
      { "where": { "nations": ["USA"] }, "count": 1, "label": "USA qualifier" },
      { "where": { "gender": "f", "ranking": { "ranking": "custom:acme.ranking.women", "to": 64 } }, "count": 4,
        "order": { "by": "ranking", "ranking": "custom:acme.ranking.women" }, "label": "Women's ranking" },
      { "where": { "tourCard": true }, "count": 8, "priority": 0, "seed": true,
        "order": { "by": "ranking", "ranking": "tour:core.tour.pro" }, "label": "Pro Tour" }
    ],
    "fallback": [ { "order": { "by": "ranking", "ranking": "oom" }, "label": "Reserve list" } ]
  }
]
FieldDefaultWhat it does
whereeveryoneWho the route may take at all. Every quota and fallback takes only from these.
excludenobodyWho the route never takes.
quotasnoneShares of the places (below).
countthe quotas' total; without quotas, every place leftHow many places the route fills.
orderranking on the Order of MeritThe order players are taken in, for the route and for quotas and fallbacks without their own.
fallbacknoneFilters (each with its own order and label) that fill the places still open up to count, tried in turn.
seedfalseThe route's players are seeded, in the order they came in.
label"Selected"How the route's players got in, as the screens show it.

A quota takes up to count players its where takes, in its order:

FieldDefaultWhat it does
whereeveryone the route takesWho the quota takes.
count(required)How many places it fills.
orderthe route'sThe order its players are taken in.
priority0Quotas are filled lowest priority first; equal priorities in the order listed. A player one quota has taken is not taken by another, so put the strictest quota first (or give it the lowest priority).
fallbacknoneWhere the places it cannot fill go: each fallback's players (its where and order, the quota's order when it has none) take what is left of the quota's count, one fallback after another.
seedthe route'sIts players are seeded.
labelthe route'sHow its players got in.

A quota short of players, with no fallback that fills it, leaves its places open: the route's own fallback fills them up to the route's count, and after that the event's later routes do. The loader warns about a route that asks for more places than the field has, or quotas that add up to more than the route's count.

Orders#

order.byPlayers are taken
rankingbest placed first on order.ranking (default oom), the players it does not rank after them by rating.
levelbest overall rating first.
formbest current form first (the Order of Merit between equals).
ageyoungest first.
listedin the order of the filter's ids (the quota's, else the route's).
weightedat random, stronger players likelier (as a simulated qualifier: ten points of rating make a player about seven times as likely). A weighted pick never takes the human: it stands for a qualifier they did not play. It draws on a random stream of its own, so adding one never changes the draws of an event's other routes.

The human player#

The human gets in through a select route like anyone the route's filters and order take, except by a weighted order. An event with entry routes is automatic: the human does not enter it. The calendar says "Be picked by its selection" and the route's label, and the event's 'i' sheet lists each quota as a way in ("Pro Tour: 8 places").

restrict.where#

"restrict": { "where": { "any": [ { "titles": { "events": ["core.event.world-championship"], "within": "2years" } }, { "records": [ { "key": "titles", "min": 10 } ] } ] } }

A filter every entrant, the human included, must pass. It is checked after the event's other rules (restrict's own fields, the tour's rules), so a player those refuse is told that reason. As with any restrict, an event that has one is not held to its tier's Tour Card rules: add "tourCard": true (or a filter) if the event should still be for card holders.

What the loader checks#

  • A select route that names a ranking the content does not have (a tour, custom:<id>), or a titles event it does not have, drops its event with a message, as for every other route.
  • Warnings (the event still loads): a route asking for more places than the field (a pairs event's field counts its single players), quotas adding up to more than the route's count, a filter whose minAge is above its maxAge (or minLevel above maxLevel, or a ranking range from past to), a filter whose ids name only players no pack has, an unknown ranking or title event in restrict.where, and in team selections unknown named players, a weighted pick and invite on an event that is not a nations event.
  • These checks run at every load, so a dropped event or a warning shows wherever the pack is loaded, not only in the Studio.

In the Mod Studio#

Every field that names a ranking (a ranking route's ranking, a filter's ranking.ranking, an order's ranking, a team ranking) has a picker: the Order of Merit, each custom ranking as custom:<id> (your pack's own among them), and each tour's table (tour:<id>) and this season's money on it (season:<id>). Other forms (last:, phase:, rolling:, stage:<school>) can still be typed. A world set's ranking table has the same picker, with tours by their plain id.

Manager mode#

The Manager world draws its fields by the same rules. It gives an event's selection:

  • custom rankings (custom:<id>), made from the world's own prize money (this season and the two before) or, for points rankings, its kept finishes (full results for its recent seasons; older seasons keep only the paid places and the finalists, so a points ranking with a long window that pays points below the prize places counts fewer finishes from those seasons);
  • titles and finalists (the winners and runners-up the world keeps, two seasons back; a final counts as soon as it is played);
  • counties as the packs give them (the same county a career reads for a computer player);
  • records: only titles (every title won in this world). The world keeps no nine-darters, checkouts, averages or 180s per player, so a records condition on those reads them as not set (0): a min on them takes nobody.

Not in Manager mode: the human ("human": true takes nobody, and there is no human county), and the custom rankings' tables on the Manager screens (the world reads them for entry rules only).

The older routes, written as select routes#

You never need to rewrite an older route. This table shows that each is a case of a select route (the tests prove these give the same field), which is a good way to read what a select route can do.

Older routeThe same as a select route
{ "kind": "ranking", "ranking": "oom", "top": 16 }{ "kind": "select", "where": { "ranking": { "ranking": "oom" } }, "count": 16 }
{ "kind": "ranking", "ranking": "tour:T", "top": 8, "nations": ["USA"] }{ "kind": "select", "where": { "nations": ["USA"], "ranking": { "ranking": "tour:T" } }, "count": 8, "order": { "by": "ranking", "ranking": "tour:T" } }
{ "kind": "ranking", "ranking": "oom", "top": 32, "cardHolders": true }{ "kind": "select", "where": { "tourCard": true }, "count": 32 }
{ "kind": "players", "ids": [A, B] }{ "kind": "select", "where": { "ids": [A, B] }, "order": { "by": "listed" } }
{ "kind": "pool", "pool": "women", "count": 4, "pick": "level" }{ "kind": "select", "where": { "gender": "f", "human": false }, "count": 4, "order": { "by": "level" } }
{ "kind": "pool", "pool": "nonCardHolders", "nations": [N], "count": 4, "pick": "ranking" }{ "kind": "select", "where": { "tourCard": false, "nations": [N], "human": false }, "count": 4 }
{ "kind": "fill", "pool": "cardHolders", "pick": "ranking" }{ "kind": "select", "where": { "tourCard": true, "human": false } }

Two older routes have no exact select form, and stay the better choice for what they do: a ranking route with from (it counts places among the eligible players, not ranks on the table) and a weighted pool (a select route's weighted order draws on its own stream, so the same seed picks other players).

Careers under way#

An event's routes and restrictions are part of the copy of the data a career takes at its start, so a career keeps the selection rules it began with until a data update brings in the packs' newer ones (see the Mod Studio).

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