Repository navigation
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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