Files
Resonant-Combat/SUMMARY.md
T
richard 2b3a0d9473 chore: document Cam bone camera track and refresh IDE/build state
- Document the Cam animation bone in CLAUDE.md, including camera takeover, axis and unit conventions, and anchor behaviour.
- Add cursemaven.com as a remote repository in .idea/jarRepositories.xml.
- Track the new Claude Code editor session in .idea/claudeCodeEditorTabs.xml.
- Refresh Gradle caches, build output and run logs.
2026-12-02 15:57:12 +01:00

13 KiB
Raw Blame History

Resonant Combat: summary of what is built and planned

State: 2026-12-01, version 0.0.1-beta (not released). Design rules and decisions are in CLAUDE.md, everything TCR-specific in TCR_INTEGEATION.md. This file collects what the sessions built, decided and planned, so nothing gets lost.

Tags as in CLAUDE.md: Decided (owner), Proposal (Claude, not decided), Open.


1. Built and working (tests pass, not all verified in the pack)

Project setup

  • Forge 47.4.10 (Epic Fight needs ≥ 47.4.0; the TCR pack runs 47.4.4), Epic Fight 20.14.16 from CurseMaven (file id in gradle.properties), required in mods.toml.
  • Epic Fight: Skill Tree 20.2.8 as an optional, compile-only dependency (pack has 20.2.8.1, same API).
  • Build with Java 17: JAVA_HOME=/usr/lib/jvm/java-17-openjdk ./gradlew build (Gradle 8.1.1 fails on Java 21).
  • Unit tests (./gradlew test): 80. In-game tests (./gradlew runGameTestServer): 8.
  • Version strings must start with a digit (0.0.1-beta, not beta-0.0.1); Forge refuses the mod otherwise.

Tune Break

  • Core tune: OffTuneModel (instance, config ResonanceConfig.OffTune), OffTuneState, TuneBreakResult, TuneBreakLookup (string animation names). Lazy: nothing ticks.
  • Current values: gauge 100, 10 per hit, ×1.5 within 10 ticks of the last hit, decay 0.5/tick right after each hit, full gauge = Mistuned until a Tune Break (no decay, no expiry; Decided), 200-tick per-mob cooldown, 8-block range, 60° cone.
  • Damage: hit × 3 + 12% of max HP (cap 30). Tune Break damage has no element.
  • Key N (V is taken by 7 mods in the pack). Server checks: awakened, free to act, breakable mob in front.
  • TuneBreakAnimation: RAW_COORD dash through the target, untouchable preDelay→recovery, fixed play speed 0.75 (≈1.87 s).
  • Animations register automatically when assets/resonantcombat/animmodels/animations/biped/tune_break/<type>.json is in the jar (sword exists; broadblade, gauntlets, pistols, rectifier, bow fall back to sword).
  • Mapping JSON data/<ns>/tune_break_mappings/*.json (item id → category → sword), /resonance dumpweapons.
  • Sword animation fix: Tool_R X rotation was 90° short on the keys 0.10–0.867 s (fixed in the export and the Blockbench project).

Off-Tune display (Decided by owner, replaces "no bar")

  • Gauge synced to nearby clients (OffTuneSync, only on change). Yellow bar under Epic Fight's mob health bar, Mistuned sprite left of both bars (client/OffTuneBar, hooks Epic Fight's EntityUI). The Mistuned mob effect was removed.

Tune Break cinematic (client/TuneBreakCamera)

  • Shots AIM (over the shoulder) → IMPACT (3/4 front of the target) → EXIT (far side) → blend back; HUD hidden, letterbox, FOV per shot, faces the target during the aim window. Camera moved via reflection (Camera.setPosition, SRG m_90581_).

Damage numbers (client/DamageNumbers, game rule showDamageNumbers)

  • Every hit on any living entity, all players within 40 blocks, amount after armor.
  • Colors: Spectro gold, Havoc dark purple, Electro light purple, Glacio light blue, Aero teal, Fusion orange, No Element white (unawakened, mobs, environment, Tune Break).
  • Element numbers: thin dark outline. White numbers: no outline. Tune Break: 2.2× size, always on top, 2 s, spawns at the chest (visible in the cinematic).

Elements, resistances, enemy classes

  • Damage types: No Element + 6 elements. A hit's element comes from the player; weapons only through passives (Decided).
  • Resistances from datapacks data/<ns>/element_resistances/*.json (entity ids and #tags; direct entries override tags, tags add up). Shipped empty (all neutral).
  • Enemy classes (after WuWa) via tags #resonantcombat:enemy_class/elite|overlord|calamity, untagged = Common. Limit per class for resistances and weaknesses: Common 0, Elite ±10%, Overlord/Calamity ±30% (Decided). Shipped tags: first TCR mapping (18 Elite, 27 Overlord, 20 Calamity).
  • No Element ignores resistances. Off-Tune buildup is never influenced by element (Decided). Resistances do not affect status effects (Decided).
  • /resonance resistances shows class and modifiers.

Resonance state and saving

  • ResonanceState saved fully (ResonanceNbt, versioned) and copied on death/End exit (revivable capability provider; game test awakeningSurvivesRespawn).
  • Synced to the owning client (ResonanceSync) on login, respawn, dimension change and when dirty; client reads ClientResonance (display only).

Awakening (TCR)

  • Generic datapack awakening rules data/<ns>/awakening_rules/**.json with Forge's forge:conditions.
  • TCR rule tcr/land_tower.json (only with tcrcore + ba_bt): killing ba_bt:land_golem gives Spectro, FIRST to every player who damaged it and is within 64 blocks, and unlocks the Spectro skill tree. No archetype yet → no Forte.
  • Dev commands: /resonance awaken <element> (also unlocks the element's tree), reset, status.

Spectro kit (TCR)

  • Decided: no separate Resonance Skills; the weapon's Epic Fight skill is the skill, the element adds onto it. Six Liberations for TCR, one per element. Spectro plays like Spectro Rover but as a DPS.
  • Spectro Frazzle: stacks, flat 0.25 × stacks per second, −1 stack per tick, max 10. Ignores armor, shields, enchantments, resistance, hurt cooldown; no knockback, no buildup; kill credit to the last applier. Basic hit +1 (0.5 s per attacker), Epic Fight non-basic hit +3 (Proposal, owner said "idk"). /resonance frazzle <n>.
  • Resonance Energy: hits fill it (5 per hit, 100 = full).
  • Liberation, key L: full energy → (animation if present) → detonation 0.6 s later, 2.5 blocks ahead, radius 4: 3× attack damage as a Spectro hit, then Frazzle cash-in (all remaining ticks at once). Untouchable during the animation; never hits players/allies. HUD sprite right of the hotbar fills and pulses when ready. Other elements: "does not exist yet". /resonance energy <n>.
  • Upgrades via Epic Fight: Skill Tree: hidden, locked tree resonantcombat:spectro with 7 nodes; nodes are Epic Fight skills in our slot-less category (never take passive slots); unlock state read through the Skill Tree API. /resonance upgrades, /resonance upgrade <id> (dev grant).
    • Proposal (values ResonanceConfig.SpectroKit): Resonant Flow (1 pt, +25% energy), Radiant Strikes (2, basic +1 stack), Lingering Radiance (2, max +5 stacks), Echoing Orchestra (3, Liberation +30%), Harmonic Edge (2, skill +2 stacks), Searing Light (3, Frazzle +40%), Light Collapse (5, cash-in +50%, capstone).

2. Animation camera (built 2026-12-02, not yet seen in game)

Animation camera: the Cam bone (Decided by owner)

  • Every animation of the mod gets a bone called Cam. If an animation has keyframes for Cam, that bone takes over camera position and angles while the animation plays.
  • Convention (checked on the sword export): Cam looks along its local +Y, +Z is up, +X right, i.e. an unrotated Cam looks where the character faces. The current sword Cam (0.75 left, 0.56 behind, 1.375 high, 40° right, 5° down) does face the model; no fix needed.
  • Epic Fight skips the unknown Cam joint when loading (debug log only), so the mod reads it itself.
  • Built (compiles; axis mapping verified by game tests camAxesFollowEntityFacing and swordCamTrackLoads, 10/10 in-game tests pass):
    • anim/CamTrack (parses the Cam track, lerp/slerp sampling), anim/CamMath (world = Epic Fight model matrix × Blender→Minecraft × Cam; yaw/pitch/roll).
    • client/CamTrackLoader (reads Cam from all resonantcombat animation JSONs, reloads on F3+T).
    • client/AnimationCamera (follows the local player's base-layer animation; anchor = position at animation start, rotated with the model; blends back over 0.35 s).
    • client/ForcedThirdPerson (shared third-person hold, so Tune Break cinematic and animation camera don't overwrite each other's saved camera type); TuneBreakCamera now steps aside while a Cam track controls the camera.
  • Finding: Epic Fight's getModelMatrix × Blender→Minecraft points +Y backwards; Epic Fight's renderer adds a 180° turn. CamMath adds it too (its dashes all move along +Y, so +Y = forward).
  • Still to check in game: the roll sign, the player model's 0.9375 scale, the blend back, Tune Break cinematic + Cam together (Cam wins; letterbox and HUD hiding stay).
  • Idea, not decided: use the Cam bone's scale channel as FOV.

3. Planned next

Spectro Liberation rework (docs/liberation_spectro_plan.md, reference in gitignored reference/liberation/)

  • From the WuWa reference: short cinematic (hand → face → side close-ups until 1.18 s), hit 1 at tick 29 (small, all enemies in range), hit 2 at tick 45 (3–5× bigger, launches enemies), control back at tick 90, then a 20 s cooldown. Centred on a target, not a fixed point.
  • Plan: two hits (Frazzle cash-in on hit 2), camera via the new Cam bone, own VFX (burst, ring, flash), lock + untouchable until control returns, all times in ResonanceConfig.Liberation.
  • Owner makes the animation biped/liberation/spectro.json (with Cam) and gives the final times.

Other next steps

  • The other five Tune Break animations (owner, Blockbench), each with a Cam bone.
  • The other five Liberations (TCR: one per element) and their status effects.
  • Element switching + Eye of God unlocks (needs an unlocked-element set in ResonanceState → save format v2).
  • Archetype from fight signals, then a one-time "assign archetype" step for players awakened without one.

4. Open questions (owner)

From the Liberation plan:

  1. Lock until tick 90 (reference) or 66 (launch over)?
  2. 20 s cooldown on top of the energy cost?
  3. Damage split hit 1 / hit 2 = 20% / 80%?
  4. Liberation camera only for the caster, or for nearby players too?

From the sessions: 5. Gauge decay delay (now drains right after every hit) — decide after a playtest. 6. Stretch the Tune Break dash to the target distance + 1.5 blocks, so you always end up behind it? 7. Raise the arm in the Tune Break dash so the blade tip is at eye height? 8. Spectro kit nodes and numbers (Claude's proposal, section 1). 9. Which hits apply Frazzle (basic +1, skill +3 is a proposal). 10. Default element resistance table: proposal in docs/element_resistances_proposal.json (Elite/Overlord/Calamity only, one theme resistance + one weakness per boss; not loaded). 11. Enemy class mapping review: tcr_bosses:* assumed Calamity, Cataclysm bosses Overlord, Elite list incomplete. 12. Eye of God element map (TCR_INTEGEATION.md), Desert Eye element, element coverage (Spectro and Aero have one source each, Glacio too). 13. Conflict to settle for the base mod: "six ults, one per element" (TCR) vs "Liberation by archetype × element" (base).

Long-standing (see CLAUDE.md): first-awakening trigger without TCR, unawakened Tune Break, final archetype list, Rover weapons for Glacio/Fusion, overclock numbers, Epic Fight 2.

5. Future work (not now)

  • Rework mob HP scaling so Tune Break and Liberation matter (most mobs die before the gauge fills). Re-balance Tune Break damage and gauge gain/decay with it.
  • Split a small runtime-only sync packet off ResonanceSync once energy/overclock change every tick.

6. Not verified yet (only testable in the TCR pack)

  • Skill Tree integration (tab, icons, unlock on awakening, reading node state; TCR's Skill Tree mixins).
  • The full kill → awakening chain with real players (radius, participants).
  • Energy from real hits, the Liberation HUD, keys N and L in the pack, Frazzle application from real hits (basic vs skill).
  • Cinematic camera vs Better Lock-On / Epic Fight camera options; damage numbers and bars with Oculus shaders.
  • Dedicated server: animation clips from assets (mirror under data/ if a server cannot find them).
  • The Cam camera system in a real client (roll sign, scale, blend back).

7. Files to know

  • CLAUDE.md: design source of truth. Note: several notes added during the sessions are no longer in it (Damage types / enemy classes section, Tune Break and hard-rule "Done" notes); the Tune Break section still shows the old values (no bar, Mistuned effect, ×2). This file has the current state.
  • TCR_INTEGEATION.md: TCR integration (filename typo, should be TCR_INTEGRATION.md).
  • docs/liberation_spectro_plan.md, docs/element_resistances_proposal.json.
  • reference/ (gitignored, never commit, timing only).
  • Backups: EpicFightArmatureBlockbench.bbmodel.before-toolr-fix.bak, Assets/Resonant Combat/tune_break_animations/backup/sword.before-toolr-fix.json.