Skip to content

1.2.1: read a mod's extended tileset's tile groups - #3

Merged
jeany55 merged 1 commit into
mainfrom
c7-mods
Nov 9, 2026
Merged

jeany55 merged 1 commit into
mainfrom
c7-mods

Conversation

@jeany55

@jeany55 jeany55 commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

scm-sim's C7 audit, the Section Explorer row: the TILE view masked 0x7fff, so groups of 2,048 and more showed wrongly on an extended tileset. The view now reads the 12-bit group when the tileset has more than 2,048 groups (api.tileset.raw()'s count) and today's 11 bits otherwise; the bit-15 note says which. Tests: the game's reading unchanged (also at exactly 2,048 groups); 0x8023 on 4,094 groups is group 2050. Headless on Hills of Tyche: Cosmonarchy's 4,094 groups give "group 2768", the game's 1,665 give "group 720" as before. 19 tests, type-check and build clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VEdp4XDzVHzPqjxSfRiuYR

A tile number's group was read from bits 4-14 everywhere, so on a tileset of
more than 2,048 groups (Cosmonarchy's Badlands has 4,094) every tile with bit
15 set showed the wrong group, with a note that bit 15 has no effect. Such a
tileset uses all twelve bits 4-15 for the group, as the editor draws it.

Ctx.tileGroups is the open map's tileset's group count (api.tileset.raw());
TILE.describe reads twelve bits past 2,048 and says bit 15 is part of the
group where it is set. The game's tilesets read as before. The MTXM
description says the same.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VEdp4XDzVHzPqjxSfRiuYR
@jeany55
jeany55 merged commit 6747582 into main Nov 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant