Commit Graph
83 Commits
Author SHA1 Message Date
N0VAN0M4LY 7bd17c4f74 fix(battle): enable in-flight reload in air arcade
Air arcade battles previously set isLimitedAmmo=true via VERSUS_SWITCHES.
Both the native in-flight rearm request and its host handler require
unlimited reserve ammunition, which prevented airborne reloading in Air AB.

Move isLimitedAmmo out of VERSUS_SWITCHES and set it to false only when
modeName is air_arcade, keeping limited ammunition for all other modes.

Verified with root npm run typecheck; pending in-game verification.
2026-12-02 21:32:42 +08:00
N0VAN0M4LY be772c0cea fix(launcher): keep copy maintenance progress across tab switches 2026-12-02 20:24:30 +08:00
N0VAN0M4LY fa7f68b942 feat(launcher): use two-column About layout and add Discord link 2026-12-02 20:06:51 +08:00
N0VAN0M4LY 899fb5d91b fix(server): persist selectable battle ratings
Validate the selected rank against owned modifications and return the saved profile.

Use the saved rank delta for mode eligibility and room matchmaking.

Verified with typecheck and a local 2.61.0.58 server run using temporary data. In-game acceptance is pending.
2026-12-02 19:55:41 +08:00
N0VAN0M4LY fb7d07f4f9 feat(launcher): add About log export shortcut and runtime logging toggle
Launcher release / release (push) Waiting to run
Add a quick ZIP log export button to the About page (also bundling the latest embedded browser -browser.log while excluding player saves) and add a runtime logging toggle under Settings -> Diagnostics that controls launcher file logs, local server traffic logs, and wto_ws.log via log=0 in wto_ws.cfg. Update the v0.1.2 release note accordingly.
2026-12-02 17:41:49 +08:00
N0VAN0M4LY 2d5e268083 chore(launcher): bump version to 0.1.2 and add release note
Bump @wto/launcher to 0.1.2 in apps/launcher/package.json and package-lock.json, and add the bilingual release note in .github/release-notes/v0.1.2.md.
2026-12-02 17:23:13 +08:00
N0VAN0M4LY 66bbdf7192 fix(launcher): prevent false maintenance_location errors and log details
Exclude stray top-level wtoffline folders when scanning stock sources, block selecting a data folder that equals or contains the client folder during installation (with inline Step 3 feedback), avoid false maintenance_location blocks when an existing installation placed dataPath at an ancestor of copyPath while still protecting nested data folders and data entries, and log the specific reason and paths on every maintenance_location failure.
2026-12-02 17:10:58 +08:00
N0VAN0M4LY bf2ce539e7 feat(launcher): use version-independent rules for space-saving copies
Replace the single-version 2.61.0.43 SHA-256 hardlink manifest with declarative read-only asset rules in packages/patcher/tuning/hardlink-resources.jsonc (content/ and content.hq/ .dxp.bin and .grp archives with no minimum size cutoff). Space-saving installs and conversions now work across minor updates, and updating a space-saving client from a same-volume source preserves or creates hard links instead of detaching them into full copies.
2026-12-02 17:04:36 +08:00
N0VAN0M4LY de9ba52b85 fix(isolation): skip package validation and block official launcher spawns
Add -skip_pkg_validation to the shared offline launch arguments so aces.exe
skips the startup content/warthunder.blk file-size check, and add the
isolation/never-launch-official-launcher exe patch to NOP the os_shell_execute
call in the official launcher spawner while preserving its exit logging and
ExitProcess(1).
2026-12-02 10:18:54 +08:00
N0VAN0M4LY 82ec1c47ff feat(launcher): support signed in-place updates for portable builds 2026-12-02 09:37:05 +08:00
N0VAN0M4LY e284ea7ed6 chore(launcher): bump version to 0.1.1 and add release note
Bump @wto/launcher to 0.1.1 in apps/launcher/package.json and package-lock.json, and add the bilingual release note in .github/release-notes/v0.1.1.md.

Checked: root and launcher typechecks pass.
2026-12-02 09:21:35 +08:00
N0VAN0M4LY c55ec4ed57 fix(launcher): detect stale stock backups and distinguish missing backups on launch
Read the live executable version in inspectGameFolder instead of masking externally updated folders behind an older wtoffline/stock backup, and atomically refresh stale or unreadable backups during install, external stock import, and relocation. Log exact copy/stock/recorded versions on launch mismatches and report a dedicated launch_stock_missing error when wtoffline/stock/win64/aces.exe is missing or unreadable.

Checked: root typecheck, launcher typecheck, zh-CN/en locale key parity (616/616), and launcher electron-vite build.
2026-12-02 09:06:28 +08:00
N0VAN0M4LY 1c6f5c9fc4 feat(launcher): verify launch files and log post-exit diagnostics
Check that win64/aces.exe, wto_ws.dll, and wto_ws.cfg exist and are readable immediately before spawning the game, surfacing a dedicated error when security software removes them. On unexpected non-zero exits, log a compact read-only snapshot of hook file presence, wto_ws.log tail lines, and newly created .game_logs entries.

Checked: root typecheck, launcher typecheck, and zh-CN/en locale key parity.
2026-12-02 07:18:27 +08:00
N0VAN0M4LY cab73f92f9 feat(launcher): include client logs in diagnostics and format exit codes
Export the active client's wto_ws.log, latest .clog (bounded to 16 MiB), and a client-logs/summary.json metadata snapshot in diagnostics ZIPs without touching player saves. Log build completion, game launch arguments, PID, runtime duration, and hex-annotated Windows NTSTATUS/HRESULT exit codes in the launcher log and status bar.

Checked: root typecheck, launcher typecheck, launcher electron-vite build, and exit code formatter runtime check.
2026-12-02 07:15:37 +08:00
N0VAN0M4LY 152be6af0e feat(launcher): add configurable update mirror
Let a saved HTTPS repository serve as the fallback for launcher and adaptation pack releases. Retry downloads for the selected version and validate against the project signing key. Verified type checks, the launcher build, and a simulated primary outage.
2026-12-01 20:04:29 +08:00
N0VAN0M4LY bd7450d9a1 fix(release): support prerelease adaptation packs
Adaptation pack / release (push) Waiting to run
Include published prereleases in adaptation pack checks. Publish signed adaptation packs as prereleases and let manual workflow runs stage a draft for release notes.
2026-12-01 18:36:17 +08:00
N0VAN0M4LY 01f7b5769b fix(battle): preserve the Bullet Hell AI loadout flow
Use the game mode declaration to omit offline combat-preset selection in the cannon-only mode.
2026-12-01 13:54:47 +08:00
N0VAN0M4LY b4af034756 fix(hud): show damage notices for the controlled vehicle
Keep the affected unit on the native barrel and breech notification paths. Filter only the local-host notices, using the stock current-control lookup.
2026-12-01 13:50:05 +08:00
N0VAN0M4LY 70c4ee4880 fix(battle): assign combat presets to AI aircraft
Read stock weapon triggers and prerequisite modifications. Supply a suitable native preset for aircraft whose default lacks the relevant armament and preserve repeated modification names in the launch block.
2026-12-01 13:50:04 +08:00
N0VAN0M4LY 44e64fa414 fix(battle): enable fast ticket drain in single-sortie air battles
Pass the native no-respawn ticket rule when the mode limits each pilot to a single sortie. The Air Realistic mission headers omit this setting.
2026-12-01 13:31:54 +08:00
N0VAN0M4LY d165a80a4a fix(matchmaking): filter Air Realistic missions by layout and BR
Limit classic Air Realistic and Tactical Skies to historical mission variants. Read stock airfield ranges, select against the rank sent to the mission loader, and keep fixed-layout limits in battle tuning.

Inspected mission data from 2.61.0.37 and 2.61.0.43. Root and launcher type checks pass. Gameplay awaits manual acceptance.
2026-12-01 12:13:53 +08:00
N0VAN0M4LY 7ba66340b6 fix(battle): enforce single-sortie Air Realistic rules
Carry the queued aircraft and crew index into LocalMP, apply the native single-spawn limits to players and aircraft bots, and disable spares for single-slot modes.

Verified with root and launcher type checks, check-patches and check-gui for 2.61.0.37 and 2.61.0.43, and an isolated launch-payload check.
2026-12-01 12:05:42 +08:00
N0VAN0M4LY 7c2e2250c3 style(i18n): remove redundant Gaijin network disclaimer from pack check hint 2026-12-01 05:25:59 +08:00
N0VAN0M4LY f182e205e3 feat(launcher): merge add-client entry and choose setup mode in wizard step 1 2026-12-01 04:39:48 +08:00
N0VAN0M4LY a0515c4ed3 feat(launcher): detect missing client folders and support relocating while keeping saves 2026-11-30 21:32:17 +08:00
N0VAN0M4LY 2820d40d87 feat(launcher): create dedicated WTOffline subfolder and default versioned client name 2026-11-30 21:13:33 +08:00
N0VAN0M4LY bfedc3d27e feat(launcher): prompt for stock source when adding patched client without backup 2026-11-30 20:59:38 +08:00
N0VAN0M4LY 53e4fe54ba style(launcher): base app and installer icons on wordmark logo 2026-11-30 20:33:39 +08:00
N0VAN0M4LY f6aaeb2ad3 refactor(i18n): replace copy terminology with client in launcher locales 2026-11-30 19:42:26 +08:00
N0VAN0M4LY c65308c477 feat(launcher): add WTOffline logo application and installer icons 2026-11-30 19:38:32 +08:00
N0VAN0M4LY cae69a6446 feat(launcher): support registering existing offline clients without copying 2026-11-30 19:32:24 +08:00
N0VAN0M4LY 7cb1011f0d feat(saves): localize battle and preset names, merge overview form and guard cache writes 2026-11-30 19:26:13 +08:00
N0VAN0M4LY e6e75d92c6 fix(saves): keep imported presets intact, cap crews to preset units and drop used-unit scan 2026-11-30 19:21:47 +08:00
N0VAN0M4LY 388dc9d9d7 fix(modifications): grant custom-slot weapon containers and support unit weapons 2026-11-30 19:18:16 +08:00
N0VAN0M4LY 62da2e3038 perf(server): index profile equipment and research refreshes
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.
2026-11-30 17:54:36 +08:00
N0VAN0M4LY ebb2937a38 feat(launcher): add wordmark logo, ellipsis tooltips, auto-dismiss errors and online wording
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.
2026-11-30 16:53:04 +08:00
N0VAN0M4LY db84971823 feat(saves): add one-click online data discovery and cache cleanup
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.
2026-11-30 16:51:52 +08:00
N0VAN0M4LY f39d7b05c1 fix(patch-pack): write bundled manifest and prefer newer bundled patches
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.
2026-11-30 16:50:46 +08:00
N0VAN0M4LY 8c19811714 fix(saves): remap online settings accounts, crew ids and exclude talismans
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.
2026-11-30 16:49:50 +08:00
N0VAN0M4LY dacc61d404 fix(login): mark local accounts as email verified
Include the email_verified player tag in login answers so non-newbie local accounts do not trigger the in-game email verification dialog.
2026-11-30 16:48:52 +08:00
N0VAN0M4LY c087bd886a fix(launcher): disable Steam SDK initialization
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.
2026-11-30 15:23:18 +08:00
N0VAN0M4LY 31f4fedafe fix(updates): scan release channels across pages
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.
2026-11-30 15:23:18 +08:00
N0VAN0M4LY 5a78b1fdf8 fix(copies): honor confirmed Steam locations
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.
2026-11-30 15:23:17 +08:00
N0VAN0M4LY 84158f719d fix(launcher): report game exits separately
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.
2026-11-30 15:23:15 +08:00
N0VAN0M4LY b3a30c0fd9 fix(launcher): enable standard game launch
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.
2026-11-30 15:23:15 +08:00
N0VAN0M4LY 746b74c564 feat(updates): verify and install launcher releases
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.
2026-11-30 11:12:44 +08:00
N0VAN0M4LY a0beedd898 feat(agreement): show and record the WTOffline terms
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.
2026-11-30 10:44:42 +08:00
N0VAN0M4LY 1e3843b7e9 feat(decals): import a decal cache for each copy
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.
2026-11-30 09:59:14 +08:00
N0VAN0M4LY 10839f050f feat(installer): package the Windows launcher and runtime
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.
2026-11-30 09:49:43 +08:00
N0VAN0M4LY c1dea23955 feat(launcher): implement gated standard launch
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.
2026-11-30 09:40:58 +08:00