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.
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.
Place the existing transaction notice above the item dialog and report unconfirmed results when a request fails or returns invalid data. Prevent older responses from overwriting the latest notice.
Verified JavaScript syntax.
Use the existing entitlement refresh task when leaving the local store, marketplace, currency shop, or Premium Account shop. Use the same path for the explicit and ordinary browser close actions.
Verified GUI patch application and Quirrel syntax.
Persist the actual grant in the purchase log and open one native receipt per unread entry. Keep pending receipts during log trimming and resume them when the price table becomes available.
Verified TypeScript types, GUI patch application, and Quirrel syntax.
Add catalogue filters, item detail views, and purchase and resale
actions. Resolve images from the player's asset pack, public image
URLs, or local game data. Add a utility for creating the optional
local asset pack.
Type checking and JavaScript syntax checks passed. Embedded browser
appearance and in-game behavior still need acceptance.
Register bundle GUIDs at build time and return local store item URLs.
Route marketplace item links to the requested coupon. Update vehicle
and cosmetic prices from the marketplace snapshot and support selling
coupons back to the system at the configured fee.
Type checking, an isolated build, and local service checks passed.
In-game acceptance is pending.
Save revisions to custom weapon presets and return the full profile.
Keep an empty top-level weaponPresets block after the final deletion
so the client clears its cached presets. Treat the tier-zero
allowPremDecals modification as researchable.
Type checking passed. In-game acceptance is pending.
Extract weapon prerequisites, default equipment states, and exclusive
groups. Grant eligible zero-cost modifications in dependency order and
initialize newly unlocked consumables and weapon presets at capacity.
When automatic restocking is enabled, replenish existing stock subject
to the Silver Lions balance. Enforce purchase prerequisites and
exclusive equipment groups.
Type checking, patch checks, and local data extraction and restocking
checks passed. In-game acceptance is pending.
Sign the inventory JSON payload using the local signing key and
provide the required signature headers. Register the corresponding
public key in the rebuilt GUI pack so the client can verify the
definitions.
Type checking, pack checks, and local signature verification passed.
In-game acceptance requires a rebuilt offline copy and restarted service.
Return the unframed BLK expected by the cloud settings client.
Allow the basic ground tutorial to be skipped and save the tutorial
preference immediately.
Keep ResearchRules focused on vehicle research and purchases. Move
cln_get_price_ex encoding into the character protocol layer and inject
its catalogue dependencies explicitly. Load only the catalogues needed
by each service and save editing command.
Type checking and isolated service and save CLI checks passed.
In-game acceptance is pending.
Expose free payment in the in-game dialog, local store, and marketplace.
Grant the selected item without debiting GJN and reject unknown payment
methods. Apply the configured per-purchase limit consistently.
Type checking, binary and GUI patch checks, and local purchase checks
passed. In-game acceptance is pending.
Match archive paths without regard to case and include Golden Eagle
vehicles in icon extraction. Default read-only page state to the
current in-game account. Keep web mutations gated on an explicit
account ID.
Type checking and local icon and account selection checks passed.
In-game acceptance is pending.
Offer the five three-vehicle packs and nine starter packs as bundles.
Grant their unowned vehicles and bonuses on purchase. Encode each
vehicle in an aircraftGift field and validate duplicate IDs and
vehicle assignments.
Read group labels from units.csv and country names from
_common_languages.csv. Use those names in packs and browser filters.
Type checking and local catalogue and price response checks passed.
In-game acceptance is pending.
The accelerated research dialog reads currUnit when it first opens.
Assign a valid target whenever an eligible vehicle exists and replace
stale selections when refreshing a profile.
Prefer an available direct successor when configured. Otherwise use
the configured rank or tech tree order. Type checking and profile
initialization passed. In-game acceptance is pending.
Use the native embedded browser and pass the game language through
auto_local. Share web assets and extract vehicle icons, flags, and
localized names from the installed client.
Load and validate per-domain JSONC tuning and merge local overrides
by field. Use official store USD prices for GJN products, keep GJN
balances in integer cents, and split the native and web store
handlers by protocol. Multi-vehicle packs are still listed as single
vehicles at this point.
Type checking, patch checks, and configuration loading passed.
In-game acceptance is pending.
Read and write the digest table start as a 64-bit field in both codecs.
The truncated offset caused SHA-1 mismatches in large packs such as
ui/images.vromfs.bin and ui/atlases.vromfs.bin.
Type checking passed and the service extracted icons and flags from
the large packs.
Read squadron action parameters from the request headers and persist
squadron state on profile refresh. Use floating-point trophy weights
to match the client probability display and assign unique log IDs
when opening multiple chests.
Tighten shop, marketplace, squadron, and cloud settings validation.
Move PBBD and inventory encoding into the protocol modules and share
CSV reading. Update the research and acceptance instructions.
Type checking and all eight executable patch checks passed.
In-game acceptance is pending.
Split inventory definition generation by category and select chest
contents deterministically. Move squadron queries, membership, and
lifecycle into focused modules and enforce role permissions.
Serve store and marketplace pages as static files with shared web
helpers. Share profile field readers and keep response encoding in
the protocol modules. Restrict cloud settings to registered blocks.
Type checking and the save CLI ran successfully. In-game acceptance
is pending.
Reject game requests whose token or account hint cannot be resolved
and require a valid explicit user ID for web mutations. Remove the
entitlement action without a verified client call site.
Register the loopback store URL script edit and require a unique match
during pack construction. Type checking and patch loading passed.
In-game acceptance is pending.
Use the loopback service certificate for the offline HTTPS path. Retain
original host names for host-based routing and allow the network log
to be read while the client is running.
Build the socket library and client-local port configuration for redirecting
traffic to the offline service. Accept HTTPS and the existing matching and
HTTP protocols on the same port. Route requests by the original host.
Store and activate boosters, personal discounts, wagers, and universal
spares. Apply active personal discounts when pricing vehicle purchases.
Return the server time and default fields for every showcase type.
Add developer commands for inspecting game logs, strings, references,
callers, and disassembly.
Load unlock prices from unlocks.blk and expose them in Common/unlocks.
Support purchasing unlocks and saving showcases, and count qualified
crews for the ace showcase.
Read charRequestBlk action parameters from HTTP headers and apply this
to cln_get_users_terse_info.
Write modStatus in modsResearch so the client recognizes purchasable
modifications. Persist ownership and initial equipment state for free
modifications and quantities for free weapon presets.
Persist preset inventory in the weapon records and handle cln_buy_weapon
using the maximum quantity extracted from the game data.
Support spending crew skill points, buying skill point packs, and
purchasing expert and ace qualifications. Charge for training a crew on
an unfamiliar vehicle and expose the skill pack prices.
Include modification, weapon, and spare vehicle prices, omitting zero
prices. Recalculate modification research and ranks and handle research
target selection, purchases, bulk purchases, and equipment toggles.