Skip to content

Bartz: Dissidia (2008) moves as an included mod (installer, toggle, online packs) - #80

Merged
schindlershadow merged 13 commits into
mainfrom
bartz-d1-moves
Nov 16, 2026
Merged

schindlershadow merged 13 commits into
mainfrom
bartz-d1-moves

Conversation

@schindlershadow

Copy link
Copy Markdown
Owner

Bartz gets his eight Dissidia (2008) moves as new abilities, next to his 012 moveset. The mod is built from the player's own discs (012 + Dissidia 1); no D1 data is in the repo or the release.

  • Conversion: tools/d1_objx.py rewrites D1's moveset sections (plya, comb, atkp, magi, FEPA effects, timeline ops) to the 012 layout. tools/d1_moves.py copies the moves with the Move Studio's copy (studio/copy.js, run headless). Effects come from the 012 characters who own the moves, so they look like the originals. Projectile origin modes are renumbered, which brings back Paladin Force's light.
  • Help texts: D1's own help texts, read from the disc, ending in "(D1)".
  • Voices: D1's 10 lines are added to Bartz's battle bank. With Japanese voices on, the Japanese bank is merged with those clips (runtime/voice_merge.h), so his 012 lines stay Japanese. The copied moves reuse sounds the bank already has (30 duplicate slots down to 8).
  • Toggle: Settings > Mods row from <mods>/retail_moves.txt. When it's off, the abilities are hidden and inert (owner 0xFE, command -2), so saves that learnt or equipped them stay valid.
  • Installer: Options row "Bartz: Dissidia 1 moves" (feature d1_moves, on by default) and a Dissidia 1 disc page (Android file picker too). It applies the NPD1 patches in games/dissidia/d1_moves/ (176 KB) and checks each result by SHA-256. "Change extras" can add or remove it later. The release ships d1_moves/ and net_packs.json.
  • Online: players without the mod can play someone using it. The user sends deltas against retail files. The receiver applies them to its own files and keeps only results whose size and SHA-256 match the compiled-in net_packs.json, stored under that hash. Ability records are made locally from that list. Packs it doesn't know are refused (side channel PDP 0xD1D1, match filter).
  • Android side-load: also works on a phone that already has the game; --source-dir.
  • battle_test.py: BT_VOICE=jp.

Tested:

  • Unit tests: run_net_delta_test.sh (including 20,000 corrupted deltas), test_voice_merge, test_setup_install.
  • An install into an empty folder rebuilds every file byte for byte.
  • Two-instance LAN match: a player without the mod gets the pack.
  • All 16 actions on the host, with English and Japanese voices.
  • On devices: RP6 and Pixel Fold.
  • After the rebase on main: a battle with Japanese voices merged the bank and ran the moves with sound.

Not tested: the full wizard run with a real D1 ISO, through the UI.

Release notes

  • Bartz can learn his eight Dissidia (2008) moves, alongside his 012 moves. The setup wizard's new "Bartz: Dissidia 1 moves" option builds them from your own Dissidia 1 disc. Their help texts end in "(D1)". Switch them off in Settings > Mods.
  • In online matches, a player who doesn't have the D1 moves can still fight a Bartz who uses them. The game checks every received file against a built-in list.
  • With Japanese voices on, Bartz's lines stay Japanese with the D1 moves installed. The 10 lines restored from Dissidia 1 are in English.

🤖 Generated with Claude Code

schindlershadow and others added 13 commits November 16, 2026 15:55
… in Settings > Mods

- tools/d1_objx.py: a D1 moveset (objx) in the 012 layout (actions, commands, hits, projectiles, effect placements, event ops)
- tools/d1_moves.py (+ d1_moves_studio.js): builds mods/bartz-dff from both discs with the Move Studio's copy-a-move run headless;
  names, help, CP/AP, learn levels, D1 voice lines for the slots 012's bank left empty
- retail mods may add abilities: charmod.py exports their copy entries, roster_mainbin.retail_named builds them for the retail charId,
  <mods>/retail_moves.txt lists them; a removed / disabled mod keeps them as disabled records (save safety)
- runtime: retail moves are taught to the save record (on) or hidden and inert (off); Settings > Mods row per line (next start)
- Move Studio copy: same-character sources keep voices and face textures; effect placements stay bound to the copied animation;
  every motion-bound placement of an effect id comes along; full motion names
- battle_test: Bartz in the Player Select grid

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lp pack ae729f6b entry 2): description, the record's 012 bonus, D1's effect line

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s Dissidia 1's

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… who uses it, as verified packs

- tools/netpack.py: compiled-in list of known packs (net_packs.json -> runtime/net_packs.inc: file sizes + SHA-256,
  retail base hashes, abilities), deltas against retail written by charmod build (re-verified on every build)
- runtime/net_packs.cpp: manifest / request / piece protocol on an ad-hoc side channel; a received delta is applied to
  the receiver's own retail file and kept only if it matches the list; ability records made locally; match filter
  refuses players with unknown, unverified or unconfirmed packs
- runtime/net_delta.h + tests/run_net_delta_test.sh: bounds-checked decoder, ASan/UBSan host test with hostile input
- ad-hoc layer: side channel (PDP port 0xD1D1), group peer list, match filter, pump hook (generic)
- file layer: overrides added mid-session (PackageMods::add_override, in-memory index entry patch), PACKAGE.BIN kept
  on the override path when packs may arrive; roster.cpp: dissidia_ablt_ensure, retail-moves state
- tested with two LAN instances (B never had the mod): synced battle with A's Ascendant Lance / Soul Eater; a tampered
  delta is thrown away and the players are kept apart

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ners in this game

- Move Studio copy (opts.effectDonors): a copied effect is taken from this character (same name after the P####_ prefix)
  or from a donor package (the move's owner in 012) before the source's own; also for projectile looks
- effects a copied animation plays by itself (placements bound to it, no event) come along: Wind Shear's whirlwind
- placements of other source animations stay bound to that animation's copied name (never unbound: looping effects
  that outlived the move)
- d1_moves: donors Cecil, Terra, Onion Knight, Cloud, WoL, Firion. Checked on the RP6 (Vulkan) and the GTX 1660 (GL):
  Wind Shear = Onion Knight's whirlwind, Soul Eater / Paladin Force = Cecil's, Flood = Terra's
- battle_test: BT_CPU_RIGHT picks another CPU opponent; net pack re-recorded for the new files

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- the mod's voice bank (English-based) used to win over voice_jp/, so every Bartz battle line was English in Japanese
  mode; now the Japanese bank is served with only the clips the mod adds in slots it leaves empty (voice_merge.h,
  hooks_io ensure_built -> <mods>/.voice_jp_merged), and the same for a bank received online (net_packs.cpp)
- the ten restored Dissidia 1 lines stay English: the US Dissidia 1 disc has two English banks (18100, 18200; checked by
  loudness-envelope correlation against 012's English and Japanese banks), no Japanese ones
- d1_objx: projectile origin / target modes renumbered for 012 (Paladin Force's light spawned nowhere)
- tests/test_voice_merge.cpp

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Move Studio copy: a source sound whose clip and playback values this bank already has (an earlier copy's included)
  is used as it is; same clip with other values becomes an alias. Bartz's D1 moves added 30 slots (the same few sounds
  again for every move); now 8 (sounds only Tidus / Cecil / Terra / Dissidia 1 have). The bigger bank went with broken
  dash / EX Mode / EX Burst sound on the RP6; with this one EX Mode and EX Burst play the same slots as retail (SAS trace)
- net pack re-recorded

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…player's two discs)

- d1_moves.py patches (dev) / install (wizard): games/dissidia/d1_moves/ = NPD1 patches (176 KB) whose sources are the
  player's 012 files, their D1 files and d1_objx's conversion of D1's moveset; results checked by SHA-256; D1 help texts
  read from the disc at install; abilities into main.bin (roster_mainbin), retail_moves.txt, online deltas. An install
  into an empty folder rebuilds every file byte for byte (3.5 s)
- wizard: Options row 'Bartz: Dissidia 1 moves' (feature d1_moves), a Dissidia 1 disc page, picker / Android fd path,
  install + Change extras steps, saved state; plan test; release ships d1_moves/ and net_packs.json
- roster_mainbin: a rebuilt main.bin keeps each member at its retail offset mod 256 (round trip identical)
- IsoPackage reads fd:N (Android picker)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… are added or replaced (mod files for a secondary user adb cannot write)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e in Android/media

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… folder (mod folders now come first)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…no two-argument mkdir)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@schindlershadow
schindlershadow merged commit 8e0c278 into main Nov 16, 2026
2 checks passed
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