Commit Graph
212 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 3f0e08c5b7 docs(repo): add Discord community links to README 2026-12-02 19:19: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.
v0.1.2
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 3ed41bdd60 feat(patches): add 2.61.0.58 version check record
Adaptation pack / release (push) Waiting to run
Verified all 13 exe patches, 46 GUI patches (Quirrel bytecode check), and 11 native modules against Steam 2.61.0.58 with zero struct offset changes from 2.61.0.55 and a clean temporary copy build.
patches-2026.12.02
2026-12-02 16:54:56 +08:00
N0VAN0M4LY a23629fe69 docs(release): refine wording in v0.1.1 release notes
Launcher release / release (push) Waiting to run
v0.1.1
2026-12-02 10:46:46 +08:00
N0VAN0M4LY 1535bd032b docs(release): emphasize v0.1.1 upgrade for standalone and official-launcher users 2026-12-02 10:33:28 +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 ae1e5ec65b feat(repo): package portable zip in local Windows builds
Clean and generate wtoffline-launcher-<version>-win-x64-portable.zip from win-unpacked directly inside scripts/build-windows-installer.ts so local package:win builds produce both the NSIS installer and the portable archive.

Checked: root and launcher typechecks pass.
2026-12-02 09:20:32 +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 f3d04d137f fix(native): filter avionics damage notices and enemy parts feedback
Replace the ineffective hero_unit comparison with producer-side hooks on the two stock LocalMP leaks:
1) Avionics/electronics failure dispatcher (2.61.0.37 0xfca8b0, .43 0xfce8e0): track the damaged Unit* from [component + unit] on the current thread and suppress HUD_MSG_DAMAGE notices and optic-view exits (0x15cd9c0) for non-local units while keeping native failure effects intact.
2) Unit::onEvent hit-parts fallthrough (2.61.0.37 0x103fbc0, .43 0x1043fe0): track the hit event on the current thread and filter enqueue_enemy_parts, hit_cam_important, and naval_hit_state to attacks from the local controlled unit, local MPlayer's units (in-flight munitions after switching), or the watched spectator unit.

Checked: native/wto-net/build.ps1 compiles with zero warnings in project sources; checkPatchSet, root and launcher typechecks, 2.61.0.37 check-patches, and native module resolution on both 2.61.0.37 and 2.61.0.43 (11/11 modules ready, 0 failures) pass. In-game verification pending.
2026-12-02 08:14:54 +08:00
N0VAN0M4LY 96077153c6 refactor(native): batch MinHook enable calls and log status codes
Switch ws2_32 and LocalMP hook installers to MH_QueueEnableHook with two MH_ApplyQueued passes (mandatory network hooks first, then all LocalMP modules), reducing DllMain thread-freeze cycles from 26 to 2. Roll back partial module hooks on error and log MH_StatusToString diagnostics to wto_ws.log.

Checked: native/wto-net/build.ps1 compiles cleanly with zero warnings in project sources, and PE inspection confirms WS2_32/KERNEL32 imports and 49 exports. In-game verification pending.
2026-12-02 07:24:27 +08:00
N0VAN0M4LY 90bd5a315d fix(patcher): replace built game files atomically with retry
Write rebuilt game files to sibling temporary files, flush to disk, and replace targets via rename with bounded retries on transient EPERM/EBUSY/EACCES errors (clearing read-only attributes when needed). This prevents antivirus scans or interrupted writes from leaving missing or truncated client files while keeping hard-linked stock files untouched.

Checked: root typecheck, launcher typecheck, and atomic replacement runtime check on read-only and new files.
2026-12-02 07:20:43 +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 1c24adbd83 feat(repo): attach a portable zip to launcher releases
Adaptation pack / release (push) Waiting to run
Zip the unpacked app after packaging and upload it as a fourth release asset for manual download. The zip is unsigned; only the installer is Ed25519-signed for the update check.
patches-2026.12.01.3
2026-12-01 22:37:07 +08:00
N0VAN0M4LY ec020d2848 fix(repo): download the Electron runtime before packaging
Launcher release / release (push) Waiting to run
electron 43 ships without a postinstall script, so npm ci leaves node_modules/electron/dist empty. Install the binary explicitly, matching the documented local build.
v0.1.0
2026-12-01 20:46:24 +08:00
N0VAN0M4LY 6d232f14e6 docs(repo): add v0.1.0 launcher release note
Bilingual note used as the GitHub release body for the first public launcher release.
2026-12-01 20:34:50 +08:00
N0VAN0M4LY d75c80c05a feat(repo): add launcher release workflow
Build, sign, and publish the Windows installer on a v<version> tag. The release is created as a draft so its three files and note can be reviewed before publication.
2026-12-01 20:34:50 +08:00
N0VAN0M4LY 2661b4e783 chore(patches): record verification for game build 2.61.0.55
All 12 exe, 46 GUI, and 11 native patches apply to this build.
2026-12-01 20:34:49 +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 ca9843c304 fix(native): drop control-loss HUD hints of other units
The stock control-loss hints are pushed as HUD_MSG_DAMAGE with the text
chosen by a HUD text index, not by the damaged handler, so the barrel and
breech filter in local_mp_damage_notifications never saw them. The hint
refresh describes the unit in the hero manager's current-hero cell, one
process-wide slot that can be left on another unit on a LocalMP host.

Hook the HUD_MSG_DAMAGE delivery (2.61.0.37 0x19b1030, 2.61.0.43
0x19b6ba0) and drop hints with text indices 261..283 whose described unit
is not the unit the local MPlayer controls. Suppressed hints are logged up
to 12 times so a filter that never fires is visible in wto_ws.log.

Checked: native DLL build; check-patches on 2.61.0.37; temporary copy
builds of 2.61.0.37 and 2.61.0.43 report the executable, GUI and native
patches all ready (11 native modules). In-game acceptance is pending.
2026-12-01 19:48:43 +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.
patches-2026.12.01.2
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 6c55c64222 feat(replays): open local replays from battle reports
Store the offline session ID in native replay metadata. Match the battle report to its recording and reuse the native player, queue check, and return flow.

Verified TypeScript, GUI and executable patch checks on 2.61.0.37 and 2.61.0.43, and a temporary 2.61.0.43 build. In-game verification is pending.
2026-12-01 11:10:05 +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 39228c6e75 docs(repo): add contributor development guides
Document development rules, patch formats, and PR review checks. Include reusable patch and PR templates, and correct the README development commands.

Verified Markdown links, all three patch template types, root and launcher type checks, and exe and GUI checks on client 2.61.0.37.
2026-11-30 20:40:20 +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