Harrogath's automap picture is laid out 2 x 2 instead of 3 x 2 (ExTnMap has 6 cels): the map is cut wrong and shifted
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
Research direction
The bad layout is the town entry for 0x6d in components/rules/automap_miniature.cpp. Compare it with the Act4Map entry and read how FUN_004591a0 uses those first two values as columns and rows. Check the 0x6d branch against the 6-cel ExTnMap.dc6 grid. Done when the Harrogath automap picture lays out as 3 x 2 and the waypoint matches its position on the map.
Written by the indexing model from the issue text.
Description
Version: v0.12.3 (macOS arm64). In main at c5c3edda83 (2026-11-22), components/rules/automap_miniature.cpp still has town = { 2, 2, -0x14, -0x9b, 0xb4, 0xaa }; for 0x6d.
What happens
Harrogath's automap (Tab) picture is cut into the wrong pieces and shifted. The waypoint drawn on it sits by Larzuk's smithy, not where the waypoint is.
Cause
The town miniature for Harrogath is ExTnMap.dc6, which has 6 cels of 180 x 170. That is a 3 x 2 grid at step 0xb4 x 0xaa. In FUN_004591a0, the 0x6d branch (0x459209) stores ecx = 3 both into the layer's cel file ([eax+4]) and into the column count [ebp+8]; rows are [ebp-0xc] = 2. The Lut Gholein branch uses the same slots for its 5 x 4 grid.
d2d lays Harrogath out 2 x 2, so:
- the picture is shifted by one column;
- the second row starts at cel 2 instead of cel 3.
As a control, Pandemonium's Act4Map has 4 cels of 136 x 90, which is 2 x 2, and that is right.
Fix
- town = { 2, 2, -0x14, -0x9b, 0xb4, 0xaa };
+ town = { 3, 2, -0x14, -0x9b, 0xb4, 0xaa };
Checked:
- The 6 cels laid 3 x 2 make one coherent plan of Harrogath; 2 x 2 makes a jumble.
- In game, the plan's waypoint is now by a player standing on the waypoint.
- Map cells already saved in a
.ma0from the bad layout did not show: a headless map shot with an old.ma0differs from one without it only in animation phase. A control pair of runs without it gave 0 differing pixels.
- Dominant language
- C++
- Stars
- 17
- Forks
- 6
- Avg merge
- 6h 14m
- Merged PRs (30d)
- 570
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from psi29a/d2decomped
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
psi29a/d2decomped#690 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 Half a day Newbie friendliness 45/100
psi29a/d2decomped#689 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 18/100
psi29a/d2decomped#687 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
psi29a/d2decomped#686 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 1-2 days Newbie friendliness 48/100
psi29a/d2decomped#685 ·
Maintainers usually reply within 1 day
All issues in psi29a/d2decomped
Similar issues
-
kind/enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
CachyOS/packageinstaller#144 ·
Maintainers usually reply within 1 day
-
(S1 - Need confirmation)
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
CleverRaven/Cataclysm-DDA#89715 ·
Maintainers usually reply within 1 day
-
prio:low type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
NatronGitHub/Natron#1638 ·
Maintainers usually reply within 1 day
-
Fix FXAA luma blue weight typoPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 1/5 Under an hour Newbie friendliness 72/100
secondlife/viewer#6761 ·
Maintainers usually reply within 1 day