mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-24 19:25:56 +00:00
feat(companions): the startup limit is a fleet size, so missing companions are created
CoaBots.AutoLogin.MaxCount only makes the server log in companions that already exist: with 50 companions and a limit of 300, 50 came online. The Manager now creates the difference. - coa-core: fleet_shortfall / queue_fleet_top_up queue one durable pending job per realm for limit - existing (at most 2000 per job, the most one server command takes). Nothing is queued when the fleet is complete or an unfinished job exists for the realm. - start_server: after the world is up, each realm whose auto-login is on is topped up before its pending job runs (shared reconcile_realm_companions helper). If the existing count cannot be read, nothing is created. - Saving the startup settings of a running server tops up right away (new top_up_startup_fleet command); a shortfall above 200 asks for confirmation. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
41977442e9
commit
bff5248591
12 files changed
+221
-34
No files matched your search
@@ -584,6 +584,8 @@ export const api = {
|
||||
invoke<{ txn: UpdateTxn; preexisting_character_count?: number }>("apply_update", { id, source: source ?? null, resolutions }),
|
||||
rollbackUpdate: (id: string, txn: string) => invoke<UpdateTxn>("rollback_update", { id, txn }),
|
||||
retryUpdateValidation: (id: string, txn: string) => invoke<UpdateTxn>("retry_update_validation", { id, txn }),
|
||||
/** Creates the companions the startup fleet is missing (the limit is a fleet size). Returns how many were queued. */
|
||||
topUpStartupFleet: (id: string, realm?: RealmMode) => invoke<number>("top_up_startup_fleet", { id, realm: realm ?? null }),
|
||||
population: (id: string, realm?: RealmMode) => invoke<Population | null>("get_population", { id, realm: realm ?? null }),
|
||||
stopSpawning: (id: string, realm?: RealmMode) => invoke<{ count: number }>("companions_stop_spawning", { id, realm: realm ?? null }),
|
||||
takeOffline: (id: string, realm?: RealmMode) => invoke<{ count: number }>("companions_take_offline", { id, realm: realm ?? null }),
|
||||
|
||||
Reference in new issue
Block a user