Files
WT-Offline/patches/exe/battle/allow-local-host-bot-spawns/patch.jsonc
T

34 lines
965 B
JSON

// Let BotSystem::changeUnit spawn the AI players' vehicles on a LocalMP host (0x11b2c3a: the g_multiplayer
// null guard becomes a jump to the Unit::changeAircraft call at 0x11b314e).
// Why the exe: the build drops the dedicated server's script spawn permission, so with a multiplayer
// session the function only logs "spawn denied by scripts"; non-host sessions already return at its start.
// Without it: no AI vehicle ever spawns in a LocalMP battle.
{
"id": "battle/allow-local-host-bot-spawns",
"title": "Let BotSystem spawn AI vehicles on a LocalMP host",
"features": [
"K-AI 对手与队友"
],
"requires": [],
"verified_on": [
"2.61.0.37"
],
"edit": {
"offset": 38,
"asm": [
"jmp 0x514",
"nop",
"nop",
"nop",
"nop",
"nop",
"nop",
"nop",
"nop",
"nop"
],
"bytes": "e90f050000909090909090909090",
"expect_original": "48833d6e109d06000f8406050000"
}
}