Add a Project homepage card and button pointing to https://wto-project.net on the launcher About page with matching zh-CN and en locale entries. Root typecheck, launcher typecheck, electron-vite build, and locale key parity checks passed.
Add scripts/publish-r2-releases.ts with a zero-dependency SigV4 R2 client and bilingual static index.html generator. Staged launcher releases and adaptation packs are verified against the committed Ed25519 public key and SHA-256 digests before publishing, assets are uploaded ahead of the releases feed with SHA-256 skip checks, and .env*.local is gitignored for local R2 credentials. Verified with root typecheck, local staging, and live R2 upload.
Replace the single GitHub repository field in release-channels.jsonc with primary_source (https://dl.wto-project.net) and ordered fallback_sources (GitHub), and update withReleaseSources to walk the deduplicated primary, player mirror, and fallback list while keeping preferred-source downloads and Ed25519 signature verification intact. Verified with root and launcher typecheck and launcher production build.
Modern online War Thunder clients (verified on 2.61.0.58) ship their decal and
skin indexes (dldata/downloadable_decals.blk and dldata/downloadable_skins.blk)
inside cache/binary.<ver>/regional.vromfs.bin rather than downloading
downloadable_decals.<hash>.blk into cache/content/. Requiring
downloadable_decals.<hash>.blk rejected every live 2.61 cache/content folder.
- Accept modern online caches containing cached .ddsx textures alongside a
sibling binary.<ver>/regional.vromfs.bin (as well as selecting the parent
cache folder or legacy downloadable_decals.<hash>.blk caches).
- Extract both dldata/downloadable_decals.blk and dldata/downloadable_skins.blk
into a self-contained .wto-index snapshot on launcher import (excluded from
the copied game cache/content folder) and embed them into char.vromfs.bin
during copy build so webdlcontent::init mounts cache/content and resolves
cached real decals and downloadable skins natively without client patches.
- Log the specific rejection reason in launcher decal import and clarify the
en/zh-CN prompts.
Verified with root and launcher npm run typecheck, launcher electron-vite
build, and an end-to-end temporary import + char.vromfs.bin build against a
read-only 2.61.0.58 online cache (4,080 decals / 1,930 skins embedded).
In-game acceptance pending on an isolated 2.61.0.58 client copy.
In the launcher's Saves -> Vehicles & Research page, "Research all" only
filled vehicle RP without purchasing them, requiring players to buy each
vehicle manually in-game while a separate "Grant regular vehicles" button
already added them to the hangar.
Merge the two actions into a single "Research and buy all" (`purchase`) action
alongside "Unlock modifications" (`equipment`), and switch bulk modification
unlocking in save-research.ts to ProfileEquipmentIndex so large saves stay
O(N) and write cleanly across chunked modification blocks.
Verified with root and launcher npm run typecheck, launcher electron-vite
build, and en/zh-CN locale key parity (631 keys).
Dagor's binary DataBlock stores child block counts in a uint16 (65,535 max),
and the full 2.61.0.58 vehicle catalogue contains 76,041 modifications. Writing
all owned modifications into a single `modifications` block caused encodeBlk to
throw BlkFormatError once a save crossed 65,535 entries, preventing saving and
login.
Match aces.exe's native multi-block layout (2.61.0.37 0x938fae..0x9397e6,
2.61.0.58 0x93ba70 / 0x93bb53), which splits modifications across up to 3
sibling top-level `modifications` blocks of at most 65,535 entries each:
- Add allModificationBlocks, appendModificationEntry, and
normalizeModificationBlocks in profile-modifications.ts and span all chunks
in modificationRecord, ownsModification, and writeModificationRecord.
- Index and append across sibling chunks in ProfileEquipmentIndex and
grantSupportPlaneModifications.
- Filter all sibling chunks in prepareTransferredProfile and normalize before
encoding in SaveStore.saveProfile.
Verified with root npm run typecheck and a 2.61.0.58 temporary save check
encoding, decoding, and filtering >65,535 modifications across sibling chunks.
In-game acceptance pending on an isolated 2.61.0.58 client copy.
MissionSettings initializes isLimitedFuel to false by default (2.61.0.37
0x12620af), leaving LocalMP versus battles with infinite fuel, no fuel
burn weight reduction, and no HUD fuel timer. Set isLimitedFuel=true in
battleMissionSettings across all versus modes to match live behavior.
Verified with root npm run typecheck. In-game acceptance pending on an
isolated 2.61.0.58 client copy.
Align battle/pass-spawn-modifications-blk with the native UnitModifications
construction rules verified on 2.61.0.37 and 2.61.0.58:
- Filter effects.bulletMod belts against the spawn request's selected
bullets0..N so unlocked belts (whose last wpcost.blk entry is usually
*_stealth) do not overwrite single-belt aircraft guns with non-tracer
stealth belts.
- Resolve invertEnableLogic (unit BLK overriding config/modifications.blk)
so spaded vehicles move inverted performance modifications to disabledMods
instead of applying stock penalties (and arcade double-inversion) in
LocalMP battles.
- Include unequipped modifications in disabledMods only when they define
disableModEffects (e.g. stock fire extinguisher / repair kit), keeping
unequipped normal modifications out of disabledMods.
Verified with full Quirrel bytecode check-gui on 2.61.0.37 and 2.61.0.58
(49 GUI patches across 37 .nut files). In-game acceptance pending on an
isolated 2.61.0.58 client copy.
Copy allowedKillStreaks and set useKillStreaks for Ground Arcade in battle-mission-settings.ts, and add a dedicated dynamic native module (local_mp_air_events) that preserves MissionSettings.useKillStreaks across prepare_local_mission, credits local player AI kills toward native killstreak counters, delivers UnitRespawn (0xf030) to the LocalMP host via shared unit_on_event, and recovers invalid surface poses from gameplay.blk spawnPos parameters for the match rank.
Based on PR #3 by Rivfflot, who diagnosed the LocalMP Ground Arcade air-event gaps and verified the fix in-game; refactored here onto patches/native dynamic resolution for cross-version and MSVC build compatibility.
Checked: root and launcher typecheck, MSVC native/wto-net/build.ps1, native resolution across 2.61.0.37 and 2.61.0.58 (12/12 modules), 2.61.0.58 check-patches (14/14), and temporary 2.61.0.58 copy build all passed. Pending in-game acceptance on the refactored module.
Co-authored-by: Alem Bek <[email protected]>
Pressing ID_SQUAD_TARGET_DESIGNATION ("Set target for squad") checks
MPlayer+0xab0 (squadId) and returns early when it is zero (2.61.0.58
0x1600a4f). The LocalMP host already retains the 0xf10f relay and
0xf142 HUD indicator path (0xcb045c -> 0xcb1646 -> 0xcafffb ->
0x19a65e0), which also requires a non-zero squadId from matchingInfo+0x0.
Set matchingInfo+0x0 (squadId) to 1 for the local player when zero in
hook_mplayer_init_from_matching so MPlayer::initFromMatching (0x59e660
on 2.61.0.37, 0x59f370 on 2.61.0.58) copies it into MPlayer+0xab0 and
restores the yellow squad target marker without extra hooks or exe patches.
Verified with native wto_ws.dll build; pending in-game verification.
Connect stage-unlocked nuclear carriers to Air Realistic sub-mode 103
(Nuclear Escalation) and expose a player toggle for stage-3 megaton
strategic bombers:
- Dataset & profile grants: extract tactical killstreak nuclear carriers
(5 kt / 30 kt Nuclear Escalation presets) and megaton strategic bombers
(nt_b_52h / nt_tu_95m) from wpcost.blk in battle-spawn-rules (v4), and
grant their required weapon/modification records in
support-plane-modifications.ts.
- Server slot selection & tuning: add nuclearEscalationStrategicBombers
(default true) in tuning/battle.jsonc, battle-tuning.ts, and
launcher-tuning.ts; add one nation-matched tactical carrier per session
rank bracket (with allowedWeapons limited to its Nuclear Escalation
presets) and, when enabled, one stage-3 strategic bomber to
extraBattleSlots; include modeTag in battle launch notifications.
- GUI patch & launcher UI: add battle/filter-extra-slot-weapons on
scripts/weaponry/weaponryinfo.nut to filter extra-slot presets by
allowedWeapons (hiding Ground RB zero-yield presets at stage 0) and to
fall back to LocalMP launch metadata for GameModeRestrictions; expose
the strategic bomber toggle in the launcher Battle tuning section.
Verified with root and launcher typechecks, launcher build, full
check-gui on 2.61.0.37 and 2.61.0.58 (49 patches across 37 .nut files),
and slot selection check across all 10 nations on 2.61.0.58 stock data;
pending in-game verification.
Connect Air Realistic sub-mode 103 (Nuclear Escalation) mission launch
settings and LocalMP respawn/airfield-cooldown handling:
- Server: support mode-level maxRespawns (UNLIMITED_RESPAWNS = -2) and
per-mode missionRuleKeys so Nuclear Escalation forwards customHUD,
stage thresholds, useSpawnDelay, afterRespawnDelaySec, and battle
display flags from the stock missions; reject queues when no candidate
mode is eligible for the lineup; disable spares and emit
wtoUnlimitedRespawns for unlimited-respawn modes.
- Native: keep slots usable when wtoUnlimitedRespawns is set and emit
wtoLocalMpAirfieldSpawn with the unit name and spawn base ID when the
local player actually enters pilot control.
- GUI patches: track confirmed LocalMP airfield departures in
scripts/respawn/respawnbases.nut and feed the computed per-base delays
into scripts/respawn/respawn.nut slot countdowns and spawn checks.
Stage-unlocked dedicated event aircraft allocation by faction and room
BR is not yet wired and remains pending research. Verified with root and
launcher typechecks, check-patches and check-gui on 2.61.0.37 and
2.61.0.58, and native wto_ws.dll build; pending in-game verification.
Unit::loadCrew previously skipped reading the player's equipped crew from
the profile whenever Multiplayer+0x60 (host flag) was non-zero, leaving
human players with default skills and no Expert/Ace bonuses. Calling
UnitCrewSkills::initFromSave after Unit::changeAircraft in the native
loadout hook ran too late to affect live vehicle crew state.
Add exe patch battle/load-local-host-player-crew to check both the host
and LocalMP flags (+0x60 and +0x61) in Unit::loadCrew so only non-LocalMP
hosts skip directly to the default crew while preserving the owner check.
Remove the late initFromSave workaround from local_mp_loadout.c (keeping
its native patch sites for compatibility with 0.1.2 hook DLLs) and add
the E-Crew skills in battle feature labels to the launcher locales.
Verified with check-patches on 2.61.0.37 (0x10025dd) and 2.61.0.58
(0x100700d), native wto_ws.dll build, launcher typecheck and build;
pending in-game verification.
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.
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.
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.
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.
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.
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.
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.
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).
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Include published prereleases in adaptation pack checks. Publish signed adaptation packs as prereleases and let manual workflow runs stage a draft for release notes.
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.
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.
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.
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.
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.
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.
Compile the DLL from source for each installer and clear stale output artifacts for the current release.
Verified by building the x64 installer and checking the generated output and bundled DLL.
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.
Record completion after the guided crew upgrade succeeds. Keep the guide dismissible and close it when its slot or menu target disappears. Compile the affected scripts with the stock queue flag bindings.
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.