# What the site measures: outcomes and their denominators, route targets and their comparison groups, the # bonding-encounter contexts, the stages of the route map, the filter presets and the minimum-run thresholds. # analysis/stats/site_stats.py reads this file and writes data/public/stats.json, which the page only displays. # # Conditions: {field: value} means equal; {field: {in: [...]}}, {field: {not: value}}, {field: {exists: true}} # (not blank), {any: [condition, ...]} (at least one). Several fields in one condition must all hold. version: 1 # Which runs of data/public/runs_clean.csv the statistics use (its `source` column): every source that records the # route (the community form, "Report a run", the Reddit megathread comments, the DragonKind bot). The Reddit result # pages and the register record only the end, so they stay out. The bot plays to a strategy and burns on purpose at # encounters it is not chasing: like every rider's deliberate death (`_deliberate`, the route model's rule), those # burns are left out of the bond rates, never counted as failed bonds. sources: [reddit spreadsheet, reported, reddit comment, bot] colours: [Red, Green, Orange, Brown, Blue, Black] # Outcomes for the factor tables and models: who could have had the outcome (denom), and the outcome (event). outcomes: blue_meadow: label: Blue appears in the meadow denom: { branch: "Passed the Red: meadow" } event: { saw_blue_meadow: true } shadow: label: Shadow option appears at the tree denom: { hour: Tree, branch: { exists: true } } event: { saw_shadow: true } bond_blue_meadow: label: Bond, given you approached the meadow Blue denom: { branch: "Passed the Red: meadow", enc_Blue: { in: ["Bonded!", "Incinerated"] }, _deliberate: { not: true } } event: { enc_Blue: "Bonded!" } reach_hour: label: Survive to the hour (tree/valley choice) denom: {} event: { hour: { in: [Tree, Valley] } } # one more outcome per colour: "Run ends bonded to ", among runs that reached the hour bonded_outcome: label: Run ends bonded to {colour} denom: { hour: { in: [Tree, Valley] }, _deliberate: { not: true } } event: { outcome: Bonded, outcome_color: "{colour}" } # Factors compared in the factor tables (each answer against the other answers to the same question) factors: [company, direction, first_sighting, scream, resolution, combat_first, post_path, hour, wing, squad, attempt_group, entry, goal, sighting_action, combat_second, malek_intent] # Route targets: the outcome (event) and which runs could have reached it at all (pool) targets: bond_Blue: { label: Bond Blue, colour: Blue, event: { outcome: Bonded, outcome_color: Blue }, pool: { hour: Valley, _deliberate: { not: true } } } bond_Black: { label: Bond Black, colour: Black, event: { outcome: Bonded, outcome_color: Black }, pool: { hour: Tree, _deliberate: { not: true } } } see_Blue: { label: Meet a Blue (meadow), colour: Blue, event: { saw_blue_meadow: true }, pool: { branch: "Passed the Red: meadow" } } see_shadow: { label: Get the tree shadow, colour: Black, event: { saw_shadow: true }, pool: { hour: Tree, branch: { exists: true } } } bond_Red: { label: Bond Red, colour: Red, event: { outcome: Bonded, outcome_color: Red }, pool: { hour: { in: [Tree, Valley] }, _deliberate: { not: true } } } bond_Green: { label: Bond Green, colour: Green, event: { outcome: Bonded, outcome_color: Green }, pool: { hour: Tree, _deliberate: { not: true } } } bond_Orange: { label: Bond Orange, colour: Orange, event: { outcome: Bonded, outcome_color: Orange }, pool: { hour: { in: [Tree, Valley] }, _deliberate: { not: true } } } bond_Brown: { label: Bond Brown, colour: Brown, event: { outcome: Bonded, outcome_color: Brown }, pool: { hour: { in: [Tree, Valley] }, _deliberate: { not: true } } } bond_any: { label: Bond any dragon, colour: null, event: { outcome: Bonded }, pool: { hour: { in: [Tree, Valley] }, _deliberate: { not: true } } } # Bonding encounters: which recorded attempt (column) belongs to which in-game encounter (where) encounters: - { context: "Red (tree, descend quickly)", colour: Red, column: enc_Red, where: { hour: Tree, branch: "Descend quickly: Red" } } - { context: "Green (two Greens)", colour: Green, column: enc_Green, where: { hour: Tree, any: [ { branch: "Descend slowly: two Greens" }, { branch: "Descend quickly: let the Red pass" } ] } } - { context: "Blue (shadow)", colour: Blue, column: enc_Blue, where: { hour: Tree, branch: "Shadow (rare)" } } - { context: "Black (shadow)", colour: Black, column: enc_Black, where: { hour: Tree, branch: "Shadow (rare)" } } - { context: "Red (valley)", colour: Red, column: enc_Red, where: { hour: Valley, branch: Valley Red } } - { context: "Orange (meadow)", colour: Orange, column: enc_Orange, where: { hour: Valley, branch: "Passed the Red: meadow" } } - { context: "Brown (meadow)", colour: Brown, column: enc_Brown, where: { hour: Valley, branch: "Passed the Red: meadow" } } - { context: "Blue (meadow)", colour: Blue, column: enc_Blue, where: { hour: Valley, branch: "Passed the Red: meadow" } } # The route map's columns, in order. "chance": steps the game rolls, not the rider. stages: - { key: company, label: Company } - { key: direction, label: Direction } - { key: first_sighting, label: First sighting, chance: true } - { key: cadet, label: Cadet encounter } - { key: post_path, label: Fork in the road } - { key: hour, label: After an hour } - { key: encounter, label: Encounter, chance: true } - { key: end, label: Outcome } # Filter presets: the page shows one at a time (no statistics are computed in the browser) presets: all: { label: All runs, filters: { source: all, goal: all, excludeFlagged: false } } form: { label: Form submissions only, filters: { source: form, goal: all, excludeFlagged: false } } bulk: { label: Bulk logs only (imports), filters: { source: bulk, goal: all, excludeFlagged: false } } reddit: { label: Reddit comments only, filters: { source: reddit, goal: all, excludeFlagged: false } } bot: { label: DragonKind bot only, filters: { source: bot, goal: all, excludeFlagged: false } } not_chasing: { label: Not chasing Blue/Black, filters: { source: all, goal: exclude_rare, excludeFlagged: false } } chasing: { label: Chasing Blue/Black, filters: { source: all, goal: only_rare, excludeFlagged: false } } unflagged: { label: Rows without data-quality flags, filters: { source: all, goal: all, excludeFlagged: true } } # Minimum runs a full route needs before it is ranked (q-values are corrected within each threshold) route_thresholds: [5, 10, 20, 30] rare_goals: [Blue, Black, Blue or Black] # "Show the paths of all riders" on the valley map (site/atlas/explorer.js): one layer per source that records a # route, each with its own switch. Unlike everything above, the layers use every source of runs_clean.csv. Within a # layer the runs are split by how they ended, drawn as line styles in the layer's colour: solid (did not die), dashed # (chose to die: burned at an encounter the rider did not genuinely attempt, the route model's rule) and dotted # (failed: every other death). Discord has no runs yet: its layer is ready for when it is imported. path_layers: - { key: sheet, label: "Google Sheet", sources: [reddit spreadsheet] } - { key: reported, label: "Reported on the Atlas", sources: [reported] } - { key: reddit, label: "Reddit megathread comments", sources: [reddit comment] } - { key: bot, label: "DragonKind bot", sources: [bot] } - { key: discord, label: "Discord", sources: [discord] } # sources that record which dragon bonded but not the route: counted on the map, not drawn path_unrouted: [reddit thread, register]