Convergence.Game/BIBLE/part 8
- Content:
dialogues.json— a list ofDialogueDef(id,Title,Trigger, optionalConditions,Once,Backdrop,Speakers,Start,Nodes). A speaker is a class (its name and portrait),"$lead"(the first party member),"$with"(the party member a Talk is with),"$recruit"(the hero the dialogue's firstJoinHerobrings — fixed when it opens, so the face that speaks is the hero who joins; GG-T118),"$commander"(the player, §25.20; GG-T1575),"$party:N"(the Nth party member, 1-based) or"$trusted"(the party hero with the most Trust, ties to the earlier slot) — each bound when the dialogue opens, and a dialogue whose speakers this save can't bind is not offered — or aName+Portrait(Resources/Portraits/<id>). A node is a speaker and a line, then eitherNext(null ends it) orChoices(label,Next,Conditions,Effects); a node may carryEffectsapplied on arrival. - Vocabulary (the save's, not a script): conditions
FlagSet,FlagNotSet,HasItem,GoldAtLeast,PartyHas,RosterHas,RosterLacks,NpcJoined; effectsSetFlag,ClearFlag,GrantGold(negative = pay, never below 0),GrantItem,RecruitHero(joins like a Summon Circle recruit, free; no-op if owned),JoinHero(GG-T118, story recruits:Idand/orRole; always brings someone new —Summon.StoryPick, §25.17),JoinNpc(sets the flagnpc:<id>, whichClearFlagcan't touch; NPCs: blacksmith, alchemist, enchantress, merchant, innkeeper),GrantSkillPoint(GG-T133:Ida hero class, or"$with"/omitted for the Talk partner;Amountdefault 1; paid once per dialogue per hero — the guard flagsp:<dialogue>:<hero>is set on the first payout and, likenpc:,ClearFlagcan't touch it, so a replayed Talk can't farm it); side quests (GG-T237, §22.11) add the conditionsQuestAvailable,QuestActive,QuestDoneand the effectStartQuest; bonds (GG-T1293, §25.20) add the effectsAddTrust(Id) andAddCohesion(IdandOther, two different heroes),Amount-20..20 and non-zero, and the conditionsTrustAtLeast/CohesionAtLeast(Amount1..100); each hero is a class id or a speaker token the dialogue binds ("$with","$recruit","$hero"). A bond effect pays once per save at its node (and choice) for its hero or pair, recorded inSaveData.BondChoices(Bonds.PayChoiceOnce, kept by New Game+, out ofClearFlag's reach), so a replayed Talk can't farm it; it shows as a bond chip, not a toast (Screen below: "The Cleric's Trust +5" beside the hero's thumbnail). Nothing removes a hero — nobody dies permanently. Flags live inSaveData.Flags; finished dialogues inSaveData.SeenDialogues(cleared by New Game+, likeSeenCrawls). - Validation (
ContentLoader.Validate, same severity as a dangling class id): unknown speakers, classes, items, NPCs, themes, stages or node ids; a missing portrait (the app and dotnet tests pass a portrait lookup); a node unreachable from the start; a node with bothNextandChoices; a choice list with no unconditional choice (so a player can never be stranded); aJoinHerowith neitherIdnorRole, a non-heroIdor an unknownRole; a"$recruit"speaker in a dialogue with noJoinHero. - Engine:
Convergence.Meta.DialogueRunnerwalks nodes, offers the choices whose conditions hold, applies effects, and marks the dialogue seen when it ends (dotnet-tested,DialogueTests).DialogueRunner.PlayHeadlessplays one to the end taking the first choice each time, andPlayPendingBeatsHeadlessplays every beat pending before a stage — how the bots (Test Mode,BalanceReport) live through the story they never see (GG-T118). - Triggers: story beats —
ThemeStart(theme id) andStageCleared(stage id) — play once, in file order, throughStageLauncher.Launch: after the theme's crawl, before the battle. Amended 2026-10-19 (GG-T119): every beat pending at a launch plays, one after another (each picked as the last ends), not just the first — a story recruit and a Camp NPC can share a stage, and the app now plays the same set the bots play headlessly. Never on a Test Mode save. Talk — Camp's Talk row (TalkScreen) lists the party and every joined NPC; each offers its ownTalkdialogue ("party", a hero class id, or"npc:<id>"), unseen ones first and marked New!; Talk dialogues repeat unlessOnce. Added 2026-11-27 (GG-T1298, GG-T1598): bond scenes.Trust(Ida hero class) andCohesion(IdandOther, two different hero classes) dialogues are scenes in the Talk row, opened by a bond tier (§25.20):Levelis the tier (1-5) they need.DialogueRunner.BondScenesoffers each unseen one whose hero is in the party (forCohesion, both heroes), its conditions holding and its speakers bindable; it is open onceBonds.TrustTierReached(the pair'sCohesionTierReached) is at leastLevel. Each plays once, whateverOncesays, and drops out when seen;"$with"is the triggerId; no bond scene opens with aCrawl.TalkScreenlists a hero's Trust scenes under that hero's row, then a Together section of pair scenes: an open scene reads New! in gold with the New badge, a locked one is disabled with the Locked badge and "Trust N needed" / "Cohesion N needed". Camp's Talk count adds the open bond scenes (DialogueRunner.NewTalkCount). Amended 2026-11-28 (GG-T2023):TalkScreenis one row per person, its New badge and "New!" (or "N new") lit when their topic or any of their scenes is new; a hero with bond scenes opens their own sheet (TalkPartnerScreen): their topic, then their open Trust scenes, then the locked ones, including the locked pair scenes they are in, each saying the tier it needs. Only open pair scenes stay in Together, so locked rows no longer fill the list. Added 2026-11-27 (GG-T1318, GG-T1594):FoundingandJoined. The app plays the dueFoundingscene after a new campaign's Opening crawl, before Camp (§25.17), and each pendingJoinedscene ("$hero"the new hero) on the results screen's way back to Camp, after the vendor join beats and the VariantPicker (§25.20). Neither plays on a Test Mode save. - Authoring format (GG-T1295, GG-T1589): a conversation is written as one readable file,
Data/Dialogue/<id>.tree(speakers, nodes with their lines, choices with->targets,when:/if:conditions,do:effects), andtools/dialogue_tree.pymoves it to and from the game's data:compilemerges itsdialogues.jsonentry byId, seeds its words intoContent/Textand drafts them for Prose (the words never go todialogues.json, §27.2);decompile IDwrites a tree back fromdialogues.jsonand its texts;lintreports unreachable nodes, danglingnext, stranded choices, farmableGrantGold/GrantItemon a loop, the Trust and cohesion range each path reaches, and orphaned Prose dialogue keys, andcompilerefuses a tree that fails it. Triggers areKind [Id] [level=N]using the kinds above, includingTrust,Cohesion(GG-T1298),FoundingandJoined(GG-T1593); the tool's own trigger list still stops atWanderer. The format and commands are in PROSE.md. - Generic Cohesion scenes (GG-T1623, GG-T1624): either side of a
Cohesiontrigger may be a selector instead of a hero class:role:<Role>(a hero Role: Tank, Healer, Mage, Striker, Support, Ranged),faction:<id>,faction:same/faction:other(the pair shares a faction or doesn't) orany. Any party pair that fits may play it,"$with"bound to the hero on theIdside and"$hero"to the other; per pair and tierDialogueRunner.BondScenesoffers only the most specific fit (GenericMatch: per side a class 4, a role or named faction 2,same/other1,any0; ties to file order), never where the pair has an authored scene at that tier, and each pair hears a given generic scene once (its pair flag). Shipped set (Data/Dialogue/cohesion_generic_*.tree): tier 2faction:same faction:sameandfaction:other faction:other(together they fit every pair); tier 4role:Tank role:Healer,role:Striker role:Mage,role:Support anyand theany anyfallback. Their speakers are$commander,$with,$hero; their only effect isAddCohesion $with $hero(-4..+10 per choice); since any hero may speak them, a line names a hero only by the role its selector fixes, with the article ("the Tank"), and never by class or gendered pronoun. - The Commander speaks story beats (GG-T1591). A beat's lead line is the Commander's, written with the
"$commander"speaker (Meta/Commander.cs, GG-T1575), not a hero class. In Prose the Commander is the character entitycharacter-commander(name Commander, artPortraits/commander-00, portraitscommander-00andcommander-male-00,details.speaker$commander;tools/prose_map.py), described by the keycharacter:commander(tools/prose_keys.pydescription_keys,ProseText.CommanderKey), so a conversation's$commanderlines are about that entity. - Screen (
DialogueScreen):the speakers' portraits overlap across the top — the one talking slides in full-bright and in front, the other dims and shrinks behind; the conversation stacks below as overlapping boxes that slide in from the speaker's side, older ones dimmed, the newest typing out; the choices (or Next ›) sit at the bottom.Amended 2026-11-03 (owner, GG-T225: "one textbox and they keep trading whose talking by lighting up the name of the person talking"): a conversation is one shared text box at the bottom (dlg-box); each line replaces the last in it and types out (never a stacked log), and its choices (or Next ›) appear inside that same box.The speakers stand on the left and right as their whole, uncropped portraits (Amended 2026-11-29 (owner, epic GG-T2198; designed in GG-T2229, DESIGN_SYSTEM §3.2; built in GG-T2230): portrait tiles, not whole figures. No figures stand above the box; the backdrop shows there. Inside the box, on the speaker's side, one tile shows the speaker's baked thumbnail (Art.Portrait, contain-fit, feet behind the box — never the §12.1.1 Thumbnail framing), for class speakers and NPC speakers with aPortraitalike; a speaker with no art shows only its name plate.Ui.Thumb, 200 pxthumbOnly, §12.1.1), framed in the accent while they talk and the rail while they listen, so a conversation never loads a full portrait; a tap on it opens the full art (ArtPreview). Only one tile shows: on a Commander line or while the choices show, the last speaker's tile stays, dimmed. The Commander never has a tile (GG-T2189), only a plate. A caravan keeper with no thumbnail yet shows the station emblem; any other speaker with no art has no tile and the line takes the box's full width. A new talker's tile slides in after the old one slides out toward its own edge; the same speaker keeps theirs (a new expression cross-fades); Reduce Motion keeps the fades only. In a dialogue with the Commander, the Commander takes the right and everyone else the left (flipping GG-T1576). Each side has a name plate on the box's top edge. Whoever is talking has their plate lit (theme accent fill, bright border, glow)and their portrait full-bright, full-size and nudged toward the middle; the listener's plate greysand their portrait dims and steps back. The swap eases overTiming.Standard(amended from 0.2 s, GG-T2230) with a soft slide cue. The first two speakers take left then right; a third takes the side of whoever is not talking (the one who just spoke stays put), the old occupant stepping off first. A tap finishes the line or advances; Skip › rushes to the next choice — choices are never skipped. Other effects toast as they land. Bond chip (GG-T1585): a bond effect (AddTrust,AddCohesion) that pays shows a chip above the box (dlg-bonds, one child per change,dlg-bond-<a>[-<b>]) instead of a toast: the hero's thumbnail (a pair shows both), the amount and the bond ("Trust +5", "Cohesion +3"), and, when the change crosses a tier, a gold "Tier N!" that pops withbattle.powerup. A gain playsui.buy, a lossstatus.debuff. The chip slides in, holds, then fades; Reduce Motion drops the slide and the pop.DialogueRunner.BondChanges(log index toBondChange) feeds it, so a line's chip shows with that line.-demoplays it through on its own. Camp's Talk list shows each NPC's whole portrait; heroes keep their Thumbnail face like every other hero list. - Sample content: a Lantern Road merchant met at the start of the Tithe Moors (every branch ends with him joining), four story-recruit beats (GG-T118, §25.17), a Talk with the merchant (hires a sellsword for 300 G) and a generic party chat. Amended 2026-10-19 (GG-T119): the beat after Tithe Moors I now meets the Innkeeper, and beats after Tithe Moors II, at the start of the Shardfall and of the Arkgrave meet the Blacksmith, Alchemist and Enchantress (§25.0.1); each NPC has a Camp Talk. Added 2026-11-02 (GG-T133, owner 2026-10-19 "talk to Heroes, answer right, gain a skill point"): every hero class has an "Advice" Talk quiz (
talk_quiz_<class>): the hero voices a worry that fits their faction (STORY.md §3; rewritten in GG-T341, each hero with a fresh blind spot), and of three answers only the one that names that hero's own blind spot carriesGrantSkillPoint(the two wrong ones feed the blind spot or miss it, and earn nothing). Quizzes aren'tOnce— they replay, but the point pays out only the first time it's answered right. Added 2026-11-27 (GG-T1349): the right answer also carriesAddTrust+5 on the Talk partner ("$with"), once-guarded like every bond effect (§27.1), so every hero has a Trust path from day one. An unseen quiz outranks the generic party chat in the Talk row (hero-specific before"party"). - The story: Under Morrow (GG-T341, 2026-11-07; replaces GG-T120's story).
docs/STORY.md is the single source for every word of story — crawls, dialogue, quests, caravan barks, mercenary pitches, unit lore, credits.Amended 2026-11-07 (GG-T355): Prose is the source (§27.2); STORY.md is a pointer, and Under Morrow below is retired history. The crew are Saltmoss runaways who fled tithe day in a stolen Concord supply caravan; Morrow, the moon, hangs too low, the Pale Concord tithes every hold's mana to feed the Anchors, and the Hierarch drinks the surplus. The main themes are The Tithe Moors (greenvalley), The Lantern Road (lanternroad, added by GG-T345, §22.3.2), The Shardfall (desert), The Arkgrave (swamp), The Anchor Wastes (cave), The Still (still, added by GG-T344, §22.3.1), Halcyon (cityruins) and The Choir's Cathedral (cathedral, the finale, added by GG-T350, §22.3.3); the postgame themes are The Moors Beyond the Stills, Deep Shardfall, The Drowned Arks, Under the Anchors and The Underspire — the road after the Hierarch, open on purpose. Each*_party_talkThemeStartbeat carries one piece of the plot (the quota was a lie → the moon is made of what it pulls → the Concord grounded the Arks → the beams carry the surplus to Halcyon → the tanks hold the Hollow, stored → give it back). The Camp NPCs are the Saltmoss Innkeeper, a Free Hold Blacksmith who won't forge for the Captain, a Street splice-cutter Alchemist, a Choir-runaway Enchantress and a Lantern Road Merchant (speaker name "Lantern Merchant"). Ids, triggers, conditions, effects and node graphs are unchanged; only words and NPC speaker names changed. Stage display names, unitDescription/Loreand a separatehierarchboss class are the next phase of GG-T341. (Historical, superseded by GG-T577 and GG-T675: no Concord, the Somnolith is now the Manalith, aether is mana.) (Amended 2026-11-29, owner, GG-T2194: reverted - the Manalith is the Somnolith again.) - PPP prose universe seed (GG-T137, 2026-10-20) — retired (GG-T341).
docs/ppp-universe/anddocs/story-draft-spider-town.mdbelonged to the retired GG-T120 story and are deleted (git keeps them); STORY.md replaces both as the prose source.
27.2 Narrative sourcing: Prose (GG-T355)
Owner, 2026-11-07: "all dialog/conversations, descriptions, screen crawls, everything is sourced from prose"; "the Game handles gameplay, and Prose handles narrative."
- Where the words live. Every story string a player reads is a text in the Prose universe
gridgame, applied intoResources/Content/Text/<kind>.json(conversations,crawls,descriptions,quests,barks,glossary; schemagridgame-text/1, written only bytools/prose_apply.pyor the one-time seed). Nobody edits those files by hand, and this repo authors no story. Canon (premise, factions, places, characters) is Prose's too; STORY.md is only a pointer. - Gameplay JSON holds no story text. Moved out: class
Description/Lore, boss-phaseAnnounce, dialogue nodeTextand choiceLabel, everyCrawl(campaign prologue, ending, themes; a dialogue keeps onlyHasCrawl), questSummary/TurnIn, glossaryText, item, armor-set, skill-tree and nodeDescription, caravanBarks, mercenaryPitch/Renewal, stageSurpriseLine. Stays (UI and mechanics): names, dialogueTitle, questGiver, glossaryTerm/Aliases, ability descriptions and callouts, classCard, item passives, caravan descriptions and level text, the battle tutorial,Credits.txt. Triggers, conditions, effects, speakers and choice order stay gameplay. - Keys. A text's key is the game's own id (
class:<id>,dialogue:<id>,crawl:<theme>,item:<id>,bark:merc/<class>/pitch, …; the full scheme is in PROSE.md). A key exists exactly when its record does; the optional ones hang on a marker (HasCrawl,SurpriseSpeaker, a caravan upgrade'sCrew). - The join.
ContentLoader.LoadcallsProseText.Join, which fills the same model fields every screen already reads; conversations join by node id and choice order. A missing key shows(missing text: <key>)on screen, is logged as a[Content]warning and reported byValidate, and never crashes the game.ContentDb.TryText(key)exposes each text's Prose id, GUID, version and source (seedorprose) for debugging and telemetry. - Validation. Every key resolves; no orphan text; no story field left in gameplay JSON (a field put back is reported and Prose's text wins); the conversation's shape matches the dialogue's; the
right-answertag marks exactly what the game rewards (the wanderer reply that leads toheard, i.e.Wanderers.RightAnswer, and the Advice-quiz answer that grants a skill point). - The seed. Until the owner approves,
Content/Textholds the seed made from the text the JSON held (version 0,sourceseed, recorded inData/Prose/applied.jsonl), so the game reads exactly what it did before. Every build pulls published Prose text first (tools/prose-sync.ps1) and replaces seeds as texts are published. - New content. A new record's key exists at once (placeholder until its text is approved); its words are drafted in Prose, not written into the JSON (§20). Generators seed through
prose_text.upsert_seed(e.g.GridGame.Studio/tools/weapons.py). - (Tests:
TextSourcingTests;tools/test_prose_apply.py.)
27.3 The sky: two moons and the staged backdrop (GG-T575 design; GG-T576 builds it)
Owner, 2026-11-21: "a normal moon to balance things and associate it with the familiar and then an oddly shaped 'weird' moon ... you have perspective when it comes to the scale of things where the Moon is always the same size but this 'weird moon' is getting closer as the game progresses"; then "the Somnolith needs to be the same in every picture ... an ever changing Somnolith sucks", so backdrops become "staged": background, foreground and the Somnolith between, "a living backdrop (imagine slowly moving shards of Somnolith being dragged across the sky)". Canon: Prose gridgame sections GG-MANALITH and GG-WHY-NOW (staging copy Data/Prose/canon/). (Historical, superseded by GG-T577 and GG-T675: no Concord, the Somnolith is now the Manalith, aether is mana.) (Amended 2026-11-29, owner, GG-T2194: reverted - the Manalith is the Somnolith again.)
Status: design only. Nothing below is built. The art does not exist yet (the owner generates it from the prompts below), and the engine work is GG-T576.
Amended 2026-11-22 (GG-T679; owner: "replace the picture of the Manalith with an actual slowly tumbling satellite with debris raining off of it"): the Somnolith in the sky is now the 3D Midnight Geode model (Resources/Somnolith/somnolith-satellite-00.fbx, decimated to 40k triangles, with its PBR maps), rendered live by SomnolithRig into the backdrop's Somnolith layer. It tumbles slowly on three axes, its rim glows the Somnolith's blue (#7590C8), and it sheds dark rock shards and glowing blue specks, which drift downward and fade. Amended 2026-11-29 (GG-T2190; owner: the debris read as literal falling rock chunks): the shards shrank and thickened and the periodic bigger-chunk bursts are gone, so the shed mass reads as one soft, continuous trailing tail rather than discrete rocks. The flat Sky/somnolith-00.png stays as the fallback. Region size and placement are unchanged, but the fixed per-region Rotation no longer applies (it tumbles). Reduce Motion holds its pose and debris still. Every number is in docs/SOMNOLITH_VISUAL_SPEC.md, which SpaceGod's copy of the same satellite (US-T458) shares.
- The Moon and the Somnolith, two rules. The Moon is ordinary: round, pale, the same apparent size and look in every region, the player's fixed yardstick. The Somnolith is not a moon (owner 2026-11-21, GG-T577: an ancient thing that was stopped long ago and hangs in the sky, orbiting, now coming closer; the prompts below say "moon" only to steer the image generator): one lumpy, potato-shaped, crusted mass (the owner's reference photo, a kidney-stone or desert-rose accretion: bladed crystal clusters, bubbly deep-blue-to-violet lumps flushed with red, glints, pale fibrous tufts; blue like mana, owner art 2026-11-22, GG-T674), with a faint cyan light in the gaps. It is the same object in every scene. Only its apparent size and position change, stepping up with campaign progress.
- One canonical Somnolith asset. The Somnolith is generated once from the owner's reference, cut out to a transparent PNG (
Resources/Sky/somnolith-00.png, about 2048 px, plus a few shard cut-outs from the same image,manalith-shard-00..NN.png) and composited in-engine. No per-scene repainting, and backdrop art never paints its own Somnolith. One cut-out moon sprite (moon-00.png) does the same for the Moon. - The staged backdrop. Each battle or region backdrop is drawn back to front:
- Sky plate: the backdrop's sky only (gradient, clouds, stars), full frame.
- The Moon: fixed size everywhere, placed per backdrop where the sky is open.
- The Somnolith: scale and position from the region's sky data (below), with the faint inner glow as an additive pass that can pulse slowly (an effect that plays out over time, Law 5; Reduce Motion holds it still).
- Drifting shards: a few fragments cut from the same asset, slowly dragged across the sky on long, looping paths, fewer and smaller early on and more of them near the end (the shell breaking, canon 04).
- Foreground plate: the landscape with the sky made transparent, on top.
- Light parallax between the layers (a few px of drift against the camera or tilt; none under Reduce Motion), so each backdrop is a living scene, not one picture.
- Interiors (the Still, the Cathedral) show the sky only through their openings: the oculus and the vault window become transparent holes in the foreground plate, and the sky stack draws behind them. Canon says the Still's oculus frames the Somnolith.
- Progress steps. The Somnolith's apparent size rises by chapter in the order of
campaign.jsonChapters. Proposed starting values, as the Somnolith's height as a fraction of screen height: Tithe Moors (prologue) 0.06, Lantern Road 0.08, Arkgrave 0.10, Anchor Wastes 0.13, Halcyon 0.16, Bloom 0.20, Underspire 0.25, Shardfall 0.32, Morrow's Shadow 0.55 (the largest, filling the sky and running off the frame). The Moon stays at 0.07 everywhere, so by chapter 2 the Somnolith already outgrows it. Postgame themes use the step of the main region they revisit, or the final step, as tuning decides. - Data (tunable, wiki-generatable). Each
campaign.jsontheme gains an optionalSkyblock, e.g."Sky": { "Somnolith": { "Scale": 0.13, "X": 0.68, "Y": 0.20, "Rotation": -12 }, "Moon": { "X": 0.22, "Y": 0.14 }, "Shards": 3 }(X/Y are the sprite centre as fractions of the frame, Y measured from the top; Rotation in degrees, since one odd-shaped asset reads differently turned). A top-level"Sky": { "MoonScale": 0.07 }holds the one fixed Moon size.ContentLoader.Validatechecks the ranges (Scale 0..1, X/Y 0..1, Shards 0..12), and a wiki or bible table can be generated straight from the blocks. A theme with no block falls back to its chapter's step. - Existing art must be split. Every current backdrop is one flat picture, and most of them paint a round moon or planet. GG-T576 splits each one into a sky plate and a foreground plate with transparent sky, and paints out any moon or planet that would fight the two-moon rule. A painted round moon of about the Moon's size can stay as the Moon only if its size and placement agree with the fixed 0.07. The giant spheres in Shardfall and Morrow's Shadow must go, because they are neither moon: they are round and change size.
- Size budget. The release APK has about 37 MB of headroom. One Somnolith (about 2048 px), a handful of shards and one Moon sprite cost little. Splitting 81 backdrops into two plates roughly doubles their files, so plates should share sky plates within a region, use compressed textures, keep the foreground at the art's resolution and the sky plate at half (it is soft), and be measured against the budget before they land.
Backdrop survey (2026-11-21, Resources/Backgrounds, 81 images). "Moon" means a painted round moon or planet; positions are on the portrait frame.
| Set | Images | Painted moon / planet | Where | Note |
|---|---|---|---|---|
| tithe-moors | 00-04 | faint large moon or planet arcs in 00, 01, 02; small pale globes in 03; none in 04 | upper left (00, 02), upper centre (01), centre-right (03) | half-hidden by storm cloud; paint out or keep as cloud |
| lantern-road | 00-03 | full round moon in all four | upper right (00, 03), upper centre-right and large (01), right behind lanterns (02) | about Moon-sized; can become the Moon |
| shardfall | 00-04 | a giant planet-sized sphere in all five | top left (00), centre and filling (01), top centre-right (02), top right (03), right edge (04) | must go: conflicts with the fixed Moon |
| arkgrave | 00-04 | none (a low sun) | sun at centre | sky open behind the masts |
| anchor-wastes | 00-03 | none | sky only through the arches; small sky area | |
| still | 00-05 | full moon in the oculus in all six | top centre | interior: the oculus becomes the sky hole; canon puts the Somnolith there |
| halcyon | 00-13 | low pale sun or moon disc at the horizon in 00, 01, 03, 04, 09, 10, 11; a large pale crescent planet in 11 | low centre or centre-left; 11 top right | the disc reads as a setting sun and can stay as a sun; the crescent in 11 must go |
| cathedral | 00-03 | full moon in the vault window in all four | top centre (02: upper middle over the organ) | interior: the vault window becomes the sky hole |
| bloom | 00-07 | large full moon in all eight | upper left to upper centre | larger than 0.07; repaint or replace with the Moon sprite |
| free-holds | 00-06 | full moon in all seven | upper right or centre (00, 02, 03, 04, 06), upper left (01, 05) | about Moon-sized; can become the Moon |
| underspire | 00-08 | small full moon in all nine | mid-left to upper right, varying | about Moon-sized; can become the Moon |
| morrows-shadow | 00-09 | a colossal sphere in all ten | centre to top, filling half the frame or more | must go: the Somnolith fills this sky, not a sphere |
Midjourney prompts (the owner generates them; --niji 5, house rule).
- (A) The Somnolith, isolated, the production asset:
the Somnolith, a grotesque irregular second moon floating alone, lumpy potato shape like Phobos, a giant grown mineral accretion like a kidney stone or desert rose, clusters of flat bladed crystals, bubbly botryoidal deep blue and violet lumps flushed with red, glinting facets, pale white fibrous hair-like tufts, faint cold cyan light glowing from deep cracks between the crystals as if something sleeps inside, unsettling, organic and mineral at once, painted anime fantasy illustration, soft cel shading, painterly texture, whole object centered and fully in frame, isolated on a plain flat white background, no sky, no stars --ar 1:1 --no craters, sphere, round planet, rings, text, background scenery --niji 5(Historical, superseded by GG-T577 and GG-T675: no Concord, the Somnolith is now the Manalith, aether is mana.) (Amended 2026-11-29, owner, GG-T2194: reverted - the Manalith is the Somnolith again.) - (A2) Image-prompt variant: the owner's reference photo as the image prompt. Upload
MindAttic.Tickets/data/attachments/GG-T575/2026-11-21-image-4.pngto Midjourney and put its URL first:<reference image URL> this exact mineral accretion scaled up into a colossal moon hanging in space, keep its silhouette, bladed crystal clusters, bubbly deep blue and violet lumps flushed with red and white fibrous tufts, faint cold cyan light glowing from the gaps between the crystals as if something sleeps inside, grotesque and unsettling, painted anime fantasy illustration, soft cel shading, painterly texture, whole object centered and fully in frame, isolated on a plain flat white background --iw 1.5 --ar 1:1 --no craters, sphere, sky, stars, text --niji 5 - (B) Mood reference only, not a production asset (for tone and scale; the game composites the real layers):
vertical fantasy landscape at dusk under two moons, a small familiar round pale moon and beside it a much larger grotesque lumpy second moon of crusted deep blue and violet crystal and bubbly mineral lumps flushed with red with faint cyan light in its cracks, small shards of it drifting across the sky, moorland and standing stones below, painted anime fantasy illustration, soft cel shading, atmospheric haze --ar 9:16 --no text --niji 5
27.3.1 The wake and the Manafall (GG-T670)
Owner, 2026-11-22: "the Somnolith really needs to be dragging a lot of debris across the sky behind it; that's why it sometimes rains aether dust", and "Aetherain falls". Canon: GG-MANALITH ("It drags a wake", "The Aetherain"). (Historical, superseded by GG-T577 and GG-T675: no Concord, the Somnolith is now the Manalith, aether is mana.) (Amended 2026-11-29, owner, GG-T2194: reverted - the Manalith is the Somnolith again.)
- The wake (
sky.jsonDebris,DebrisDef): a comet-like trail strung out from the Somnolith's centre alongAngle(192°: up-left, the body coming down and in). Pieces are the shard cut-outs at small sizes plus fine round specks (SpeckShare,SpeckColors: the Somnolith art's own indigo#2D346C, blue#46508E/#6D6EA9, plum#6B3C6Aand red-violet#974B72, each speck picking one; GG-T674). The shard images are cut from the art itself (tools/make_sky_assets.py), so they carry its blue, violet and red. They are densest and largest near the body, shrink fromMaxSizetoMinSizeand fade with distance, and drift outward overDriftSecondsbefore starting again near the body. The wake follows the body's sway and bob, and sits behind the Somnolith and in front of the Moon. Its piece count scales with the region's SomnolithSize(fullCountatFullAtSize0.6, never belowMinCount): 12 pieces at the Tithe Moors, 60 at Morrow's Shadow. A region can carry its ownDebrisblock, used as written. Capped at 90 pieces. - The Manafall (
sky.jsonAetherain,AetherainDef): rolled once per backdrop shown. The chance isChance(0.3) scaled by the Somnolith's size, about 5% at the Tithe Moors and 30% at Morrow's Shadow, or a region's ownAetherainChance. Sparse glints in colours sampled from the Somnolith art (Colors: mostly its blue#5D64A3, with lavender#A096C7/#B2A4D2and violet-red#9D6492/#974B72glints, each mote picking one; GG-T674) fall from the wake's band to the bottom of the screen overFallSeconds, drifting and twinkling, in front of the landscape but inside the backdrop, so every screen's content stays on top. - Cost and motion. Pieces are sized once and animated with translate, scale, rotate and opacity only (no layout passes, no per-frame allocation). Reduce Motion holds the wake still and skips the Manafall. Validation:
SkyDef.Validate/DebrisDef.Validate.
27.3.2 Magic comes from the Somnolith (GG-T671)
Owner, 2026-11-22: "the Somnolith is what makes magic possible; magic is the concentration of aether dust channeled into phenomenon and physiological changes (like lightning, fire, ice, sleep, poison), so without the Somnolith magic wouldn't exist." Canon: GG-MANALITH ("It makes magic possible") and GG-ONE-LIGHT ("Magic"). This names an effect of the Somnolith's presence, not its purpose: the rule that no text says what the Somnolith is for still holds. Aligning the glossary, element and ability texts with it is follow-up work on GG-T671. (Historical, superseded by GG-T577 and GG-T675: no Concord, the Somnolith is now the Manalith, aether is mana.) (Amended 2026-11-29, owner, GG-T2194: reverted - the Manalith is the Somnolith again.)
27.3.3 The Mana terminology (GG-T675, owner 2026-11-22)
Owner, 2026-11-22: the Somnolith is now the Manalith, which rains Mana Dust, refined into Mana Shards, the real-money currency; Mana Orbs are the mana generated from Mana Dust in combat, and orbs left at the end of a stage turn back into Mana Dust (GG-T676). Decisions the same day: aether becomes mana everywhere (the party panel's "AETHER" label reads "MANA"), the dust rain is the Manafall, and the Camp refiner is the Manasmith. Mana Orbs are old Halcyon tech scavenged from its ruins: batteries that discharge over time.
| Was | Now | Id kept (saves, purchases, Prose keys) |
|---|---|---|
| the Somnolith | the Manalith | Prose key GG-SOMNOLITH (the sky asset, canon file and sky.json key were renamed by GG-T950)
|
| aether | mana | ability/glossary ids such as aether, aether_siphon, aetherist_aetherpour
|
| Aetherite Dust | Mana Dust | item mat_aetherite_dust
|
| Aetherite Shard(s) | Mana Shard(s) | glossary aetherite_shard, item mat_diamond, products diamonds_*
|
| the Aetherain | the Manafall | glossary aetherain, sky.json Aetherain
|
| the Aetherist | the Manasmith | NPC id aetherist, npc:aetherist, portrait aetherist-00
|
The canon, in GG-MANALITH: Mana Dust is the Somnolith breaking up, its debris burning apart in the atmosphere and settling everywhere as a blue sparkle that thickens region by region as it nears; the Manafall is when it comes down heavily; Mana Shards are premium because they are mana made stable, which doesn't dissipate; Mana Orbs capture dust for a fight and can't hold it long. The name: mana + lithos (stone), "the mana stone", more literal than anyone knows. Player-facing words only changed; every id above is unchanged. Owner quotes recorded before 2026-11-22 keep the words the owner used then.
Amended 2026-11-29 (owner, GG-T2194): reverted - the Manalith is the Somnolith again (somnus + lithos, "the sleep-stone"): "Manalith" was too generic and did not make the thing hanging over the player's head frightening. Only the name goes back; the rest of this table (aether to mana, Mana Dust, Mana Shards, the Manafall, the Manasmith) stands. GG-T2196 swept the player-facing content text and renamed the internal ids too (SomnolithRig, the shaders, the sky.json key and SkyDef field, Resources/Somnolith/ and the sky art); only the canon file name 02-manalith.md and the Prose key GG-SOMNOLITH stay as they are.
Amended 2026-11-24 (GG-T950; owner asked for it): the internal Somnolith ids are renamed to Manalith: the sky.json key and SkyDef field are Manalith, the sky art is Resources/Sky/manalith-00.png and manalith-shard-00..05.png (renamed with their .meta, GUIDs unchanged, so references survive), tools/make_sky_assets.py takes --manalith and reads Art/Sky/manalith-source.png, and the canon file is Data/Prose/canon/02-manalith.md. The one id kept is the Prose key GG-SOMNOLITH in canon/push.ps1: changing it could make a second, duplicate Prose entry. Nothing a player sees changes. Owner quotes keep the word Somnolith, as above.
27.3.4 What the Somnolith might be (GG-T683, owner 2026-11-22, author-only)
Owner, 2026-11-22: "even the Manalith could be a chunk of Biomass that was somehow captured by Halcyon and accumulated rock and dust obscures its true self; but this is never really discussed; the thing about Cosmic Horrors is that there are always more." Author-only canon: Convergence shares a universe with GLMZ and SpaceGod, whose Biomass is a living flesh organism that fell to Earth from space (Prose docs/universes/GLMZ.md). The Somnolith may be a piece of it that Halcyon captured, its true self buried under accreted rock and dust. No text, NPC, item or scene ever says so, and the rule that no text says what the Somnolith is for still holds. At most, things are left for players to wonder about: the Somnolith tumbles like a body rather than a stone, and "more literal than anyone knows" is allowed to cut both ways. It is one horror among many. There are always more, so nothing here closes the question.
Amended 2026-11-29 (owner, GG-T2201, epic GG-T2198): the open question now has a shape players can feel: when the Somnolith converges with the earth, it may be the final enemy or an angel come to save everyone, and nothing in the game settles which. "Angel" is the owner's word for the hope, not the retired Bright Host (GG-T577); no text calls it an angel or a demon. The Biomass reading above stays author-only and stays possible.
27.3.5 The premise (GG-T2201, owner 2026-11-29)
The paragraph later tasks quote (crawls, vendor talk, store copy). Canon: Data/Prose/canon/01-preamble.md.
For ten thousand years the Somnolith has circled the world, and now it is coming down. No one knows whether it is the end of everything or the one thing that can save it. The world runs on it all the same: its mana lights the lamps, turns the mills and fills every living body, so this age lives on the power of the thing about to fall on it. Halcyon, the empire that stopped it in the sky and fell soon after, knew the sleep would not hold forever. On the night it fell it laid one of its commanders down to sleep with a single plan, to wake when the Somnolith came back. That sleeper is you, the Commander. Only you know the plan: gather the warriors of this age, wake Halcyon's Ward-Engines one by one, each held by its Guardian, and bring everyone to one place at one hour. What is meant to happen there, stopping it, greeting it or letting it come, the Commander alone knows, and the story never says.
- Dates. The Somnolith arrived and was stopped about ten thousand years ago; Halcyon fell (the Undertow) within a lifetime of that; the Commander slept from that night to now. The old "1,200 years" (GG-T1305, GG-T533) is retired.
- Mana is the world's power. Lamps, mills, forges and the Underspire's neon all burn the Somnolith's mana, and every draw pulls it a little closer: society runs on its own looming threat.
- What the plan does stays vague. The Ward-Engines' purpose when all are awake (repel it, call it down, open the way to greet it) is never stated; the Camp argues about it. Ward-Engine canon is GG-T2202 (§27.3.6).
27.3.6 The Ward-Engines (GG-T2202, owner 2026-11-29)
Owner, 2026-11-29: "reactivate the ancient machines, each guarded by a monstrous Guardian." Canon, with the full region table and the council's argument: GG-REGIONS "Ward-Engines". It folds in the parked Wards / Mana Stones idea (GG-T2193, superseded): the "Wards" are the Ward-Engines, so no new noun competes with the [Ward] status.
- One engine per region, all 15 (main campaign and postgame), sunk into the land under shrines, keeps and churches built on top of it unknowing. The caravan's road runs engine to engine; this is the overworld route (§28, GG-T1987).
- One model with the waystones. A region's Mana Waystones (§28.8) are its engine's outlying stones and run on it. The road goes waystone to waystone and ends at the engine; the road out opens once the engine wakes, which is today's rule that clearing a region's last stage opens the next.
- The Guardian is the region's boss: the last authored story battle of the region, launched through
StageLauncher.Launch, never a library battle. The waystones' guardians (BattleKind.Guardian, GG-T1711, §28.9) are lesser things that drifted in after. Most Guardians are monsters swollen on the engine's leak; a few are people who fed on it first. - The prologue machine. The Tithe Moors engine is the one that guards itself: its housing unfolds and fights. The prologue's
ward_engine(stageprologue-ward, The Sleeping Stone, lightning-locked, §3.3.1) is that housing, so on the moors the engine and its Guardian are one thing, and beating it wakes the engine and the first waystone together. The moors' Captain (greenvalley-03) stays the pursuer, not a Guardian. Ids are unchanged. - The Guardians, by region battle and class: Tithe Moors
prologue-ward/ward_engine; Lantern Roadlanternroad-03/oni02; Shardfalldesert-03/mechaarmor01; Arkgraveswamp-03/swampmistress00; Anchor Wastescave-03/cyclops02; the Stillstill-03/chronomancer; Halcyoncityruins-03/ceramicknight06; Cathedralcathedral-03/hierarch; Bloombloom-03/templar05; Free Holdsgreenvalley-05/holdwright; Underspirecityruins-05/minotaur01; Drowned Arksswamp-05/bloatdrowner; Deep Shardfalldesert-05/crystalbrute; Under the Anchorscave-05/chainwarden; Morrow's Shadowmorrowsshadow-03/demonlord. Where the Captain shares the finale, the Guardian is the monster beside him. - What they do stays open. The Anchors hold the Somnolith up and the waystones slow it; the engines do neither, as far as anyone can see, until the last one wakes. The war council's readings (a wall that pushes it back, a beacon that chooses where it lands, a house lit to receive a guest) all fit, and no text picks one.
28. The Overworld
Status: Proposed, owner-approved 2026-11-27, epic GG-T1652. Design only; nothing here is built yet. The Adventure list (§22.3) stays the live stage navigation until the map screen lands; the amendments to §22.3/§22.5, the Inn, §25.11.2 and §22.11 follow in GG-T1656.
28 (old). No Overworld. There is no world map. Stage navigation is the Adventure list (§22.3). Confirmed 2026-10-20 (owner, GG-T115): permanent, not contingent on GridGameCaravan's traversal prototype picking a demo — the earlier pitch for a navigable overworld and terrain gates (design-draft-overworld-and-dialogue.md §2/§2.1, withdrawn; the draft is deleted in GG-T341, git keeps it) is not coming back. The journey is understood without one: the party is travelling, and the story is told by text crawls (§27) and dialogue (§27.1). GridGameCaravan, the traversal lab that would have fed this, is spun off as its own project ("TownWalker"), not a Gaiden prototype. Amended 2026-11-27 (owner, GG-T1655): "the overworld is the only thing that makes this thing make sense." The GG-T115 ruling is reversed. The caravan travels a simple overworld map, the Commander decides where it goes, and everything else (campaign stages, recruiting, bounties, bosses, treasure, grinding) happens at places on that map. The map is campaign advancement.
28.1 Region maps
- The art is the owner's painted relief map, one per region (15 regions, one per
ThemeDef.Id), shown as-is at native resolution, never upscaled. Shaded relief in the Solasta travel-screen style, not contour parchment: green lowlands, ochre and brown uplands, dark gorges, rivers as thin lines in their valleys, settlements as small clusters of roofs. Region, road and area names ("Copperhead Road", "Duchy of …") are lore lettered on the land, never borders. Starter maps: relief/mountains, the swamp (Arkgrave / Drowned Arks) and the moors (Tithe Moors, region 1). - No zoom is needed. Each region is drawn at one readable scale as one large area the player scrolls (drag and fling, re-centre on the party) through the shared
PanZoomViewwith zoom off (MinScale = MaxScale = 1), so scrolling feels the same as the Skill Hex. - Haze edges, no visible border. At the scroll limits the land fades into fog, haze, mountains or sea; a region never visibly ends and there is no "you are leaving" line.
- Roadsigns are the only way between regions. They stand at the far ends of roads. The party travels to one, it says where the road leads ("To the Lantern Road"), and taking it moves the caravan onto the next region's map at that road's arrival sign. A road the story hasn't opened shows a sign the Commander can't read yet (a dormant waystone). Roadsigns sit near a waystone.
- The world's shape is a mystery. There is no world overview map.
- Map tool (
tools/world_map.py): reads a painting's colours (per-map k-means clusters labelled intools/world_map_palettes.json: water, reeds, forest, rock, snow… each with a travel cost), finds rivers, passes and least-resistance routes, proposes bridges, causeways, roadsign and waystone spots, emits a draft region forworld.jsonplus a debug overlay, and cuts the art into scroll tiles. The draft is then hand-edited; re-runs keep hand edits.
28.2 The authored node graph
- Solasta-style hand-authored graph over the illustration, in
Resources/Content/world.json(Core/Content/WorldModels.cs, validated inContentLoader). Per region: the map image; nodes{Id, Kind (Stage | Settlement | Waystone | Camp | Bridge | Pass), X, Y, StageId?}; edges{A, B, Points[], Length, Danger, Encounters, RevealedBy}drawn as splines along roads, valleys, passes and bridges; roadsigns{Id, X, Y, Leads, Arrives, RequiresStage?}. Stage nodes point atstages.jsonstages, soHighestClearedStagestays the progress index. - Crossings are bridges, causeways and passes. Rivers are crossed only at bridges (placed at the narrowest, straightest reach; no fording). Swamp channels are crossed by causeways and boardwalks. Mountain ranges are crossed at passes (the saddles between ridges).
- Routing is Dijkstra (
Core/World/WorldGraph) over the unlocked edges. The only randomness on the road is the periodic danger check along an edge.
28.3 Travel
- Navigate picks a destination; the route preview is a soft glowing line along the valleys. The party marker is the party's portraits in a small cluster on a pin (no caravan sprite).
- The route line and the markers are constant on screen: drawn in screen space at one width and size whatever the scroll, so it's always clear where the caravan is. When a group is out hunting there are two markers, the caravan and the hunting party's portrait cluster, joined by a faint line back to camp.
- The day dial sits at the top. The world clock runs dawn, day, dusk, night; travel is slower at night, and travel stops at dusk with the prompt to set up camp.
- Interrupt stops now and camps on the spot.
Core/World/Traveladvances the marker along the splines; seeded likeWanderers.SeedFor.- Travel Journal: a short log of what heroes do on the road and at camp, by name (forages food, finds ingredients, trains, cooks, tells war stories, meets a stranger), seeded from a per-faction/role table; a line can carry a small reward (an item, gold, a bond tick).
- Location card: tapping a location opens a side card with its art (the stage's backdrop), name, kind (FORTRESS, SETTLEMENT, RUIN, CAMP…), two or three lines of lore and a Challenge rating (Easy / Medium / Hard from recommended level against party level). When the party is there, Enter starts it through
StageLauncher.Launch(crawls, story beats and chapters unchanged).
28.4 Danger and ambushes
- Danger is route choice only. A danger gauge sits with the day dial and pulses on the marker, faster as it fills; it rises by the edge's
Dangerrate, faster at night and in bad weather. At full an ambush is unavoidable: "Defend the caravan", region foes at party level, the heroes defending the caravan. - Setting up camp or arriving at a destination resets it. Inside a camp circle or a woken waystone's circle it does not rise at all (§28.7).
- Random encounters (owner, 2026-11-27, GG-T1788): "random encounters are built out of enemies local to that region with maybe some surprises. random encounters can happen anywhere and become inevitable when threat pulse hits max." Before the gauge is full, a seeded random encounter can fire anywhere outside a safe circle, on a road or off it, its chance rising with the danger pulse; at a full pulse it is the unavoidable ambush above. Each is a preassembled library battle of 1 to 5 waves of the region's common monsters, now and then with a surprise. Detailed rules to follow in §28.14.
- Roaming threats (proposed, §28.14) are the other danger: foe icons that wander, patrol or chase on the map. They feed the same pulse, which also beats at the screen edges, with sound (and haptics, off by default).
28.5 Camp, hunting and the Wilds
- Services only when camped. Nothing opens while the caravan moves. It travels until it must stop, then Set up camp; camp is today's Camp hub (§25) and its services (Forge, Alchemist, Enchantress…) open there. Camp rest replaces the Inn (GG-T1656).
- The camp circle is the caravan's zone of influence (
Core/World/HuntZone), drawn with the pixel icon-generator dither style. Inside it are forage spots (herbs, crafting ingredients) and hunt spots: safe, familiar regional foes and game animals whose level rises slowly with how often that region has been hunted. - Game animals (new Bestiary families): deer, buffalo, boar, plus regional ones (marsh fowl, mountain goats). A hunt is a short battle; they flee rather than fight, except boar and buffalo, which charge. They yield Food and hides or horn for crafting.
- The Wilds lie beyond the circle: unpredictable, seeded events (
Core/World/Wilds) pop up as icons for a recruitable hero, a stronger boss, treasure or another adventure, only outside every circle, and despawn when camp breaks. - Predators (wolves and regional predators) may join a hunt: rarely inside the circle, likely in the Wilds, more at night.
28.6 Food, meals, sleep and Well Rested
- A small Food count sits beside the danger gauge. Eating a meal at camp spends Food.
- A meal plus a full 8 hours of sleep (the clock advances to morning) gives Well Rested for the next day: a buff in every battle until the next nightfall (default +10% HP and +100 starting mana points,
CampRestConfig.WellRestedMana; numbers in config). - Skipping the meal or breaking camp early just gives no buff. There is no starvation penalty; gentle by design. The Travel Journal shows who cooked, who kept watch and the night's events.
- The stamina pool's player text (
Meta/RestedPool.cs, today "Rested") gets a new name (proposed "Stamina", owner to confirm) so "Well Rested" means only the camp buff.
28.7 Fog of war, clouds, weather, day and night
- Fog of war: unexplored land is under fog. Travel reveals a band around the route, camp reveals its circle, a woken waystone its surroundings. Saved as a low-res reveal mask per region. Wild events and locations under fog are hidden.
- Clouds: soft cloud shadows drift across the map, never hiding the route line or markers.
- Weather per region and season: clear, overcast, rain, fog banks, storm, snow (mountains), drifting mist (swamp). Weather slows travel a little, nudges danger, and carries into battle as a backdrop overlay (rain, snow, mist) and, for storm and fog, a light rule (such as reduced range).
- Day/night grade: each period (dawn, day, dusk, night) has an HSV grade (hue, saturation, brightness, contrast) that drives the map, the camp backdrop (
LivingBackdrop) and the backdrop of a battle started at that hour. Night is the classic jRPG purple, not black. At night travel is slower, danger rises faster and foes are stronger (a level bonus, more elites), so camping for the night is often the smart move. - Clock and weather are ported as pure C# into
Core/World/fromUnity.Rea.Overworld(WorldClock,Clock,time.json,Weather,Clouds, their tests), with the RGB tint replaced by the HSV grade.
28.8 Mana Waystones
- Lore: Halcyon machines that slow the Somnolith's descent, long dormant. Only the Commander sees and wakes them: the unseen player, the last sleeper of Halcyon
who woke too late(Amended 2026-11-29, GG-T2201: woken on purpose, on time, as Halcyon's hail-mary; §27.3.5). That is why the caravan goes where the Commander says. Nobody else's maps have them. Amended 2026-11-29 (GG-T2202): a region's waystones are its Ward-Engine's outlying stones and run on it; the road ends at the engine and its Guardian, the region boss (§27.3.6). - On the map: a dormant waystone shows only as a faint glint once the fog near it lifts. Reaching one usually means clearing what has settled around it (a guardian battle: beasts drawn to the mana, or Choir/claimant forces). (Amended 2026-11-29, GG-T2202: these are lesser guardians; the region's Guardian holds its Ward-Engine.)
- Waking one gives:
- A permanent protective circle: no ambushes and no danger build-up inside it, and camping inside is safe. Overlapping circles form safe corridors, so a chain of woken waystones makes a safe road network through a region; the danger gauge rises only outside every circle.
- Fog lifted inside the circle and the roads it touches revealed.
- Mana Dust gathering at the stone over time, collected when the caravan passes or camps there. It is the existing
Meta/DustEconomy.csMana Dust, refined into Shards at the Aetherist (DustPerShard= 10), so there is no new currency; a per-stone cap keeps earned Shards in balance with the store. - The Somnolith eases: each woken stone lowers that region's sky Somnolith a touch (
sky.jsonSize) and counts toward the story's waystone tally.
- Waystones are the natural stopping points between campaign locations.
28.9 Battles: a library and the Difficulty factors
- No more "Stage N." Captions and the Adventure list give way to location names. Battles come from a library of hand-crafted battles, each the existing
StageDefshape (1 to 5 waves of{Class, Level, X, Y, DelayTicks}, preassembled from the region's common monsters (owner, GG-T1788;BattleLibrary.MinWaves..MaxWaves), blocks, background), saved inResources/Content/battles/<region>/*.jsonand tagged by region/biome, kind (ambush, hunt, game animals, Wild boss, waystone guardian, settlement defence, side story) and base tier.EncounterGeneratordrafts one from a tag set, the designer hand-tunes it, and validation checks every battle (tiles in bounds, classes exist, wave counts). About 100 per starter region to begin. - One
Difficultyfunction combines the factors: region, distance from roads and outside any waystone or camp circle, the danger gauge when it fired, night, weather, party level and size, how often the area has been hunted, story progress and nearby woken waystones. It picks a tier band from the library and a level offset; foes scale slowly as in the Crucible (Meta/Crucible.cs). - Story locations keep their authored battles, launched through
StageLauncher.Launch.
28.10 New-game onboarding order
The onboarding becomes the first stretch of the journey, each step taught by doing it:
- Who you are: the Commander, the last sleeper of Halcyon
who woke too late, woken after ten thousand years with a plan only they know (Amended 2026-11-29, GG-T2201; the opening crawl, kept short). - Why they follow you: the Founding scene, where the heroes see Halcyon tech wake near you.
- How to fight: the five drills, kept.
- How to travel: the first leg on the map (Navigate, the route line, the day dial, the danger pulse, a scripted ambush, Interrupt and set up camp).
- Camp: eat, sleep, wake Well Rested, the circle, a first hunt.
- Why you seek Mana Waystones: the first dormant stone only the Commander can see, its guardian fight, waking it (the circle appears, the Somnolith eases).
Meta/Onboarding.cs gains steps after Crawl, Drill(n) and HubIntro: Travel, Camp, Waystone, resumed through StoryBeats.Resume as today.
Amended 2026-11-28 (GG-T2065, planner defaults the owner approved with "approve all do all"; marked for the owner, who may still change them): the scripted prologue. Steps 1 to 6 are played as one scripted prologue, beat by beat in STORY_SLICE.md (click-through docs/design/prologue/): the Commander wakes in a Halcyon vault under the Tithe Moors (drill 1 is fought there, before the opening crawl, as in the UX review's first five minutes); the three drills (GG-T1960); the road to the hamlet of Tithe with a scripted wolf ambush; at Tithe the party buys a Healing Potion, equips it and uses it at the toll bridge; the Tithe Collector's unyielding front plate (GG-T2069) turns the first clash into a scripted withdrawal, not a defeat; at camp (dusk, meal, sleep, Well Rested, an optional hunt) the Barbarian learns Sunder on the skill board; in the rematch Sunder shatters the plate (ShattersPlate); the Red Mage joins and the Collector's chest holds a Tome of Bolt (and a Storm Flask); only the Commander sees the first waystone's glint; its Halcyon Ward-Engine, hurt only by Lightning (GG-T2071), falls to Bolt; waking the stone ends the prologue. It runs 25 to 35 minutes (33:45 as planned) with at most one blocking card a minute (UX review §4.2). Every beat is skippable, and Skip prologue lands in the finished state. Random encounters stay off until the stone wakes. The steps above become Wake, Drill(1), Crawl, Drill(2), Drill(3), Travel, Tithe, Bridge, Camp, Rematch, Glint, Waystone, Done (HubIntro folds into Camp; GG-T2077). Tithe Collector, Ward-Engine, Sunder and Tithe are placeholder names.
28.11 Hero side stories (replace the wits quiz)
- The wanderer "game of wits" quiz is dropped. A hero is met as a Wild hero icon in their own faction's regions (
factions.json,Wanderers.Local), found doing their own thing, often a battle the party joins (the in-battle wanderer and Rapport stay, as "they've noticed you"). - Each hero has a short side story: a
QuestDefchain ending inRewardHero(theronin_recruitandforge_iron→ lancer pattern), with new objective kindsPayGold,Defend(hold a settlement node's battle),SlayBoss(a Wild boss),Treasure(dig at a map node) andEscort(travel to a node with them as a guest). Meeting and resolution lines are small dialogues (§27.1). - Removed with it:
WitsExchanges,Wanderers.Judge/Threshold/Outlook, the PostBattle talk block, the eightwanderer_*talks and the quiz rules inWandererContent.ValidateDialogue. Content comes in batches per faction (Holds first, for the moors).
28.12 The Crucible
The Crucible stays reachable, moved under the Caravan list at camp, and becomes region-based: its foes come from the region the caravan is in.
28.13 Save
SaveData.World (save v26, Meta/WorldSave.cs, Meta/WorldSaveAdapter.cs): region, node or edge position, day and clock, danger, camped, woken waystones, reveal masks and revealed edges, active Wild events, hunt counts per region. Migration places the caravan at the furthest cleared stage's node, camped. Expeditions fold into travel (wounds and orbs carry between battles while travelling; camp rest heals).
Status: Built (GG-T1785, GG-T1790, GG-T1786). Save v27 adds WorldSave.CarriedOrbs (orbs carried on the road; 0 at camp) and Camped defaults true (a new game starts at camp). Older saves load camped; a legacy SaveData.Expedition is drained after placement (SaveMigrations.DrainExpedition: its orbs become CarriedOrbs, the caravan on the road) and cleared, and nothing else reads it. Amended 2026-11-28 (GG-T1927): save v29 turns CarriedOrbs into WorldSave.CarriedMana, in pool points (orbs x 100). (Tests: WorldSaveTests.)
28.14 Roaming threats and the danger pulse
Status: Proposed (GG-T1771, feature GG-T1770), design only; nothing here is built yet. Owner, 2026-11-27: on the overworld, enemy icons wander the map and the player can intercept one to take on a particularly challenging fight; a danger pulse (screen-edge/heartbeat pulse that strengthens as a strong threat nears, in the spirit of FF Resonance) warns of them. Every number below is a starting value in config (ThreatConfig, PulseConfig), not a balance claim. The open choices were answered by the owner on 2026-11-27 (GG-T1788): roamers don't start fights, random encounters do (below); bounties walk the map; respawn 3 and 7 days; the pulse capped at 0.3 inside a safe circle; a full haptic pattern library, off by default.
Where it sits. §28.4's gauge stays what it is: route danger whose random encounters can fire anywhere outside a safe circle and become inevitable at a full pulse. Roaming threats are the other kind of danger: things you can see on the map (or feel under the fog), steer around, or go and fight on purpose. Both feed one danger pulse (below), so the player reads one signal.
28.14.1 What roams
- A roaming threat is an icon on the region map: a foe group led by a recognisable family portrait, with a tier mark (one, two or three skulls, the bounty skull's style, §22.4). It is not a Wild event (§28.5): Wild events stand still and despawn when camp breaks; threats move, persist across days and are saved.
- Three tiers:
| Tier | Who | How many per region | Moves | Starts a fight? |
|---|---|---|---|---|
| Prowler (☠) | A regional pack a notch above an ambush: wolves, bandits, marsh lurkers (the §28.5 predator families and region foes) | 2–4 alive (+1 at night) | Wanders near a home point; chases a caravan it senses | Only by catching you: a Prowler's contact counts as a random encounter (§28.4), fought with its own battle |
| Marauder (☠☠) | An elite war band or a named beast: a Choir patrol, an oni warband, a buffalo bull with its herd | 0–2 alive | Patrols a road, bridge or pass, or wanders | Never on its own; the player intercepts it |
| Dread (☠☠☠) | The region's apex: a titled, rule-breaking boss (§14.9) walking the map, the way a bounty target walks a stage | at most 1 | Slow wander through the Wilds, or a long patrol | Never on its own; the player intercepts it |
- Rosters are data:
roamers.json(RoamerDef:Id,Region,Tier,Leaderclass id,Title(Dread only),Mode(Wander/Patrol),Patrolnode ids,Battles(library battle ids, kindRoamer),NightOnly,Reward). Validation: the leader is a real enemy class, the region a real region, patrol nodes real nodes of that region joined by edges, at least one battle, one Dread at most per region. Game animals (§28.5,GameAnimaltag) never roam as threats; they stay at hunt spots. Night-only families (bats, werewolves) appear only between dusk and dawn. - Spawning (
Threats.Spawn, seeded by save seed, region and day likeWildEvents.Spawn): on entering a region and at each dawn the region is topped up from its roster to the counts above, each threat at a seeded walkable spot outside every safe circle (§28.4'sSafeZones), at leastMinSpawnDistance(300 px) from the caravan andMinSpacing(96 px) from each other. Under fog is allowed: the icon is hidden but the pulse is felt, which is the point of the pulse. - Bounties walk the map (owner, 2026-11-27): a hunted bounty (§22.4) becomes a named Marauder or Dread in its region instead of a mark inside one stage battle; the poster's clue becomes "Seen wandering region" and the kill is collected at the board as today.
28.14.2 How they move
Threats move only while the world clock moves (travel, Interrupt, sleep), in world minutes, deterministically (Threats.Step(threats, minutes, context); same seed, same moves). Speeds are art px per world minute; the caravan travels 1.5 by day and half that at night (TravelConfig).
- Wander: pick a seeded walkable waypoint within
Leash(300 px) of home, walk to it, idle 30–90 minutes, pick again. Prowler 0.8 px/min, Dread 0.5. - Patrol: walk the authored patrol path along its graph edges, there and back, idling 60 minutes at each end. Marauders 1.0 px/min. A patrol on a bridge or pass is a chokepoint the player routes around, waits out, or fights; route choice again, as §28.4 wants.
- Chase (Prowlers only): a Prowler that senses the caravan or the hunting party within
Sense(160 px; 220 at night) turns and chases at 1.1× the caravan's current speed. It gives up after 90 minutes of chasing, when its quarry is 1.5 ×Leashfrom home, or the moment its quarry enters a safe circle, then walks home. Marauders and Dreads never chase (owner, 2026-11-27: roamers don't start fights): the hard fights are always chosen. - Safe circles are walls: no threat steps into a camp or woken-waystone circle; a path that would cross one stops at the edge and replans. So a camped caravan and a chain of woken waystones (§28.8) are always safe, and sleep is never interrupted.
- Terrain: threats walk the same walkable test the Wild spawner uses (no water, bridges and causeways allowed); they are not bound to roads, except a patrol.
- Grace after a fight: every threat within 1.5 ×
Senseof a battle's spot holds still for 30 minutes afterward, so fights never chain. - Night: speeds +20 %,
Senseas above, +1 Prowler; matches §28.7's "night is dangerous". - Drawing: icons move between steps with a short tween; under Reduce Motion they snap. A chasing Prowler's icon leans toward its quarry and its skull flashes once when the chase starts.
28.14.3 Random encounters and intercepts
- Roamers never start a fight on their own (owner, 2026-11-27). Unbidden fights are random encounters (§28.4): owner, "random encounters are built out of enemies local to that region with maybe some surprises. random encounters can happen anywhere and become inevitable when threat pulse hits max."
- What they are: a preassembled library battle (kind ambush, §28.9) of 1 to 5 waves of the region's common monsters, now and then with a surprise: a rarer or neighbouring-region family arriving mid-battle with its
WaveDef.SurpriseSpeakerline. - Where and when: anywhere outside a safe circle, on a road or off it. While the caravan or the hunting party moves, a seeded check (save seed, region, world minute) fires one with a chance that rises with the pulse intensity I (§28.14.6): none below 0.15, then climbing with I. At a full pulse it is inevitable: the §28.4 unavoidable ambush ("Defend the caravan"), with
Danger.cs's full threshold unchanged. Inside a safe circle there are none. - Each resolves like an ambush: the gauge resets, and the §28.14.2 grace keeps fights from chaining.
- What they are: a preassembled library battle (kind ambush, §28.9) of 1 to 5 waves of the region's common monsters, now and then with a surprise: a rarer or neighbouring-region family arriving mid-battle with its
- Contact is when a threat comes within
ContactRadius(24 px) of the caravan marker or the hunting-party marker (§28.3). Steps longer than 10 minutes are split so a fast step can't pass through a threat. - Unbidden contact (Prowler chase): a Prowler that catches you counts as a random encounter: an Ambush ("Defend the caravan", §28.4) fought with that Prowler's own battle. It stands in for that stretch's random encounter, and the gauge resets as an ambush resolution does.
- Intercept (the player's choice): tapping a visible threat opens its threat card, the location card's twin (§28.3): leader portrait, name or title, tier skulls, mode ("Patrols the Copperhead bridge"), Challenge rating (Easy / Medium / Hard / Deadly, from the Difficulty result below against party level) and the reward preview. Intercept plots a route (Dijkstra, §28.2) to the road point nearest the threat; once the caravan is within
Senseof it, the threat is drawn in and contact fires wherever it stands. From camp the hunting party goes out to it on foot instead, as to a Wild event, and the caravan stays safe in its circle. Intercept is not offered for a threat under fog. - Avoiding: keep moving (a Prowler is only slightly faster, and gives up), turn back, make for a safe circle, or Interrupt and camp (a threat can't enter the camp circle).
- After the fight: a win removes the threat (Prowlers come back with the dawn top-up; a slain Marauder's roster slot waits 3 days, a Dread's 7 (owner, 2026-11-27: designer's call); a claimed bounty roamer never returns). A loss or retreat follows the normal rule (no permadeath, §29.1): the caravan camps on the spot and heals by camp rest, and the threat walks home and won't chase for 2 hours. Either way the gauge resets.
28.14.4 Fight difficulty
- A roaming fight is a new library kind,
BattleKind.Roamer, picked byBattlePickerfrom the threat's ownBattlesand scaled by the oneDifficultyfunction (§28.9) with one new input,ThreatTier(0 none, 1 Prowler, 2 Marauder, 3 Dread), whose push isThreatTierPush= +1 / +2 / +3 tiers (for scale: a Wild boss is +2, a guardian +1.5). Night, weather, distance from roads, the Wilds and the gauge at contact add on top as for every overworld battle; nearby woken waystones and a short party ease it;MaxLevelOffset(5) still caps the level offset. - Dread fights also carry the bounty treatment (§22.4: the leader at +2 levels, ×2.5 HP, ×1.3 stats, its rule-breaking trait, the skull roundel and banner).
- Challenge on the card: Easy when the picked foe level is under party level, Medium within +1, Hard +2 to +3, Deadly +4 and up; a Dread always reads at least Hard.
28.14.5 Rewards
The reward has to make the choice worth it, so it grows with the tier and is shown on the card before you commit.
- Prowler: the battle's normal drops and experience, ×1.5 gold, and Food or hides when the pack is beasts (the game-animal drop tables, GG-T1777).
- Marauder: ×2 gold, one guaranteed item roll a rarity step above the region's usual, and a Travel Journal line naming who struck the decisive blow (a bond tick for the pair who fought side by side, §28.3).
- Dread: its own named item (the bounty item rule), 1 skill point to every party hero (
RewardSkillPoints, as a bounty), a handful of Mana Dust (§28.8, 20 by default), its Bestiary entry, and the region quiets: §28.4's gauge rises at ×0.8 in that region until its Dread returns. - A bounty roamer's board reward is collected at the board as today (§22.4), on top of its tier reward.
28.14.6 The danger pulse
- One intensity, 0..1:
I = max(gauge, threat), where gauge is §28.4's level and threat is the strongest single threat's pull,w(tier) × (1 − d / R(tier))²for each threat at distance d inside its range R. Defaults: Prowler w 0.5, R 250 px; Marauder 0.8, 350; Dread 1.0, 500. A chasing Prowler adds +0.25. Positions are the true ones, fog or not: the pulse is how you learn about what you can't see. Inside a safe circle the threat part is capped at 0.3 (owner, 2026-11-27): you know something is out there, but you are safe. Below 0.15 there is no pulse. - Rate: one heartbeat every
DangerState.PulsePeriod(I)seconds (3.0 s at 0 down to 0.5 s at 1; the existing curve, so the marker and the screen beat together). - Screen edge (the FF Resonance look): a soft vignette on the map screen's edges throbs on each beat. Its strength and width follow I; it is biased toward the edge facing the strongest threat (the gauge alone gives an even ring). Its colour is the foe colour, deeper with tier (Prowler amber, Marauder red, Dread a dark crimson), and under Colorblind palette the
CbFoe/CbBossoranges; strength and width carry the meaning, so the colour is never the only cue. The §28.4 marker pulse stays as it is. - Audio: a two-beat heartbeat cue
world.heartbeaton each beat, volume0.3 + 0.7 × Iof SFX volume; fromI ≥ 0.7the map music ducks by 3 dB. One-shot stings:world.threat_nearthe first time a Marauder or Dread comes into pulse range,world.threat_chasewhen a Prowler starts a chase,world.threat_contactat contact. New cue files by the asset rule (world-heartbeat-00…,make_sfx.py). - Haptics (new; Convergence has none today). Owner, 2026-11-27: "no, not by default, there should be whole vibration library of sounds but have it off by default this is supposed to be a relaxing game not a bunch of vibrations."
- A pattern library, named like the sound cues, one pattern per pulse or sting event:
beat(a light tick on each beat atI ≥ 0.5),double_beat(a double tick atI ≥ 0.85),threat_near,threat_chase,threat_contact(one strong pulse at contact) andencounter(a random encounter firing). Patterns are data (haptics.json: steps of duration and amplitude), so new events add a pattern, not code. - Settings → Haptics is OFF by default on every platform,
SettingsSave.Haptics= false; the player opts in. Desktop and WebGL play nothing even when on. - Unity's
Handheld.Vibrateis a single long buzz, too coarse for a tick, so this needs a small native bridge (AndroidVibrationEffect, iOSUIImpactFeedbackGenerator).
- A pattern library, named like the sound cues, one pattern per pulse or sting event:
- Accessibility: every pulse event also has text (§31): the day dial's danger icon names the strongest threat ("Something stalks the road", "A Marauder patrols nearby", "The Dread of the moors is near") and the start of a chase is a Travel Journal line. Reduce Motion: the vignette holds a steady glow at the current strength instead of throbbing; the dial icon still beats. Sound and haptics follow their own settings.
- The pulse runs only on the map screen; camp services and battles never show it.
28.14.7 How it fits the World core (GG-T1674)
Core/World/Threats.cs(new, pure, seeded with theRngthe Wild spawner uses):ThreatConfig(the numbers above),RoamingThreat{Id,RoamerId,Tier,X,Y,Mode,HomeX,HomeY,Waypoint,IdleUntil,ChaseStarted,GraceUntil},Threats.Spawn(seed, region, day, roster, safe, isWalkable, bounds, caravan),Threats.Step(threats, minutes, clock, caravan, huntingParty, safe, isWalkable, config)→ contacts, andThreats.Pull(threats, x, y, safe, config)→ the threat part of the pulse.Core/World/DangerPulse.cs(new):Intensity(gaugeLevel, threatPull),Beat(intensity)(period, vignette strength, bias bearing, haptic pattern id), andEncounterChance(intensity)for the seeded random-encounter check (0 below 0.15, certain at a full pulse).Danger.csis unchanged; itsPulsePeriodis reused.Difficulty:BattleKind.Roamer,DifficultyInput.ThreatTier,DifficultyConfig.ThreatTierPush[].BattlePickerdrawsRoamerbattles by id from the threat's roster entry.- Travel loop: each
Travel.Advancestep hands the same minutes toThreats.Step(in sub-steps of at most 10 minutes) and then toDangerState.Rise; a contact stops travel the way an ambush does. - Save:
WorldSavegains a list of live threats per region and the roster cooldowns (slain-at day). The field is additive and empty on old saves, which get a fresh top-up at the next dawn, so no migration step is needed beyond the v26 one. - Tests (Core): spawn determinism and spawns only outside circles; wander stays within its leash; a patrol follows its edges; a chase starts inside
Sense, gives up on time, distance or a safe circle; no threat ever enters a circle; contact fires even across a long step; Prowler contact resets the gauge;Difficultytier push perThreatTier; the pulse curve (zero beyond range, max of gauge and threat, the in-circle cap, fog ignored).
29. Open Design Questions
Resolve a question → write the answer into the right section → delete it here.
29.1 Macro loop / run structure
- Permadeath / NG+ — Answered 2026-10-19 (GG-T114, owner): never in the normal game — "no one dies permanently, that's lame". Defeat returns to Camp at full HP; fallen heroes recover; a fallen guest returns (§25.11); recruits and dialogue-joined heroes are never removed. Ironman is a planned, opt-in mode ("leave the door open but not right now") and is not built: every "unit is lost" decision already routes through the one rule
Permadeath.Enabled(Convergence.Meta, alwaysfalse; fed to battles asBattleSetup.Permadeath), so Ironman only has to switch that on. Still open: what else Ironman changes (fallen heroes too? one save slot?). - Tutorial / onboarding — answered (GG-T539): every lesson is a blocking popup plus coach marks the player follows (§9 Guided first battle, §25.0.2).
29.2 Timeline feel (new with the act-advanced clock)
- Frozen length — should Frozen survive into the next action (Duration 2, or tick at the bearer's own boundary)? Today it ends with the action it lands in (§8.3).
- Time bank — should banked seconds persist until the next enemy turn instead of clearing at control return (§3.1.8)?
ActionTicks— superseded by the held turn (GG-T188, §2.0): a turn now lasts until the next enemy arrival. Open instead: should a slot use (not just a drag) end the turn, and isMinTurnSeconds= 2 s the right floor? (balance pass GG-T191)
29.3 Content economy
- Inventory cap — unbounded apart from
MaxStack; is a total cap wanted? - Durability per instance — keep the reset-on-unequip simplification (§24.5)?
- Item naming — Hi-Potion, X-Potion and Ether use classic Final Fantasy item names, the same copyright concern that prompted renaming Phoenix Down → Revival Charm (2026-10-18); revisit whether these should also get original names.
29.4 Overworld threats
Answered 2026-11-27 (owner, GG-T1788; written into §28.4 and §28.14): 9. Forced fights — answered: roamers don't start fights; random encounters (the region's foes plus the odd surprise, 1 to 5 waves) can happen anywhere outside a safe circle and are inevitable at a full pulse; a Prowler catching you counts as one (§28.14.3). 10. Bounties on the map — answered: yes, a hunted bounty becomes a named roamer. 11. Respawn — answered: designer's call, 3 and 7 days; a claimed bounty never returns. 12. Pulse inside a safe circle — answered: capped at 0.3. 13. Haptics — answered: a full haptic pattern library, but Haptics is OFF by default on every platform (a relaxing game).
30. Performance Budgets
Target (GG-T2101, retargeted 2026-11-28): the oldest in-target phones in tools/devices.json — the iPhone 15 Pro (A17 Pro, 8 GB; the reference device) and the Galaxy S23 (Snapdragon 8 Gen 2, 8 GB). Everything newer in the matrix has headroom over these two. GameApp.Awake sets vSyncCount = 0 and ThermalStepDown owns targetFrameRate (the Frame rate setting below, 60 by default); the automation state endpoint reports fps.
| Budget (on the two baseline phones) | Ceiling |
|---|---|
| Frame rate, battle and map/camp scroll | 60 fps: average ≥ 59, p95 frame ≤ 16.7 ms |
| UI Toolkit update (style + layout + render data + animation) | < 8 ms a frame, p95 |
| GC allocation while a battle plays or a list scrolls | ≤ 1 KB a frame on average (target 0) |
| Texture memory | ≤ 512 MB |
| Unity allocated memory (native + managed) | ≤ 1 GB |
| Managed (Mono) heap | ≤ 128 MB |
| Cold start: launch to the first screen past the splash | ≤ 5 s |
- Measuring (GG-T2101):
Dev.PerfStatssamples every frame. The automationperfroute returns the window sinceperf?reset=1(fps, frame-ms percentiles, % of frames over 16 and 33 ms, GC alloc, texture/allocated/Mono MB, UI ms, cold start). Settings > Developer > Perf HUD (off by default, this device only) shows fps, frame ms, UI ms, GC KB a frame and texture MB in the bottom-left corner. GC alloc, texture memory and the UI markers are profiler counters only a development build records; a release build falls back toTexture.currentTextureMemoryand heap growth.python tools/harness.py perf [--device iphone15pro]plays one first-boss battle on autoplay and one camp scroll (there is no map screen yet) at the device shape, checks them against this table (PERF_BUDGETin the harness) and writesdocs/perf/records/<date>-<device>.json. A record from the Windows dev player is a desktop proxy: it catches regressions and allocation, not the phone's real frame time. - Simulation costs nothing per frame — it runs only inside
Apply, one burst per action.PreviewMoveclones the wholeBattleStateper drag step andHeroBotpreviews every L-path for every hero: fine on cold paths, the first thing to profile on device. - Presentation plays one awaited beat at a time (budget ≤ 3 ms); UI Toolkit layout/render ≤ 8 ms — rebuild a screen only on change (
Refresh), never per frame; keep ≥ 2 ms slack. - Hygiene: all playback runs through
Safe()with a 20 s watchdog and a finalSyncAll. Amended 2026-10-09: there is no per-battle static state to clear — everything lives onBattleState, which dies with the screen. - Assets:
Resourcesloading is sanctioned (backdrops at the art's resolution, 1536×3072 JPEG, ~4.5 MB each as textures (GG-T353); thumbs 256², icons 64²; music mp3, SFX ogg/wav). - Thermal step-down (GG-T1548): on Android and iOS players
ThermalStepDownpolls every 2 s. Hot is Adaptive Performance'sThrottlingImminentorThrottlingwhen a provider is active, otherwise iOSNSProcessInfo.thermalStateserious or critical; while hot the frame cap is min(player's cap, 30) and the Effects amount is half the player's. Cool (APNoWarning, iOS nominal or fair) for 30 s in a row restores the player's Settings choices; the step-down never raises either above them. No toast; one[Thermal]log line per change in development builds. Desktop and WebGL compile it out. - Frame rate (GG-T2102): Settings > Display > Frame rate 60 Hz (default) or 120 Hz (
SettingsSave.FrameRateCap, settings.jsongame.frameRateCap, anything else reads 60; the old Graphics 30 / Uncapped choices read 60). The row shows only where the display draws 120 Hz (ThermalStepDown.HighRefreshSupported:Screen.currentResolution.refreshRateRatio, or any listed display mode, at 119 Hz or more: ProMotion iPhones, 120 Hz Galaxies); a 120 saved on another device runs at 60 here.ThermalStepDownapplies it, so the hot cap (30) and the idle drop still win over it. The budget table stays at 60 fps; 120 Hz is the player's choice of smoothness over battery. The automationperfroute reportstarget_fps(in force),player_fps(the setting) andthermal_hot; the Perf HUD shows fps against the target (58/60 fps). - Idle frame rate (GG-T1547): a menu or hub screen where nothing has moved for
IdleFrameRate.IdleSeconds(2 s) draws only every Nth frame (OnDemandRendering.renderFrameInterval), aboutIdleFps(15) a second, picked from whatever capThermalStepDownhas in force; the game still updates every frame, so input is read at full rate and the next touch, wheel, key, navigation, slider/scroll change, USS transition, screen change or held touch draws every frame again. Hand-rolled animators callIdleFrameRate.Stir()while they move:Tween.Run, a living backdrop, thePanZoomViewfling,Marqueescroll and flash, the coach marks while a step shows, and the paywall gauge until it finishes (GG-T1583). Battles never idle (BattleScreen), nor does a player run under-automation. - ⬜ Not yet built: the on-device profiling pass on an iPhone 15 Pro and a Galaxy S23 (the perf route and HUD are ready for it).
31. Accessibility
- Color-blindness: mana has one color by design (filled vs empty reads by brightness); status pips carry their icon and a letter, never colour alone.
Colorblind palette (Amended 2026-11-20 (GG-T495): the pip remap had lapsed (SettingsSave.ColorblindMode) remaps buff pip colors.BoardView.SetBuffsignores the flag; icon + letter carry the meaning). Colorblind palette now names the element on an elemental hit's damage number ("86 Ice"), since its burst says it only in colour; physical and armored hits are unchanged. Amended 2026-11-21 (GG-T525): it also marks sides with one colourblind-safe blue/orange pair instead of blue/red/purple: hero keylines and hero casts sky blue (Palette.CbHero87/181/232), foe keylines, foe turn icons and foe casts vermilion orange (CbFoe245/122/10), a boss's keyline and turn icon a darker burnt orange (CbBoss191/77/5). Drawn in code throughPalette.TeamFoe/TeamBoss/TeamCast(timeline icons and the prominence slot,Palette.Colorblindset byGameApp.ApplySettings), and in USS under acolorblindroot class (the board keylines); a cast ring on the board shows its caster's side colour instead of its element hue. Tamed, wanderer, guest and neutral marks keep their own colours (their tag says what they are). Status pips stay unremapped by decision: their icon and letter carry the meaning. Timeline icons already on the bar take the new colours when they are next drawn. - Motion: 🟡 Reduce motion (
SettingsSave.ReduceMotion) zeroes lunges, shakes and the death-portrait jitter and dims the Clutch flash (BattleScreen.Fx), skips the pincer and caster cut-ins, prefab VFX and particle bursts, and ellipsizes marquees; Battle speed ×0.5/1/1.5/2/3 lengthens or shortens every beat (×0.5 added GG-T1978). Untimed turns (GG-T1978) takes the real-time limit off the player's turn (§2.0.1). Added 2026-11-20 (GG-T495): it also calms the shared tweens everywhere, menus and celebrations included (Tween.Calm, set byGameApp.ApplySettings):Tween.Shakeholds still,Tween.Popdoesn't swell,Tween.Movetakes at mostTiming.Quickwith no overshoot. - Text size (GG-T495): Settings → Text size 100 / 115 / 130 % (
SettingsSave.TextScale, settings.jsongame.textScale, anything else reads 100), applied live:TextSize.Apply(Tokens.cs) putstext-115/text-130on the UI root and Theme.uss redefines--type-badge…--type-h2under it, so every USS-sized label grows with no rebuild; one-line overflow becomes the shared marquee (§26.6). H1, Display and Title stay (already headlines), and so do the battle's fixed-geometry labels set in code (board floats, tile badges). Counters sized to their number (the difficulty level, the Merchant's quantity) take a minimum width instead of a fixed one. Automation:setting key=textsize value=130. Amended 2026-11-23 (GG-T770): Text size now scales the one GUI size (GuiType, §26.6): every label grows together, headlines and code-set labels included; thetext-115/text-130classes and the per-size--type-*variables are gone (the root takes onetype-base-N). - Minimum text size (GG-T551, added 2026-11-21): the stage scales uniformly to the screen, so on a small low-dpi phone (480×800 at 160 dpi, scale 0.32) a 30-px caption drew at ~9 screen px.
TypeFloor(Tokens.cs) computes, on every stage fit (GameApp.FitStage), the smallest design size that lands at 12 screen px or 9 dp (whichever is larger;Screen.dpi, 160 when unknown); when the badge size would fall under it, the UI root takestype-floor-32/36/40/44/48and Theme.uss raises--type-badge…--type-bodyto at least that many design px (H3 and up never change). Theme.uss pairs each floor withtext-115/text-130, every size the larger of the two, so Text size keeps working on top of the floor. Mainstream phones and tablets (1080×2400, 1170×2532, iPad 1620×2160) clear the floor and look unchanged. Code-set battle labels (board floats, tile badges, mana counter) are fixed geometry and stay as they are. Automation:stageboundsreportstypeFlooranddpi. Unity's "Development Build" corner mark seen in emulator shots is dev-only; release builds don't draw it. Amended 2026-11-23 (GG-T770): thetype-floor-Nclasses are gone;GuiTypefolds the floor into the one GUI size, which is never below it.TypeFloorkeepsNeedFor,ShrinkFloor(TextFit's lower bound, at least 30 since GG-T1878) andCurrent(the floor in design px, reported bystagebounds). - Contrast (GG-T495): text tokens are checked against the lightest stop of the Classic blue window (#2C46AA) for 4.5:1:
--color-dim176 → 200 grey (3.8 → 4.9:1),--color-bad255/97/87 → 255/170/162 (2.8 → 4.5:1), rarities junk 140 → 192 grey, rare 100/170/255 → 150/200/255, epic 200/120/255 → 220/178/255 (all ≥ 4.5:1); Palette mirrors them. White text 7.5:1, gold 6.0, good 5.8, warn 5.2, sub 5.3. A locked menu row greys its name, value and icon (45 %) rather than the whole row, so its hint ("Joins after The Tithe Moors III") reads at full dim contrast (was 1.8:1 at 42 % opacity).Element hues and team colours as text on a window are a follow-up (they live in vfxstyle.json).Amended 2026-11-21 (GG-T525): colour that is an art colour first (element hues from vfxstyle.json: dark 1.9:1, fire 3.0:1; team colours: enemy 2.1:1, hero 3.5:1) is lifted for text byPalette.OnWindow: the same hue mixed toward white in 8 % steps just until it clears 4.5:1 against #2C46AA (a colour that already does is unchanged), with text variantsPalette.ElementText(type),HeroText,EnemyText. It colours every combat-log line (AddLogLine), every coloured line of an InspectCard (InspectCard.Line: the unit's side, an ability's "N Fire damage"). The board keeps the art colours (keylines, bursts, damage floats, which sit on art with an outline, not on a window). - Touch targets: slots (≥ 211×196, growing with the stage, GG-T252) and tiles 180² design px clear 44 dp at every supported scale; a dragged hero lifts above the finger. Every menu button and row is at least 132×132 design px (
--size-target, ≈ 44 dp at 1170 px ≈ 390 dp wide), checked by the layout audit's POL-C2 (harness.py a11yprints it per screen).The battle's Party · Lore · Log tabs (60 px tall) are the known exception, a follow-up.Amended 2026-11-21 (GG-T524): the battle's info tabs are 132-px hit areas around their 60-px drawn faces (§9), so every battle target clears it too. - Tooltips (GG-T252): hold-to-read InspectCards on every icon, unit, slot, status, timeline icon and item/talent row (§9); taught by the tutorial's "Hold to read" lesson, and once by a tip for anyone who skipped it (
hint:inspectflag). - Readability: one GUI text size (40 design px on the reference phone, GG-T770), white on deep-blue windows, HP as gauge + numbers on the panel. Text wrapping (GG-T305, Settings → Text wrapping: Word wrap / Hyphenate) and the shared one-line marquee (Reduce Motion: an ellipsis) — §26.6.
- Audio: every important event also has text. 🟡 Music/SFX volume cycles in Settings;
MuteMusic/MuteSfxexist in the save and are honored byAudio.Applybut have no toggle. - Menu themes (added 2026-10-11, owner: "the gradient on all the menus is generated... make multiple Themes... updated in Settings and remembers it"):
Art.MenuThemeis two chosen base colors (ColorA/ColorB); the accent used for every window's border (Ui.Window) is never hand-picked — it's the complement of the two base colors' circular-mean hue, pushed toward full saturation/brightness since it frames thin borders, not large fills (Art.MenuTheme's constructor). Presets (Art.Themes): Classic (the original deep blue, now just the default preset), Cyberpunk (magenta → neon cyan, gold-green accent), Ember (mindattic.com's coral → teal), Verdant (MindAttic.Launcher's green → near-black).SettingsSave.MenuThemepersists the pick; "Menu theme" in Settings cycles it (Art.ApplyTheme, called fromGameApp.ApplySettingson every load and every Settings change) and repaints the sharedArt.Window/Art.WindowDarkgradient textures in place — every already-open window updates with no rebuild, since they all hold the sameTexture2Dreference. - Theme USS classes (GG-T185, epic W): a preset may also name a root USS class (
Art.MenuTheme.UssClass).Ui.ApplyMenuTheme(called fromGameApp.ApplySettingsright afterArt.ApplyTheme) puts the active theme's class on the UI root and removes every other theme's, and re-tints every open.window's frame; Theme.uss scopes each such theme's frame, tab, button, header and toast rules under that class at the end of the file, so the whole look switches live with no rebuild. A theme with a class owns its window frame in USS (Ui.Windowsets no inline accent border for it). Adding a theme is one row inArt.Themesplus one.theme-<name>block in Theme.uss. Slate (theme-slate) is modeled on Chrono Trigger's default window style: a gray-blue slate gradient body, a light bevelled frame (light top/left edge, darker bottom/right), white text, slate tabs and buttons with the same bevel; primary (gold) and danger (red) buttons keep their colors. The harness sets it withcall setting key=menutheme value=Slate. Dark (theme-dark, GG-T186) is the DocFX modern dark docs / mindattic.com look on MindAttic.Components'web/themes/Dark/dark.csstokens: flat#13161bwindows (both gradient stops the same) on a#0d0f12stage,#2a2f3ahairline frames on windows, tabs, header, buttons and toasts, one#6ba3e8accent (selected rows, active tab's top edge, primary buttons with dark text),#e8eaf0/#9aa0b0text and no text shadows; gold, good/bad and rarity colors stay semantic.python tools/harness.py sweep RUN Darksweeps every menu screen in it. - Fonts (added 2026-10-11, owner: "allow a selection of different Fonts to change look and feel"):
Fonts.Presets(Assets/Convergence/App/Services/Fonts.cs) — Classic (Outfit, the original/default), Lato, Roboto, Play, Montserrat, Inter. Calibri and Aptos were named but are Microsoft-proprietary (not freely bundleable); Inter fills that "clean modern UI sans" role instead. "Attic" isn't a real distributable family; Montserrat fills that slot (its Google Fonts build is a variable font whose default instance renders a bit lighter than Regular — a known, purely cosmetic quirk, not a bug). Only the body font is selectable; the Display font (Cinzel, used on ~7 headline/name labels) stays fixed across every preset.SettingsSave.FontNamepersists the pick; "Font" in Settings cycles it the same way "Menu theme" does (Fonts.ApplyFont, called fromGameApp.ApplySettings). Unlike themes, no texture-repaint trick is needed:unityFontDefinitionis an inherited UI Toolkit style property, so re-applying the body font to the UI root (Fonts.UseBody) cascades to every element that doesn't explicitly override it, instantly, with no screen rebuild. Roboto/Montserrat/Inter are Google's current variable-font TTFs (no static cut is published any more); Unity's dynamic SDF pipeline (FontAsset.CreateFontAsset) renders their default instance correctly. - Status: colorblind 🟡 (GG-T525: team pair done; not checked through a CVD simulator) · reduce motion 🟡 · text size ✅ · contrast 🟡 (GG-T525: tokens, element and team text done; other art colours used as text, e.g. role badges, not audited) · tap targets ✅ (GG-T524) · volume 🟡 · menu themes 🟡 · fonts 🟡 · safe area 🟡 (faked on desktop, GG-T483; needs a real notched phone) · tooltips ✅ (GG-T252).
32. Document Discipline
- Every gameplay-affecting change updates this bible (add, amend or verify); complex mechanics are written here first, then coded. Numbers recorded here follow
BattleConfig/ content changes. - Removed mechanics are deleted (or marked RETIRED with a pointer, as GG-LAW-3/4). Git is the history.
- A deviation from the GridGame2026 bible gets an inline Amended YYYY-MM-DD: note and a bullet in
AMENDMENTS.md; status changes go toUSER_STORIES.mdwith evidence. - What the game IS lives here; why we deviated lives in AMENDMENTS; what is pending lives in USER_STORIES + §29; what a session debugged lives only in that conversation.
- Readers: the owner (sanity check), future sessions, unattended agents (the spec), new contributors. A section one of them can't read without context is a bug.
33. The wiki: one entry per thing (GG-T572; schema GG-T626)
Owner, 2026-11-21: design every system, class, region, item and lore entry so it can be published to a dedicated wiki, from a single source, with stable ids, one entry per thing and generated pages. The wiki is built, never written: every page comes from the content JSON and the applied Prose texts (§27.2), so a balance change or a newly approved text changes its page on the next build and nothing has to be copied by hand.
- The schema is
tools/wiki_schema.json(gridgame-wiki-schema/1);tools/wiki_schema.pybuilds and validates entries from it, and GG-T627's page generator imports that module (build_all(),validate_all()). Runningpython tools/wiki_schema.pybuilds every entry and reports problems (-vlists warnings,--id <id>prints one). - One entry (
gridgame-wiki/1):id,kind,gameId,title,summary,body,infobox,links,art,texts,source{file, BIBLE section},version.- id is the Prose entity id wherever one exists (
class-<id>,item-<id>,place-<theme or stage>,concept-<glossaryId>,faction-<id>,character-<npc>), else<kind>-<slug>(ability-,armorset-,skilltree-,quest-,rule-,currency-,system-,lore-); the slug is the game id lowercased with_→-(prose_keys.slug). Published ids never change, like the game's own ids. - title is the game-owned name (
Name, a glossaryTerm, a region rule's Prosename). - summary and body hold no words, only sources: a Prose key and payload field (
class:<id>short/long,item:<id>short,glossary:<id>definition,quest:<id>brief/complete, …), or a game field for the mechanical text the game itself owns (an ability'sDescription), or a Prose canon section (lore). The existing keys are reused (§27.2, PROSE.md); the wiki adds no parallel text. - infobox copies record fields (role, stats, cost, rarity, stages, …); a field that names another thing becomes a link to that thing's entry id (a class's abilities, a region's stages and milestone reward, an item's on-use ability, a glossary term's
LinkKind/LinkIdwhen it is an ability). - art is the entry's picture by the asset rule (§12,
AssetNames): Portraits, ItemIcons, AbilityIcons or a region's first backdrop,.png. - version hashes the record and its texts' hashes, so the generator rewrites only pages that changed.
- id is the Prose entity id wherever one exists (
- Kinds and where they come from:
classandenemy(classes.json byTeam),ability,item,armorset,skilltree,region(campaign.json themes),stage(non-test stages),rule(regionrules.json),quest,faction,npc(the Camp NPCs,prose_keys.NPCS),glossary,lore(the canon sections staged inData/Prose/canon), and two small registries in the schema itself for things with no content record:currency(Gold, Mana Shard, Mana Dust; §24.9.1) andsystem(a mechanic: its glossary text and its BIBLE section, e.g. pincer §1.2, the timeline §2, Clutch! §13.4.1). A new kind is a new block in the schema, not new code. - Validation: every required field; the id matches its kind's template and is unique; the summary resolves to words; every text key exists in Content/Text; every link resolves to an entry; the art is on disk and a
.png. An unresolved summary or text key is an error (the page would be empty); a missing long text, art or a.jpgbackdrop is a warning. - State at GG-T626 (2026-11-22): 2,123 entries over 16 kinds; 2 errors (Gold has no glossary text yet,
glossary:gold) and 12 warnings (6 regions' backdrops are still.jpg, 5 Camp NPCs have no portrait file, one body text missing). GG-T627 renders pages; GG-T628 fills the gaps and the system/currency registries.
— end of document —