Skip to content

The Files

dxcufgb edited this page Oct 30, 2026 · 1 revision

The files

Written to Data/session-summaries/ (change the folder in the settings). On Windows that is usually %LOCALAPPDATA%\FoundryVTT\Data\session-summaries\.

File
session-014_2026-10-19.json the full summary
session-014_2026-10-19.md the Discord text, never longer than 2000 characters
latest.json / latest.md copies of the newest export (for a bot when index.json is missing)
index.json every exported session of the world, newest first (written last)

The file name is the session number (3 digits) and the date the session started, in the GM's local time. Export now mid-session writes the same files with "inProgress": true and "endedAt": null, so a bot can skip those. Exporting a session again overwrites its files and replaces its entry in index.json.

index.json

{
  "schema": 1,
  "world": { "id": "…", "title": "…" },
  "updatedAt": "2026-10-19T20:45:00.000Z",
  "sessions": [{
    "id": "…", "number": 14, "title": "The Drowned Crypt",
    "startedAt": "2026-10-19T17:02:00.000Z", "endedAt": "…", "durationMinutes": 222, "kills": 23,
    "json": "session-014_2026-10-19.json", "md": "session-014_2026-10-19.md"
  }]
}

json and md are bare file names in the same folder. index.json is written after all the other files, so when it changes, the session's files are already there.

JSON layout (schema: 1)

{
  "schema": 1,
  "generator": { "module": "dxcufgbs-session-summary", "version": "1.0.0", "exportedAt": "…" },
  "session": {
    "id": "…", "number": 14, "title": "The Drowned Crypt", "notes": "…",
    "startedAt": "2026-10-19T17:02:00.000Z", "endedAt": "…", "inProgress": false,
    "durationMinutes": 222,
    "world": { "id": "…", "title": "…" }, "system": { "id": "dnd5e", "version": "5.2.5" }
  },
  "totals": {
    "kills": 23, "killsByPlayers": 23, "combats": 4, "rounds": 17,
    "damageDealt": 607, "damageTaken": 233, "healing": 58, "downs": 1,
    "rolls": 212, "nat20": 6, "nat1": 7, "scenes": 3, "shortRests": 1, "longRests": 0
  },
  "characters": [{
    "id": "…", "name": "Thorin", "player": "Anna",
    "kills": 9, "damageDealt": 180, "damageTaken": 94, "friendlyFire": 0,
    "healingDone": 0, "healingTaken": 22, "downs": 0,
    "deathSaves": { "success": 0, "failure": 0 },
    "distance": 860, "units": "ft", "nat20": 1, "nat1": 5,
    "rolls": 51, "ones": 9, "maxRolls": 6,
    "d20": { "count": 30, "average": 9.1, "nat20By": { "attack": 1, "…": 0 }, "nat1By": { "attack": 3, "save": 2, "…": 0 } },
    "attacks": { "total": 18, "hits": 10, "misses": 8 },
    "saves": { "passed": 1, "failed": 2 },
    "biggestHit": { "amount": 24, "item": "Greataxe", "via": null }
  }],
  "players": [{
    "id": "…", "name": "Anna", "characters": ["Thorin"], "rolls": 51,
    "d20": {
      "count": 30, "average": 9.8, "nat20": 1, "nat1": 5,
      "nat20By": { "attack": 1, "save": 0, "check": 0, "death": 0, "initiative": 0, "other": 0 },
      "nat1By":  { "attack": 3, "save": 1, "check": 1, "death": 0, "initiative": 0, "other": 0 }
    },
    "ones": 9, "maxRolls": 6,
    "dice": { "d12": { "rolled": 14, "ones": 2, "max": 3, "average": 6.1 }, "d20": { "rolled": 30, "ones": 5, "max": 1, "average": 9.8 } }
  }],
  "achievements": [{ "actorId": "…", "character": "Thorin", "player": "Anna", "id": "unluckiest", "emoji": "🐈‍⬛", "title": "Session's Unluckiest", "text": "5 natural 1s", "description": "Rolled the most natural 1s in the party." }],
  "kills": [{ "at": "…", "target": "Goblin", "cr": 0.25, "by": "Thorin", "via": null, "killer": null, "item": "Greataxe", "guessed": false, "scene": "Sunken Gate", "round": 2 }],
  "downs": [{ "at": "…", "character": "Aldric", "by": "Ogre", "scene": "Ossuary" }],
  "combats": [{ "scene": "Sunken Gate", "startedAt": "…", "endedAt": "…", "minutes": 18, "rounds": 4, "enemies": [{ "name": "Goblin", "count": 5 }] }],
  "scenes": [{ "id": "…", "name": "Sunken Gate", "minutes": 70, "visits": 1, "firstVisit": "…" }],
  "rests": [{ "at": "…", "type": "short", "characters": ["Thorin", "Lyra", "Vex", "Aldric"] }],
  "biggestHit": { "amount": 38, "character": "Vex", "actorId": "…", "item": "Rapier", "via": null, "at": "…" },
  "markdown": "## 📜 Session 14 — …"
}
  • kills[].by is the character credited (null when nobody in the party did it; then killer names who did, if known). via is the summon or companion that actually landed the blow.
  • session.id stays the same for a session, also when it is exported again. session.world.id is the Foundry world id. title and notes are null when empty.
  • Fields may be added in later versions; schema only goes up when something is renamed or removed, or changes type or unit.

To read the files from a bot, see Posting to Discord. An example of the Discord text is on The Discord Text.

Clone this wiki locally