Skip to content

Jj/grbigblueroute 2#2532

Draft
jurrejelle wants to merge 11 commits into
doldecomp:masterfrom
jurrejelle:jj/grbigblueroute_2
Draft

Jj/grbigblueroute 2#2532
jurrejelle wants to merge 11 commits into
doldecomp:masterfrom
jurrejelle:jj/grbigblueroute_2

Conversation

@jurrejelle
Copy link
Copy Markdown
Collaborator

No description provided.

jurrejelle and others added 9 commits May 24, 2026 15:29
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pool __FILE__ into the file string literal so asserts reference the
shared grBb_Route_803E61D4 pool, fixing the data-offset mismatch across
the unit's HSD_ASSERT calls.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Use the bigblueroute2 struct view so the jobj caches and translation
vectors use displacement addressing instead of cached pointers.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Referencing 30/4000 as extern symbols left them out of the unit's
.sdata2 literal pool, shifting every later constant. Emitting them as
literals aligns the pool with the target and improves 8020DD64.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Fix the route-entry angle randomization to use 5.2359877/2.6179938
instead of 2.0/1.0, which also corrects the unit's sdata2 pool order.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Implement the route state-machine update from scratch (was a stub):
4-state per-entry animation, spline positioning, jobj transforms and
proximity sound/camera triggers. Include trigf.h so atan2f returns f32.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Express the early-out as !(x108 < limit) so the float compare emits bge
instead of cror+beq, matching the target.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Reload the RouteEntry base per field access (via macro) to match the
target's addressing instead of caching the pointer in a saved register.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@decomp-dev
Copy link
Copy Markdown

decomp-dev Bot commented May 24, 2026

Report for GALE01 (66afaf4 - 58de0c5)

📈 Matched code: 68.46% (+0.04%, +1524 bytes)

✅ 2 new matches
Unit Item Bytes Before After
main/melee/gr/grbigblueroute grBigBlueRoute_8020BC68 +66 90.76% 100.00%
main/melee/gr/grbigblueroute grBigBlueRoute_8020C530 +11 98.72% 100.00%
📈 7 improvements in unmatched items
Unit Item Bytes Before After
main/melee/gr/grbigblueroute grBigBlueRoute_8020CD20 +3091 0.00% 89.55%
main/melee/gr/grbigblueroute .sdata2 +36 51.61% 88.89%
main/melee/gr/grbigblueroute grBigBlueRoute_8020BF38 +16 95.33% 98.29%
main/melee/gr/grbigblueroute .rodata +13 0.00% 85.71%
main/melee/gr/grbigblueroute .data +7 95.57% 96.23%
main/melee/gr/grbigblueroute grBigBlueRoute_8020C85C +4 91.77% 92.12%
main/melee/gr/grbigblueroute grBigBlueRoute_8020DAB4 0 97.71% 97.73%

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