Files
WT-Offline/patches/gui/battle/pass-spawn-modifications-blk/patch.jsonc
T
N0VAN0M4LYandduduyagame 3282320fb7 fix(battle): show and debit confirmed backup vehicles
Use the signed i64 profile encoding identified in PR #13. Make attached backups selectable in LocalMP after the daily quota, and debit backups only after the engine confirms the selected slot entered play.

Record the stock daily allowance once per room and slot. Settle owned backups using the confirmed spawn facts and keep repeat settlement from charging the same battle again.

Verified server and launcher types, MSVC compilation, three client builds for patch and Quirrel checks, and a temporary 2.61.0.58 build. In-game acceptance is pending.

Co-authored-by: duduyagame <[email protected]>
2026-12-04 06:24:34 +08:00

27 lines
1.0 KiB
JSON

// Send the vehicle's modifications and chosen backup source with each LocalMP spawn request.
// 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",
"features": [
"K-Spawn score and respawns"
],
"variants": [
{
"written_for": "2.61.0.37",
"file": "scripts/respawn/respawn.nut",
"edits": [
{
"find": "find.nut",
"replace": "replace.nut"
},
{ "find": "find-backup-choice.nut", "replace": "replace-backup-choice.nut" },
{ "find": "find-confirm-spawn.nut", "replace": "replace-confirm-spawn.nut" },
{ "find": "find-used-item.nut", "replace": "replace-used-item.nut" }
]
}
]
}