Serve game modes from extracted mission data

Publish stable mode IDs and matching responses in the stock format.
Build the mission pools from the multiplayer mission data and provide
required fields and localized names. Load datasets before listening and
reuse cached results when the source file digests match.

Preserve invalid UTF-8 bytes when round-tripping BLK strings and names.
The game mode list appeared in the offline client.
This commit is contained in:
N0VAN0M4LY committed 2026-11-24 11:02:30 +08:00
1 parent 6ed498e4d0
commit 40af06edad
26 files changed
+943 -28

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ async function main(): Promise<number> {
}
let service;
try {
service = await startLocalService({ gameFolder: values.game, dataFolder: values.data, port });
service = await startLocalService({ gameFolder: values.game, dataFolder: values.data, port, report: (line) => console.log(line) });
} catch (error) {
const code = (error as NodeJS.ErrnoException).code;
console.error(code === 'EADDRINUSE' ? `port ${port} is already in use; choose another port` : String(error));