Add collection and mission editing with automatic menu language
This commit is contained in:
1 parent
7d6381f4a4
commit
50db173a69
11 files changed
+233
-12
No files matched your search
@@ -0,0 +1,45 @@
|
||||
# Jade Forest collection and missions
|
||||
|
||||
The web editor supports the audited Jade Forest code layout. Other editions and
|
||||
modified layouts are rejected. Do not extrapolate these offsets across editions.
|
||||
|
||||
The save pages are 0xEFE000 and 0xEFF000. Bytes 0..3 contain CRC-16/ARC and its
|
||||
inverse. The game reads the payload into RAM at 0x18000BA0, excluding those four
|
||||
bytes. Consequently every RAM payload offset below has a +4 save-page offset.
|
||||
|
||||
| State | Payload offset | Save offset | Behavior |
|
||||
| --- | --- | --- | --- |
|
||||
| Registered characters | 0x84 + field * 4 | 0x88 + field * 4 | One bit per character |
|
||||
| Viewed book entries | 0x94 + field * 4 | 0x98 + field * 4 | Preserved |
|
||||
| Completed missions | 0xE8 | 0xEC | 22 valid bits |
|
||||
| Viewed mission notices | 0xEC | 0xF0 | Preserved |
|
||||
| Claimed mission rewards | 0xF0 | 0xF4 | Preserved |
|
||||
|
||||
The book's three pointer/count records are at flash 0x9A998. Each field has 22
|
||||
IDs. This is 66 book entries, not all 90 character graphics in the ROM. The names
|
||||
are taken from the loaded ROM. Mission names use text IDs 166 through 187.
|
||||
|
||||
Evidence from the user's privately held ROM:
|
||||
|
||||
- Book registration getter: 0x100046D0. It looks up the ID in the three tables
|
||||
then reads the corresponding bit. 0x1000462C tests whether the entry is new.
|
||||
- 0x10004774 marks a book entry viewed. It does not register the character.
|
||||
- Mission completion getter/setter: 0x10021B08 / 0x10021BE8.
|
||||
- Reward claimed getter/setter: 0x10021B48 / 0x10021C48. The latter is called
|
||||
by the reward flow at 0x10044336.
|
||||
- The completion evaluator at 0x100216E8 skips missions already completed.
|
||||
- Language: bits 9..12 of payload u16 at 0x76. Runtime auto-language detection
|
||||
was deferred; the website language selects the Korean or English menu.
|
||||
|
||||
The profile checks the CRC of both getter/setter code regions before offering
|
||||
edits. It validates the live book table against the ROM's character catalog.
|
||||
Applying progress ORs only requested valid registration/completion bits and
|
||||
recalculates both page checksums. It does not grant reward items or change
|
||||
mission activity counters. Rewards remain claimable on the device unless
|
||||
already claimed. Existing reward records must never be cleared to grant twice.
|
||||
|
||||
Validation: all 66 registration bits and all 22 mission completion setters were
|
||||
executed in isolation using the original Thumb instructions in Unicorn. Node
|
||||
tests cover selected/all edits, untouched bytes, reward preservation, CRC,
|
||||
save round trips and merging into a newer device save. Browser tests cover the
|
||||
controls and coexistence with pet edits. No physical device was read or written.
|
||||
Reference in new issue
Block a user