Guide
Custom rankings
A custom ranking is a ranking defined as data: which events count, whether it counts prize money or ranking points, over what window, and who is on it. A WDF-style world ranking, a women's ranking, a national or county ranking, a youth or seniors' ranking, a "Race to the Finals" of points: each is one record.
Every custom ranking can be read anywhere a ranking can, as custom:<id>: entry routes ({ "kind": "ranking", "ranking": "custom:acme.ranking.wdf", "top": 16 }), entry filters and select routes, team events' teams.ranking and nationRankings, and restrict.exclude. It is shown on the Rankings page, on players' pages and on the pages of the events that count towards it, as the ranking says.
Rankings live in data/rankings.json or data/rankings/*.json, as a JSON array.
[
{
"id": "acme.ranking.wdf",
"name": "acme.text.ranking-wdf",
"measure": "points",
"points": [1000, 600, 400, 400, 200, 200, 200, 200, 100, 100, 100, 100, 100, 100, 100, 100],
"tags": ["wdf"],
"window": { "days": 365 },
"country": "ENG"
},
{
"id": "acme.ranking.women",
"name": "Women's Series Ranking",
"tours": ["core.tour.womens"],
"window": { "seasons": 2 },
"where": { "gender": "f" }
},
{
"id": "acme.ranking.kent",
"name": "Kent County Ranking",
"where": { "counties": ["Kent"] },
"show": { "events": false }
},
{
"id": "acme.ranking.youth",
"name": "Youth Ranking",
"events": ["core.event.junior-championship", "core.event.youth-open"],
"where": { "maxAge": 23 },
"order": 5
},
{
"id": "acme.ranking.seniors",
"name": "Seniors' Order of Merit",
"tours": ["core.tour.seniors"],
"ranked": true,
"where": { "minAge": 50 }
}
]Fields#
| Field | Default | What it does |
|---|---|---|
id | (required) | The ranking's id, starting with your mod's id. Routes and filters read it as custom:<id>. |
name | (required) | The ranking's name: the id of a text in data/texts/ (your own), the key of one of the base game's texts after core.text., or the name itself. |
measure | "money" | "money": prize money won at the events that count. "points": points by finishing position. |
points | (required for points) | Points by finishing position, the winner first: the positions of an event's prize table (winner, runner-up, semi-finalist, quarter-finalist, last 16, ...; a group-stage exit takes the place after the knockout's last). A position past the list scores nothing. |
events | Event templates whose events count. | |
tours | Tours whose events count. | |
tags | Events with one of these tags count. With none of events, tours and tags, every event counts; with several, an event counts when any of them takes it. | |
ranked | false | true: only ranked events count (and, for money, only the money that counts on the Order of Merit). |
window | this season | { "seasons": 2 }: the last two calendar years, this one included (1 to 3). { "days": 365 }: the last 365 days to today (1 to 1095). One of the two. |
where | everyone | An entry filter: who is on the ranking. A national ranking (nations), a county ranking (counties), a women's (gender), a youth or seniors' (maxAge, minAge) ranking. Ages are on the day the table is made. |
show | everywhere | { "tables": false } keeps it off the Rankings page, { "profile": false } off players' pages, { "events": false } off event pages. A ranking kept off the tables still works in routes and filters. |
order | 100 | Rankings are listed, and made, by this, then by id. |
country | none | The country it belongs to, so the Rankings page's list picker groups it with that country's tours. |
How the table is made#
- Money: every prize won at an event the ranking counts, inside its window, by a player who has not retired. A bonus prize (an event's
extras) counts only when the extra is ranked; a pre-qualified player's first-match loss credits no ranking, as it credits no Order of Merit. Money a career's opening table gives with no event (the seeded money of a new career) is not at any event, so it counts on no custom ranking. - Points: every finish at an event the ranking counts, inside its window, scores the points of its position. Finishes are read from the event results the career keeps; an event still being played counts once it has finished.
- Window: money with no day (some older careers' past money) counts in the calendar year it was won.
- Filter: a player the filter does not take is not on the table at all, so the table is numbered from 1 within the ranking (a women's ranking's number one is the best woman). A ranking's filter may read the rankings listed before it (by
order, then id); one listed after it, or itself, reads empty, and the loader warns. - Ties go by id, as the Order of Merit's.
Tables are made when something asks for them (an event drawing its field, the Rankings page) and kept until the rankings change (an event finishes) or the day changes. A career whose data has no custom ranking makes none.
In the game#
- The Rankings page lists each ranking (unless
show.tablesisfalse) after the tours' tables, under its name, with a line saying what it counts ("Ranking points over the last 365 days"). A points ranking's table has a Points column in place of Prize money. Jump to me, the 'You are #12' notice and the list picker work as for every table. - A player's page lists each ranking the player is on (unless
show.profileisfalse) beside the Order of Merit: the ranking's name, the place and the money or points ("#3 ยท 1,250 pts"). - An event's 'i' sheet says which rankings it counts towards ("Its prize money counts on the Women's Series Ranking.", "It awards points on the Race to the Finals."), unless
show.eventsisfalse. - Routes and filters: "Needs top 16 on the Women's Series Ranking (you're #21)" is said as for any ranking route.
Names#
A ranking's name is looked up when it is shown: first as a text id in the career's own copy of the texts, then in the installed packs' texts (so a mod's acme.text.ranking-wdf shows its words), then as a core text key after core.text.; a name that matches none of these is shown as written.
Careers under way#
A career keeps its own copy of the rankings it began with, as it does its events: a ranking that decides who gets in should not change under a career. A career started before you installed a mod has none of its rankings until a data update brings them in. Uninstalling the mod does not remove them from a career that has them.
What the loader checks#
The schema refuses a window with both seasons and days and a points ranking without points. The loader warns about events and tours a ranking counts that the content does not have, a filter naming a ranking it does not have, and a filter reading a custom ranking made after it. An id it does not know names the nearest real one when there is one close ("Did you mean ...?"). A ranking entry route may read a custom ranking (custom:<id>) like any other.
In the Mod Studio every field that names a ranking offers the custom rankings as custom:<id> in its picker (see Entry selection).
Manager mode#
The Manager world reads custom rankings in entry rules (routes, filters, orders, team rankings) the same way, made from its own prize money and kept finishes; its screens do not list their tables. See Entry selection for what it keeps.
See also#
- Entry selection: filters, select routes and quotas.
- World sets): a World page list of players can show a ranking's table too.
- Tours: a tour's own table and its rolling list.