Files
WT-Offline/patches/gui/battle/launch-local-battle-from-queue/patch.jsonc
T
N0VAN0M4LY 70c4ee4880 fix(battle): assign combat presets to AI aircraft
Read stock weapon triggers and prerequisite modifications. Supply a suitable native preset for aircraft whose default lacks the relevant armament and preserve repeated modification names in the launch block.
2026-12-01 13:50:04 +08:00

28 lines
1.0 KiB
JSON

// Start a local battle pushed by the local server: rebuild the mission settings it sends and host
// the battle as an in-process LocalMP session (select_training_mission + guiStartFlight). It preserves
// repeated text fields such as the modifications required by an AI aircraft's selected preset.
// Why the client: the stock queue only ever joins a remote room (connect_to_host_list, peer mode);
// nothing in it enters LocalMP, so no answer from the service can start a hosted battle.
// Without it: "To Battle!" queues forever.
{
"id": "battle/launch-local-battle-from-queue",
"title": "Launch local authoritative multiplayer battle on queue notification",
"features": [
"J-Ground arcade and realistic",
"J-Air arcade and realistic",
"J-Naval arcade and realistic"
],
"variants": [
{
"written_for": "2.61.0.37",
"file": "scripts/matching/servicenotifications/match.nut",
"edits": [
{
"find": "find.nut",
"replace": "replace.nut"
}
]
}
]
}