glitchless-dsh 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +84 -2
- package/cordis.patch.yml +20 -0
- package/icon.svg +15 -0
- package/index.js +55 -0
- package/package.json +55 -4
- package/skills/dashboard/SKILL.md +190 -0
- package/skills/dashboard/references/examples.md +98 -0
- package/skills/dashboard/references/genres.md +47 -0
- package/skills/instrument/SKILL.md +158 -0
- package/skills/instrument/references/babylon.md +81 -0
- package/skills/instrument/references/gamemaker.md +141 -0
- package/skills/instrument/references/godot.md +60 -0
- package/skills/instrument/references/phaser.md +82 -0
- package/skills/instrument/references/playcanvas.md +80 -0
- package/skills/instrument/references/threejs.md +210 -0
- package/skills/instrument/references/unity.md +150 -0
- package/skills/instrument/references/unreal.md +180 -0
- package/skills/triage/SKILL.md +41 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 The Glitchless authors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,85 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Glitchless for DeepSeek Harness
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Let your agent understand your players.** Glitchless is game observability for coding agents. Your game sends how
|
|
4
|
+
each play session went (frame times and what caused each hitch, errors, levels, where players quit, your own events),
|
|
5
|
+
and your agent reads it: what's wrong this week, which error hits the most players, whether last night's build fixed
|
|
6
|
+
the stutter on level 2.
|
|
7
|
+
|
|
8
|
+
This plugin adds Glitchless to [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) (DSH):
|
|
9
|
+
|
|
10
|
+
- **27 tools** from the `glitchless-mcp` server, shown to the model as `mcp__glitchless__*`: ranked findings, frame
|
|
11
|
+
times by level and device, errors, one session's timeline, your game's own events and funnels, bug reports players
|
|
12
|
+
sent, store reviews and revenue, each game's dashboard, playtest bots, and share links.
|
|
13
|
+
- **3 skills**, also as slash commands:
|
|
14
|
+
|
|
15
|
+
| Skill | What it does |
|
|
16
|
+
| --- | --- |
|
|
17
|
+
| `glitchless-setup` | Adds Glitchless to a game in Unity, Godot, Unreal, Three.js, Phaser, Babylon.js, PlayCanvas or GameMaker: the SDK, levels, events, bots, privacy settings |
|
|
18
|
+
| `glitchless-dashboard` | Works out what you want to know about your game, adds what's needed to measure it, and designs its dashboard |
|
|
19
|
+
| `glitchless-triage` | Finds the problem that hits the most players, fixes it, and checks the fix with the next version |
|
|
20
|
+
|
|
21
|
+
## Install
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
dsh plugin --profile web add glitchless-dsh
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Restart DSH. Use `--profile tui` or `--profile headless` for those profiles. DSH runs the server with `npx`, so Node.js
|
|
28
|
+
22 or newer has to be on your `PATH`.
|
|
29
|
+
|
|
30
|
+
## Sign in
|
|
31
|
+
|
|
32
|
+
Ask DSH to "sign in to Glitchless". It calls `glitchless_sign_in`, which shows a link and a code; approve the code in
|
|
33
|
+
the Glitchless dashboard and the agent reaches every game in your workspace. No key goes in a config file: the server
|
|
34
|
+
keeps a workspace key in `~/.config/glitchless/credentials.json`, readable only by you, and `npx -y glitchless-mcp
|
|
35
|
+
logout` deletes it. You need a Glitchless account, which is [free to start](https://www.glitchless.gg). A new
|
|
36
|
+
workspace has a demo game, so you can try it before your game sends anything.
|
|
37
|
+
|
|
38
|
+
## Use it
|
|
39
|
+
|
|
40
|
+
Open DSH in your game's folder and say:
|
|
41
|
+
|
|
42
|
+
- "Set up Glitchless for my game" (the `glitchless-setup` skill)
|
|
43
|
+
- "What's wrong with my game this week?"
|
|
44
|
+
- "Build my game a dashboard: I want to know where players quit and which mode they play"
|
|
45
|
+
|
|
46
|
+
Tested with DSH 0.2.1-rc.5 and DeepSeek V4.1 Flash on macOS.
|
|
47
|
+
|
|
48
|
+
## Permissions
|
|
49
|
+
|
|
50
|
+
The tools read your games' data and can create a game, save a game's dashboard and make or revoke read-only share
|
|
51
|
+
links. They act as you, with your role in the workspace, and never delete data or touch billing or people. Settings →
|
|
52
|
+
Keys & access in the dashboard lists and revokes the key. `glitchless_playtest` runs bots against a build on your
|
|
53
|
+
computer, and the setup skill edits your game's code when you ask it to.
|
|
54
|
+
|
|
55
|
+
## Self-hosted
|
|
56
|
+
|
|
57
|
+
Glitchless is open source, and its server runs on your own machine:
|
|
58
|
+
`docker run -p 7777:7777 -v glitchless-data:/data ghcr.io/glitchless-gg/glitchless`. DSH doesn't pass keys from its
|
|
59
|
+
own environment to MCP servers, so give the server's address and key to the `glitchless-mcp` row. Add this to the end
|
|
60
|
+
of your profile's patch file, `~/.dsh/profiles/web/cordis.patch.yml` (it replaces the row's whole config, so keep the
|
|
61
|
+
other lines):
|
|
62
|
+
|
|
63
|
+
```yaml
|
|
64
|
+
- id: glitchless-mcp
|
|
65
|
+
config:
|
|
66
|
+
serverName: glitchless
|
|
67
|
+
transport: stdio
|
|
68
|
+
command: npx
|
|
69
|
+
args: ['-y', 'glitchless-mcp']
|
|
70
|
+
cwd: !!js process.cwd()
|
|
71
|
+
toolCallTimeoutMs: 600000
|
|
72
|
+
failOnStartupError: false
|
|
73
|
+
env:
|
|
74
|
+
GLITCHLESS_URL: http://localhost:7777
|
|
75
|
+
GLITCHLESS_API_KEY: gl_sk_…
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Links
|
|
79
|
+
|
|
80
|
+
- [glitchless.gg](https://www.glitchless.gg) · [Docs and source](https://github.com/glitchless-gg/glitchless) ·
|
|
81
|
+
[Privacy](https://www.glitchless.gg/privacy.html) · support@glitchless.gg
|
|
82
|
+
- The same skills for Claude Code, Codex, Cursor and Antigravity are in the
|
|
83
|
+
[Glitchless repo](https://github.com/glitchless-gg/glitchless).
|
|
84
|
+
|
|
85
|
+
MIT licensed.
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Glitchless for DeepSeek Harness: the bundle patch DSH applies to a profile when this package is installed. It mounts
|
|
2
|
+
# two rows. `glitchless` is this package (index.js), which adds the skills. `glitchless-mcp` is DSH's own MCP client
|
|
3
|
+
# running the glitchless-mcp server over stdio; its tools show up as mcp__glitchless__*. The server needs no key in
|
|
4
|
+
# this file: the agent calls glitchless_sign_in, the person approves a code in the browser, and the server keeps a
|
|
5
|
+
# workspace key in ~/.config/glitchless/credentials.json. DSH doesn't pass keys from its own environment to the
|
|
6
|
+
# server, so a self-hosted server's GLITCHLESS_URL and GLITCHLESS_API_KEY go in this row's config.env.
|
|
7
|
+
- insert:
|
|
8
|
+
- id: glitchless
|
|
9
|
+
name: glitchless-dsh
|
|
10
|
+
- id: glitchless-mcp
|
|
11
|
+
name: '@deepseek-ai/dsh-mcp-client'
|
|
12
|
+
config:
|
|
13
|
+
serverName: glitchless
|
|
14
|
+
transport: stdio
|
|
15
|
+
command: npx
|
|
16
|
+
args: ['-y', 'glitchless-mcp']
|
|
17
|
+
cwd: !!js process.cwd()
|
|
18
|
+
# A playtest runs bots through the game for a few minutes.
|
|
19
|
+
toolCallTimeoutMs: 600000
|
|
20
|
+
failOnStartupError: false
|
package/icon.svg
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" role="img" aria-label="Glitchless">
|
|
2
|
+
<rect width="512" height="512" rx="112" fill="#14213D"/>
|
|
3
|
+
<g fill="#2EE6A6">
|
|
4
|
+
<rect x="132" y="128" width="64" height="40" rx="16"/>
|
|
5
|
+
<rect x="316" y="128" width="64" height="40" rx="16"/>
|
|
6
|
+
<rect x="84" y="150" width="344" height="156" rx="72"/>
|
|
7
|
+
<rect x="80" y="214" width="124" height="190" rx="62" transform="rotate(14 142 214)"/>
|
|
8
|
+
<rect x="308" y="214" width="124" height="190" rx="62" transform="rotate(-14 370 214)"/>
|
|
9
|
+
</g>
|
|
10
|
+
<rect x="134" y="186" width="244" height="88" rx="28" fill="#14213D"/>
|
|
11
|
+
<g fill="none" stroke-width="15" stroke-linecap="round" stroke-linejoin="round">
|
|
12
|
+
<path d="M158 238 L176 208 L194 256 L212 214 L230 238" stroke="#FF6B57"/>
|
|
13
|
+
<path d="M230 238 H352" stroke="#2EE6A6"/>
|
|
14
|
+
</g>
|
|
15
|
+
</svg>
|
package/index.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// Glitchless for DeepSeek Harness (DSH): a Cordis plugin that adds Glitchless's skills to DSH's skill catalog, as
|
|
2
|
+
// glitchless-setup, glitchless-dashboard and glitchless-triage. DSH skill names share one namespace, so they carry the
|
|
3
|
+
// names the skills.sh copies have: DSH also reads ~/.agents/skills, and someone with both gets one of each.
|
|
4
|
+
// cordis.patch.yml mounts this beside DSH's MCP client, which runs the glitchless-mcp server the skills call. The
|
|
5
|
+
// skills are copies of the Claude Code plugin's (node scripts/sync-agent-plugin.mjs keeps them in step); each loads
|
|
6
|
+
// with its folder as the base for the references/ files it points to.
|
|
7
|
+
import fs from 'node:fs';
|
|
8
|
+
import path from 'node:path';
|
|
9
|
+
import { fileURLToPath } from 'node:url';
|
|
10
|
+
|
|
11
|
+
export const name = 'glitchless';
|
|
12
|
+
export const inject = ['skills'];
|
|
13
|
+
|
|
14
|
+
const SKILLS = path.join(path.dirname(fileURLToPath(import.meta.url)), 'skills');
|
|
15
|
+
// A skill's name in DSH, by its folder; the rest are glitchless-<folder>.
|
|
16
|
+
const NAMES = { instrument: 'glitchless-setup' };
|
|
17
|
+
|
|
18
|
+
// A SKILL.md's frontmatter (one `key: value` a line, values optionally quoted) and the Markdown after it.
|
|
19
|
+
export function parseSkill(text) {
|
|
20
|
+
const match = text.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n?/);
|
|
21
|
+
if (!match) throw new Error('no frontmatter');
|
|
22
|
+
const meta = {};
|
|
23
|
+
for (const line of match[1].split(/\r?\n/)) {
|
|
24
|
+
const kv = line.match(/^([\w-]+):\s*(.*)$/);
|
|
25
|
+
if (!kv) continue;
|
|
26
|
+
const value = kv[2].trim();
|
|
27
|
+
meta[kv[1]] = /^(["']).*\1$/.test(value) ? value.slice(1, -1) : value;
|
|
28
|
+
}
|
|
29
|
+
return { meta, content: text.slice(match[0].length) };
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Every skill in skills/, as DSH's runtime registrations.
|
|
33
|
+
export function skills(dir = SKILLS) {
|
|
34
|
+
return fs
|
|
35
|
+
.readdirSync(dir, { withFileTypes: true })
|
|
36
|
+
.filter((entry) => entry.isDirectory() && fs.existsSync(path.join(dir, entry.name, 'SKILL.md')))
|
|
37
|
+
.map((entry) => {
|
|
38
|
+
const file = path.join(dir, entry.name, 'SKILL.md');
|
|
39
|
+
const { meta, content } = parseSkill(fs.readFileSync(file, 'utf8'));
|
|
40
|
+
return {
|
|
41
|
+
name: NAMES[entry.name] ?? `glitchless-${entry.name}`,
|
|
42
|
+
description: meta.description,
|
|
43
|
+
content,
|
|
44
|
+
path: file,
|
|
45
|
+
source: 'plugin',
|
|
46
|
+
resourceBase: { kind: 'directory', path: path.dirname(file) },
|
|
47
|
+
metadata: meta,
|
|
48
|
+
};
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function apply(ctx) {
|
|
53
|
+
// Each registration unwinds when the plugin unloads.
|
|
54
|
+
for (const skill of skills()) ctx.skills.register(skill);
|
|
55
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,57 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "glitchless-dsh",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Let your agent understand your players. Glitchless for DeepSeek Harness: game observability tools over MCP (ranked findings, frame times, errors, where players quit, each game's own dashboard) and skills that add Glitchless to a game in Unity, Godot, Unreal, Three.js and more, design its dashboard and fix what players hit.",
|
|
5
|
+
"icon": "./icon.svg",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "index.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": "./index.js",
|
|
10
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
11
|
+
"./package.json": "./package.json"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"index.js",
|
|
15
|
+
"cordis.patch.yml",
|
|
16
|
+
"icon.svg",
|
|
17
|
+
"skills",
|
|
18
|
+
"README.md",
|
|
19
|
+
"LICENSE"
|
|
20
|
+
],
|
|
21
|
+
"keywords": [
|
|
22
|
+
"dsh-plugin",
|
|
23
|
+
"deepseek",
|
|
24
|
+
"deepseek-harness",
|
|
25
|
+
"dsh",
|
|
26
|
+
"glitchless",
|
|
27
|
+
"mcp",
|
|
28
|
+
"skills",
|
|
29
|
+
"gamedev",
|
|
30
|
+
"game-development",
|
|
31
|
+
"observability",
|
|
32
|
+
"unity",
|
|
33
|
+
"godot",
|
|
34
|
+
"unreal",
|
|
35
|
+
"threejs"
|
|
36
|
+
],
|
|
37
|
+
"homepage": "https://www.glitchless.gg",
|
|
38
|
+
"repository": {
|
|
39
|
+
"type": "git",
|
|
40
|
+
"url": "git+https://github.com/glitchless-gg/glitchless-dsh.git"
|
|
41
|
+
},
|
|
42
|
+
"bugs": {
|
|
43
|
+
"url": "https://github.com/glitchless-gg/glitchless/issues",
|
|
44
|
+
"email": "support@glitchless.gg"
|
|
45
|
+
},
|
|
46
|
+
"author": "Glitchless <support@glitchless.gg> (https://www.glitchless.gg)",
|
|
47
|
+
"license": "MIT",
|
|
48
|
+
"engines": {
|
|
49
|
+
"node": ">=22",
|
|
50
|
+
"dsh": ">=0.2.1-rc.5"
|
|
51
|
+
},
|
|
52
|
+
"dsh": {
|
|
53
|
+
"bundle": {
|
|
54
|
+
"patch": "./cordis.patch.yml"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dashboard
|
|
3
|
+
description: Build a game's own Glitchless dashboard. Work out what this game's developer wants to know, add the collectors for it (custom events with track(), levels, gauges, positions, game tools agents can call), check the data arrives, then design the game's dashboard (its pages, which are boards of panels and the built-in views it needs) with the glitchless_set_dashboard MCP tool. Use when the user asks for a dashboard, metrics, KPIs or analytics for their game, wants to track or count something, asks "how many players…", "which mode…", "does the paywall convert", or wants a different view of their game in Glitchless.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Build a game's own dashboard
|
|
7
|
+
|
|
8
|
+
Every game needs different numbers. A mobile game cares whether players come back, which mode they pick and
|
|
9
|
+
whether the paywall turns into purchases; a puzzle game, how long a puzzle takes and how often hints are used; a
|
|
10
|
+
platformer or shooter, where players die and whether frames hold up in a fight. Glitchless doesn't guess: you
|
|
11
|
+
add the collectors this game needs, and design its dashboard from them: its own pages, in its own words. The
|
|
12
|
+
developer then sees it in Glitchless, and you can read the same data back over MCP to debug.
|
|
13
|
+
|
|
14
|
+
Before this skill, the game should already send data (the `instrument` skill). If it doesn't, do that first.
|
|
15
|
+
|
|
16
|
+
## 1. Find out what they want to know
|
|
17
|
+
|
|
18
|
+
Write down three to eight questions, in the developer's words. Ask if they haven't said; read the game to
|
|
19
|
+
suggest some (menus, modes, shops, level lists, settings, anything with a counter). Good questions are about
|
|
20
|
+
decisions: "Do players finish the tutorial?", "Which mode do they play?", "Does the paywall convert?", "Which
|
|
21
|
+
stage is too hard?", "Does it stutter on phones?". Leave out what nobody would act on.
|
|
22
|
+
|
|
23
|
+
## 2. Pick a collector for each question
|
|
24
|
+
|
|
25
|
+
| The question is about | Collector | Shows on a board as |
|
|
26
|
+
| --- | --- | --- |
|
|
27
|
+
| how often something happens, or which option players choose | `track(name, attrs)` | `stat`, `series`, `breakdown` |
|
|
28
|
+
| how much: revenue, coins, seconds | a number in `track`'s attributes (`purchase` with `amount` and `currency`) | `stat` or `breakdown` with `sum` |
|
|
29
|
+
| how many players do it at all (conversion) | `track(name)` | `stat` with `per: "$players"` |
|
|
30
|
+
| a sequence (tutorial → first win, paywall → purchase) | one `track` per step | `funnel` |
|
|
31
|
+
| progress or difficulty through stages, puzzles, waves, stops | `levelStart` / `levelComplete` / `levelFail` | `levels` |
|
|
32
|
+
| dying, and where | `death` (and `setPosition` for places) | `deaths`, `positions` (one level), the Heatmaps view |
|
|
33
|
+
| smoothness, and what makes it worse | automatic frame times, plus `setContext` gauges (enemies, particles) | `frame_time`, `stat: frame_p95` |
|
|
34
|
+
| crashes and errors | automatic, plus `error()` for handled ones | `errors`, `stat: crash_free_pct` |
|
|
35
|
+
| whether players come back (D1, D7, D30) | install mode: privacy `install` in the SDK, a stored random player ID (ask the user first: the privacy page must say so) | `retention`, the Players view |
|
|
36
|
+
| how many are playing right now | automatic | `stat: players_now` |
|
|
37
|
+
| who wins: a hero, weapon, card, heat or difficulty that wins too often or too rarely | one event at the end of each match or run with the outcome as a boolean (`match_end` with `hero` and `won: true`) | `breakdown` by `hero` with `rate: "won"` (each row's win rate with its likely range, next to all of them), `stat` with `rate` |
|
|
38
|
+
| how long, how far, how many: match length, time in queue, placement, floors reached, pulls to a top unit | a number on that one event (`duration_s`, `wait_s`, `floor`) | `distribution` (half under, 1 in 10 over, a histogram), `stat` with `of` and `quantile: 50` (the median) |
|
|
39
|
+
| each run, match or day one by one: today's daily runs and their scores, the last matches with their seed | one `track` per run with what describes it (`daily_run` with `day_label`, `score`, `attempt`) | `table`: a row per event, grouped by `day_label`, best score first (below) |
|
|
40
|
+
| what a match or run used: a deck, items, a build, boons | a list attribute (`deck: [...]`) | `breakdown` by the list (each card a row), with `rate` for the win rate of decks with each card |
|
|
41
|
+
| how fast players earn or play: gold, XP or kills per hour, matches per hour | the event (with its `amount`) | `stat` or `breakdown` with `per: "$hours"` (per hour played), and a `versions` panel to catch an economy that jumps |
|
|
42
|
+
| a stream: shots, hits, kills, gold pickups, taps (many a second) | `count(name, attrs)`: summed on the device, sent once every 5 s, never a `track` per hit | like any event by its name: `stat` per `$hours`, `breakdown` by its words, `sum` of its numbers (no distribution) |
|
|
43
|
+
| who is playing: rank, class, region, mode, a graphics preset, a spender band | `setProperties({ rank: 'gold' })`, set where the game knows it (after sign-in, the menu, matchmaking) | `by: "$rank"` on any breakdown, series, rate, distribution, `levels`, `retention` or `versions`; a page with `where` (only the high ranks) |
|
|
44
|
+
| clears and wipes by difficulty, tier, group size or build | `levelStart(id, { tier, party_size, build: [...] })` | `levels` with `by: "tier"` (one level's rows: `level`), `deaths` with `by` |
|
|
45
|
+
| runs that cross several levels (a roguelite) | `setGroup('run')` at the run's start | `levels` with `count: "runs"` (runs that reach each biome), `stat: runs` |
|
|
46
|
+
| one match from every side, and whether the lobby or one player lagged | `setGroup('match', id)` with the ID the game's server made (`'party'` for a party; its size goes on `levelStart` as `party_size`) | the Matches view (each match's page), the lobby finding; clears by group size: `levels` by `party_size` |
|
|
47
|
+
| where the player is in an open world (an MMO zone, a room) | `setZone(name)` | `by: "$zone"` on breakdowns and series (kept like levels: any range) |
|
|
48
|
+
| lag, packet loss and dropped players | read from the netcode by the SDK, or `netSample` / `disconnect` (the `instrument` skill) | `net` (ping, loss, disconnects), `stat: ping_p95`, `disconnect_pct`, the Network section of Performance |
|
|
49
|
+
| dedicated servers: tick rate under load, crashes that end matches, leaks | the SDK in server mode on the server build (the `instrument` skill) | `servers` panels, `stat: servers_now` / `server_tick_p95` / `server_crash_free_pct`, the Servers view |
|
|
50
|
+
|
|
51
|
+
The calls, per engine:
|
|
52
|
+
|
|
53
|
+
| | Three.js or Phaser | Godot | Unity | Unreal (C++; the Blueprint nodes match) |
|
|
54
|
+
| --- | --- | --- | --- | --- |
|
|
55
|
+
| a game event | `glitchless.track('play', { mode: 'endless' })` | `Glitchless.track("play", "endless")` | `Glitchless.Track("play", "endless");` | `FGlitchless::Track(TEXT("play"), TEXT("endless"));` (Track Event (What)) |
|
|
56
|
+
| several attributes | `glitchless.track('buy', { step: 'done', item: 'full_game' })` | `Glitchless.track("buy", {"step": "done"})` | `Glitchless.Track("buy", new Dictionary<string, object> { ["step"] = "done" });` | `FGlitchless::Track(TEXT("buy"), TMap<FString, FString>{{TEXT("step"), TEXT("done")}});` (Track Event) |
|
|
57
|
+
| a purchase | `glitchless.track('purchase', { amount: 4.99, currency: 'USD', item: 'gems_500' })` | `Glitchless.track("purchase", {"amount": 4.99, "currency": "USD", "item": "gems_500"})` | `Glitchless.Track("purchase", new Dictionary<string, object> { ["amount"] = 4.99, ["currency"] = "USD", ["item"] = "gems_500" });` | `FGlitchless::Track(TEXT("purchase"), {{TEXT("amount"), TEXT("4.99")}, {TEXT("currency"), TEXT("USD")}, {TEXT("item"), TEXT("gems_500")}});` (Track Event) |
|
|
58
|
+
| a level | `levelStart(id)`, `levelComplete(id, { score })`, `levelFail(id, { cause })`, `levelAbandon(id)` (left, not lost) | `level_start`, `level_complete`, `level_fail`, `level_abandon` | `LevelStart`, `LevelComplete`, `LevelFail`, `LevelAbandon` | `LevelStart`, `LevelComplete`, `LevelFail`, `LevelAbandon` (maps are levels on their own) |
|
|
59
|
+
| a gauge | `glitchless.setContext({ enemies })` | `Glitchless.set_context({"enemies": n})` | `Glitchless.SetContext("enemies", n)` | `FGlitchless::SetContext(TEXT("enemies"), N)` |
|
|
60
|
+
|
|
61
|
+
Rules that keep the numbers useful:
|
|
62
|
+
|
|
63
|
+
- One event name per moment, in the game's own words (`open`, `play`, `paywall`, `buy`), and keep names stable:
|
|
64
|
+
renaming an event splits its history.
|
|
65
|
+
- Put the choice in an attribute, not the name: `play` with `mode: 'endless'`, not `play_endless`. Godot, Unity
|
|
66
|
+
and Unreal turn one word into the attribute `what`.
|
|
67
|
+
- Attributes are strings, numbers, booleans or lists of them, at most 12 per event; strings are cut to 64
|
|
68
|
+
characters. Keep their values to a small set (modes, places, outcomes): a value per player or per run makes a
|
|
69
|
+
useless breakdown.
|
|
70
|
+
- Outcomes as booleans (`won: true`), amounts as numbers (`duration_s: 184`), what a match or run used as a list
|
|
71
|
+
(`deck: [...]`, its first 16 count), and one event at the end of each match or run carrying all of them, not one
|
|
72
|
+
per hit. What describes the player goes in bands (`level_band: '30-39'`), never exact levels or amounts.
|
|
73
|
+
- Track a moment, count a stream: `count()` for anything that happens many times a second (shots, hits, kills,
|
|
74
|
+
gold); `track()` for a moment worth its own event (a match's end, a purchase).
|
|
75
|
+
- A property is what holds for the session (rank tier, class, region, mode, preset), set again each session: bands
|
|
76
|
+
and words, never an ID, a name or an exact number (intake drops keys like `email` or `user_id` and values shaped
|
|
77
|
+
like one). What changes from match to match (hero, deck, map) goes on the event or the level start instead.
|
|
78
|
+
- Never send anything that identifies a player: no names, emails, account ids or anything they typed.
|
|
79
|
+
- Purchases: one `purchase` event when the store confirms it (not when the button is tapped), with `amount` (a
|
|
80
|
+
number, in the currency's units: 4.99, not 499), `currency` (the ISO code the store charged in) and `item`. A
|
|
81
|
+
number sent next to `currency` counts as money, so put other numbers (gems granted) on an event of their own.
|
|
82
|
+
Never send receipts, order ids or payment details. Taps and failures are other events (`buy` with `step`).
|
|
83
|
+
|
|
84
|
+
Add the calls where the moment happens in code, then run the game (or let the bots play it) and check with
|
|
85
|
+
`glitchless_events` that every event arrives with the attributes you expect.
|
|
86
|
+
|
|
87
|
+
## 3. Design the dashboard
|
|
88
|
+
|
|
89
|
+
A dashboard is the game's pages, in the order its sidebar shows them; the first opens first. Each page is a
|
|
90
|
+
board, panels you choose, or a built-in view the game keeps: `events` (every event, breakdowns, funnels),
|
|
91
|
+
`performance` (frame time and hitches), `errors`, `players`, `heatmaps` (positions on the level), `sessions`
|
|
92
|
+
(each with its replay), `versions`, `live` (events as they arrive; `options.events` keeps only some), `reports`
|
|
93
|
+
(bug reports players sent, with screenshots), `matches` (a multiplayer game's matches, each opening a page with every
|
|
94
|
+
player's ping slot by slot and the server's ticks under it) and `servers` (a game whose dedicated servers run the SDK
|
|
95
|
+
in server mode: ticks by map and players connected, crashes, memory). Give the game the pages its developer would open, named in the game's
|
|
96
|
+
words, and drop the views it has no data for: no Heatmaps for a puzzle or mobile game, no Performance for a game
|
|
97
|
+
that sends no frame times, no reports page for a game that doesn't turn bug reports on.
|
|
98
|
+
|
|
99
|
+
Start from what is there: `glitchless_dashboard` returns the current pages (`spec`; an automatic dashboard until
|
|
100
|
+
someone saves one). Then call `glitchless_set_dashboard` with every page. On a board: a row of stats, then the
|
|
101
|
+
game's own events and funnels, then levels, then frame time and errors. Title each panel with the question it
|
|
102
|
+
answers. Each panel takes `size`: `s` (a quarter row, for stats), `m` (half) or `l` (full width); and a `note`,
|
|
103
|
+
one line on why it matters. People see the note behind the info icon next to the title, so put what they must see
|
|
104
|
+
in the title. Panels keep their order and pack under each other, so a short panel can sit next to a tall one.
|
|
105
|
+
Give the game its own colour with `accent` ("#rrggbb", such as the main colour of its logo or key art) in
|
|
106
|
+
`glitchless_set_dashboard`, alone or with the pages: it colours the links, the selected page, stats, the main chart
|
|
107
|
+
series and the map on its boards and share links. The logo and a banner (key art) are uploaded by people in the
|
|
108
|
+
dashboard (Edit pages → Look); `glitchless_dashboard` says whether the game has them.
|
|
109
|
+
|
|
110
|
+
| type | fields |
|
|
111
|
+
| --- | --- |
|
|
112
|
+
| `stat` | `metric` (sessions, players, avg_session_s, median_session_s, crash_free_pct, error_free_pct, frame_p95, avg_fps, hitches_per_min, errors, deaths, rage_quit_pct, hours_played, players_now: playing now, whatever the range; runs; for a multiplayer game ping_p50, ping_p95, loss_pct, disconnects_per_hour, disconnect_pct; with servers in server mode servers_now, server_tick_p95, server_crash_free_pct, players_per_server), or `event` with an optional `per`: another event (a percentage), `$players` / `$sessions` (the share of them that sent it: conversion) or `$hours` (per hour played: matches per hour; `deaths` and `errors` take it too). With `sum` (a numeric attribute), it adds that up instead, and `per: "$players"` gives it per player, `"$hours"` per hour played (gold per hour). `rate`: the share of the events where a flag holds (`"won"`) or a word is sent (`"result=win"`), with `expect` for a rate the game intends; `avg`: a numeric attribute's average; `of` with `quantile` (1 to 99) and `unit`: one percentile (the median match) |
|
|
113
|
+
| `series` | `event`, optional `by` (split by an attribute, or `$version` / `$level` / `$zone`, or the sessions' `$platform` / `$browser` / `$device_tier` / `$link` or a property, `$rank`), `limit`, `sum`, `rate` or `avg`, `per: "$hours"` |
|
|
114
|
+
| `breakdown` | `event`, `by`, `limit`, `sum` (each value's sum, largest first). `by` can split the sessions themselves: `$platform` (Windows, macOS, Linux, Steam Deck, iOS, Android, Web…), `$browser` (Chrome, Safari, Firefox, Edge…; a native build shows as "Godot app", a web build of an engine as "Unity web build") or `$device_tier` (High-end, Mid-range, Low-end GPU, Software rendering, high to low), `$link` (Wi-Fi, Mobile data, Wired), or a property the game sets (`$rank`, `$class`; sessions without it are "(none)"). Without `event` it counts the sessions in each, and their players when the game sends player IDs. Ranges of 31 days or less. With `rate` (`"won"`, `"result=win"`) or `avg`, each row's rate with its likely range (or its average) next to the overall one: `min` leaves out rows of fewer events (default 30 for a rate), `expect` draws the rate the game intends (a gacha's published odds, as a percentage: 0.6), `order` is `rate` (default), `count` or `value` (heat 0, 1, 2). `per: "$hours"` makes each row per hour played. By a list attribute (a deck), each element is a row |
|
|
115
|
+
| `distribution` | `event`, `of` (a numeric attribute), optional `by` (an attribute, `$version`, `$level`, a session split), `limit` (rows, up to 8), `bins` (bars, up to 40), `unit` (`"s"` shows minutes and hours; or the game's word, `"floors"`). How it spreads: half under, 1 in 10 over, and a histogram |
|
|
116
|
+
| `funnel` | `steps`: events in order, comma-separated |
|
|
117
|
+
| `levels` | `label`: what the game calls a level ("Stop", "Puzzle", "Wave"); shows each one's median clear time and the slowest 1 in 10, and the attempts a disconnect ended. `by` splits each level's attempts: an attribute of its `levelStart` (`"tier"`, `"party_size"`, a list such as `"build"`), a property (`"$class"`) or a split; `level` keeps one level; `count: "runs"` counts each run once at each level it reached |
|
|
118
|
+
| `net` | `show`: `ping` (median and slowest 5% over time, and the share of play over 150 ms), `loss` or `disconnects` (per hour played, by reason); `by`: `$region` (a property), `$link`, `$platform`, `$level`, `$version` |
|
|
119
|
+
| `servers` | `show`: `ticks` (tick time against its budget; `by`: `players` connected, `$level` or `$version`), `players` or `crashes` (with the matches and players each ended). Read from the game's servers in server mode |
|
|
120
|
+
| `sessions` | `sent`: only sessions that sent this event ("buy=done"), `limit` |
|
|
121
|
+
| `versions` | none: this board's stats, version by version; `by` a property (`$class`) compares its values instead |
|
|
122
|
+
| `live` | `events`: only these names or types, as they arrive |
|
|
123
|
+
| `findings`, `frame_time`, `errors`, `deaths`, `events`, `reports` | none (`limit` for findings, errors and reports; `by` and `level` for deaths, as on `levels`) |
|
|
124
|
+
| `retention` | `limit`: how many of the latest first-seen days (default 14); `by` a property (`$spender`): each value's D1, D7 and D30. Needs player IDs: a game in anonymous mode gets a panel saying to turn install mode on |
|
|
125
|
+
| `store_revenue` | `measure` (required): `revenue`, `per_player`, `by_day`, `by_version` or `by_country` (a world map of installs or revenue by country with the countries ranked: installs, revenue, purchases; `show: "revenue"` opens it on revenue; size `l`); RevenueCat's `installs`, `active_users`, `mrr`, `actives`, `trials`, `players_by_day` and `by_store` (revenue in the App Store and Google Play next to the iOS and Android sessions measured); Stripe's `refunds`, `customers` (new paying customers) and `by_product`. `store`: `revenuecat` or `stripe` (default: the first connected). Real revenue from RevenueCat or the game's own Stripe account, for a game connected to it in Glitchless Cloud |
|
|
126
|
+
| `store_score` | `store` (`app_store`, `google_play` or `steam`): a store's rating, one small panel per store. The average stars of the written reviews synced in the window and how many, next to Apple's own rating on the App Store. Google Play has no API for its overall rating, so its panel is the reviews' average and says so |
|
|
127
|
+
| `positions` | `level` (required), `show`: `deaths` (default), `path` or `both`, `bin`: a bin's width in world units (default about a hundredth of the level). Where players died on that level, counted per bin, and where they went on a coarser grid: one panel per level |
|
|
128
|
+
| `table` | `event` (required), `columns` (up to 12: attributes, `$time`, `$version`, `$platform`, `$level`, `$session`; `{ "key": "duration_s", "unit": "s" }` for a unit; default the event's own attributes, up to 8), `group_by` (an attribute, `$version`, `$level` or `$platform`), `sort` (`"-score"`: highest first; default newest first), `of` (a number whose lowest, average and highest each group shows), `limit` (rows a group, up to 100; default 20). The event's events one by one, size `l` |
|
|
129
|
+
|
|
130
|
+
An event is written `name`, `name=value` (any attribute has that value) or `name:key=value`. A list matches when it
|
|
131
|
+
has the value (`battle_end:deck=hog_rider`), and `battle_end:deck=hog_rider+ice_spirit` when it has all of them:
|
|
132
|
+
ask about any pair or trio this way. With `sum` and `by` an attribute, the event is a name only (`purchase`, not
|
|
133
|
+
`purchase=done`).
|
|
134
|
+
|
|
135
|
+
For a game with heroes, decks or builds to balance, money, player properties, online play, or several platforms
|
|
136
|
+
and devices, read [references/genres.md](references/genres.md): the panels each of those asks for.
|
|
137
|
+
|
|
138
|
+
Every panel and the tables of the Events, Errors, Sessions, Players and Versions views have a CSV button, so a
|
|
139
|
+
developer can take any number to a spreadsheet: no export panel is needed.
|
|
140
|
+
|
|
141
|
+
Whole dashboards to start from, a mobile game, a competitive game, a battle royale, a puzzle game and a platformer,
|
|
142
|
+
are in [references/examples.md](references/examples.md). Take the shape, not the words: every page and panel uses
|
|
143
|
+
this game's own names.
|
|
144
|
+
|
|
145
|
+
**A game that reads its own board.** A `positions` panel is only counts per bin (`deaths: [[a, b, n], …]` on the
|
|
146
|
+
level's plane, `axis` xy or xz, `bounds`, `bin`, `total`, `truncated`), so it can go on a board shared with a link,
|
|
147
|
+
and the game itself can poll that link to draw everyone's deaths without a backend of its own: one board, one
|
|
148
|
+
positions panel per level, a share link, and the game fetches `https://api.glitchless.gg/v1/query/board?share=gl_share_…&days=30`
|
|
149
|
+
about once a minute, always the same URL (no `from` or `to`, no header). The answer is cached for a minute, so
|
|
150
|
+
every player can poll it. Fix `bin` in the panel so the dead stay where they fell as more arrive.
|
|
151
|
+
|
|
152
|
+
**Reading events one by one.** Every other panel adds events up. When the developer wants to read each run, match
|
|
153
|
+
or day ("26 Oct was Ferrum, Downpour, Boosters, Slow Burn: 6 runs in 5 sessions, best 171,230"), send one event per
|
|
154
|
+
run with what describes it and give it a `table`:
|
|
155
|
+
|
|
156
|
+
```json
|
|
157
|
+
{ "type": "table", "title": "Daily runs by day", "event": "daily_run", "group_by": "day_label",
|
|
158
|
+
"columns": ["score", "attempt", "$version", "$platform"], "sort": "-score", "of": "score", "limit": 20, "size": "l" }
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
Each day gets a header with its runs, the sessions they came from and the lowest, average and highest score, the
|
|
162
|
+
newest day first, and runs without a `day_label` go under "(none)". `glitchless_dashboard` returns the same groups
|
|
163
|
+
and rows to read. Only `track()` events have rows (`count()` sends totals), a session keeps its first 16 of each
|
|
164
|
+
event, and in anonymous mode a session is a session, never a player: say so rather than calling them players. A
|
|
165
|
+
share link numbers sessions instead of showing them.
|
|
166
|
+
|
|
167
|
+
Saving checks every page and answers with each panel as it looks over the last week; a panel without data says
|
|
168
|
+
why ("No "buy" events in this window"), and `glitchless_dashboard` with `page` shows one board's numbers. Show the
|
|
169
|
+
developer, then change what they ask for: "split opens by version", "add the shop" is one more `track` call and one
|
|
170
|
+
more panel, "a page for the tutorial" one more board. People can rename, reorder, add and remove pages in the
|
|
171
|
+
dashboard too (Edit pages), so read the current pages before saving over them.
|
|
172
|
+
|
|
173
|
+
## 4. Use it to debug
|
|
174
|
+
|
|
175
|
+
The boards also decide what a release is judged on: the Versions view and `glitchless_compare_versions` compare
|
|
176
|
+
the stats on every board, version by version (purchases per paywall view, revenue per session, opens per session), so ship a change,
|
|
177
|
+
bump the version, and read whether it moved the numbers this game cares about. For one event across versions on a
|
|
178
|
+
board, use `by: "$version"`; for a board's own stats, a `versions` panel.
|
|
179
|
+
|
|
180
|
+
The dashboard's numbers are what you read when something looks wrong: `glitchless_events` with a `funnel` finds
|
|
181
|
+
where players drop off, `glitchless_triage` ranks performance, crash, difficulty, network and server problems (and
|
|
182
|
+
names a property when most of one falls on a value: "crashes are mostly class necromancer"),
|
|
183
|
+
`glitchless_network`, `glitchless_match` and `glitchless_servers` read a multiplayer game, and in a browser game the
|
|
184
|
+
WebMCP tools let you reproduce one in the running game. Add a panel for anything you find yourself
|
|
185
|
+
checking twice.
|
|
186
|
+
|
|
187
|
+
## Report
|
|
188
|
+
|
|
189
|
+
List the questions, the events and calls you added (file:line), and the dashboard's pages and panels, and say
|
|
190
|
+
which panels will fill in only once players or bots send that data.
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# Example dashboards
|
|
2
|
+
|
|
3
|
+
Dashboards for the [dashboard skill](../SKILL.md) to start from, each in the form `glitchless_set_dashboard`
|
|
4
|
+
takes. Keep the shape and rename everything to the game's own words.
|
|
5
|
+
|
|
6
|
+
A mobile game with modes, stops and a paywall:
|
|
7
|
+
|
|
8
|
+
```json
|
|
9
|
+
{
|
|
10
|
+
"currency": "USD",
|
|
11
|
+
"pages": [
|
|
12
|
+
{ "title": "Overview", "icon": "overview", "panels": [
|
|
13
|
+
{ "type": "stat", "metric": "players", "size": "s" },
|
|
14
|
+
{ "type": "stat", "event": "open", "title": "App opens", "size": "s" },
|
|
15
|
+
{ "type": "stat", "event": "buy=done", "per": "paywall", "title": "Paywall to purchase", "size": "s" },
|
|
16
|
+
{ "type": "stat", "event": "purchase", "sum": "amount", "title": "Revenue", "size": "s" },
|
|
17
|
+
{ "type": "findings", "limit": 3, "size": "l" },
|
|
18
|
+
{ "type": "breakdown", "event": "play", "by": "what", "title": "Which modes they play", "size": "m" },
|
|
19
|
+
{ "type": "series", "event": "open", "by": "what", "title": "Opens, free vs full", "size": "m" }
|
|
20
|
+
] },
|
|
21
|
+
{ "id": "paywall", "title": "Paywall", "icon": "bolt", "panels": [
|
|
22
|
+
{ "type": "stat", "event": "purchase", "sum": "amount", "per": "$players", "title": "Revenue per player", "size": "s" },
|
|
23
|
+
{ "type": "stat", "event": "purchase", "per": "$players", "title": "Players who bought", "size": "s" },
|
|
24
|
+
{ "type": "breakdown", "event": "purchase", "sum": "amount", "by": "item", "title": "Revenue by item", "size": "m" },
|
|
25
|
+
{ "type": "funnel", "steps": "paywall,buy=tapped,buy=done", "title": "Paywall to purchase", "size": "l" },
|
|
26
|
+
{ "type": "breakdown", "event": "paywall", "by": "what", "title": "Where the paywall opens", "size": "m" },
|
|
27
|
+
{ "type": "versions", "title": "Paywall numbers by version", "size": "m" },
|
|
28
|
+
{ "type": "sessions", "sent": "buy=done", "title": "Sessions that bought", "size": "l" }
|
|
29
|
+
] },
|
|
30
|
+
{ "id": "stops", "title": "Stops", "icon": "flag", "panels": [
|
|
31
|
+
{ "type": "levels", "label": "Stop", "title": "Stops won and lost", "size": "l" },
|
|
32
|
+
{ "type": "breakdown", "event": "difficulty", "by": "what", "title": "Difficulty picked", "size": "m" }
|
|
33
|
+
] },
|
|
34
|
+
{ "id": "daily", "title": "Daily", "icon": "clock", "panels": [
|
|
35
|
+
{ "type": "stat", "event": "daily_run", "title": "Daily runs", "size": "s" },
|
|
36
|
+
{ "type": "stat", "event": "daily_run", "of": "score", "quantile": 50, "title": "Median daily score", "size": "s" },
|
|
37
|
+
{ "type": "table", "event": "daily_run", "group_by": "day_label", "columns": ["score", "attempt", "$version", "$platform"], "sort": "-score", "of": "score", "title": "Daily runs by day", "size": "l" }
|
|
38
|
+
] },
|
|
39
|
+
{ "id": "purchases-live", "title": "Purchases, live", "view": "live", "options": { "events": ["paywall", "buy"] } },
|
|
40
|
+
{ "view": "events" },
|
|
41
|
+
{ "view": "sessions" },
|
|
42
|
+
{ "view": "versions" },
|
|
43
|
+
{ "view": "errors" }
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
A competitive game (a MOBA, a card battler, a roguelite: the same shape with its own words):
|
|
49
|
+
|
|
50
|
+
```json
|
|
51
|
+
{ "pages": [
|
|
52
|
+
{ "id": "heroes", "title": "Heroes", "icon": "players", "panels": [
|
|
53
|
+
{ "type": "stat", "event": "match_end", "rate": "won", "title": "Matches won", "size": "s", "note": "Should sit near 50%" },
|
|
54
|
+
{ "type": "stat", "event": "match_end", "of": "duration_s", "quantile": 50, "unit": "s", "title": "Median match", "size": "s" },
|
|
55
|
+
{ "type": "stat", "event": "match_end", "per": "$hours", "title": "Matches per hour played", "size": "s" },
|
|
56
|
+
{ "type": "breakdown", "event": "match_end", "by": "hero", "rate": "won", "min": 100, "limit": 20, "title": "Win rate by hero", "size": "l" },
|
|
57
|
+
{ "type": "breakdown", "event": "match_end", "by": "items", "rate": "won", "min": 100, "limit": 20, "title": "Win rate of builds with each item", "size": "m" },
|
|
58
|
+
{ "type": "distribution", "event": "match_end", "of": "duration_s", "by": "mode", "unit": "s", "title": "Match length", "size": "m" },
|
|
59
|
+
{ "type": "versions", "title": "Version by version", "size": "l" }
|
|
60
|
+
] },
|
|
61
|
+
{ "view": "performance" },
|
|
62
|
+
{ "view": "errors" }
|
|
63
|
+
] }
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
A battle royale or other online game, next to its own pages:
|
|
67
|
+
|
|
68
|
+
```json
|
|
69
|
+
{ "pages": [
|
|
70
|
+
{ "id": "network", "title": "Network", "icon": "live", "panels": [
|
|
71
|
+
{ "type": "stat", "metric": "ping_p95", "title": "Ping for the slowest 5%", "size": "s" },
|
|
72
|
+
{ "type": "stat", "metric": "disconnect_pct", "title": "Matches ended by a disconnect", "size": "s" },
|
|
73
|
+
{ "type": "net", "show": "ping", "by": "$region", "title": "Ping by server region", "size": "l" },
|
|
74
|
+
{ "type": "net", "show": "disconnects", "title": "Disconnects and why", "size": "m" },
|
|
75
|
+
{ "type": "findings", "limit": 5, "size": "m" }
|
|
76
|
+
] },
|
|
77
|
+
{ "id": "servers", "title": "Servers", "icon": "perf", "panels": [
|
|
78
|
+
{ "type": "stat", "metric": "servers_now", "title": "Servers running", "size": "s" },
|
|
79
|
+
{ "type": "stat", "metric": "server_tick_p95", "title": "Server tick, slowest 5%", "size": "s" },
|
|
80
|
+
{ "type": "stat", "metric": "server_crash_free_pct", "title": "Server runs without a crash", "size": "s" },
|
|
81
|
+
{ "type": "servers", "show": "ticks", "by": "players", "title": "Tick time by players connected", "size": "l" }
|
|
82
|
+
] },
|
|
83
|
+
{ "id": "endgame", "title": "Dungeons", "icon": "flag", "panels": [
|
|
84
|
+
{ "type": "levels", "label": "Dungeon", "by": "tier", "title": "Clears by tier", "size": "l" },
|
|
85
|
+
{ "type": "levels", "label": "Dungeon", "by": "$class", "title": "Clears by class", "size": "m" }
|
|
86
|
+
] },
|
|
87
|
+
{ "view": "matches" },
|
|
88
|
+
{ "view": "performance" }
|
|
89
|
+
] }
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
A puzzle game: an Overview with `stat` players and average session, `levels` with `"label": "Puzzle"` (completion
|
|
93
|
+
and time), a `breakdown` of `hint` by `what` and a `funnel` of `tutorial=done,puzzle_solved`; then Events, Sessions
|
|
94
|
+
and Errors. No Performance unless it's slow, no Heatmaps, no deaths.
|
|
95
|
+
|
|
96
|
+
A platformer or shooter: an Overview with `stat` frame_p95 and crash_free_pct, `findings`, `frame_time`, `levels`,
|
|
97
|
+
`deaths` and a `breakdown` of `weapon` or `powerup`; then Performance, Heatmaps, Errors, Sessions and Versions. A
|
|
98
|
+
level whose deaths tell its story gets a `positions` panel (`"show": "both"` to see where players went too).
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Panels for each kind of game
|
|
2
|
+
|
|
3
|
+
What the [dashboard skill](../SKILL.md) adds for a game with these features. Use the game's own names for
|
|
4
|
+
events, attributes and pages.
|
|
5
|
+
|
|
6
|
+
**Balance, outcomes and economies.** A rate breakdown answers "which hero wins too often" with how sure it is: each
|
|
7
|
+
row's whisker is the range its rate likely sits in, and a row whose range misses the line (all heroes, or `expect`)
|
|
8
|
+
is drawn in colour. Set `min` so rows of a handful of matches stay out (100 or more for a balance question), and say
|
|
9
|
+
in the `note` what the line should be ("Should sit near 50%"). A game with published odds (a gacha banner's 0.6%) can
|
|
10
|
+
put them in `expect` on a rate of its pulls: the board and a finding then say when what players got misses it, and the
|
|
11
|
+
developer decides what that means. Per-hour numbers (`per: "$hours"`) compare versions fairly when sessions get
|
|
12
|
+
longer or shorter, so put an economy's earn and spend rates in stats and add a `versions` panel; a sum per hour that
|
|
13
|
+
moves 50% between versions, or a distribution whose median moves 30%, becomes a finding. To check one combination
|
|
14
|
+
the board doesn't show, ask `glitchless_events` with `name`, `rate` and `by` (and a filter in `name`), or `of` for a
|
|
15
|
+
distribution.
|
|
16
|
+
|
|
17
|
+
**Money.** A sum of events that carry a `currency` is money: the dashboard shows it with the currency's symbol and
|
|
18
|
+
two decimals. A game has one currency, the dashboard's `currency` (`glitchless_set_dashboard` with
|
|
19
|
+
`currency: "USD"`, sent again with every save) or else the one most purchases are sent in; purchases in another
|
|
20
|
+
currency are listed on the panel as left out, never added in. If one shows up, fix the game (convert before
|
|
21
|
+
sending, or send the store's price in one currency) rather than the board. Revenue is hidden on a shared board
|
|
22
|
+
unless the link is made to show it. A game connected to RevenueCat (Glitchless Cloud: Settings → Integrations) gets a Revenue page of
|
|
23
|
+
`store_revenue` panels by itself: that is the real revenue (RevenueCat counts production purchases only), with installs
|
|
24
|
+
and active users next to the players Glitchless measures, so keep it, and read it with `glitchless_revenue`; the game's
|
|
25
|
+
own `purchase` sums are for revenue by item, level or player. A game that sells through its own Stripe account gets a
|
|
26
|
+
Stripe one (refunds, fees, new paying customers, revenue by product). For its revenue by version, the game's server puts
|
|
27
|
+
the player's Glitchless session ID (`Glitchless.instance.sessionId` in a web game) in the Checkout Session's
|
|
28
|
+
`client_reference_id`, or `glitchless_session` metadata on it or the PaymentIntent.
|
|
29
|
+
|
|
30
|
+
**Who is playing.** A game that sets properties splits anything by them (`by: "$rank"`): win rate by hero at each
|
|
31
|
+
rank is a page with `"where": { "$rank": ["diamond", "master"] }` and the same breakdown on it; retention by
|
|
32
|
+
`$spender`, frame time by `$preset` (the Performance view's by-property table), versions by `$class`. A property with
|
|
33
|
+
more than 200 values a day is an ID and reads as "(too many values)": fix the game. These read the sessions, so
|
|
34
|
+
ranges of 31 days or less.
|
|
35
|
+
|
|
36
|
+
**Multiplayer.** A game with online play gets a Network page: `stat` ping_p95 and disconnect_pct, a `net` panel by
|
|
37
|
+
`$region` (or `$link` on mobile: Wi-Fi against mobile data) and one with `show: "disconnects"`, and `findings`; a
|
|
38
|
+
whole lobby lagging at once (the server) and one player lagging (their connection) are findings of their own. With
|
|
39
|
+
match groups, keep the `matches` view. With dedicated servers in server mode, a Servers page (`servers_now`,
|
|
40
|
+
`server_tick_p95`, `server_crash_free_pct`, a `servers` panel `by: "players"`) or the built-in `servers` view; the
|
|
41
|
+
servers' sessions are kept under `<game>.server`, never counted as players. An open world splits by `$zone`.
|
|
42
|
+
|
|
43
|
+
**Platforms, browsers, devices.** A web game: `breakdown` by `$browser`. A game on PC, Mac and Steam Deck: by
|
|
44
|
+
`$platform`. Any game whose frame times vary: by `$device_tier`, next to frame time. For a game on iOS and Android, put the split on its main page: `breakdown` by `$platform` (players or
|
|
45
|
+
sessions on each), the same with `event: "purchase"` (purchases tracked on each), and with RevenueCat connected,
|
|
46
|
+
`store_revenue` `by_store` (the money in each store) and `by_country` (where installs and money come from). Add a
|
|
47
|
+
`store_score` per store the game is connected to.
|