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.
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.
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.
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.
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.
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.
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.
Launchers accept a downloaded adaptation pack only when its signature verifies against this key. The private key is kept outside the repository, in the PATCH_SIGNING_KEY secret of the release workflow.
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.
The features listed by every exe and GUI patch definition now use English
tags, so contributors can read them without knowing Chinese. Each tag keeps
its feature inventory section letter (A- to O-) and translates the inventory
row it stands for. Tags that named the same row in two languages are merged
(store, premium account, marketplace), and the external inventory tag on the
coupon redemption patch joins the coupons tag it describes: 32 tags become 28.
The three essential tags in the patcher and the launcher's feature labels in
both locales follow the rename.
Checked: check-patches, check-gui, root and launcher typecheck, launcher
build, a build-game-copy run into a temporary folder (12 exe and 35 GUI
patches ready, as before), and install:listFeatures in the launcher
returning 28 tags with the three essential ones flagged.
The window is now a fixed 1120x720 frameless window with its own title
bar: page navigation, language, minimize and close. The layout follows
the game's launcher: a side panel, the main area over the background,
and a bottom bar with the state of the current task and the primary
action. The colours and type follow the game's website: dark blue-grey,
red actions, Roboto Condensed (bundled, OFL), cyan progress.
- Pages: home (requirements before installation, the current copy
after), copies (copy details with folders to open, feature status
grouped by inventory section), settings (language), about.
- The install wizard is a hook shared by the side panel (step list),
the main area (current step) and the bottom bar (back, next, install,
cancel, copy progress).
- The adaptation shown for a game version is the version itself when
the patches were verified on it, otherwise the nearest verified one.
- Both language packs are rewritten in consistent product wording.
- New IPC: app:openFolder, install:listFeatures (patcher's new
patchFeatures), window:minimize, window:close; app:getInfo reports the
supported game versions.
Launching is not built yet; its button stays disabled.
Checked: launcher typecheck (main and renderer), electron-vite build,
root typecheck. Ran the window from a scratch user data folder over the
remote debugging port: every page and section in Chinese and English,
empty and installed state, the wizard's first step, both new IPC calls,
no console errors and no overflow.
The install wizard needs to tell whether the chosen folder is a War
Thunder installation, which version it is, whether it is a Steam
library, and whether the folder for the copy can take it.
The patcher reads the game version from win64/aces.exe (the
VS_FIXEDFILEINFO block of its version resource) and works out the
versions every exe and GUI patch was verified on, from their
verified_on lists, so the version check follows the patch definitions
instead of a constant.
The launcher gets four IPC calls, each validated against the contract:
- dialog:pickFolder, a folder picker titled by the window;
- install:inspectGameFolder: missing game files, version, verified
versions, Steam library;
- install:inspectTargetFolder: new or empty, not overlapping the stock
installation, Steam library, free space on its drive, and whether it
is on the stock installation's drive (the space saving copy needs
that);
- install:measureFolder: bytes and files of the stock installation,
regular files only, links not followed.
A folder that does not exist or cannot be read is the folder_unreadable
error code, translated in both languages. In development the patch
folders and the hook library come from this repository; the packaged
layout comes with the installer build.
Checked with both typechecks, the launcher build, and the calls made
from a running launcher window: the stock folder (2.61.0.37, verified),
a non-game folder, a missing path, a Steam library path, four target
folders (new, inside the stock folder, not empty, other drive) and the
size of the offline copy (96.9 GB in 10,972 files).
The launcher has to show the player which patches do not fit their game
build, let them go on without the features those patches cover, and
refuse when a patch that keeps the copy apart from the online game is
missing. The patcher could only refuse the whole build.
- GUI patches are applied one by one. A patch with an edit whose stock
text is not found exactly once, or whose script is missing, is left
out whole and reported with its features, like an unavailable exe
patch; the others are applied.
- patchExecutable always produces the executable with the available
patches; unavailable ones and those depending on them are listed.
- essential-features.ts names the features whose patches stop an
installation: A-离线启动, A-与正版隔离, A-不连 Gaijin (the copy does not
start, touches the online game's data or identity, or connects to
Gaijin without them). Patches tagged with them are 9 exe patches and
one GUI patch today.
- buildGameCopy builds every file of the copy in memory from the stock
files and the caller's inputs (patch folders, hook library, port,
store pack ids) and returns them with a structured report;
writeGameCopy writes them, replacing each file instead of writing
through a hard link. readStockGameFiles reads the four stock files.
- assertWritableCopy takes steamLibraryConfirmed for a Steam library the
player chose after the warning; isInSteamLibrary is exported.
scripts/build-game-copy.ts uses buildGameCopy and still writes nothing
when any patch is unavailable, unless --skip-unavailable is given and
none of the unavailable patches is essential.
Checked with the root typecheck and three runs of build-game-copy.ts
into scratch folders: all patches as they are (12 exe, 35 GUI, 496
bundle GUIDs, six files written); one ordinary exe patch and one GUI
patch broken (both reported with their features, nothing written, then
written with --skip-unavailable); the network hook patch broken (it and
the TLS patch depending on it reported as essential, nothing written
even with --skip-unavailable).
Comments where "local" and "service" fell on two lines, and the Chinese
titles of five patch definitions, still named the local service.
Checked with the root typecheck, check-patches and check-gui.
Everything sat in packages/: two programs next to the small libraries
they use, and the patch data loose at the root. The programs now live in
apps/ and the shared libraries in packages/:
apps/server the local server (was packages/local-service),
package @wto/server
packages/patcher builds the game copy (was packages/build),
package @wto/patcher
patches/exe exe patch definitions (was exe-patches)
patches/gui GUI script patches (was gui-patches)
Inside the server, the network layer folder becomes transport/ so it is
not server/server/, the entry module is server.ts, and startLocalService
and its types become startServer, ServerOptions and RunningServer. The
health answer names the app wto-server, and the TLS files in the data
folder are server.key and server.crt (made again on the next start).
Comments, logs and tool texts say "local server".
The patcher no longer reaches into the server's folder. It read the
default tuning/store.jsonc by a relative path to register bundle GUIDs
for the multi-vehicle packs, which also ignored the player's overrides
in <data>/tuning/. It now takes the pack ids from its caller; the
server exports multiVehiclePackIds(dataFolder), which reads them the way
the running server does. rebuildGuiPack takes the patch folder from its
caller as well.
The development build moves out of the patcher to
scripts/build-game-copy.ts, since it uses both the server and the
patcher. It needs --data (the folder the server will run with) and
defaults the patch folders and the hook library to this repository.
Checked with the root typecheck, check-patches, check-gui,
check-offsets, the native build, a run of build-game-copy.ts into a
scratch folder (12 exe patches, 35 GUI patches, 496 bundle GUIDs as
before) and a server start from apps/server answering wto-server.
BREAKING CHANGE: Use @wto/server and @wto/patcher from the new workspace paths. Run the development build with scripts/build-game-copy.ts and pass --data.
The respawn screen showed an empty loadout for the nuclear carrier: a
preset is listed only when shop_is_weapon_available passes (2.61.0.37
0x17a38a0 -> 0x912d20 -> 0x90f2c0 / 0x9662f0), which needs every
reqModification of the preset and of its sum_weapons to be a bought
modification of the unit in the profile. The forced preset of
f_16a_block_15_adf_killstreak carries bombguns_us_b61_30kt with
reqModification us_500lb_mk82, and the player never owns that unit.
Derive the modifications of each missionSupportPlane unit's forced
preset from wpcost.blk and keep them in every profile as owned, in the
profile refresh. Only those killstreak units are touched.
Checked with typecheck and a run over the stock data (30 records, the
F-16 one included); not yet verified in game.
Online the time flown in the nuclear carrier (gameplay.blk
missionSupportPlane) and its kills are not settled, while other aircraft
are. Its lives were settled like any vehicle when it was spawned from
the lineup slot: battle time, research points and repair for a unit the
player does not own.
Collect the support plane units from missionSupportPlane and drop their
lives and combat events from the battle facts before the settlement and
the live award judging. The nuclear strike fact and its award are kept.
Checked with typecheck; not yet verified in game.
Online the battle server gives killStreak_bomber_nuclear_success (mode
killStreakNuclearSuccess, 10000 SL) when a player's nuclear bomb
explodes; the LocalMP host has no battle server, so the award was never
given.
The native nuke module now remembers whether the local player launched
the instant-win bomb and, when it explodes, raises the HUD script event
wtoLocalMpNuclearStrike. The battle record keeps it as a strike, sends
it live (wto_battle.fact kind "strike") and reports it after the battle
(strikes{}); the local service awards killStreakNuclearSuccess once per
strike, live as the award banner and in the settlement.
Checked with typecheck, check-gui, check-offsets and the native build;
not yet verified in game.
The 2.61.0.37 mission loader looks up the gameplay.blk missionSupportPlane
preset by the mission's gameModeName; without it the native nuclear carrier
is never assigned, so no action bar item and no instant-win bomb.
The 2.61.0.37 client reads customRules/customBots into its bot settings. Send the existing matchmaking pools and both country lists through that block. Verified both coalitions in an isolated Ground Realistic battle.
The unreviewed baseline shortened many file headers and dropped their sources: the
research notes sections, architecture sections, stock script paths and client
addresses. They are put back where the code still does what they describe, and the
headers of research, modification and research action files now also describe the
banked excess RP flow (cln_move_exp_to_unit, cln_move_exp_to_module) that the
baseline added. Comments only.
Checked: typecheck.
The client never raises a vehicle's hp by itself; the hangar shows (1 - hp) x the
full repair time as what is left (shop_time_until_repair, aces.exe 2.61.0.37
0x17a5040). The local service now restores hp whenever it hands out or changes a
profile: hp grows by the hours since it was last set over the full repair time, and
the damage is cleared at 1.
The full repair time follows the client (0x937330): repairTimeHrs<Mode> times the
repair cost's modification factor (0x964750 -> 0x964900) times a crew multiplier
when a crew has the vehicle as its current one, else repairTimeHrsNoCrew<Mode> (or
repairTimeHrs x rTimeNoCrewMul, 0x964e30). The crew multiplier runs from 1 to 1/3
(hangarRepairSpeed default, 0x95cee0) over the groundService/repair level plus the
specialization share of specialization<k>_add (0x95d200), and applies only when
repair_ranks covers the vehicle's rank for the crew's repairRank level (0x95d7b0).
The vehicle-repair dataset gains the repair times, rTimeNoCrewMul and these crew
skill values; RepairRules is built with the profiles so the refresh can use it.
Inferred: the skill fields the client divides are level and maximum level, the
rank compared is the tech tree rank, linear growth at the current crew's pace.
Checked: typecheck; full repair times for us_m1a1_abrams from the game data (no
crew 678 h, untrained 171 h, maxed ace 57 h) and the hp growth over time.
Settlement already added an expert crew's battle RP to expertToAceProgress but capped
it at train3Cost_exp and left the crew at expert. The stock tooltip says ace is
"obtained for free when the crew gets {expAmount} with the current vehicle"
(crew/qualification/specDescriptionPart), and the client's discount stages end at
75 % (wp_get_specialization_cost_gold -> aces.exe 2.61.0.37 0x9165f0). The crew now
becomes ace once the RP reaches the target and its progress entry is dropped, as
the client drops an empty expertToAceProgress block (0x93b4eb). The ace price no
longer has its own "free at 100 %" case, so it matches the price the client shows.
Checked: typecheck.
With "Research of helicopters by playing ground vehicles" on, the stock text says
ground vehicles are not researched and all their vehicle RP goes to helicopters
(lang shop/research_helicopters_by_ground_vehicles_tooltip). Settlement fell back
to the ground branch whenever the helicopter branch had no current research target;
now the RP stays in the destination branch (banked there until the player picks
the next helicopter) and returns to the vehicle's own branch only when the
destination has nothing left to research. The redirection moves from the profile
helper into the RP investment, which has the tech tree.
Checked: typecheck.
The client never downloads downloadable_decals.<hash>.blk: webdlcontent only looks
for it in its web cache folder (aces.exe 2.61.0.37 0xd3e710 -> 0xd3f610) and deletes
a file whose signature check fails (0xd383e0), so the index the local service served
never reached it and every decal was dropped for lack of a texture.
The build now stores dldata/downloadable_skins.blk and dldata/downloadable_decals.blk
in char.vromfs.bin. The client's vromfs index path (0xd3bc40 -> 0xd3cc60) loads both
without hash or signature checks and skips the download path. Each decal points at
a built-in decals.dxp.bin texture (star, or panther for wide decals) as placeholder;
the texture manager strips the "?options" suffix before the lookup (DagorEngine
TextureMetaData::decode), so the existing textures are used.
--decal-cache <folder> copies the cache/content folder of the player's online
installation into the game copy instead; the client then uses that signed index and
its cached textures, and falls back to the cached dldata_s.info because the local
service now answers the dldata hosts with 404. The service's index generation, the
content hash helper and the decal texture dataset are removed.
Checked: typecheck; client startup log shows 1598 decals registered from the vromfs index
with no missing textures.
The local service now settles vehicle repair after a battle and charges
hangar repairs at the price the client shows.
- New dataset vehicle-repair (wpcost.blk repairCost<Mode>,
repairCostPerMin<Mode>, modifications' repairCostCoef<Mode>) and
RepairRules, which follow the client's own formulas: full cost =
repairCost<Mode> x (1 + coefficients of the owned modifications)
(aces.exe 2.61.0.37 0x10517b0, 0x964900); current cost =
max(1, (1 - hp) x full cost) in the vehicle's lastGameMode
(getAircraftRepairCost 0x90e0b0).
- The price table now carries aircrafts/<vehicle>/repair/<mode>/cost,
where the client looks the full repair cost up; it read 0 before.
- After a battle each life costs the official lifetime share: destroyed
= repairCostPerMin x minutes started, at most the full cost; leaving
the vehicle (or the battle) early = full cost; surviving = nothing;
destroyed by an ally = nothing. The cost is written as hp,
lastGameMode and time on the hangar entry, so the client's own repair
cost matches it.
- Automatic repair (autoRepairAircrafts, on by default) pays for the
damaged vehicles the player can afford; premium accounts with
automatic repair and ammunition purchase get the expenses beyond the
battle's earnings back. The battle log gets aircrafts hp,
autoRepairWasOn, container.aircraftsRepaired and
wpExpensesCompensation; the debriefing gets the ExpensesCompensation
row.
- cln_prepare_aircraft, cln_repair_all and cln_repair_all_in_slots
carry no price; they now charge the current repair cost instead of
repairing for free.
Not yet verified in game.
Boosters (rateBooster items) now add to the settled battle as the stock
client and the official wiki describe: each booster adds its percent of
the base reward; boosters stack per event type and personal / all-allies
group with the client's calc_public_boost factors; a battle uses one
battle of a booster plus one per spentInSessionTimeMin span, and a
booster with R battles left covers the first R spans; kill, ground kill
and assist boosters add only to that event and end after their kill
count. The debriefing table gets the booster columns, the session log
lists affectedBoosters, the research breakdown carries boosterExpTotal,
progress is saved and used-up boosters are removed with an
EULT_REMOVE_ITEM log.
The active wager now moves with each battle that meets its active
conditions (lineup rank range, random battle, mission postfix): a stage
when its win condition holds (battle won, players killed, or the listed
battle awards, hidden ones included), otherwise a failed battle. It ends
at maxWins or maxFails and pays a x stake x stages^b + c of the reached
stage. Each counted battle logs EULT_CHARD_AWARD in the battle's room and
the session log lists affectedWagers, which the stock debriefing shows.
Hidden battle awards are now judged (not shown or logged) so wagers can
name them; awards of mode missionsWon are supported, and "unlocks"
awards honour num.
The new GUI patch battle/match-settled-battle-room-logs matches the
settled battle's logs by room id in isUserlogVisible, the one filter all
"this battle's logs" queries use; it replaces the two per-call edits in
use-settled-debriefing-stats.
Not yet verified in game.
The battle awards (streaks) of unlocks.blk are now judged by the local
service from the battle's facts: the player's combat events, each life
and whether it ended in death, the HUD kill log and the final
scoreboard. The record patch also sends each fact live over the
matching connection (wto_battle.fact); the awards it completes come
back and are shown with the stock award banner and kill log entry.
After the battle the awards become EULT_NEW_STREAK logs, which the
stock debriefing lists on its left, and their Silver Lions are paid and
shown in the Unlocks row. Modes whose facts are not reported, and
best-player awards limited by battle rating, are never given.
Vehicle research points now follow rank.blk: the predecessor bonus
(expBonusPercentForChildForMode), the rank difference penalty
(expPenaltyPercentForHigherRank / LowerRank) and the Vehicle Research
Bonus (ExpNewNationBonus, five battles per nation and type per UTC day).
Modifications keep the research points before these terms.
The settlement records each vehicle's breakdown in the session log's
container.researchPoints, which the stock debriefing explains in its
research rows. The debriefing patch now selects the battle's logs by
room id, since a LocalMP host is in no matching room and the stock
current-room check cannot match them.
The live game draws one vehicle from each RandomSpawnUnits group at
launch and shows it as a plain lineup vehicle (a 12.7 US lineup gets an
M1A1 12.0 and an ADATS 12.0, no dice), so the random_units state and the
patch that filled it are gone. The strike UCAV costs 750 spawn points,
the live game's value, now in tuning/battle.jsonc.
- Scoreboard scores come from the local service: BattleEconomy
missionScores() writes the official mission scores into the stock
mission block customScoreParams, which the client copies into
MissionSettings+0x6d8 without reading it; local_mp_scores.c reads them
with DataBlock::getReal. The hardcoded scores and the death score go.
- countActivePlayers already counts players with a living vehicle; the
only LocalMP gap is its filter skipping bots (MPlayer+0x1d8 bit 7). A
one-byte exe patch drops that filter bit instead of a rewrite hook.
- ucavLaunch returns early on a host; an exe patch skips that return
instead of clearing the global host flag around the call.
- onBecameDead no longer runs with isLocalMP cleared: that only queued an
EventOnPlayerDeath stock LocalMP skips on purpose, and broke the local
player id remap inside the function.
- The host chat object keeps its two-field layout, now documented from
the host chat handler that reads it.
Rebuild the extra vehicles a battle adds to the player's lineup on the
game files and the official rules:
- Random vehicles (dice slots): one per gameplay.blk RandomSpawnUnits
group of the event economic name and country, offered from the
group's minPlayerMRank on, with no condition on the lineup. The option
window follows the official changelog examples (never the session's
top BR, lower BR when nothing fits); its formula is inferred from the
group parameters. Only the listed addModification items are enabled.
- Nuclear carrier: missionSupportPlane preset of the session rank, cost
spawnScoreToUse.
- Strike UCAV: offered by an offline tuning rule, priced by the stock
spawn score formula, no forced preset.
The spawn request enables exactly the slot's modifications, and every
forced weapon travels in the slot, so the event-name fallback is gone.
The per-event game tables (rank.blk ExpSkillBonus, gameplay.blk
RandomSpawnUnits) and the stock scripts that read them through
getEventEconomicName key ground and naval events as
tank_event_in_random_battles_arcade, tank_random_battles_historical_base,
tank_event_in_random_battles_simulation and
ship_event_in_random_battles_{arcade,realistic}. The catalogue used the
leaderboard mode ids instead, so the skill bonus and random spawn units
of those modes were never found.
The LocalMP host has no battle server, and the previous bridge filled the
gap by computing money in the client: the native ledger wrote invented
amounts into SessionStatsNet, the spawn patch derived reward rates from
warpoints.blk, and the settlement patch summed and rescaled the result.
Rewards came out as zero or several orders of magnitude too high.
Now the client reports facts and the local service prices them.
Native (wto_ws.dll):
- local_mp_ledger.c is removed together with its SessionStatsNet
offsets and four signatures (43 -> 39).
- local_mp_awards.c raises the HUD script event wtoLocalMpExpEvent for
every combat event of the local player (event code, victim expClass
and name, player or AI victim, friendly, naval damage). The DataBlock
helpers and the HUD event queue are resolved from call sites inside
GameSaveData::addScoreMessage, which already has a signature.
GUI patches:
- record-local-battle-awards records events and lives in nestdb and
raises the stock InBattleReward banner from launch-time parameters.
- report-local-battle-settlement sends only facts and rebuilds the
debriefing from the settled table; failures show the stock error box.
- use-settled-debriefing-stats makes gatherDebriefingResult read that
table instead of the empty stat_get_exp().
- pass-spawn-modifications-blk no longer computes economy factors.
Local service:
- battle-economy dataset reads every reward factor from wpcost.blk,
warpoints.blk and rank.blk; tuning/battle-economy.jsonc holds the
mission score per event with its source (official values where
published, otherwise marked).
- battle-economy.ts is the single pricing function, shared by the
banner parameters and the settlement; battle-rewards.ts adds battle
time, timed award, win/defeat bonus, activity, premium account,
talisman, skill bonus and free research points; the debriefing table
has the stat_get_exp() layout and travels in EULT_SESSION_RESULT.
- Crews earn skill points from the battle's research points.
- A battle left before it ends counts as a defeat.
Verified: npm run typecheck, check-gui (35 patches), check-patches,
check-offsets, native build. Not yet run in game.
The launch script patch used to assemble the whole MissionSettings block
on the client: reading the mission file for localization keys and ticket
rules, filling the AI vehicle pool, rank window and extra slot costs.
All of that is pre-battle data the local service already owns.
- multiplayer-missions dataset v3 keeps the scalar parameters of
mission_settings.mission and of each per-difficulty sub-block, with
their BLK types.
- battle-mission-settings.ts builds the complete MissionSettings block
from the launch plan (same parameters as before).
- battle-launch-notify.ts sends it as a typed tree, so ints and reals
keep the types the engine reads, plus the lobby settings and the
per-battle record the in-battle patches read from nestdb.
- The launch patch shrinks from 208 to about 70 lines: rebuild the
DataBlock, set _gameMode from the client's own native constant, enter
the session lobby and start the LocalMP battle.
Behaviour is unchanged; coalitions, extra slots and economy are reworked
in later commits. Verified: npm run typecheck, check-gui (33 patches).
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.
Cache allowlisted official media so the in-game browser can load it locally. Match the official catalog snapshot and start pack demos muted and looping on entry.
Save carts per account and settle each order in one profile update. Add featured packs, a screenshot and video gallery, and premium artwork from the game files.
Show the installed game artwork in the local store and marketplace. Use the official cover and gallery for each mapped product, with on-demand video playback. Include store cover images and screenshots in optional offline asset packs.
Verified TypeScript, browser script syntax, local service startup, game artwork endpoints, a sample image pack, and BMD-4M WebM byte-range delivery. In-game verification is pending.
Include the catalogue titles in the entitlement price data and select the matching language in the client receipt formatter. Checked TypeScript, the GUI pack rebuild, and the patched Quirrel script.