Token size #4

Closed
opened 2026-11-10 16:48:30 +01:00 by SirStone · 1 comment
Owner

Part of #2

Question

Token size: one scene-wide token_radius (as M2 built it, §5.5) or a per-entity radius (§8 lists one)?

  • Keeping both creates two sources of truth for size.
  • Suggested default: scene-wide token_radius; drop the entity radius.
Part of #2 ## Question Token size: one scene-wide token_radius (as M2 built it, §5.5) or a per-entity radius (§8 lists one)? - Keeping both creates two sources of truth for size. - Suggested default: scene-wide token_radius; drop the entity radius.
SirStone added the wayfinder:grilling label 2026-11-10 16:48:30 +01:00
SirStone added a new dependency 2026-11-10 16:49:03 +01:00
SirStone self-assigned this 2026-11-10 17:15:32 +01:00
Author
Owner

Decision (2026-11-10, owner): token size

Plain summary:

  • Each token can have its own size (radius, px). If not set, it uses the scene default. One rule: own size if set, else scene default.
  • Scene default renamed token_radius_default (same pattern as vision radius). Changing it resizes every token that uses the default.
  • Sizes are px. S/M/L and square presets are only UI shortcuts in the client.
  • Size must be above 0. No upper limit.
  • Only the GM resizes. Everyone who sees a token sees its size and its statuses.
  • GM grows a token: the server pushes it out of any wall it overlaps, by the smallest move that clears all walls, staying on the map and not entering another wall. Shrinking never pushes.
  • No valid spot to push to: token stays (may overlap walls) and gets squeezed.
  • Statuses replace the single blocked flag. Two lock states, same meaning for the player (cannot move it; GM can):
    • stuck = held in place (wall through it, ropes, magic grasp).
    • squeezed = pressed, no room (walls around it, closing hand).
  • A token can hold several (status, source) entries; locked while any exists. Sources in M3: walls (automatic) and GM (set or cleared by hand).
  • Automatic: wall added/changed over a token, or GM places/moves a token into a wall -> stuck. Grow push fails or door-close push fails -> squeezed.
  • Clearing: walls entries clear by themselves once no wall overlaps. GM entries only the GM clears. GM can clear any single entry.
  • Wire names (resize, set status, clear entry): deferred to #11.

Rejected:

  • Scene-wide size only: no per-token size.
  • Grid-square units: px is the map unit; squares are UI only.
  • Refuse resize when it would hit a wall, or let the token grow into the wall: refused, the push is used instead.
  • One combined status: kept two, so the cause is visible.
  • One status, newest wins: a token can hold several entries from several sources.
  • No hand-set status in M3: GM can set stuck/squeezed by hand.

DESIGN.md pointers (commit 90576381df):

  • 3.1 notes: hello carries scene default radius; radius + statuses go to anyone who sees the token.
  • 4.4 schema: scene token_radius_default; entity radius nullable; entity_status table (indicative).
  • 5.4: door-close failure and wall-on-token wording updated.
  • 5.5: status model (stuck/squeezed, entries, Set/Keep/Clear by source); door push failure -> squeezed.
  • 5.6: size rule, scene default change, shrink, grow push, grow fail.
  • 6.1: move/door/wall rows, hello, token message (radius + statuses).
  • 8: scene and entity fields.
  • 12 H2, 14 Q14: names superseded by #4.
  • GLOSSARY.md (new): Token size, Stuck, Squeezed.
**Decision (2026-11-10, owner): token size** Plain summary: - Each token can have its own size (radius, px). If not set, it uses the scene default. One rule: own size if set, else scene default. - Scene default renamed `token_radius_default` (same pattern as vision radius). Changing it resizes every token that uses the default. - Sizes are px. S/M/L and square presets are only UI shortcuts in the client. - Size must be above 0. No upper limit. - Only the GM resizes. Everyone who sees a token sees its size and its statuses. - GM grows a token: the server pushes it out of any wall it overlaps, by the smallest move that clears all walls, staying on the map and not entering another wall. Shrinking never pushes. - No valid spot to push to: token stays (may overlap walls) and gets `squeezed`. - Statuses replace the single `blocked` flag. Two lock states, same meaning for the player (cannot move it; GM can): - `stuck` = held in place (wall through it, ropes, magic grasp). - `squeezed` = pressed, no room (walls around it, closing hand). - A token can hold several (status, source) entries; locked while any exists. Sources in M3: `walls` (automatic) and `GM` (set or cleared by hand). - Automatic: wall added/changed over a token, or GM places/moves a token into a wall -> `stuck`. Grow push fails or door-close push fails -> `squeezed`. - Clearing: `walls` entries clear by themselves once no wall overlaps. `GM` entries only the GM clears. GM can clear any single entry. - Wire names (resize, set status, clear entry): deferred to #11. Rejected: - Scene-wide size only: no per-token size. - Grid-square units: px is the map unit; squares are UI only. - Refuse resize when it would hit a wall, or let the token grow into the wall: refused, the push is used instead. - One combined status: kept two, so the cause is visible. - One status, newest wins: a token can hold several entries from several sources. - No hand-set status in M3: GM can set `stuck`/`squeezed` by hand. DESIGN.md pointers (commit 90576381df2e1c0724aa386c96d21747e838532b): - 3.1 notes: hello carries scene default radius; radius + statuses go to anyone who sees the token. - 4.4 schema: scene `token_radius_default`; entity `radius` nullable; `entity_status` table (indicative). - 5.4: door-close failure and wall-on-token wording updated. - 5.5: status model (`stuck`/`squeezed`, entries, Set/Keep/Clear by source); door push failure -> `squeezed`. - 5.6: size rule, scene default change, shrink, grow push, grow fail. - 6.1: move/door/wall rows, `hello`, `token` message (radius + statuses). - 8: scene and entity fields. - 12 H2, 14 Q14: names superseded by #4. - GLOSSARY.md (new): Token size, Stuck, Squeezed.
Sign in to join this conversation.