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.
23 lines
794 B
JSON
23 lines
794 B
JSON
// Send the vehicle's enabled and disabled modifications with every LocalMP spawn request, and count
|
|
// backup vehicles used for the settlement.
|
|
// Why the client: the battle server would read the modifications from the profile; on a LocalMP host
|
|
// the native spawn receiver (wto_ws.dll local_mp_loadout.c) only gets what this request carries.
|
|
// Without it: every spawned vehicle is stock (no fire extinguisher, smoke, repair kit, upgrades).
|
|
{
|
|
"id": "battle/pass-spawn-modifications-blk",
|
|
"title": "Pass enabled modifications and extra-slot loadout on LocalMP spawn",
|
|
"file": "scripts/respawn/respawn.nut",
|
|
"features": [
|
|
"K-出生点数 / 重生"
|
|
],
|
|
"verified_on": [
|
|
"2.61.0.37"
|
|
],
|
|
"edits": [
|
|
{
|
|
"find": "find.nut",
|
|
"replace": "replace.nut"
|
|
}
|
|
]
|
|
}
|