Patch definitions under exe-patches/ and gui-patches/ move from
patch.json/locate.json to patch.jsonc/locate.jsonc. Each file now holds
only the data needed to apply the patch plus a short English comment
stating what it changes, why the local service cannot provide it, and
what happens without it. Every definition records the game versions it
was verified on (verified_on, required).
GUI patches keep their stock text and replacement in find.nut and
replace.nut next to patch.jsonc instead of escaped JSON strings, so the
script edits are readable, diffable and can carry Quirrel comments.
Matching treats CRLF and LF as the same line break because stock
scripts mix both; only the matched span is rewritten.
Loaders on both sides (packages/build, packages/exepatch, wtotools)
reject unknown keys so analysis text cannot creep back into the data.
JSONC parsing moves into a shared @wto/jsonc package; the build now
parses tuning/store.jsonc instead of scanning it with a regex.
Verified: npm run typecheck; check-patches (10/10 ready on 2.61.0.37);
check-gui (33 patches, 24 scripts compile); the TypeScript and Python
appliers produce identical scripts, byte-identical to the previous
definitions except one stock script with mixed line endings.
The 15 battle patches are migrated mechanically and still carry the
pending-review comment; they are rewritten by the LocalMP review.
BREAKING CHANGE: Patch loaders require JSONC definitions. Migrate patch.json and locate.json and move embedded GUI edits to separate Quirrel files.
Records the uncommitted battle-session work exactly as it was left
(local service matchmaking, settlement, chat, native LocalMP hooks,
battle gui/exe patches) so the following review and rework commits
show every correction as a diff against this state.
This commit is not reviewed and is known to be incomplete: in-game
testing reported wrong settlement rewards, single-country teams,
missing random/fixed supplement slots, misattributed hit messages and
other regressions. Do not merge this branch before the rework lands.
Read and write the digest table start as a 64-bit field in both codecs.
The truncated offset caused SHA-1 mismatches in large packs such as
ui/images.vromfs.bin and ui/atlases.vromfs.bin.
Type checking passed and the service extracted icons and flags from
the large packs.
Restore the reviewed pack, PE, and patch tooling. Specify a TypeScript
build pipeline, a type-preserving BLK codec, and a configurable loopback
port selected at launch. Document the package boundaries.
Archive the earlier backend, client, build, and patch definitions. Document
the stock login and profile requests required to reach the hangar, along
with the profile structure and the relevant configuration blocks.
Compile the upstream Quirrel checker with MSVC and invoke syntax and
static analysis for each input file. Treat reported errors and warnings
as failures because the checker can return a zero exit code for them.
Split the command line by purpose and add GUI pack construction from
declared edits and injected scripts. Verify the checker against stock
scripts and invalid inputs, and confirm that patch checks still run.
Keep patch definitions and dependencies separate from the patch engine.
Resolve all patches before writing, verify expected bytes, and refuse to
overwrite the input executable. Include a read-only check command for
comparing definitions with their assembly source.
Allow locally rebuilt script archives to load in the offline client.
Verify the patch against the 2.61.0.37 executable and confirm that the
patched copy remains readable as PE.
Split container handling from the file table and add a read-only PE view
for the patch engine. Apply declarative script edits at unique anchors and
preserve the input line endings and unmodified bytes.
Round-trip the 2.61.0.37 GUI pack byte-for-byte and verify that invalid
edit definitions and ambiguous matches are rejected.