Reuse batch 1: prior_port.py, chapter 1 inventory, 12 field routines (fixes #66) #67

Merged
Gatchan merged 4 commits from reuse-batch1 into main 2026-11-06 09:32:36 +00:00
Owner

Reuse batch 1 (issue #66): tools/prior_port.py (ff6rewrite lookup by routine), chapter 1 inventory (others/ch1-inventory.tsv), 12 field routines adapted from validated ff6rewrite functions.

Validation: corpus portcheck 24/24 PASS US+JP, shadow chapter 1 routes US+JP 0 mismatch 0 fallback (narshe_to_world_map with the batch's ports only, full shadow exceeds 28 min), groundtruth 20/24 same (2 explained), portstyle 0, debug ctest -LE slow 27/27, short fuzz 0 mismatch. Details in docs/ports.md.

Fixes #66 (partly: 12 routines instead of about 30; skip reasons in docs/ports.md).

🤖 Generated with Claude Code

🤖 Generated with Claude Code

Reuse batch 1 (issue #66): `tools/prior_port.py` (ff6rewrite lookup by routine), chapter 1 inventory (others/ch1-inventory.tsv), 12 field routines adapted from validated ff6rewrite functions. Validation: corpus portcheck 24/24 PASS US+JP, shadow chapter 1 routes US+JP 0 mismatch 0 fallback (narshe_to_world_map with the batch's ports only, full shadow exceeds 28 min), groundtruth 20/24 same (2 explained), portstyle 0, debug ctest -LE slow 27/27, short fuzz 0 mismatch. Details in docs/ports.md. Fixes #66 (partly: 12 routines instead of about 30; skip reasons in docs/ports.md). 🤖 Generated with [Claude Code](https://claude.com/claude-code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Index of the PORT markers of others/refs/ff6rewrite (3 292), lookup by routine name
(optionally by module), status line and source. Refs #66.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
PushPartyPal, PopPartyPal, PushPartyMap, PopPartyMap, PushCharFlags, PopCharFlags,
UpdatePartyFlags, InitPlayerPos (new core/game/field/field_party.c), StartObjAnim,
StopObjAnim, InitCharSpritePriority (field_objects.c), UpdatePlayerSpritePriorityAfter
(field_sprites.c). New RAM map variable party_top_tile_props ($B6).

Validation: ff6-portcheck.sh PASS (24 port-checks US+JP, 0 mismatch, 0 fallback), groundtruth 20/24
same (PushCharFlags reads its own scratch, UpdatePartyFlags reads the bits it keeps: explained),
portstyle 0 findings, debug ctest -LE slow 27/27, short fuzz 0 mismatch. Refs #66.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Shadow chapter 1 routes US+JP, 0 mismatch 0 fallback (narshe_to_world_map with the batch's ports only). Refs #66.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Gatchan/FF6Portage!67
No description provided.