The launch script patch used to assemble the whole MissionSettings block on the client: reading the mission file for localization keys and ticket rules, filling the AI vehicle pool, rank window and extra slot costs. All of that is pre-battle data the local service already owns. - multiplayer-missions dataset v3 keeps the scalar parameters of mission_settings.mission and of each per-difficulty sub-block, with their BLK types. - battle-mission-settings.ts builds the complete MissionSettings block from the launch plan (same parameters as before). - battle-launch-notify.ts sends it as a typed tree, so ints and reals keep the types the engine reads, plus the lobby settings and the per-battle record the in-battle patches read from nestdb. - The launch patch shrinks from 208 to about 70 lines: rebuild the DataBlock, set _gameMode from the client's own native constant, enter the session lobby and start the LocalMP battle. Behaviour is unchanged; coalitions, extra slots and economy are reworked in later commits. Verified: npm run typecheck, check-gui (33 patches).
25 lines
863 B
JSON
25 lines
863 B
JSON
// Start a local battle pushed by the local service: rebuild the mission settings it sends and host
|
|
// the battle as an in-process LocalMP session (select_training_mission + guiStartFlight).
|
|
// 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",
|
|
"file": "scripts/matching/servicenotifications/match.nut",
|
|
"features": [
|
|
"J-陆战 街机 / 历史",
|
|
"J-空战 街机 / 历史",
|
|
"J-海战 街机 / 历史"
|
|
],
|
|
"verified_on": [
|
|
"2.61.0.37"
|
|
],
|
|
"edits": [
|
|
{
|
|
"find": "find.nut",
|
|
"replace": "replace.nut"
|
|
}
|
|
]
|
|
}
|