Skip to content

Section Explorer 1.2.0: say what the game does with each byte - #2

Merged
jeany55 merged 1 commit into
mainfrom
follow-the-game
Nov 3, 2026
Merged

jeany55 merged 1 commit into
mainfrom
follow-the-game

Conversation

@jeany55

@jeany55 jeany55 commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

The inspector's explanations followed the StarEdit wiki. This brings them in line with the editor's CHK reference, which was checked against StarCraft 1.16.1 and Remastered.

Wrong before

  • Trigger flag 0x02 was labelled Ignore game end. It makes the player count as having won each time the actions run, and defeats everyone else.
  • The trailing-bytes note said the game ignores what it does not read. For most fixed sections, and for UNIT/THG2/TRIG, the wrong length refuses the map. The note now follows each section's length rule.
  • VCOD was described as a hash of the map's sections. It covers only OWNR and SIDE.
  • UNIT link flags (0x200/0x400) are ignored by the game. A link holds only when both records name each other.
  • THG2 0x4000 ("Flipped") has no effect in play.
  • COLR bytes are colour slots 0–11, not a choice of 22 colours, and only VER 205/206 reads them.
  • CRGB Palette entries showed #rrggbb. The third byte is a colour number, and any mode above 3 is Palette.
  • MASK: a Use Map Settings game without it does not start (it said "fully fogged").
  • MRGN: 255 locations from VER 63 up, not only in Brood War.
  • STR: not latin-1. Offset previews and string blobs now decode in the map's encoding (api.settings.version().textEncoding).
  • Create Unit / Create Unit with Properties: a count of 0 makes one (it showed "all"). Create Unit's bytes 20–23 are shown as a properties slot.
  • Set Countdown Timer's time is in seconds (it showed ms).

Smaller

  • VER 64 in the list.
  • MTXM ignores bit 15 when naming a tile's group.
  • Use-default bytes read "0 / anything else".
  • Build times shown at Normal and at Fastest (it said Fastest for /15).
  • UNIT owner/0x40 and UPRP owner marked as unused; UPGR/PTEC/UNIS/UPGS/TECS say a Brood War file's copy is never read; the x tables say they are read on top in 59/63/64.
  • README and header comment cite the reference.

Korean catalogue updated. 19 tests pass, including new ones for the trigger flags, Create Unit, countdown seconds, CRGB/COLR, VER 64, MTXM bit 15, the trailing-bytes notes and EUC-KR decoding. dist/ rebuilt. Not tried in a browser.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VEdp4WPCqYdEuP9CwXZY1b

The layouts' explanations followed the StarEdit wiki. They now follow the
editor's CHK reference, which was checked against StarCraft 1.16.1 and
Remastered.

- Trigger flags: 0x02 makes the player count as having won and defeats
  everyone else (it was "Ignore game end"); the other labels match the game.
- Trailing bytes: say what the game does with a length per section (refuses
  the map, plays without a briefing, only editors read it, ...) instead of
  "the game ignores what it does not read".
- VCOD hashes only OWNR and SIDE; a different table can still pass.
- UNIT link flags and the owner/0x40 bits are never read; links need both
  records to name each other. Resources are 16-bit, hangar the low byte.
- THG2 0x4000 has no effect in play.
- COLR bytes are colour slots 0-11, read only in VER 205/206.
- CRGB Palette entries show the third byte as a colour number; modes above 3
  are Palette.
- MASK is required for Use Map Settings; MRGN is 255 from VER 63 up.
- STR: no fixed encoding; string previews decode in the map's encoding.
- Create Unit: a count of 0 makes one, and bytes 20-23 are a properties slot.
- Set Countdown Timer's time is seconds.
- VER 64, MTXM bit 15, use-default bytes, build times at Normal and Fastest.

Korean catalogue updated to match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VEdp4WPCqYdEuP9CwXZY1b
@jeany55
jeany55 merged commit 8cd9385 into main Nov 3, 2026
1 check passed
@jeany55
jeany55 deleted the follow-the-game branch November 3, 2026 06:51
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