13 Commits
Author SHA1 Message Date
Thomas MartinandClaude Opus 5.5 b34dd51499 Win battles by protecting Levant's side; notes: all four Orbs, chapter 14
The battle keeps several copies of its unit table in different
orders, so neither a slot nor +0x68C tells the sides apart. Levant's
beasts read 3 at +0x40C, and the record after them is Levant himself.
--win-battles now blocks damage to both and lets any hit on another
unit finish it. JC2_TRACE_BATTLE=1 prints every hit.

With it the Earth, Fire and Wind Forests' stage 15 duels are won, and
the story reaches chapter 14 with all four Orbs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 16:40:59 +01:00
Thomas MartinandClaude Opus 5.5 c1e81e3537 Win battles by hooking hits; notes: the Water Orb and chapter 11
The battle records hold HP at +0x350/+0x354 and MP at +0x3E0/+0x3E4,
with side 3 the enemies'. The old cheat zeroed the MP of Levant's own
beasts. --win-battles now wraps 0x275890, which applies a hit, so any
hit on an enemy takes all of its HP and the game ends the fight itself.
It beats the Water Forest's stage 15 boss, and the story reaches
chapter 11 with the Water Orb.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 11:51:07 +01:00
Thomas MartinandClaude Opus 5.5 8120dafb50 Teleport from a forest to the town sets the return mode; notes: back on the story's path to chapter 8
The game's way back from a forest (0x230B70) sets 0x89B08C to 0xC for a town scene; the teleport did not, and the town room was drawn for one frame then not at all. Notes: the A018 briefing, the Wormhole Forest's nest-hole and the instructor's contest (chapter 8, advancement tests unlocked), the town scenes 57-77 surveyed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-30 19:54:49 +01:00
Thomas MartinandClaude Opus 5.5 603413e7d7 Win battles every second; notes: the Throne Room's discs, the Ronga-Ronga rematch, the story loop
The win cheat now writes the enemies' HP each second from two seconds in (a battle builds its four table copies as it goes). Notes: the Throne Room's interaction objects (the left disc off), the forests' K event scenes, the K007 rematch where Levant has no command (give up ends it, same closing talk), and the forest / Ronga-Ronga / Throne Room loop at chapter 6.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-30 18:41:14 +01:00
Thomas MartinandClaude Opus 5.5 931bccf838 Win battles cheat, poke tool; the Wind Forest's stage 15 boss beaten
--win-battles zeroes the enemies' HP two seconds into a battle: the units are 0x9B0-byte records (+0x3E4 HP, +0x68C the side, 3 Levant's, 0 the enemies'), in four copies of the table that all have to be written; each table is found by its first side-3 record. --poke ADDR,VALUE,FRAME writes a word at a frame. With it the stage 15 boss is won and its scene plays back to the Jade Throne Room; the forest's stages 16 to 29 taken with the level cheats.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-30 17:52:50 +01:00
Thomas MartinandClaude Opus 5.5 e420ffcb40 Cheats to advance: forest exits open, warp, warp to the level's exit; text trace; the forest map notes
--open-exits keeps the forests' exit masks (0x89AF18 + 4 area) set, so a level's portal takes Levant on through the game's own path; --warp X,Z and --warp-exit move him (every aligned copy of his position, the game block's 0x878B20 the live one) once he walks; F2 > Story has both. JC2_TRACE_TEXT=1 prints each string drawn. Notes: the forest's objects, doors, side rooms, exit masks and collision polygons, and the Wind Forest taken from stage 3 to 15 with the cheats, up to the stage 15 battle.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-30 16:54:28 +01:00
Thomas MartinandClaude Opus 5.5 d8c9ed3d15 Fire Forest heat haze: VU1 program E drawn natively
0x1FCF30 (effects bit 0x100, the Fire Forest's stages 8-11) is overridden: the packet it appends
to list 1 is read as the GS takes it (program E's two paths, A+D writes, sprites, strips, fans),
the frame sampled with Material::fromFrame into auxiliary target 2 and laid back over the frame.
The effects table is indexed by the forest stage, not the map sub-area: notes and F2 label fixed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 20:51:40 +01:00
Thomas MartinandClaude Opus 5.5 02351d4e2c Story state from code: --chapter, --story-flag, --scene-done, --forest-stage, --subarea
The chapter (0x8788DC), the 96 story flags (0x8788E0), the scenes played (0x8788EC) and the
forest stage (0x878612, which picks a forest's sub-area from 0x5CA340), set from options or
F2 > Story. Verified: the Fire forest entered at sub-area 8 from the Wind forest state.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 19:40:43 +01:00
Thomas MartinandClaude Opus 5.5 f262fe489d Teleport refuses non-field scenes; a 42-scene tour finds no port crash
A tour of 42 scenes across the table (Throne Room state, --scene, 440 frames each, headless): 25 run, with no new
program D mode and no model or texture not found. 14 stopped with a jump to 0 at 0x1A0FF0 right after the teleport:
the scene table's kinds 2 to 5 (+0x1C) have no entry function (+4 = 0: 634 of the 1208, cutscene and event stages the
game enters another way). The teleport now refuses those with "not a field scene" (kinds 0, the forests, and 1 have
it: 574). The other 3 are stubs or unused: CE20's module is 0x140 bytes (two functions) and its table entry points
past it; U123 and U559 read garbage.

Checked headless: --scene 100 (refused, the game goes on), 0 (the Wind Forest) and 581 (D001) from the Throne Room
state.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 19:06:30 +01:00
Thomas MartinandClaude Opus 5.5 dc9e5f3daa --battle-group playable: launched as a hunter's battle (kind 3), which runs by itself
A kind 3 battle (a forest hunter's, 0x221B14) runs by itself: --battle 19 (Garon) from s25000_wind_forest_tamatoch
plays (attacks, effects) and goes back to the Wind Forest. A kind 7 battle is an event script's (the scenes' scripts
are the m2es* overlays), which drives it from its start: launched without it, it waited with no command menu.
--battle-group now launches a kind 3 battle with the group as the party (the same record layout; the group also in
the scene's script context, +0x20): group 145 ("eM2ARENA_BATTLE_LV2_3") from the Arena hub plays (the enemies act,
their effects, "No Divine Beasts." when the partner falls). Events' battle scripts (dialogue, scripted turns) do not
run that way; the F2 Battle tab says so instead of "experimental".

Checked with the hidden window (muted): --battle 19 from s25000_wind_forest_tamatoch, --battle-group 145 from
s24300_arena.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 18:59:09 +01:00
Thomas MartinandClaude Opus 5.5 62ad087de2 --battle-group loads its group's enemies; battle traces (JC2_TRACE_BATTLE)
Traced the way into a battle (the field task 0x1A1670's +8 / +0xC, the enemies' set-up 0x286260, the scene exit
0x1E7500): the Arena lesson and the launcher take the same way, but the launcher's group was 0 when 0x286260 read it.
Its write came before the scene step, whose script runner copies the running script's context over
0x89B010..0x89B030 (0x1E5100). The group is now written again after the step, and --battle-group leaves the battle
block as the lesson's command 0x1C does (kind 7, 0x89B074 0, 0x89B07C 3).

A launched battle now has its group's enemies (215: the lesson's Rook and its minion; 145, "eM2ARENA_BATTLE_LV2_3":
its three monsters). It still waits at the start (no command menu; Cross presses do nothing for 40 s, also with the
lesson's script context copied in): the battle task's own state is next.

Checked headless or with the hidden window (muted): --battle-group 215 and 145 from s24300_arena, --scene 0 from
the Throne Room state, s21900_battle_tamatoch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 18:51:16 +01:00
Thomas MartinandClaude Opus 5.5 dce32148ec --battle through the scene exit; --battle-group; launcher marked experimental
- A battle asked for now starts as an event script's battle command does:
  the battle block filled (0x89B070..., enemies at 0x89B028) and the
  scene's step returning mode 3, so the scene's exit prepares the battle
  and the intro plays.
- --battle-group N: one of the game's 2000 battle groups (0x5857D0).
- Still not playable: 0x89B010-0x89B030 is the running script's context,
  and with no battle script behind it the group is cleared; the battle
  shows four default bugs and waits. The Battle tab says so and points to
  the Arena lesson.
- Notes: the battle command (0x1C of 0x1EB5D0), groups, what is left.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-23 19:59:07 +01:00
Thomas MartinandClaude Opus 5.5 46649f0c72 Teleport to any scene and start a hunter battle (--scene, --battle, F2 tabs)
- runtime/jc2_debug.cpp: the game's 1208 scenes (table 0x5AD4F0; 0-9 the
  forests) and its "next scene" request (0x87860C). A running scene leaves
  through an override of its step (0x1E7B90): next + state 3, so the game
  unloads and loads as when a script leaves.
- Battles as an event starts one: opponent record (0x5F4B80, 19+ the
  hunters), setup at 0x8963EC, kind 3, 0x430E10, then mode 3; only in game
  mode 2 (forests and event scenes).
- --scene N [--scene-at F], --battle N [--battle-at F]; F2 > Teleport and
  F2 > Battle in the window.
- The externals list is copied only when it changes, so a runtime edit no
  longer recompiles every overlay batch.
- Notes: scenes, modes and battles mapped.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-23 19:12:25 +01:00