Replace O(N^2) linear lookups and repeated array filtering across modifications, weapons, modsResearch and unitResearch with single-pass Map indexes, pre-sort catalogue equipment once on load, avoid redundant pre-change disk writes in PlayerProfiles.updateWhen, and shallow-copy only top-level lists in clientProfile.
Replace the title bar text mark with the white WTOffline wordmark SVG, add a window-level floating tooltip for truncated ellipsis text, auto-dismiss and manually close global error banners, and replace retail wording with online edition terminology across both locales and isolation patch titles.
Add user-initiated read-only discovery of local online client settings, copy selected files into the offline copy's staging directory before preview/import, clear the offline client's local cache for the imported account, and refresh save summaries after import.
Generate manifest.json for bundled patches during installer builds and ignore previously downloaded adaptation packs that are older than or equal to the bundled patch set.
Re-key imported global.blk account settings to the local user id, map online global crew ids onto local crew slots, rewrite slotbar presets to local crew ids, clear offline local cache after bumping cloud versions, avoid cascading tech-tree unlocks from optional per-unit settings, and exclude talismans (premExpMul) from full equipment unlocks.
Use the game's non-Steam startup option in the shared fixed arguments. Validate the arguments in the installed development handoff.
Statically verified on the .37 and .43 clients. The guarded game run remains part of acceptance.
Share a bounded release scan across channels and compare tag versions across pages. Report uncertainty when the scan hits its limit without confirming a newer release.
Verified with local release responses covering cross-page versions, truncation, and missing feeds.
Bind confirmation to the selected copy and data paths throughout installation, launch, and maintenance. Validate redirected runtime data paths and recheck original files before refreshing an in-place backup.
Verified by type checking and build. The acceptance checklist covers directory links and Steam confirmation.
Keep successful process creation separate from exit status. Report the exit code and game log directory when the process exits abnormally.
Verified by type checking and launcher build. The guarded game exit remains part of acceptance.
Remove the development gate from the launcher and keep the guarded development handoff available.
Verified by type checking, Windows packaging, and opening the packaged launcher with a temporary profile.
Check the versioned release channel, verify the signed manifest and installer digest, and open the installer only after confirmation.
Verified type checks, the Windows package, and an upgrade handoff from a local release fixture, including tampering and interrupted downloads.
Require explicit acceptance in the existing game dialog and retain the accepted version in the local account profile.
Verified full Quirrel compilation for .37 and .43, a temporary .43 build, and the launcher checks.
Store the chosen cache in the copy data directory and use it for future builds. Restore the placeholder index when the copy has no available cache.
Verified type checks, the launcher build, a temporary .43 build, and the import and replacement flow from the Windows package.
Ship the Electron workers, local server sources, native library, and bundled patch set in the Windows installer.
Verified type checks, build, and the extracted installer payload with a temporary copy, local save, and server health check.
Build the selected copy for its port, wait for the local server, and manage the game and server lifecycles. Keep standard launch disabled pending isolation verification.
Verified both type checks, the launcher build, and the launch lifecycle against a temporary copy and a stand-in executable.
Offer same-volume hard links for sampled 2.61.0.43 resources after checking their content and keeping mutable files independent. Support converting existing copies and detach registered links during version updates.
Include the default pilot icon in client profile replies when a save has no selected icon. Preserve chosen and legacy icons without modifying stored saves.
Read rank thresholds and available avatar artwork from the selected copy. Persist avatar selections in the player profile and preserve free research points when a level changes.
Open the local signup page in the game's embedded browser before sign-in. Return the existing login error for unknown accounts or invalid passwords.
BREAKING CHANGE: First-time players must register in the game's signup window or create a save in the launcher before signing in. Existing accounts can sign in with their saved credentials.
Let the launcher update a save's account nickname and replace or clear its remaining premium time. Reuse registration validation and preserve the existing login and password hash.
Patches locate themselves in each game build, so nothing is chosen per
game version: a version without a check record is installed with every
patch tried, and the copy's patch check says which features work. The
pages showed an "adaptation version" and, for an unchecked version, the
nearest checked one as if its patches were used. They now show whether
the version is verified, and say that an unverified one still tries
every patch.
- IPC patches:active / check / apply / useBundled and the event
patch-set-changed; installing or reverting is refused while a copy is
being maintained, since a build reads the patch set as it runs.
- Setting checkPatchPacksOnStart (on by default): the window checks once
when it opens and stays quiet when the check fails.
- The footer shows an available pack at the right end and leads to the
About page, which shows the patch set in use, checks on request, and
downloads and activates a pack only when the player clicks for it;
a pack that needs a newer offline version, or a failed check, is
explained there. Supported game versions follow the active set.
- Chinese and English text.
An adaptation pack is the patch set (exe, GUI, native definitions and
version records) released on its own, so a new game build can be adapted
without a new offline version. It is a zip with a manifest, signed with
Ed25519, published as a GitHub release tagged patches-<YYYY.MM.DD[.N]>.
- packages/patcher/src/patch-pack: manifest and version numbers, zip
writing and reading with path and size checks, signatures, a check that
a patch set reads as a whole; tuning/patch-pack.jsonc holds the
repository and the limits.
- scripts/generate-patch-signing-key.ts writes the public key for the
repository and the private key outside it; scripts/build-patch-pack.ts
packs only committed files and signs with PATCH_SIGNING_KEY.
- .github/workflows/patch-pack.yml packs, signs and publishes on a
patches-* tag or a manual run.
- Launcher main process: find the newest pack release, download, verify,
unpack into user data and make it active; resource paths use the
active pack when it is usable (a repository checkout only with
WTO_USE_PATCH_PACK=1). The pages that show and start this come later.
The LocalMP modules of wto_ws.dll scanned for 42 functions at start-up and
used about a hundred structure offsets compiled in as constants, so a game
update could move a field without anything noticing. Their needs are now
definitions under patches/native/<module>.jsonc, resolved by the patcher when
it builds the game copy, the same way exe patches are located:
- Locate methods: "string_ref" finds code by the string it loads (optionally
with a pattern around the lea, to read the field a scoreboard row stores
under that name), and "within" searches a short pattern inside the function
of a site located before it (function ranges from the exception directory).
- Each module lists its sites (functions, globals, call targets and the
instructions whose captures give structure offsets), its features and the
modules it requires. A module whose sites are not all found is reported
like an unavailable patch, with the modules depending on it.
- The resolved values go into wto_ws.cfg as native.<site>[.<capture>] lines,
with the executable's PE time stamp and image size so the library can
refuse values resolved for another build.
- Version records include the native module variants and values.
- Patch-set folders: the patcher, the scripts and the launcher take the root
of a patch set (exe, gui, native, versions) instead of separate folders.
- New feature tags K-Chat and radio and K-Nuclear bomb in both language packs.
The library still scans by itself; reading these values is the next change.
Checked: root and launcher type checks; all 10 modules resolve on 2.61.0.37,
where the 239 values equal what the drafting tool read with a disassembler, and
on 2.61.0.43, where every structure offset is unchanged except the GameSaveData
HUD event queue (0xae8 -> 0xb18); build-game-copy from 2.61.0.37 into a
temporary folder writes the values into wto_ws.cfg.
A game update used to fail a patch whenever any byte it compared moved, even
when only an address in the instruction changed. Patch definitions now say
what a change needs and read the rest from the code:
- patch.jsonc holds a list of variants, each written for one game build
(written_for) with its own locate block and edit; locate.jsonc is merged
into it. Exactly one variant must apply, otherwise the patch is left out.
GUI script patches use the same variants rule.
- expect_original and the bytes to write use the signature syntax, so
addresses that differ between builds can be wildcards.
- A locate block can capture values at the site (rel32 targets, immediates,
displacements); a rel32 fixup fills a hole in the written bytes from a
capture. allow-local-host-bot-spawns now jumps to the target of the
conditional jump it replaces instead of a stored distance, which makes it
apply to 2.61.0.43 as well.
- verified_on is gone from the definitions. patches/versions/<version>.jsonc
records, per checked game build, which variant of every patch applies and
where; scripts/record-game-version.ts writes it and the launcher reads the
recorded versions from there.
The Python tools (check-patches, patch-exe, check-gui) read the same format;
check-patches assembles a variant whose assembly names captures at the site
it was located at.
Checked: root and launcher type checks; check-patches and check-gui on
2.61.0.37 and 2.61.0.43 (12 exe and 35 GUI patches each); check-patches and
check-gui report a deliberately broken patch with a non-zero exit;
build-game-copy from 2.61.0.43 into a temporary folder. The computed bytes of
allow-local-host-bot-spawns on 2.61.0.37 equal the bytes it stored before.
BREAKING CHANGE: Each patch needs a variants list. Move executable locators into patch.jsonc and regenerate game version records with record-game-version.ts.