ReviewOS

stacks/the-settlers-iii-remake

Render original player-colored territory border posts

#225
Closed chris opened this 6 days ago ·
6 days ago

Territory posts are currently hand-drawn 3x7 rectangles baked into terrain chunks. The pinned reference instead uses the original DAT 13 / Gold sequence 65 / frame 0, with a separate player-color flag layer. Its border draw is behind map objects, uses signed original anchors, excludes blocked terrain and out-of-map neighbors, and appears only with current sight.

The original demo contains a 9x12 body and matching flag layer, both anchored at (-3,-8). The flag resolves to physical torso sequence 2; the body retains its original brown pixels. The production atlas currently contains neither layer. Three owning application regressions fail for missing scene decisions, sight behavior and independent original pixels.

Reference: paulwedeck/settlers-remake@6ad8c4230a4aa4cd21840f8cb59a38344e41c3e0, MapObjectDrawer.drawPlayerBorderObject / nextFrame, MapContent.drawTile, BordersThread.calculateForPosition, and the referenced DAT reader/layer mapping. Related #40 and #13.

Acceptance:

  • Import the original body and flag with their selectors, signed anchors and provenance. Retain independent decoder comparisons.
  • Render player-colored flags over their original bodies at the reference background depth. Reuse maintained player-color composition and bounded cache ownership.
  • Use current sight and six-neighbor land boundaries. Exclude blocked terrain, neutral tiles and out-of-map neighbors. Preserve player identities and simulation checksums.
  • Retain production-renderer browser pixel regressions at real 1x/2x scale, palette variation, fog loss/renewal, save/restore, cache reuse and disposal.
  • Pass lint, types, original asset verification, unit tests, full production browser gate and qualify pushed CI diagnostics before closing.

This is reference-remake presentation evidence. It does not establish Gold territory radii, pioneer timing or ownership simulation rules. Original-media rasters remain private/local.

6 days ago

The original body and player-color flag are now imported and rendered at their signed anchors and reference background depth. Posts use current sight and six-neighbor land boundaries, skipping blocked ground, neutral tiles and map edges. Physical torso selectors are retained in the importer metadata too.

Local acceptance passed 430 unit tests, lint, types, asset verification, the production build and all 18 browser suites: 685 steps with no recorded browser errors. The new renderer checks compare 5,236 independent original pixels at 1x and 20,944 at 2x across 32 palette slots, including raised terrain, tree occlusion, fog, restore and cache disposal.

The implementation receipt retains the source identities and checks. CI is running; this stays open until the original diagnostics artifact is qualified. Gold territory radii, pioneer timing and temporal fog dimming remain separate work.

6 days ago

Territory boundaries now use the original post body and player-colored flag, with signed anchors, land-only boundaries, current sight and background depth. The terrain-chunk rectangles are removed.

Verification receipt and successful CI: 430 unit tests, 18 browser suites and 685 steps, with no browser console, request or collection errors. Independent source comparisons check 5,236 pixels at 1x and 20,944 at 2x, all 32 palette slots, tree occlusion, elevation, fog loss and renewal, save/restore, cache reuse and disposal. The original diagnostics archive was downloaded and verified against its published digest and byte count; every ZIP entry passed its CRC check.

This establishes the pinned reference-remake presentation and original demo pixels. Gold territory radii, pioneer timing and ownership rules remain tracked in #40. Original-media rasters remain local.

Sign in to comment on this issue.