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 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.
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 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.
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.
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.
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.
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.
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 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.
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.
Recompute unlocked ranks, prerequisites, and unit states before serving
profiles. Add research target selection, research conversion, vehicle
and slot purchases, and the price table. Support editing convertible RP
and restrict hidden vehicle visibility to eligible entries.
The client still displays zero purchase prices pending price table
integration.
Set initial Silver Lions and Golden Eagles balances and add a save
editing command. Open rank I for each nation and branch and migrate
older saves to format 3. Reveal eligible hidden vehicles while keeping
split air-defense launchers out of the tech tree.
Document the currency, rank, and unit status fields observed in the offline client.
Derive reserve vehicles from the stock economy data. Grant all reserves
and mark the basic takeoff and landing tutorials complete in new saves.
Apply the same grants through the format 2 migration.
Use shared crew slot rules for first-run selection, presets, training,
assignment, and removal.
Save the selected country, starting crew, and unlocks when the client
submits its first-run selection. Use the stock unlock and crew formats.
Enable the existing option to skip the basic tutorial.
The client reached the hangar. Tutorial verification is pending.
Add matching frame and message handling, per-connection session
encryption, and loopback traffic dispatch. Serve the decorative content
manifest and empty indices to remove startup download waits.
Resolve character requests to their explicit account ID, include the
nickname in profile replies, and redact matching traffic logs.