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.
39 lines
1.5 KiB
JSON
39 lines
1.5 KiB
JSON
// Offline battle session capacity, AI bot pool rules, nation coalitions, and post-battle multipliers.
|
|
{
|
|
// Offline multipliers on every battle reward, Silver Lions and Research Points (1.0 = the rates of
|
|
// tuning/battle-economy.jsonc and the game files).
|
|
"rewardMultiplierSilverLions": 1.0,
|
|
"rewardMultiplierResearchPoints": 1.0,
|
|
|
|
// LocalMP session capacity (16v16 = 32 total slots: 1 local player + up to 31 AI bots).
|
|
"maxPlayers": 32,
|
|
"maxBots": 31,
|
|
|
|
// Reduced LocalMP session capacity when Tactical Skies (`small_teams_`) is selected (8v8 = 16).
|
|
"smallTeamsMaxPlayers": 16,
|
|
|
|
// Chance (0..1) of rolling an enabled sub-mode (Night Battles, Tactical Skies, Bullet Hell,
|
|
// Nuclear Escalation, Naval EC) when queued alongside the classic mode; 1.0 when classic is off.
|
|
"subModeChance": 0.5,
|
|
|
|
// Matchmaking economic-rank spread around the player's lineup mrank (3 steps = +/- 1.0 BR).
|
|
"brSpreadMrank": 3,
|
|
|
|
// Maximum vehicles per unit category (tanks, aircraft, ships) emitted into customBots.
|
|
"botPoolLimitPerType": 80,
|
|
|
|
// Realistic Battles multi-nation coalition size bounds and mixed-battle probabilities.
|
|
"rbCoalitionMinCountries": 2,
|
|
"rbCoalitionMaxCountries": 5,
|
|
"rbGroundMixedChance": 0.08,
|
|
"rbAirMixedChance": 0.25,
|
|
"rbNavalMixedChance": 0.70,
|
|
|
|
// Simulator Battles Cold War / modern bloc cutoff mrank (18 = BR 7.0).
|
|
"simColdWarMinMrank": 18,
|
|
|
|
// AI bot respawn limits per battle in multi-slot versus modes.
|
|
"tankBotRespawns": 3,
|
|
"airBotRespawns": 2
|
|
}
|