mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-19 03:25:56 +00:00
Merge Manager 0.9.14 (master) into the Modules Preview
Brings the rest of Manager 0.9.14: multi-realm playerbots, Companions on Wildcard/Reborn, and the reviewed 0.9.14 notes. Preview 0.9.14 keeps its own name, identifier and updater; installing the current stable server needs Manager 0.9.13 or newer, which 0.9.11/0.9.12 could not meet. modules.rs: Companions follow master's per-build Wildcard/Reborn rule; the version shown still comes from the plugin registry first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
d087d65444
24 files changed
+3313
-568
No files matched your search
@@ -49,3 +49,8 @@ Manager 0.9.13 refreshes the bundled server history through 0.261114.106 from
|
||||
canonical build commit `3308e3a957cd9fd1a2cd145a7f023f2cf521c54c` on 2026-11-15.
|
||||
The reviewed upcoming Manager and server records (Custom Races V2, 213 server notes)
|
||||
carry translations in all five languages.
|
||||
|
||||
Manager 0.9.14 refreshes the bundled server history through 0.261115.110 from
|
||||
canonical build commit `45c013be9ade3001581e5201cacda6cd6bb6b01c` on 2026-11-16.
|
||||
The reviewed upcoming Manager (12 notes) and server (6 notes) records
|
||||
carry translations in all five languages.
|
||||
@@ -40,7 +40,19 @@
|
||||
"Update and recovery checks use the temporary login port even with a Windows override": "Проверка обновления и восстановления использует временный порт входа даже при переопределении в Windows",
|
||||
"Custom Races patch installation recovers from interrupted downloads": "Установка патчей дополнительных рас восстанавливается после прерывания загрузки",
|
||||
"Settings for how much help bots get in dungeons and raids": "Настройки того, насколько ботам помогать в подземельях и рейдах",
|
||||
"The custom races client is updated to Custom Races V2": "Клиент пользовательских рас обновлён до Custom Races V2"
|
||||
"The custom races client is updated to Custom Races V2": "Клиент пользовательских рас обновлён до Custom Races V2",
|
||||
"Install community addons from the Manager": "Аддоны сообщества устанавливаются прямо из Manager",
|
||||
"Old item and creature data is cleared before every Play": "Устаревшие данные о предметах и существах очищаются перед каждым запуском",
|
||||
"Turning the custom races client patch on or off takes seconds again": "Клиентский патч кастомных рас снова включается и выключается за секунды",
|
||||
"The database moves to a free port when Windows reserves or another program takes 3307": "База данных переходит на свободный порт, если 3307 зарезервирован Windows или занят другой программой",
|
||||
"Your own MySQL settings survive restarts and updates": "Свои настройки MySQL сохраняются после перезапусков и обновлений",
|
||||
"Disabled custom races stay disabled after a server update that adds races": "Отключённые кастомные расы остаются отключёнными после обновления сервера, добавляющего расы",
|
||||
"Rename your realms in the Manager": "Реалмы можно переименовать в Manager",
|
||||
"The account for a friend's server is in the login box at every Play": "Аккаунт для сервера друга подставляется в окно входа при каждом запуске",
|
||||
"Restart the world every day at a chosen time": "Ежедневный перезапуск мира в выбранное время",
|
||||
"Switches for the Custom Races V2 subclasses, Hero Races and the /dev menu": "Переключатели подклассов, героических рас и меню /dev из Custom Races V2",
|
||||
"Companion bots on Wildcard and Warcraft Reborn": "Боты-компаньоны на Wildcard и Warcraft Reborn",
|
||||
"The Custom Races card tells which characters stay out while races are off": "Карточка Custom Races показывает, какие персонажи не войдут в мир, пока расы выключены"
|
||||
},
|
||||
"de": {
|
||||
"Choose Parallel or Global level scaling in module settings": "Parallele oder globale Levelskalierung in den Moduleinstellungen wählen",
|
||||
@@ -82,7 +94,19 @@
|
||||
"Update and recovery checks use the temporary login port even with a Windows override": "Update- und Wiederherstellungsprüfungen verwenden den temporären Anmeldeport auch bei einer Windows-Vorgabe",
|
||||
"Custom Races patch installation recovers from interrupted downloads": "Die Installation zusätzlicher Völker setzt unterbrochene Downloads fort",
|
||||
"Settings for how much help bots get in dungeons and raids": "Einstellungen, wie viel Hilfe Bots in Dungeons und Schlachtzügen erhalten",
|
||||
"The custom races client is updated to Custom Races V2": "Der Client für eigene Völker wird auf Custom Races V2 aktualisiert"
|
||||
"The custom races client is updated to Custom Races V2": "Der Client für eigene Völker wird auf Custom Races V2 aktualisiert",
|
||||
"Install community addons from the Manager": "Community-Addons direkt aus dem Manager installieren",
|
||||
"Old item and creature data is cleared before every Play": "Veraltete Gegenstands- und Kreaturdaten werden vor jedem Start gelöscht",
|
||||
"Turning the custom races client patch on or off takes seconds again": "Der Client-Patch für eigene Völker lässt sich wieder in Sekunden ein- und ausschalten",
|
||||
"The database moves to a free port when Windows reserves or another program takes 3307": "Die Datenbank weicht auf einen freien Port aus, wenn Windows 3307 reserviert oder ein anderes Programm ihn belegt",
|
||||
"Your own MySQL settings survive restarts and updates": "Eigene MySQL-Einstellungen bleiben nach Neustarts und Updates erhalten",
|
||||
"Disabled custom races stay disabled after a server update that adds races": "Deaktivierte eigene Völker bleiben nach einem Server-Update mit neuen Völkern deaktiviert",
|
||||
"Rename your realms in the Manager": "Realms im Manager umbenennen",
|
||||
"The account for a friend's server is in the login box at every Play": "Das Konto für den Server eines Freundes steht bei jedem Start im Anmeldefeld",
|
||||
"Restart the world every day at a chosen time": "Die Welt täglich zu einer gewählten Uhrzeit neu starten",
|
||||
"Switches for the Custom Races V2 subclasses, Hero Races and the /dev menu": "Schalter für die Unterklassen, Heldenvölker und das /dev-Menü von Custom Races V2",
|
||||
"Companion bots on Wildcard and Warcraft Reborn": "Begleiter-Bots auf Wildcard und Warcraft Reborn",
|
||||
"The Custom Races card tells which characters stay out while races are off": "Die Custom-Races-Karte zeigt, welche Figuren draußen bleiben, solange die Völker aus sind"
|
||||
},
|
||||
"fr": {
|
||||
"Choose Parallel or Global level scaling in module settings": "Choisissez une progression parallèle ou globale des niveaux dans les paramètres du module",
|
||||
@@ -124,7 +148,19 @@
|
||||
"Update and recovery checks use the temporary login port even with a Windows override": "Les contrôles de mise à jour et de restauration utilisent le port de connexion temporaire même si Windows en impose un autre",
|
||||
"Custom Races patch installation recovers from interrupted downloads": "L’installation des races supplémentaires reprend les téléchargements interrompus",
|
||||
"Settings for how much help bots get in dungeons and raids": "Réglages de l'aide accordée aux bots en donjon et en raid",
|
||||
"The custom races client is updated to Custom Races V2": "Le client des races personnalisées passe à Custom Races V2"
|
||||
"The custom races client is updated to Custom Races V2": "Le client des races personnalisées passe à Custom Races V2",
|
||||
"Install community addons from the Manager": "Installez des addons de la communauté depuis le Manager",
|
||||
"Old item and creature data is cleared before every Play": "Les anciennes données d'objets et de créatures sont effacées avant chaque lancement",
|
||||
"Turning the custom races client patch on or off takes seconds again": "Activer ou désactiver le patch client des races personnalisées reprend quelques secondes",
|
||||
"The database moves to a free port when Windows reserves or another program takes 3307": "La base de données passe sur un port libre si Windows réserve le 3307 ou si un autre programme l'utilise",
|
||||
"Your own MySQL settings survive restarts and updates": "Vos réglages MySQL survivent aux redémarrages et aux mises à jour",
|
||||
"Disabled custom races stay disabled after a server update that adds races": "Les races personnalisées désactivées le restent après une mise à jour du serveur qui ajoute des races",
|
||||
"Rename your realms in the Manager": "Renommez vos royaumes dans le Manager",
|
||||
"The account for a friend's server is in the login box at every Play": "Le compte du serveur d'un ami est rempli à chaque lancement",
|
||||
"Restart the world every day at a chosen time": "Redémarrez le monde chaque jour à l'heure choisie",
|
||||
"Switches for the Custom Races V2 subclasses, Hero Races and the /dev menu": "Interrupteurs pour les sous-classes, races héroïques et le menu /dev de Custom Races V2",
|
||||
"Companion bots on Wildcard and Warcraft Reborn": "Bots compagnons sur Wildcard et Warcraft Reborn",
|
||||
"The Custom Races card tells which characters stay out while races are off": "La carte Custom Races indique quels personnages restent hors du monde quand les races sont désactivées"
|
||||
},
|
||||
"es": {
|
||||
"Choose Parallel or Global level scaling in module settings": "Elige escalado de nivel paralelo o global en los ajustes del módulo",
|
||||
@@ -166,7 +202,19 @@
|
||||
"Update and recovery checks use the temporary login port even with a Windows override": "Las comprobaciones de actualización y recuperación usan el puerto temporal de acceso aunque Windows indique otro",
|
||||
"Custom Races patch installation recovers from interrupted downloads": "La instalación de razas adicionales se recupera de descargas interrumpidas",
|
||||
"Settings for how much help bots get in dungeons and raids": "Ajustes de cuánta ayuda reciben los bots en mazmorras y bandas",
|
||||
"The custom races client is updated to Custom Races V2": "El cliente de razas personalizadas se actualiza a Custom Races V2"
|
||||
"The custom races client is updated to Custom Races V2": "El cliente de razas personalizadas se actualiza a Custom Races V2",
|
||||
"Install community addons from the Manager": "Instala addons de la comunidad desde el Manager",
|
||||
"Old item and creature data is cleared before every Play": "Los datos antiguos de objetos y criaturas se borran antes de cada partida",
|
||||
"Turning the custom races client patch on or off takes seconds again": "Activar o desactivar el parche de cliente de razas personalizadas vuelve a tardar segundos",
|
||||
"The database moves to a free port when Windows reserves or another program takes 3307": "La base de datos pasa a un puerto libre si Windows reserva el 3307 u otro programa lo ocupa",
|
||||
"Your own MySQL settings survive restarts and updates": "Tus ajustes de MySQL se mantienen tras reinicios y actualizaciones",
|
||||
"Disabled custom races stay disabled after a server update that adds races": "Las razas personalizadas desactivadas siguen desactivadas tras una actualización del servidor que añade razas",
|
||||
"Rename your realms in the Manager": "Cambia el nombre de tus reinos en el Manager",
|
||||
"The account for a friend's server is in the login box at every Play": "La cuenta del servidor de un amigo aparece en el inicio de sesión en cada partida",
|
||||
"Restart the world every day at a chosen time": "Reinicia el mundo cada día a la hora elegida",
|
||||
"Switches for the Custom Races V2 subclasses, Hero Races and the /dev menu": "Interruptores para las subclases, razas heroicas y el menú /dev de Custom Races V2",
|
||||
"Companion bots on Wildcard and Warcraft Reborn": "Bots acompañantes en Wildcard y Warcraft Reborn",
|
||||
"The Custom Races card tells which characters stay out while races are off": "La tarjeta Custom Races indica qué personajes quedan fuera mientras las razas están desactivadas"
|
||||
},
|
||||
"zh": {
|
||||
"Choose Parallel or Global level scaling in module settings": "在模块设置中选择并行或全局等级缩放",
|
||||
@@ -208,7 +256,19 @@
|
||||
"Update and recovery checks use the temporary login port even with a Windows override": "即使 Windows 指定了其他端口,更新和恢复检查也会使用临时登录端口",
|
||||
"Custom Races patch installation recovers from interrupted downloads": "自定义种族补丁安装可从中断的下载中恢复",
|
||||
"Settings for how much help bots get in dungeons and raids": "设置机器人在地下城和团队副本中获得多少加成",
|
||||
"The custom races client is updated to Custom Races V2": "自定义种族客户端已更新至 Custom Races V2"
|
||||
"The custom races client is updated to Custom Races V2": "自定义种族客户端已更新至 Custom Races V2",
|
||||
"Install community addons from the Manager": "可在 Manager 中安装社区插件",
|
||||
"Old item and creature data is cleared before every Play": "每次启动前清除过时的物品和生物数据",
|
||||
"Turning the custom races client patch on or off takes seconds again": "自定义种族客户端补丁的开关再次只需几秒",
|
||||
"The database moves to a free port when Windows reserves or another program takes 3307": "当 3307 被 Windows 保留或被其他程序占用时,数据库会改用空闲端口",
|
||||
"Your own MySQL settings survive restarts and updates": "自定义 MySQL 设置在重启和更新后保留",
|
||||
"Disabled custom races stay disabled after a server update that adds races": "服务器更新新增种族后,已禁用的自定义种族保持禁用",
|
||||
"Rename your realms in the Manager": "可在 Manager 中重命名服务器",
|
||||
"The account for a friend's server is in the login box at every Play": "每次启动时都会自动填入朋友服务器的账号",
|
||||
"Restart the world every day at a chosen time": "每天在选定时间重启世界",
|
||||
"Switches for the Custom Races V2 subclasses, Hero Races and the /dev menu": "Custom Races V2 副职业、英雄种族和 /dev 菜单的开关",
|
||||
"Companion bots on Wildcard and Warcraft Reborn": "Wildcard 和 Warcraft Reborn 上的伙伴机器人",
|
||||
"The Custom Races card tells which characters stay out while races are off": "Custom Races 卡片会显示种族关闭时哪些角色无法进入世界"
|
||||
}
|
||||
},
|
||||
"server": {
|
||||
@@ -498,7 +558,13 @@
|
||||
"The character sheet of a Two-Players head shows the other head's class": "Лист персонажа головы Two-Players показывает класс второй головы",
|
||||
"Two-Players Ogres can fit a carried mount in a window and share the fit": "Огры Two-Players могут подогнать переносимого маунта в окне и поделиться подгонкой",
|
||||
"Custom Races V2 with 17 new races, subclasses and the Fading Island": "Custom Races V2: 17 новых рас, подклассы и Fading Island",
|
||||
"Updated Custom Races to 2.0": "Custom Races обновлён до 2.0"
|
||||
"Updated Custom Races to 2.0": "Custom Races обновлён до 2.0",
|
||||
"Custom races stay on when an update changes the race catalog": "Кастомные расы остаются включёнными, когда обновление меняет каталог рас",
|
||||
"Server support for companion bots on Wildcard and Warcraft Reborn": "Сервер поддерживает ботов-компаньонов на Wildcard и Warcraft Reborn",
|
||||
"Custom-race characters stay out of the world while custom races are off": "Персонажи кастомных рас не входят в мир, пока кастомные расы выключены",
|
||||
"Companion bots play Wildcard and Warcraft Reborn": "Боты-компаньоны играют на Wildcard и Warcraft Reborn",
|
||||
"Stopping the server no longer leaves the world running now and then": "Остановка сервера больше не оставляет мир работающим время от времени",
|
||||
"The server includes a native launcher for the world supervisor": "В сервер входит нативный лаунчер для супервизора мира"
|
||||
},
|
||||
"de": {
|
||||
"Restrict new characters by custom race without changing existing characters": "Neue Charaktere nach zusätzlichem Volk beschränken, ohne bestehende Charaktere zu ändern",
|
||||
@@ -786,7 +852,13 @@
|
||||
"The character sheet of a Two-Players head shows the other head's class": "Der Charakterbogen eines Two-Players-Kopfes zeigt die Klasse des anderen Kopfes",
|
||||
"Two-Players Ogres can fit a carried mount in a window and share the fit": "Two-Players-Oger können ein getragenes Reittier in einem Fenster anpassen und die Anpassung teilen",
|
||||
"Custom Races V2 with 17 new races, subclasses and the Fading Island": "Custom Races V2 mit 17 neuen Völkern, Unterklassen und der Fading Island",
|
||||
"Updated Custom Races to 2.0": "Custom Races auf 2.0 aktualisiert"
|
||||
"Updated Custom Races to 2.0": "Custom Races auf 2.0 aktualisiert",
|
||||
"Custom races stay on when an update changes the race catalog": "Eigene Völker bleiben aktiv, wenn ein Update den Völkerkatalog ändert",
|
||||
"Server support for companion bots on Wildcard and Warcraft Reborn": "Serverunterstützung für Begleiter-Bots auf Wildcard und Warcraft Reborn",
|
||||
"Custom-race characters stay out of the world while custom races are off": "Figuren eigener Völker bleiben der Welt fern, solange eigene Völker aus sind",
|
||||
"Companion bots play Wildcard and Warcraft Reborn": "Begleiter-Bots spielen Wildcard und Warcraft Reborn",
|
||||
"Stopping the server no longer leaves the world running now and then": "Das Stoppen des Servers lässt die Welt nicht mehr gelegentlich weiterlaufen",
|
||||
"The server includes a native launcher for the world supervisor": "Der Server enthält einen nativen Launcher für die Weltüberwachung"
|
||||
},
|
||||
"fr": {
|
||||
"Restrict new characters by custom race without changing existing characters": "Restreignez les races supplémentaires des nouveaux personnages sans modifier les personnages existants",
|
||||
@@ -1074,7 +1146,13 @@
|
||||
"The character sheet of a Two-Players head shows the other head's class": "La fiche de personnage d'une tête Two-Players affiche la classe de l'autre tête",
|
||||
"Two-Players Ogres can fit a carried mount in a window and share the fit": "Les ogres Two-Players peuvent ajuster une monture portée dans une fenêtre et partager l'ajustement",
|
||||
"Custom Races V2 with 17 new races, subclasses and the Fading Island": "Custom Races V2 avec 17 nouvelles races, les sous-classes et la Fading Island",
|
||||
"Updated Custom Races to 2.0": "Custom Races passe en version 2.0"
|
||||
"Updated Custom Races to 2.0": "Custom Races passe en version 2.0",
|
||||
"Custom races stay on when an update changes the race catalog": "Les races personnalisées restent actives quand une mise à jour change le catalogue des races",
|
||||
"Server support for companion bots on Wildcard and Warcraft Reborn": "Prise en charge serveur des bots compagnons sur Wildcard et Warcraft Reborn",
|
||||
"Custom-race characters stay out of the world while custom races are off": "Les personnages de races personnalisées restent hors du monde quand ces races sont désactivées",
|
||||
"Companion bots play Wildcard and Warcraft Reborn": "Les bots compagnons jouent en Wildcard et Warcraft Reborn",
|
||||
"Stopping the server no longer leaves the world running now and then": "Arrêter le serveur ne laisse plus parfois le monde tourner",
|
||||
"The server includes a native launcher for the world supervisor": "Le serveur inclut un lanceur natif pour le superviseur du monde"
|
||||
},
|
||||
"es": {
|
||||
"Restrict new characters by custom race without changing existing characters": "Restringe las razas adicionales de personajes nuevos sin modificar los existentes",
|
||||
@@ -1362,7 +1440,13 @@
|
||||
"The character sheet of a Two-Players head shows the other head's class": "La hoja de personaje de una cabeza Two-Players muestra la clase de la otra cabeza",
|
||||
"Two-Players Ogres can fit a carried mount in a window and share the fit": "Los ogros Two-Players pueden ajustar una montura transportada en una ventana y compartir el ajuste",
|
||||
"Custom Races V2 with 17 new races, subclasses and the Fading Island": "Custom Races V2 con 17 razas nuevas, subclases y la Fading Island",
|
||||
"Updated Custom Races to 2.0": "Custom Races se actualiza a 2.0"
|
||||
"Updated Custom Races to 2.0": "Custom Races se actualiza a 2.0",
|
||||
"Custom races stay on when an update changes the race catalog": "Las razas personalizadas siguen activas cuando una actualización cambia el catálogo de razas",
|
||||
"Server support for companion bots on Wildcard and Warcraft Reborn": "Soporte del servidor para bots acompañantes en Wildcard y Warcraft Reborn",
|
||||
"Custom-race characters stay out of the world while custom races are off": "Los personajes de razas personalizadas quedan fuera del mundo mientras esas razas están desactivadas",
|
||||
"Companion bots play Wildcard and Warcraft Reborn": "Los bots acompañantes juegan en Wildcard y Warcraft Reborn",
|
||||
"Stopping the server no longer leaves the world running now and then": "Detener el servidor ya no deja el mundo en marcha de vez en cuando",
|
||||
"The server includes a native launcher for the world supervisor": "El servidor incluye un lanzador nativo para el supervisor del mundo"
|
||||
},
|
||||
"zh": {
|
||||
"Restrict new characters by custom race without changing existing characters": "限制新角色可选的自定义种族,不影响现有角色",
|
||||
@@ -1650,7 +1734,13 @@
|
||||
"The character sheet of a Two-Players head shows the other head's class": "Two-Players 头的角色面板会显示另一个头的职业",
|
||||
"Two-Players Ogres can fit a carried mount in a window and share the fit": "Two-Players 食人魔可以在窗口中调整携带的坐骑并共享调整结果",
|
||||
"Custom Races V2 with 17 new races, subclasses and the Fading Island": "Custom Races V2:17 个新种族、副职业和 Fading Island",
|
||||
"Updated Custom Races to 2.0": "已将 Custom Races 更新至 2.0"
|
||||
"Updated Custom Races to 2.0": "已将 Custom Races 更新至 2.0",
|
||||
"Custom races stay on when an update changes the race catalog": "更新改变种族目录时,自定义种族保持开启",
|
||||
"Server support for companion bots on Wildcard and Warcraft Reborn": "服务器支持 Wildcard 和 Warcraft Reborn 上的伙伴机器人",
|
||||
"Custom-race characters stay out of the world while custom races are off": "自定义种族关闭时,该类角色无法进入世界",
|
||||
"Companion bots play Wildcard and Warcraft Reborn": "伙伴机器人可在 Wildcard 和 Warcraft Reborn 中游戏",
|
||||
"Stopping the server no longer leaves the world running now and then": "停止服务器时不再偶尔让世界继续运行",
|
||||
"The server includes a native launcher for the world supervisor": "服务器附带用于世界监管程序的原生启动器"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1988,6 +1988,437 @@
|
||||
},
|
||||
"experimentalFeatures": [],
|
||||
"compare": "https://github.com/Corfirean/coa-server-build/compare/server-0.261108.95...server-0.261114.106"
|
||||
},
|
||||
{
|
||||
"tag": "server-0.261115.110",
|
||||
"version": "0.261115.110",
|
||||
"date": "2026-11-15",
|
||||
"url": "https://github.com/Corfirean/coa-server-build/releases/tag/server-0.261115.110",
|
||||
"notes": [
|
||||
"Test build of the subclass module for two-headed Ogres",
|
||||
"Thin Twins can earn a subclass through their own quest, the Bravery Badge",
|
||||
"A two-headed Ogre's ranged subclass can shoot at point-blank range",
|
||||
"Ogres have a new racial, Tolerance",
|
||||
"Standard-class Ogres and Thin Humans start with only their own class kit",
|
||||
"Helmets sit on the Thin Human's head instead of his chest",
|
||||
"LiveMon shows live damage, healing, crowd control and subclass combo statistics",
|
||||
"Standard-class Ogres and Thin Twins can take a CoA class as their subclass",
|
||||
"Thin Human and Two-Headed Ogre are now their own playable races",
|
||||
"Subclassed relic users can hold a relic beside a ranged weapon",
|
||||
"Server options to limit subclassing or turn the two subclass races off",
|
||||
"A standard subclass brings its whole basic kit, skills and weapons",
|
||||
"Two-Headed Ogres and Thin Humans with a standard class can now pick a subclass",
|
||||
"Thin Humans find more gold with the Hand-Me-Downs racial",
|
||||
"Two-Headed Ogres wear helmets on both heads",
|
||||
"Flying mounts no longer fly in Kalimdor and the Eastern Kingdoms",
|
||||
"LiveMon's character tab can be closed and goes away for deleted characters",
|
||||
"Classic classes can be limited to their Wrath of the Lich King abilities",
|
||||
"Dual Wield shows once in the spellbook",
|
||||
"Two-Headed Ogres get Subclass Bar 1 for the other head's spells",
|
||||
"Subclass forms leave Two-Headed Ogres in their own body and turn the twin brother instead",
|
||||
"CoA subclass trees show their specialization painting in the subclass tab",
|
||||
"Characters with a subclass no longer get Dual Specialization",
|
||||
"You can hold only one subclass book and one insight at a time",
|
||||
"Thin Humans and Two-Headed Ogres get the quests of their starting zone",
|
||||
"The Bravery Badge and the Book of Origins look and read like a badge and a book",
|
||||
"Ghost Wolf and Travel Form turn the whole ogre, and the twin brother rides the beast",
|
||||
"Standard-class mains can spend points in their subclass trees and reset main talents",
|
||||
"Your subclass's trainer can reset only your subclass talents",
|
||||
"The Thin Human's cape lies along his back instead of sticking out like a board",
|
||||
"The twin brother finishes pointing before hopping off and readies his weapon with you",
|
||||
"The twin brother fights with his melee weapon up close and sits close behind you on mounts",
|
||||
"The twin brother copies your pose on hover discs, carpets and other unusual mounts",
|
||||
"Two-Headed Ogres sit in cars and keep their mace drawn after a shot",
|
||||
"Two-Headed Ogres fight with a weapon in one hand and a gun in the other",
|
||||
"The Ogre's Agree or Disagree racial now shows what it will do next",
|
||||
"The Thin Twins' brother turns into a worgen in every subclass Cursed Form",
|
||||
"Leaps and charges ordered for the Thin Twins' brother move him instead of you",
|
||||
"CoA classes taken as a subclass get their class mechanics",
|
||||
"Thin Twins and Two-Headed Ogres keep their weapons in a subclass Cursed Form",
|
||||
"Hovering a Guardian standard no longer causes a Lua error",
|
||||
"LiveMon shows specialization names instead of their signature spells",
|
||||
"Ogre eyes are picked by colour, with a Blind checkbox for each eye",
|
||||
"Two-headed ogres no longer keep casting after a subclass spell with a cast time",
|
||||
"Two-headed ogres cast every subclass spell with the left arm",
|
||||
"The other half only shoots when you attack a target out of melee reach",
|
||||
"The other head raises her hand while casting and your presses come first",
|
||||
"Saving talent changes no longer fails for characters with a subclass",
|
||||
"The second-way quest no longer pops up at level 20",
|
||||
"Every race can create the standard classes the creation screen offers again",
|
||||
"Subclass Bar 1 shows cooldowns, charges and casts like a normal action bar",
|
||||
"Subclass Bar 1 refills itself when you change subclass",
|
||||
"Subclass Bar 1 appears as soon as you choose a subclass",
|
||||
"Subclass Bar 1 works like an action bar and can live in Bartender4",
|
||||
"A subclass can never be the character's own class",
|
||||
"New characters no longer inherit the subclass of a deleted character",
|
||||
"Sun Cleric, Barbarian, Bloodmage and Cultist subclass resources use the game's own orbs",
|
||||
"Shapeshifting no longer takes away the twin brother or the subclass",
|
||||
"A subclass specialization now teaches the ability its passive promises",
|
||||
"Subclass stances and forms appear only on the subclass stance bar",
|
||||
"Subclass vows, auras and formations move to the subclass stance bar",
|
||||
"The Thin Human's cape rests on his shoulders and moves with them",
|
||||
"The twin brother gets a real spot in cars and rides along in passenger seats",
|
||||
"The twin brother puts his weapons away while he wears a subclass shape",
|
||||
"The Thin Twins' brother now shows the flash and glow of subclass forms",
|
||||
"The twin brother sneaks along in stealth instead of staying behind",
|
||||
"The stance button takes a Thin Twin out of a form his brother wears again",
|
||||
"The Two-Head and Two-Thins tabs show one wide background and the right class icon",
|
||||
"The Two-Head and Two-Thins trees use the game's own talent nodes",
|
||||
"Agree or Disagree takes one spellbook slot that changes name and icon",
|
||||
"Subclass talent trees no longer let you spend more points than you have",
|
||||
"Your brother stays at your side when you melee with a bow equipped",
|
||||
"A melee brother stays on your target and keeps fighting",
|
||||
"The Two-Headed Ogre twists her body less while her other head casts",
|
||||
"Thin Twins and Two-Headed Ogres are Hero Races that need a level 60 character",
|
||||
"The Two-Headed Ogre's portrait shows both heads instead of her body",
|
||||
"Your other half's spells break your stealth, and Running Wild ends when you stealth",
|
||||
"Spells your other half casts now trigger the class's talents and resources",
|
||||
"Your other half takes the subclass's Cat, Bear and stance forms on their own",
|
||||
"Your other head or brother can no longer finish a cast while you run",
|
||||
"The other head's hand glows while she casts",
|
||||
"With Play Easy on, your other half uses abilities that cost health",
|
||||
"New racial passives explain the shared and split resource pools",
|
||||
"The dressing room works for races without their own background, no extra addon needed",
|
||||
"Your brother climbs onto your Travel Form or wolf even after a fight",
|
||||
"When your brother uses Running Wild, you ride on his back",
|
||||
"In Running Wild you ride on your brother's shoulders",
|
||||
"Your weapons no longer go missing after a Running Wild ride",
|
||||
"When both halves use the same resource, their pool is twice as big",
|
||||
"The subclass window shows every CoA class's own background at full strength",
|
||||
"You can rearrange Subclass Bar 1 during combat without an error",
|
||||
"Your other head or brother has a cast bar of their own",
|
||||
"Choice talents in the subclass window show as one node with two options",
|
||||
"SpellActivationOverlay can light up Subclass Bar 1",
|
||||
"Your subclass's resource now shows as an extra bar under your portrait",
|
||||
"Your other half's resource bar keeps its value when you log out and back in",
|
||||
"Rage, energy and runic power subclasses now get and use their resource",
|
||||
"Subclass resource orbs only appear when your subclass specialization can fill them",
|
||||
"Your subclass specialization comes with its first class talent learned",
|
||||
"Your main class's key stat now also powers your subclass",
|
||||
"Subclass talents follow the paths and point requirements of their tree",
|
||||
"Your summons follow your brother while he walks beside you",
|
||||
"Your brother rides on the back of your Travel Form cat and moves with it",
|
||||
"Dressing your twin in the wardrobe no longer causes an addon error",
|
||||
"Your brother rides on your back in Wargstride",
|
||||
"A Bloodmage subclass's Cursed Form no longer replaces your own action bar",
|
||||
"Pressing an active subclass stance or form again turns it off",
|
||||
"Character select shows your subclass under your class",
|
||||
"The Two-Headed Ogre's second head no longer pokes through hats",
|
||||
"Two-Headed Ogres keep aiming between shots instead of idling",
|
||||
"Two-Headed Ogres who shoot rest their gun on the shoulder when not firing",
|
||||
"Two-Headed Ogres who shoot themselves aim and fire their gun with the right hand",
|
||||
"Two-Headed Ogres who shoot fire their bullets from the gun hand",
|
||||
"The wardrobe shows a Two-Headed Ogre's applied look and her saved outfits apply again",
|
||||
"The second head's quest mark floats over her head in cities and inns",
|
||||
"Subclass Bar 1 no longer fills up with Throw, Shoot, Wand and Auto Attack",
|
||||
"Abilities you learn from your subclass no longer land on your own action bars",
|
||||
"A caster Two-Headed Ogre keeps her staff in hand while her second head shoots",
|
||||
"A Two-Headed Ogre's staff keeps its size when she puts it on her back",
|
||||
"A shooting subclass starts Auto Shot on right-click without logging out first",
|
||||
"A Hunter subclass keeps Auto Shot going while the main head casts or moves",
|
||||
"Weapons and armor from a subclass stay usable after logging in again",
|
||||
"Two-Headed Ogres are Horde again and Thin Twins share Forgotten race rules",
|
||||
"Thin Humans and Two-Headed Ogres can no longer be created as Hero",
|
||||
"The Two-Headed Ogre stays in her combat stance between attacks",
|
||||
"The second-head tab only shows for Two-Headed Ogres and Thin Twins",
|
||||
"Thin Twins capes no longer show their inside at the shoulders",
|
||||
"Thin Twins keep short hair under hats",
|
||||
"Thin Twins keep their face, cape and hat fit with CoA Custom 1.9.2",
|
||||
"Thin Twins show their class gear in character creation",
|
||||
"Two-Headed Ogre capes drape over her back",
|
||||
"CoA Custom 1.9.5 races work on the subclass server",
|
||||
"With Play easy, cowboy the brother leaves a spent timed form",
|
||||
"The Two-Headed Ogre casts with a raised fist before her face",
|
||||
"The second-head client patch is now patch-ZZZZT.MPQ",
|
||||
"Dual Wield shows once in the spellbook, whichever class teaches it",
|
||||
"The subclass addon keeps working when the Twins or Ogre are renamed",
|
||||
"The subclass name shows only on the character tab",
|
||||
"The Thin Twins' Accursed brother keeps his distance until he takes his cursed form",
|
||||
"The Thin Twins' brother follows a form's cost, cooldown and duration",
|
||||
"The Thin Twins' own mana bar no longer flickers",
|
||||
"Witch Hunter Vault now springs over in a handspring instead of a jump",
|
||||
"The Twins brother keeps his timed form and no longer takes forms a spell forbids",
|
||||
"The Twins brother faces his target, leaps in and leaves a form to heal you",
|
||||
"With Play easy, cowboy, the brother uses his timed forms in a fight",
|
||||
"Original races no longer look broken in the 64-bit client's character creation",
|
||||
"Subclasses get their specialization's free passives, like the Pyromancer's draconic form",
|
||||
"The subclass cast bar no longer gets stuck and can always be Alt-dragged",
|
||||
"Pick-one talents in the subclass window no longer overlap their neighbours",
|
||||
"Subclass spells get their rank upgrades, resources and class mechanics",
|
||||
"Subclass talents that replace a spell now replace it for the subclass too",
|
||||
"The Thin Twins keep their own hairstyle under hats",
|
||||
"The Twins brother takes the look of the cursed form he actually uses",
|
||||
"The Twins brother stands beside you at character select in his own clothes",
|
||||
"The Twins brother climbs down from your back before taking a form",
|
||||
"Spells the Twins brother casts no longer play a cast animation on you",
|
||||
"The Thin Twins brother is now your mirror image",
|
||||
"The Thin Twins brother can have his own face, hair style and beard",
|
||||
"A script builds the original races' Vault patches from your own client files",
|
||||
"The subclass client patch is now built after the release's own patches",
|
||||
"The mirrored Thin Twins brother is built from the current Thin Twins model",
|
||||
"Pressing your subclass mount again dismounts you",
|
||||
"Removing a subclass dismisses the pet it let you summon",
|
||||
"Removing a Warlock or Paladin subclass no longer unlearns your mounts",
|
||||
"Removing a subclass no longer leaves its spells in your spellbook",
|
||||
"A Starcaller subclass shows Lunar Phase as CoA's moon",
|
||||
"Your twin's or other head's pet gets its own movable pet bar",
|
||||
"A Ranged Head stands still while the Melee Head is offline",
|
||||
"A bot plays the missing head of a Two-Players ogre",
|
||||
"A Ranged Head keeps an echo of its deleted Melee Head's gear",
|
||||
"Two-Players ogres hold books, pouches and orbs forward in the off hand",
|
||||
"Two-Players ogres can pair up as Melee Head and Ranged Head",
|
||||
"Paired Two-Players heads share one body",
|
||||
"SquidBots Lite no longer prints \"Command 'dc status' does not exist\" at login",
|
||||
"The subclass action bar no longer causes a blocked-action error in combat",
|
||||
"Two-Players heads split their abilities into melee for the body and ranged for the rider",
|
||||
"Two-Players heads gain Agree or Disagree stacks when they fight together",
|
||||
"Two-Players heads can only be CoA classes",
|
||||
"The Ranged Head's gear slots are frozen in ice and can no longer be dragged",
|
||||
"Two-Players heads find the abilities they borrow on their own bar",
|
||||
"Two-Players ogres can Bonk Heads! together once the heads have agreed long enough",
|
||||
"Abilities lent between Two-Players heads follow each head's respecs and new spells",
|
||||
"Two-Players ogres can use Mutate Me! to take the eyes-everywhere look and back",
|
||||
"A Two-Players ogre fills one party spot and enters dungeons as one player",
|
||||
"A Two-Players ogre joins a party only when there is room for both heads",
|
||||
"A Ranged Head's own frame now stands for the shared Two-Players body",
|
||||
"The Two-Players Ranged Head shares the body's health and both heads get full kill XP",
|
||||
"The Two-Players Ranged Head shares the body's gear",
|
||||
"Two-Players heads split quest gold, share one resource pool and keep their head's specs",
|
||||
"Mobs attacked by the Two-Players Ranged Head now fight the body",
|
||||
"Two-Players Twins: the second brother rides piggyback on the first, visible as himself",
|
||||
"Bot plans panel shows what your group's bots are doing and lets you pick their next quest",
|
||||
"Questing bots do all their quests in one area before moving on",
|
||||
"The Twins' second brother keeps and wears his own gear on his brother's back",
|
||||
"A Two-Players twin can call his brother to his side until another player joins him",
|
||||
"Agree now raises spell and ranged hit too, not only melee hit",
|
||||
"Two-Players ogres drop their mount when either head attacks",
|
||||
"The other head's abilities now go on your own action bars",
|
||||
"A bot body keeps questing, looting and resting after a fight instead of standing still",
|
||||
"A bot body's SquidBots menu now opens from a button on your own player frame",
|
||||
"Character select shows a Two-Players head's joined name and its partner's class",
|
||||
"The Ranged Head now goes into and out of Dungeon Finder dungeons with the body",
|
||||
"Two-Players can be switched off with Subclass.TwoPlayers.Enable",
|
||||
"The other head's abilities only cost you resources when they actually go off",
|
||||
"Character select shows a Two-Players ogre in his Mutate Me look",
|
||||
"The Ranged Head gets the enchant, gem and suffix stats of the shared gear",
|
||||
"The Ranged Head of a Two-Headed Ogre no longer pops out of the body at logout",
|
||||
"A Ranged Head and its bot body are in one party again, so party chat and bot orders work",
|
||||
"A bot riding as the Ranged Head no longer rests, roams or makes the body sit down",
|
||||
"The character sheet of a Two-Players head shows the other head's class",
|
||||
"Two-Players Ogres can fit a carried mount in a window and share the fit",
|
||||
"Custom Races V2 with 17 new races, subclasses and the Fading Island",
|
||||
"Updated Custom Races to 2.0"
|
||||
],
|
||||
"snapshot": "d3d10476d144d2a701a5a122f1f249ff8219f7a6324e007cb3e153d4628973f7",
|
||||
"components": {
|
||||
"upstream": {
|
||||
"repository": "jealous-sound/azerothcore-wotlk-coa",
|
||||
"ref": "96afaf0f51cc4b37f1eba282bffb1c5aab353de6",
|
||||
"sha": "96afaf0f51cc4b37f1eba282bffb1c5aab353de6"
|
||||
},
|
||||
"core": {
|
||||
"repository": "Corfirean/azerothcore-wotlk-coa",
|
||||
"ref": "9740ced5c41806115d851ab37ab34f28e1e8b712",
|
||||
"sha": "9740ced5c41806115d851ab37ab34f28e1e8b712"
|
||||
},
|
||||
"bots": {
|
||||
"repository": "Corfirean/mod-coa-playerbots",
|
||||
"ref": "30a5a555f56fda8f4ccad14be8438bd0532d85b9",
|
||||
"sha": "30a5a555f56fda8f4ccad14be8438bd0532d85b9"
|
||||
},
|
||||
"scaling": {
|
||||
"repository": "Corfirean/mod-coa-content-scaling",
|
||||
"ref": "3c2febf636bd09087bb278e381b975271a70fdf6",
|
||||
"sha": "3c2febf636bd09087bb278e381b975271a70fdf6"
|
||||
},
|
||||
"manager": {
|
||||
"repository": "Corfirean/coa-server-manager",
|
||||
"ref": "d3527312803fb5a3e1cd48e01496645a8bbc9dcf",
|
||||
"sha": "d3527312803fb5a3e1cd48e01496645a8bbc9dcf"
|
||||
},
|
||||
"races": {
|
||||
"repository": "ilusixn/CustomRacesCoa",
|
||||
"ref": "coa-custom-2.0",
|
||||
"sha": "dae0c661f7197bafd0a42d80866fa8709b3792c9",
|
||||
"assets": [
|
||||
{
|
||||
"name": "CoA-Custom-Races-V2-Credits.csv",
|
||||
"size": 5487,
|
||||
"digest": "sha256:9afb0b777498d14601476bed7ce82a449ce2b80af5dae107f7309081c1936882",
|
||||
"url": "https://github.com/ilusixn/CustomRacesCoa/releases/download/coa-custom-2.0/CoA-Custom-Races-V2-Credits.csv"
|
||||
},
|
||||
{
|
||||
"name": "CoA-Custom-Races-V2-Credits.xlsx",
|
||||
"size": 10129,
|
||||
"digest": "sha256:d24b51f42870e9ab370279e37ea1cd894b7a208cb8960548c0f465222d50c850",
|
||||
"url": "https://github.com/ilusixn/CustomRacesCoa/releases/download/coa-custom-2.0/CoA-Custom-Races-V2-Credits.xlsx"
|
||||
},
|
||||
{
|
||||
"name": "CoA-Custom-V2-Client-1.zip",
|
||||
"size": 1513021586,
|
||||
"digest": "sha256:a9dd51ed2d90fb048d549602f40f5429d56e2df0df5606a38781b358fa369568",
|
||||
"url": "https://github.com/ilusixn/CustomRacesCoa/releases/download/coa-custom-2.0/CoA-Custom-V2-Client-1.zip"
|
||||
},
|
||||
{
|
||||
"name": "CoA-Custom-V2-Client-2.zip",
|
||||
"size": 1198283005,
|
||||
"digest": "sha256:ab084a55509ccbcc2977a06dd0c01fa879973a1892baaacaeb3ff52f3dfc750e",
|
||||
"url": "https://github.com/ilusixn/CustomRacesCoa/releases/download/coa-custom-2.0/CoA-Custom-V2-Client-2.zip"
|
||||
},
|
||||
{
|
||||
"name": "CoA-Custom-V2-Client-3.zip",
|
||||
"size": 1671130705,
|
||||
"digest": "sha256:0af34199f0739ce086adb0371d3de7c1a0f5ca9c62ecde6b0efe9286e33874a8",
|
||||
"url": "https://github.com/ilusixn/CustomRacesCoa/releases/download/coa-custom-2.0/CoA-Custom-V2-Client-3.zip"
|
||||
},
|
||||
{
|
||||
"name": "CoA-Custom-V2-Client-4.zip",
|
||||
"size": 502385128,
|
||||
"digest": "sha256:e0bd87172af989fa50a8e2b08ba4321c72b6265047482f051a1db3b80d55bcaa",
|
||||
"url": "https://github.com/ilusixn/CustomRacesCoa/releases/download/coa-custom-2.0/CoA-Custom-V2-Client-4.zip"
|
||||
},
|
||||
{
|
||||
"name": "CoA-Custom-V2-Client-5.zip",
|
||||
"size": 168079711,
|
||||
"digest": "sha256:73364ad1b58c6342641a848a3b20a835472834f600416606be1470386774ca78",
|
||||
"url": "https://github.com/ilusixn/CustomRacesCoa/releases/download/coa-custom-2.0/CoA-Custom-V2-Client-5.zip"
|
||||
},
|
||||
{
|
||||
"name": "CoA-Custom-V2-Client-6.zip",
|
||||
"size": 1881526537,
|
||||
"digest": "sha256:91db79b7b451856fa9e45daea52e0fe1c04676653dd8a88e6627f04ee7b47759",
|
||||
"url": "https://github.com/ilusixn/CustomRacesCoa/releases/download/coa-custom-2.0/CoA-Custom-V2-Client-6.zip"
|
||||
},
|
||||
{
|
||||
"name": "CoA-Custom-V2-Client-7.zip",
|
||||
"size": 734725114,
|
||||
"digest": "sha256:4c5532d775d206a3b913a6111040bb96b95c683b74c08a6131ed9f38db8e2b39",
|
||||
"url": "https://github.com/ilusixn/CustomRacesCoa/releases/download/coa-custom-2.0/CoA-Custom-V2-Client-7.zip"
|
||||
},
|
||||
{
|
||||
"name": "CoA-Custom-V2-Client-8.zip",
|
||||
"size": 734216670,
|
||||
"digest": "sha256:bdaa1d047e8767bd5715f1e8465d116220597d9c135a43e2dda02e12ce2e5526",
|
||||
"url": "https://github.com/ilusixn/CustomRacesCoa/releases/download/coa-custom-2.0/CoA-Custom-V2-Client-8.zip"
|
||||
},
|
||||
{
|
||||
"name": "CoA-Custom-V2-Client-9.zip",
|
||||
"size": 195235400,
|
||||
"digest": "sha256:0764893543084a12d15578fe734f66ba4519740794a6b3b3a38a08594c38c640",
|
||||
"url": "https://github.com/ilusixn/CustomRacesCoa/releases/download/coa-custom-2.0/CoA-Custom-V2-Client-9.zip"
|
||||
},
|
||||
{
|
||||
"name": "CoA-Custom-V2-Server.zip",
|
||||
"size": 63983587,
|
||||
"digest": "sha256:8970d61eea40f53cea4c27481edd85d2b2647cd32eb88932e0077da3b4a77d23",
|
||||
"url": "https://github.com/ilusixn/CustomRacesCoa/releases/download/coa-custom-2.0/CoA-Custom-V2-Server.zip"
|
||||
},
|
||||
{
|
||||
"name": "creation-screen.png",
|
||||
"size": 2139517,
|
||||
"digest": "sha256:84c3144f34ef8015e8612e412da03383241124d58e36c703eeb2a525096a5795",
|
||||
"url": "https://github.com/ilusixn/CustomRacesCoa/releases/download/coa-custom-2.0/creation-screen.png"
|
||||
},
|
||||
{
|
||||
"name": "INSTALL-GUIDE.txt",
|
||||
"size": 2504,
|
||||
"digest": "sha256:da402117a90a60a029fdce9a94125ddd28b386a73f37c180992befca57e9f13a",
|
||||
"url": "https://github.com/ilusixn/CustomRacesCoa/releases/download/coa-custom-2.0/INSTALL-GUIDE.txt"
|
||||
},
|
||||
{
|
||||
"name": "PATCH-NOTES-V2.txt",
|
||||
"size": 4388,
|
||||
"digest": "sha256:82901d54b1f13cd8b2e7a73a7c2fdc3e237f8090c332729bc553818834fe27d0",
|
||||
"url": "https://github.com/ilusixn/CustomRacesCoa/releases/download/coa-custom-2.0/PATCH-NOTES-V2.txt"
|
||||
},
|
||||
{
|
||||
"name": "RACES.md",
|
||||
"size": 8629,
|
||||
"digest": "sha256:1e7a9aaee354b07924a8cdda5e4dbffe4cad88f215d68efb74d8d0832403422d",
|
||||
"url": "https://github.com/ilusixn/CustomRacesCoa/releases/download/coa-custom-2.0/RACES.md"
|
||||
},
|
||||
{
|
||||
"name": "SHA256SUMS.txt",
|
||||
"size": 938,
|
||||
"digest": "sha256:a68591f04d661b558523133f99411fd4a7e32f1b45f79f977bb0989246f11179",
|
||||
"url": "https://github.com/ilusixn/CustomRacesCoa/releases/download/coa-custom-2.0/SHA256SUMS.txt"
|
||||
},
|
||||
{
|
||||
"name": "showcase.mp4",
|
||||
"size": 81658913,
|
||||
"digest": "sha256:a3d4b4f561bb12dcc91da562c5ee79157143f4b67997479edb2152b27b925a2a",
|
||||
"url": "https://github.com/ilusixn/CustomRacesCoa/releases/download/coa-custom-2.0/showcase.mp4"
|
||||
}
|
||||
],
|
||||
"server": [
|
||||
{
|
||||
"repository": "stefanw1337/azerothcore-wotlk-coa",
|
||||
"branch": "stefanw1337-subclassing-test",
|
||||
"sha": "ccea52d17a27482784e705e9cc913b68dedd9f85"
|
||||
}
|
||||
],
|
||||
"provenance": [
|
||||
{
|
||||
"repository": "ilusixn/Fading-Islands-Restore",
|
||||
"sha": "e150de1cb496314af752e98021e57ca93d5d799d",
|
||||
"used": "server/core-patches"
|
||||
},
|
||||
{
|
||||
"repository": "ilusixn/Custom-Race-3.3.5a",
|
||||
"sha": "ac907655bd43dec2eff1b4ff509f7fb574325c58",
|
||||
"used": "server/core racials"
|
||||
},
|
||||
{
|
||||
"repository": "ilusixn/ilusixn-dev-menu",
|
||||
"sha": "ea50a8533a3402c69c8773677db1027ec1180d2c",
|
||||
"used": "modules/mod-ilusixn-devmenu"
|
||||
}
|
||||
]
|
||||
},
|
||||
"squid": {
|
||||
"repository": "Zyth45/mod-playerbots",
|
||||
"ref": "v3.0",
|
||||
"sha": "4ef5ed9ebe75a330de7df19639a042391e037e15",
|
||||
"patch": "patches/squid-coa-validation.patch",
|
||||
"patchSha256": "2cc45bc6555d5bb3e91728840f9de6e73c002c73b270a37732a1499956241c5f"
|
||||
},
|
||||
"build": {
|
||||
"repository": "Corfirean/coa-server-build",
|
||||
"ref": "9a122d049e8be457444389e9756936bcdb4e7ef5",
|
||||
"sha": "9a122d049e8be457444389e9756936bcdb4e7ef5"
|
||||
},
|
||||
"dungeon-clear": {
|
||||
"repository": "Zyth45/mod-dungeon-clear",
|
||||
"sha": "6efb59eae96bcc0730fc083314dd28d55970bbf4",
|
||||
"patch": "patches/dungeon-clear-coa-validation.patch",
|
||||
"patchSha256": "2845d389422e3a59e5c186ecf54b03f64f1dcc22cdef15729b60c354ae72cd6f",
|
||||
"ref": "6efb59eae96bcc0730fc083314dd28d55970bbf4"
|
||||
},
|
||||
"navigation": {
|
||||
"repository": "Corfirean/azerothcore-wotlk-coa",
|
||||
"ref": "8b44099f480af0b69c6dfc697e4d388e865e9ffc",
|
||||
"sha": "8b44099f480af0b69c6dfc697e4d388e865e9ffc",
|
||||
"sourceRelease": "navigation-20261012",
|
||||
"manifestSha256": "7f28600735f115792e79a5e8d1c8d78a83a8f5ed14a090c6d87268e49c2bb683",
|
||||
"archiveSha256": "aa1347a095f85af44b4f592270a0e9314954801fda4578f0147f847e32c24a60",
|
||||
"assets": [
|
||||
{
|
||||
"name": "navigation.zip.001",
|
||||
"size": 1500000000,
|
||||
"sha256": "e3a93903fc8155ee0d92db399ec426769c360bef87c44c07beb7e21cfd892c18",
|
||||
"url": "https://github.com/Corfirean/coa-server-build/releases/download/navigation-20261012/navigation.zip.001"
|
||||
},
|
||||
{
|
||||
"name": "navigation.zip.002",
|
||||
"size": 1377006470,
|
||||
"sha256": "c1af26ba7f83676278613076c357c4da0a11cfa6ae1ff00003479057c4864471",
|
||||
"url": "https://github.com/Corfirean/coa-server-build/releases/download/navigation-20261012/navigation.zip.002"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"experimentalFeatures": [],
|
||||
"compare": "https://github.com/Corfirean/coa-server-build/compare/server-0.261114.106...server-0.261115.110"
|
||||
}
|
||||
]
|
||||
}
|
||||
+36
-6
@@ -580,6 +580,16 @@ export interface CompanionSizes {
|
||||
sizes: { id: string; title: string; bots: number; warning: string | null }[];
|
||||
}
|
||||
|
||||
export interface WildcardArchetypeDto {
|
||||
id: string;
|
||||
name: string;
|
||||
roles: number;
|
||||
primary_stat: number;
|
||||
author: string;
|
||||
difficulty: number;
|
||||
category: number;
|
||||
}
|
||||
|
||||
export interface ClientInfo {
|
||||
path: string;
|
||||
executable: string;
|
||||
@@ -829,15 +839,35 @@ export const api = {
|
||||
invoke<{ txn: UpdateTxn; preexisting_character_count?: number; modules?: ModuleRebuild[] }>("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 }),
|
||||
population: (id: string) => invoke<Population | null>("get_population", { id }),
|
||||
stopSpawning: (id: string) => invoke<{ count: number }>("companions_stop_spawning", { id }),
|
||||
takeOffline: (id: string) => invoke<{ count: number }>("companions_take_offline", { id }),
|
||||
despawnSome: (id: string, count: number) => invoke<{ count: number }>("companions_despawn_some", { id, count }),
|
||||
deleteAllCompanions: (id: string) => invoke<{ count: number }>("companions_delete_all", { id }),
|
||||
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 }),
|
||||
despawnSome: (id: string, count: number, realm?: RealmMode) => invoke<{ count: number }>("companions_despawn_some", { id, count, realm: realm ?? null }),
|
||||
deleteAllCompanions: (id: string, realm?: RealmMode) => invoke<{ count: number }>("companions_delete_all", { id, realm: realm ?? null }),
|
||||
loginAllCompanions: (id: string, realm?: RealmMode) => invoke<string>("companions_login_all", { id, realm: realm ?? null }),
|
||||
spawnBotFleet: (id: string, race: number, level: number, realm?: RealmMode) => invoke<string>("companions_spawn_fleet", { id, race, level, realm: realm ?? null }),
|
||||
openLink: (url: string) => invoke<void>("open_link", { url }),
|
||||
performance: (id: string) => invoke<Performance | null>("get_performance", { id }),
|
||||
companionSizes: () => invoke<CompanionSizes>("companion_sizes"),
|
||||
addCompanions: (id: string, count: number) => invoke<{ spawned: string | null; created: number | null; baseline: number | null }>("add_companions", { id, count }),
|
||||
addCompanions: (
|
||||
id: string,
|
||||
count: number,
|
||||
realm?: RealmMode,
|
||||
level?: number,
|
||||
classId?: number,
|
||||
specId?: number,
|
||||
archetype?: string
|
||||
) =>
|
||||
invoke<{ spawned: string | null; created: number | null; baseline: number | null }>("add_companions", {
|
||||
id,
|
||||
count,
|
||||
realm: realm ?? null,
|
||||
level: level ?? null,
|
||||
class_id: classId ?? null,
|
||||
spec_id: specId ?? null,
|
||||
archetype: archetype ?? null,
|
||||
}),
|
||||
getWildcardArchetypes: (id: string) => invoke<WildcardArchetypeDto[]>("get_wildcard_archetypes", { id }),
|
||||
clientGraphics: (id: string) => invoke<{ dxvk_disabled: boolean; enhancements_disabled: boolean }>("client_graphics", { id }),
|
||||
clientSetGraphics: (id: string, name: string, disabled: boolean) => invoke<{ dxvk_disabled: boolean; enhancements_disabled: boolean }>("client_set_graphics", { id, name, disabled }),
|
||||
clientInfo: (id: string) => invoke<ClientInfo | null>("client_info", { id }),
|
||||
|
||||
+712
-159
@@ -1,30 +1,125 @@
|
||||
import { useEffect, useState } from "react";
|
||||
import { Loader2 } from "lucide-react";
|
||||
import { api, asUiError, type CompanionSizes, type Population, type UiError } from "@/lib/api";
|
||||
import {
|
||||
Loader2,
|
||||
Bot,
|
||||
CheckCircle2,
|
||||
AlertCircle,
|
||||
RefreshCw,
|
||||
Power,
|
||||
Users,
|
||||
Database,
|
||||
} from "lucide-react";
|
||||
import {
|
||||
api,
|
||||
asUiError,
|
||||
type Population,
|
||||
type RealmMode,
|
||||
type RealmProfiles,
|
||||
type UiError,
|
||||
type WildcardArchetypeDto,
|
||||
} from "@/lib/api";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Card } from "@/components/ui/card";
|
||||
import { hasKey, useHuman, useT, type Key } from "@/i18n";
|
||||
import { useHuman, useT } from "@/i18n";
|
||||
|
||||
function formatRole(roles: number): string {
|
||||
const parts: string[] = [];
|
||||
if (roles & 1) parts.push("Tank");
|
||||
if (roles & 2) parts.push("Melee");
|
||||
if (roles & 4) parts.push("Ranged");
|
||||
if (roles & 8) parts.push("Healer");
|
||||
return parts.join("/") || "DPS";
|
||||
}
|
||||
|
||||
function formatStat(stat: number): string {
|
||||
switch (stat) {
|
||||
case 0: return "Strength";
|
||||
case 1: return "Agility";
|
||||
case 2: return "Stamina";
|
||||
case 3: return "Intellect";
|
||||
case 4: return "Spirit";
|
||||
default: return "All";
|
||||
}
|
||||
}
|
||||
|
||||
export function CompanionsCard({ serverId }: { serverId: string }) {
|
||||
const t = useT();
|
||||
const human = useHuman();
|
||||
const [sizes, setSizes] = useState<CompanionSizes | null>(null);
|
||||
|
||||
// Realm & Environment state
|
||||
const [profiles, setProfiles] = useState<RealmProfiles | null>(null);
|
||||
const [selectedRealm, setSelectedRealm] = useState<RealmMode>("coa");
|
||||
const [pop, setPop] = useState<Population | null>(null);
|
||||
const [running, setRunning] = useState(false);
|
||||
const [choice, setChoice] = useState<string>("small");
|
||||
const [custom, setCustom] = useState("100");
|
||||
|
||||
// Fleet Configuration state
|
||||
const [spawnMode, setSpawnMode] = useState<"population" | "fleet">("population");
|
||||
const [countChoice, setCountChoice] = useState<string>("50");
|
||||
const [customCount, setCustomCount] = useState<string>("50");
|
||||
const [targetLevel, setTargetLevel] = useState<number>(80);
|
||||
const [selectedClass, setSelectedClass] = useState<string>("all");
|
||||
const [selectedRole, setSelectedRole] = useState<string>("all");
|
||||
const [selectedArchetype, setSelectedArchetype] = useState<string>("all");
|
||||
const [wildcardArchetypes, setWildcardArchetypes] = useState<WildcardArchetypeDto[]>([]);
|
||||
|
||||
// Operational state
|
||||
const [busy, setBusy] = useState(false);
|
||||
const [error, setError] = useState<UiError | null>(null);
|
||||
const [note, setNote] = useState<string | null>(null);
|
||||
// Start-up login: how many existing bots the server brings online by itself every time it starts.
|
||||
const [job, setJob] = useState<{ baseline: number; target: number; since: number } | null>(null);
|
||||
|
||||
// Startup Auto-Login settings
|
||||
const [autoOn, setAutoOn] = useState(true);
|
||||
const [autoMax, setAutoMax] = useState("");
|
||||
// A creation that is still in progress on the running server: how many existed before and how many were asked for.
|
||||
const [job, setJob] = useState<{ baseline: number; target: number; since: number } | null>(null);
|
||||
const [startNote, setStartNote] = useState<string | null>(null);
|
||||
const [startBusy, setStartBusy] = useState(false);
|
||||
const [despawnN, setDespawnN] = useState("10");
|
||||
|
||||
const activeServerRealm = profiles?.active ?? "coa";
|
||||
const isViewingActiveRealm = selectedRealm === activeServerRealm;
|
||||
const isRealmOperational = isViewingActiveRealm || running;
|
||||
|
||||
const maxLevelForRealm = 60;
|
||||
|
||||
// Load realm profiles
|
||||
const loadProfiles = async () => {
|
||||
try {
|
||||
const r = await api.realmProfiles(serverId);
|
||||
setProfiles(r);
|
||||
if (!selectedRealm) {
|
||||
setSelectedRealm(r.active);
|
||||
}
|
||||
} catch {
|
||||
// ignore
|
||||
}
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
void loadProfiles();
|
||||
}, [serverId]);
|
||||
|
||||
// Adjust target level if realm changed
|
||||
useEffect(() => {
|
||||
if (targetLevel > maxLevelForRealm) {
|
||||
setTargetLevel(maxLevelForRealm);
|
||||
}
|
||||
}, [selectedRealm, maxLevelForRealm, targetLevel]);
|
||||
|
||||
// Load wildcard archetypes dynamically from target characters db
|
||||
useEffect(() => {
|
||||
if (selectedRealm === "wildcard") {
|
||||
api.getWildcardArchetypes(serverId)
|
||||
.then((archs) => setWildcardArchetypes(archs))
|
||||
.catch(() => {});
|
||||
if (selectedClass === "all") {
|
||||
setSelectedClass("10");
|
||||
}
|
||||
} else {
|
||||
setSelectedArchetype("all");
|
||||
}
|
||||
}, [serverId, selectedRealm]);
|
||||
|
||||
// Load startup settings
|
||||
useEffect(() => {
|
||||
void api
|
||||
.settings(serverId, "bots")
|
||||
@@ -40,6 +135,46 @@ export function CompanionsCard({ serverId }: { serverId: string }) {
|
||||
const maxNum = Number(autoMax);
|
||||
const maxValid = autoMax.trim() !== "" && Number.isInteger(maxNum) && maxNum >= 0 && maxNum <= 5000;
|
||||
|
||||
// Polling population
|
||||
const fetchPopulation = async () => {
|
||||
const s = await api.status(serverId).catch(() => null);
|
||||
if (!s) return;
|
||||
const up = s.observed.world.state === "running";
|
||||
setRunning(up);
|
||||
if (up) {
|
||||
const p = await api.population(serverId, selectedRealm).catch(() => null);
|
||||
setPop(p);
|
||||
} else {
|
||||
setPop(null);
|
||||
}
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
let alive = true;
|
||||
const poll = async () => {
|
||||
if (!alive) return;
|
||||
await fetchPopulation();
|
||||
};
|
||||
void poll();
|
||||
const interval = setInterval(poll, job ? 1500 : 4000);
|
||||
return () => {
|
||||
alive = false;
|
||||
clearInterval(interval);
|
||||
};
|
||||
}, [serverId, selectedRealm, job !== null]); // eslint-disable-line react-hooks/exhaustive-deps
|
||||
|
||||
const done = job && pop ? Math.max(0, Math.min(job.target, pop.bots_total - job.baseline)) : 0;
|
||||
useEffect(() => {
|
||||
if (!job) return;
|
||||
if ((pop && done >= job.target) || !running) {
|
||||
if (pop && done >= job.target) setNote(t("comp.progressDone", { n: job.target }));
|
||||
setJob(null);
|
||||
}
|
||||
}, [done, running]); // eslint-disable-line react-hooks/exhaustive-deps
|
||||
|
||||
const count = countChoice === "custom" ? Number(customCount) : Number(countChoice);
|
||||
const valid = Number.isInteger(count) && count >= 1 && count <= 2000;
|
||||
|
||||
async function act(fn: () => Promise<string>) {
|
||||
setBusy(true);
|
||||
setError(null);
|
||||
@@ -52,45 +187,128 @@ export function CompanionsCard({ serverId }: { serverId: string }) {
|
||||
}
|
||||
}
|
||||
|
||||
// Primary action: Spawn bots / fleet
|
||||
const handleSpawn = async () => {
|
||||
if (!valid) return;
|
||||
setBusy(true);
|
||||
setError(null);
|
||||
setNote(null);
|
||||
try {
|
||||
if (spawnMode === "fleet") {
|
||||
const race = 1;
|
||||
const out = await api.spawnBotFleet(serverId, race, targetLevel, selectedRealm);
|
||||
setNote(out || `Spawned level ${targetLevel} fleet`);
|
||||
} else {
|
||||
const classNum = selectedClass !== "all" ? parseInt(selectedClass, 10) : (selectedRealm === "wildcard" ? 10 : undefined);
|
||||
let specNum: number | undefined = undefined;
|
||||
if (selectedRole === "tank") {
|
||||
if (selectedRealm === "reborn") {
|
||||
specNum = (classNum === 7 || classNum === 9 || classNum === 11) ? 4 : (classNum === 2 ? 2 : classNum === 1 ? 3 : 1);
|
||||
} else if (selectedRealm === "wildcard") {
|
||||
specNum = 1;
|
||||
}
|
||||
} else if (selectedRole === "healer") {
|
||||
if (selectedRealm === "reborn") {
|
||||
specNum = (classNum === 2 || classNum === 5) ? 1 : (classNum === 7 || classNum === 11 ? 3 : 1);
|
||||
} else if (selectedRealm === "wildcard") {
|
||||
specNum = 2;
|
||||
}
|
||||
}
|
||||
const archStr = selectedArchetype !== "all" ? selectedArchetype : undefined;
|
||||
const r = await api.addCompanions(serverId, count, selectedRealm, targetLevel, classNum, specNum, archStr);
|
||||
if (r.spawned && r.baseline !== null) {
|
||||
setJob({ baseline: r.baseline, target: count, since: Date.now() });
|
||||
}
|
||||
setNote(
|
||||
r.created
|
||||
? t("comp.offlineDone", { n: r.created })
|
||||
: r.spawned
|
||||
? t("comp.spawned", { n: count })
|
||||
: t("comp.saved", { n: count })
|
||||
);
|
||||
}
|
||||
await fetchPopulation();
|
||||
} catch (e) {
|
||||
setError(asUiError(e));
|
||||
} finally {
|
||||
setBusy(false);
|
||||
}
|
||||
};
|
||||
|
||||
// Bring offline bots online
|
||||
const handleLoginAll = () =>
|
||||
act(async () => {
|
||||
const out = await api.loginAllCompanions(serverId, selectedRealm);
|
||||
await fetchPopulation();
|
||||
return out || "All available offline bots queued for login.";
|
||||
});
|
||||
|
||||
// Stop queued creations
|
||||
const stopCreating = () =>
|
||||
act(async () => {
|
||||
const r = await api.stopSpawning(serverId);
|
||||
const r = await api.stopSpawning(serverId, selectedRealm);
|
||||
setJob(null);
|
||||
await fetchPopulation();
|
||||
return t("comp.stopped", { n: r.count });
|
||||
});
|
||||
|
||||
// Take online bots offline
|
||||
const takeOffline = () => {
|
||||
if (!window.confirm(t("comp.offlineConfirm"))) return;
|
||||
void act(async () => {
|
||||
const r = await api.takeOffline(serverId);
|
||||
const r = await api.takeOffline(serverId, selectedRealm);
|
||||
setJob(null);
|
||||
await fetchPopulation();
|
||||
return t("comp.offlineDone2", { n: r.count });
|
||||
});
|
||||
};
|
||||
|
||||
// Despawn batch
|
||||
const dn = Number(despawnN);
|
||||
const dnValid = Number.isInteger(dn) && dn >= 1 && dn <= 5000;
|
||||
const despawnSome = () =>
|
||||
act(async () => {
|
||||
const r = await api.despawnSome(serverId, dn);
|
||||
const r = await api.despawnSome(serverId, dn, selectedRealm);
|
||||
await fetchPopulation();
|
||||
return t("comp.despawnSomeDone", { n: r.count });
|
||||
});
|
||||
|
||||
// Delete all bots in realm
|
||||
const deleteAll = () => {
|
||||
if (!window.confirm(t("comp.deleteConfirm", { n: pop?.bots_total ?? 0 }))) return;
|
||||
void act(async () => {
|
||||
await api.deleteAllCompanions(serverId);
|
||||
await api.deleteAllCompanions(serverId, selectedRealm);
|
||||
setJob(null);
|
||||
await fetchPopulation();
|
||||
return t("comp.deleteDone");
|
||||
});
|
||||
};
|
||||
|
||||
// Switch server realm
|
||||
const switchServerRealm = async (mode: RealmMode) => {
|
||||
if (!window.confirm(`Switch server active realm to ${mode.toUpperCase()} and restart?`)) return;
|
||||
setBusy(true);
|
||||
try {
|
||||
await api.realmSelect(serverId, mode, true);
|
||||
await loadProfiles();
|
||||
setSelectedRealm(mode);
|
||||
} catch (e) {
|
||||
setError(asUiError(e));
|
||||
} finally {
|
||||
setBusy(false);
|
||||
}
|
||||
};
|
||||
|
||||
// Save auto startup settings
|
||||
async function saveStart() {
|
||||
setStartBusy(true);
|
||||
setError(null);
|
||||
setStartNote(null);
|
||||
try {
|
||||
await api.save(serverId, "bots", { "CoaBots.AutoLoginOnStartup": autoOn, "CoaBots.AutoLogin.MaxCount": maxNum });
|
||||
await api.save(serverId, "bots", {
|
||||
"CoaBots.AutoLoginOnStartup": autoOn,
|
||||
"CoaBots.AutoLogin.MaxCount": maxNum,
|
||||
});
|
||||
setStartNote(t("comp.startSaved"));
|
||||
} catch (e) {
|
||||
setError(asUiError(e));
|
||||
@@ -99,181 +317,516 @@ export function CompanionsCard({ serverId }: { serverId: string }) {
|
||||
}
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
void api.companionSizes().then(setSizes);
|
||||
let alive = true;
|
||||
const poll = async () => {
|
||||
const s = await api.status(serverId).catch(() => null);
|
||||
if (!alive || !s) return;
|
||||
const up = s.observed.world.state === "running";
|
||||
setRunning(up);
|
||||
setPop(up ? await api.population(serverId).catch(() => null) : null);
|
||||
};
|
||||
void poll();
|
||||
// Faster while companions are being created, so the progress bar moves.
|
||||
const t = setInterval(poll, job ? 1500 : 4000);
|
||||
return () => {
|
||||
alive = false;
|
||||
clearInterval(t);
|
||||
};
|
||||
}, [serverId, job !== null]); // eslint-disable-line react-hooks/exhaustive-deps
|
||||
// Database schema name for selected realm
|
||||
const dbSchema =
|
||||
selectedRealm === "coa"
|
||||
? "acore_characters"
|
||||
: selectedRealm === "wildcard"
|
||||
? "acore_characters_wildcard"
|
||||
: "acore_characters_reborn";
|
||||
|
||||
const done = job && pop ? Math.max(0, Math.min(job.target, pop.bots_total - job.baseline)) : 0;
|
||||
useEffect(() => {
|
||||
if (!job) return;
|
||||
// Finished, or the server went away, or nothing new appeared for two minutes.
|
||||
if ((pop && done >= job.target) || !running) {
|
||||
if (pop && done >= job.target) setNote(t("comp.progressDone", { n: job.target }));
|
||||
setJob(null);
|
||||
}
|
||||
}, [done, running]); // eslint-disable-line react-hooks/exhaustive-deps
|
||||
|
||||
// The backend describes a size's warning in English; show the translated text for the two known kinds.
|
||||
const warningFor = (size?: { bots: number; warning: string | null }) => {
|
||||
if (!size?.warning) return null;
|
||||
return size.warning.startsWith(`${size.bots} companions`)
|
||||
? t("comp.warnHardware", { n: size.bots, cores: sizes?.hardware.cores ?? "?", ram: sizes ? sizes.hardware.ram_gb.toFixed(0) : "?" })
|
||||
: t("comp.warnMemory");
|
||||
};
|
||||
const count = choice === "custom" ? Number(custom) : (sizes?.sizes.find((s) => s.id === choice)?.bots ?? 0);
|
||||
const warning = choice === "custom" ? (count > 500 ? t("comp.largeWarning") : null) : (warningFor(sizes?.sizes.find((s) => s.id === choice)));
|
||||
const valid = Number.isInteger(count) && count >= 1 && count <= 2000;
|
||||
|
||||
async function add() {
|
||||
setBusy(true);
|
||||
setError(null);
|
||||
setNote(null);
|
||||
try {
|
||||
const r = await api.addCompanions(serverId, count);
|
||||
if (r.spawned && r.baseline !== null) setJob({ baseline: r.baseline, target: count, since: Date.now() });
|
||||
setNote(r.created ? t("comp.offlineDone", { n: r.created }) : r.spawned ? t("comp.spawned", { n: count }) : t("comp.saved", { n: count }));
|
||||
} catch (e) {
|
||||
setError(asUiError(e));
|
||||
} finally {
|
||||
setBusy(false);
|
||||
}
|
||||
}
|
||||
// Binary compatibility check
|
||||
const isBinaryCompatible =
|
||||
selectedRealm === "coa" ||
|
||||
(selectedRealm === "wildcard" && (profiles?.supported ?? true)) ||
|
||||
(selectedRealm === "reborn" && (profiles?.reborn_supported ?? true));
|
||||
|
||||
return (
|
||||
<Card className="mt-6 p-6">
|
||||
<h2 className="font-semibold">{t("comp.title")}</h2>
|
||||
<p className="mt-1 text-sm text-muted">
|
||||
{pop
|
||||
? t("comp.population", { online: pop.bots_online, total: pop.bots_total })
|
||||
: running
|
||||
? t("comp.reading")
|
||||
: t("comp.startToSee")}
|
||||
</p>
|
||||
|
||||
<fieldset className="mt-4">
|
||||
<legend className="text-sm text-muted">{t("comp.wantMore")}</legend>
|
||||
<div className="mt-2 flex flex-wrap gap-2">
|
||||
{sizes?.sizes.map((s) => (
|
||||
<label key={s.id} className={`cursor-pointer rounded-md border px-3 py-2 text-sm ${choice === s.id ? "border-gold bg-gold/10" : "border-line hover:bg-white/5"}`}>
|
||||
<input type="radio" name="size" className="sr-only" checked={choice === s.id} onChange={() => setChoice(s.id)} />
|
||||
{hasKey(`comp.size.${s.id}`) ? t(`comp.size.${s.id}` as Key) : s.title} <span className="text-muted">· {s.bots}</span>
|
||||
</label>
|
||||
))}
|
||||
<label className={`cursor-pointer rounded-md border px-3 py-2 text-sm ${choice === "custom" ? "border-gold bg-gold/10" : "border-line hover:bg-white/5"}`}>
|
||||
<input type="radio" name="size" className="sr-only" checked={choice === "custom"} onChange={() => setChoice("custom")} />
|
||||
{t("comp.custom")}
|
||||
</label>
|
||||
{choice === "custom" && (
|
||||
<input aria-label={t("comp.numberLabel")} value={custom} onChange={(e) => setCustom(e.target.value)} inputMode="numeric" className="w-24 rounded-md border border-line bg-bg px-3 py-2 text-right text-sm outline-none focus:border-gold" />
|
||||
)}
|
||||
<Card className="mt-6 p-6 space-y-6">
|
||||
{/* Header & Realm Switcher */}
|
||||
<div>
|
||||
<div className="flex flex-wrap items-center justify-between gap-3">
|
||||
<div className="flex items-center gap-2">
|
||||
<Bot className="h-6 w-6 text-gold" />
|
||||
<h2 className="text-xl font-bold tracking-tight">{t("comp.title")}</h2>
|
||||
</div>
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="text-xs text-muted flex items-center gap-1">
|
||||
<Database className="h-3.5 w-3.5" />
|
||||
DB: <code className="text-gold">{dbSchema}</code>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
{warning && <p className="mt-3 text-sm text-warn" role="status">{warning}</p>}
|
||||
{sizes && <p className="mt-2 text-xs text-muted">{t("comp.hardware", { cores: sizes.hardware.cores, ram: sizes.hardware.ram_gb.toFixed(0) })}</p>}
|
||||
|
||||
<div className="mt-4 flex items-center gap-3">
|
||||
<Button variant="primary" disabled={busy || !valid || job !== null} onClick={() => void add()}>
|
||||
{busy && <Loader2 className="h-4 w-4 animate-spin" aria-hidden />}
|
||||
{valid ? t("comp.add", { n: count }) : t("comp.addPlain")}
|
||||
</Button>
|
||||
{!running && <span className="text-xs text-muted">{t("comp.stoppedHint")}</span>}
|
||||
{/* Realm Navigation Tabs */}
|
||||
<div className="mt-4 flex flex-wrap gap-2 border-b border-line pb-3">
|
||||
{(["coa", "wildcard", "reborn"] as RealmMode[]).map((mode) => {
|
||||
const isSelected = selectedRealm === mode;
|
||||
const isActive = activeServerRealm === mode;
|
||||
const label =
|
||||
mode === "coa"
|
||||
? "Conquest of Azeroth"
|
||||
: mode === "wildcard"
|
||||
? "Wildcard (Hero)"
|
||||
: "Warcraft Reborn";
|
||||
return (
|
||||
<button
|
||||
key={mode}
|
||||
type="button"
|
||||
onClick={() => setSelectedRealm(mode)}
|
||||
className={`flex items-center gap-2 rounded-lg px-4 py-2 text-sm font-medium transition-colors ${
|
||||
isSelected
|
||||
? "bg-gold/20 text-gold border border-gold/40 shadow-sm"
|
||||
: "border border-line hover:bg-white/5 text-muted hover:text-white"
|
||||
}`}
|
||||
>
|
||||
<span>{label}</span>
|
||||
{isActive && (
|
||||
<span className="rounded bg-ok/20 px-1.5 py-0.5 text-[10px] font-semibold text-ok uppercase">
|
||||
Active Server
|
||||
</span>
|
||||
)}
|
||||
</button>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
{busy && !running && count >= 100 && (
|
||||
<div className="mt-3">
|
||||
<p className="text-sm text-muted" role="status">{t("comp.progressOffline", { n: count })}</p>
|
||||
<div className="mt-2 h-2 overflow-hidden rounded-full bg-white/10" role="progressbar" aria-busy="true">
|
||||
<div className="h-full w-full animate-pulse rounded-full bg-gold/70" />
|
||||
|
||||
{/* Binary Compatibility & Realm Mode Warning */}
|
||||
{!isBinaryCompatible && (
|
||||
<div className="rounded-lg border border-bad/40 bg-bad/10 p-4 text-sm text-bad flex items-start gap-3">
|
||||
<AlertCircle className="h-5 w-5 shrink-0 mt-0.5" />
|
||||
<div>
|
||||
<div className="font-semibold">Binary Compatibility Warning</div>
|
||||
<p className="mt-1 text-xs text-bad/90">
|
||||
The currently running server core binary does not have full multi-realm support enabled
|
||||
for <strong>{selectedRealm.toUpperCase()}</strong>. Automated bot features may be restricted.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
{job && (
|
||||
<div className="mt-3">
|
||||
<div className="flex justify-between text-sm">
|
||||
<span role="status">{t("comp.progress", { done, target: job.target })}</span>
|
||||
<span className="text-muted">{Math.round((done / job.target) * 100)}%</span>
|
||||
</div>
|
||||
<div className="mt-2 h-2 overflow-hidden rounded-full bg-white/10" role="progressbar" aria-valuenow={done} aria-valuemin={0} aria-valuemax={job.target}>
|
||||
<div className="h-full rounded-full bg-gold transition-[width] duration-500" style={{ width: `${(done / job.target) * 100}%` }} />
|
||||
</div>
|
||||
{done === 0 && Date.now() - job.since > 20000 && <p className="mt-1 text-xs text-muted">{t("comp.progressStalled")}</p>}
|
||||
<Button className="mt-2" size="sm" variant="ghost" disabled={busy} onClick={() => void stopCreating()}>
|
||||
{t("comp.stop")}
|
||||
|
||||
{/* Active Realm Switch Helper */}
|
||||
{!isViewingActiveRealm && (
|
||||
<div className="rounded-lg border border-warn/40 bg-warn/10 p-3 text-sm flex items-center justify-between gap-3">
|
||||
<span className="text-warn text-xs">
|
||||
Viewing <strong>{selectedRealm.toUpperCase()}</strong> bots, but the worldserver is currently running in{" "}
|
||||
<strong>{activeServerRealm.toUpperCase()}</strong> mode.
|
||||
</span>
|
||||
<Button
|
||||
size="sm"
|
||||
variant="secondary"
|
||||
disabled={busy}
|
||||
onClick={() => void switchServerRealm(selectedRealm)}
|
||||
>
|
||||
Switch Server to {selectedRealm.toUpperCase()}
|
||||
</Button>
|
||||
</div>
|
||||
)}
|
||||
{note && !job && <p className="mt-3 text-sm text-ok" role="status">{note}</p>}
|
||||
|
||||
{running && pop && pop.bots_total > 0 && (
|
||||
<div className="mt-5 border-t border-line pt-4">
|
||||
<h3 className="text-sm font-semibold">{t("comp.manageTitle")}</h3>
|
||||
<div className="mt-2 flex flex-wrap items-center gap-2 text-sm">
|
||||
<label htmlFor="despawn-n" className="text-muted">{t("comp.despawnCount")}</label>
|
||||
{/* Realm Population Dashboard */}
|
||||
<div className="grid grid-cols-2 sm:grid-cols-4 gap-3">
|
||||
<div className="rounded-lg border border-line bg-bg/50 p-3">
|
||||
<div className="text-xs text-muted flex items-center gap-1.5">
|
||||
<Bot className="h-3.5 w-3.5 text-gold" />
|
||||
Bots Online
|
||||
</div>
|
||||
<div className="mt-1 text-2xl font-bold text-white">
|
||||
{running && pop ? pop.bots_online : "—"}
|
||||
</div>
|
||||
</div>
|
||||
<div className="rounded-lg border border-line bg-bg/50 p-3">
|
||||
<div className="text-xs text-muted flex items-center gap-1.5">
|
||||
<Users className="h-3.5 w-3.5 text-gold" />
|
||||
Total Fleet
|
||||
</div>
|
||||
<div className="mt-1 text-2xl font-bold text-white">
|
||||
{pop ? pop.bots_total : "—"}
|
||||
</div>
|
||||
</div>
|
||||
<div className="rounded-lg border border-line bg-bg/50 p-3">
|
||||
<div className="text-xs text-muted flex items-center gap-1.5">
|
||||
<CheckCircle2 className="h-3.5 w-3.5 text-ok" />
|
||||
Players Online
|
||||
</div>
|
||||
<div className="mt-1 text-2xl font-bold text-white">
|
||||
{running && pop ? pop.players_online : "—"}
|
||||
</div>
|
||||
</div>
|
||||
<div className="rounded-lg border border-line bg-bg/50 p-3 flex flex-col justify-between">
|
||||
<div className="text-xs text-muted flex items-center justify-between">
|
||||
<span>Status</span>
|
||||
<button
|
||||
onClick={() => void fetchPopulation()}
|
||||
title="Refresh"
|
||||
className="text-muted hover:text-white"
|
||||
>
|
||||
<RefreshCw className="h-3 w-3" />
|
||||
</button>
|
||||
</div>
|
||||
<div className="text-sm font-medium">
|
||||
{running ? (
|
||||
<span className="text-ok flex items-center gap-1">
|
||||
<span className="h-2 w-2 rounded-full bg-ok animate-pulse" /> Running
|
||||
</span>
|
||||
) : (
|
||||
<span className="text-muted">Offline</span>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Fleet Configuration & Spawning Section */}
|
||||
<div className="border-t border-line pt-5 space-y-4">
|
||||
<div className="flex items-center justify-between">
|
||||
<h3 className="font-semibold text-sm tracking-wide uppercase text-muted">
|
||||
Fleet Deployment Controls
|
||||
</h3>
|
||||
<div className="flex rounded-md border border-line p-0.5 text-xs">
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setSpawnMode("population")}
|
||||
className={`px-2.5 py-1 rounded transition-colors ${
|
||||
spawnMode === "population" ? "bg-gold/20 text-gold font-medium" : "text-muted hover:text-white"
|
||||
}`}
|
||||
>
|
||||
Batch Population
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setSpawnMode("fleet")}
|
||||
className={`px-2.5 py-1 rounded transition-colors ${
|
||||
spawnMode === "fleet" ? "bg-gold/20 text-gold font-medium" : "text-muted hover:text-white"
|
||||
}`}
|
||||
>
|
||||
Synchronous Fleet
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Count Selector */}
|
||||
{spawnMode === "population" && (
|
||||
<div>
|
||||
<label className="text-xs text-muted">Fleet Size (Number of Bots)</label>
|
||||
<div className="mt-2 flex flex-wrap gap-2">
|
||||
{["10", "25", "50", "100", "250", "500"].map((n) => (
|
||||
<button
|
||||
key={n}
|
||||
type="button"
|
||||
onClick={() => setCountChoice(n)}
|
||||
className={`rounded-md border px-3 py-1.5 text-sm transition-colors ${
|
||||
countChoice === n
|
||||
? "border-gold bg-gold/15 text-gold font-medium"
|
||||
: "border-line hover:bg-white/5 text-muted"
|
||||
}`}
|
||||
>
|
||||
{n}
|
||||
</button>
|
||||
))}
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setCountChoice("custom")}
|
||||
className={`rounded-md border px-3 py-1.5 text-sm transition-colors ${
|
||||
countChoice === "custom"
|
||||
? "border-gold bg-gold/15 text-gold font-medium"
|
||||
: "border-line hover:bg-white/5 text-muted"
|
||||
}`}
|
||||
>
|
||||
Custom
|
||||
</button>
|
||||
{countChoice === "custom" && (
|
||||
<input
|
||||
type="number"
|
||||
min="1"
|
||||
max="2000"
|
||||
value={customCount}
|
||||
onChange={(e) => setCustomCount(e.target.value)}
|
||||
className="w-24 rounded-md border border-line bg-bg px-3 py-1.5 text-right text-sm outline-none focus:border-gold"
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Fleet Specific Settings: Level, Class, Role, Archetype */}
|
||||
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3">
|
||||
{/* Target Level */}
|
||||
<div>
|
||||
<label className="text-xs text-muted">
|
||||
{spawnMode === "fleet" ? "Fleet Level" : "Max Level Cap"} (1 - {maxLevelForRealm})
|
||||
</label>
|
||||
<input
|
||||
type="number"
|
||||
min="1"
|
||||
max={maxLevelForRealm}
|
||||
value={targetLevel}
|
||||
onChange={(e) => setTargetLevel(Math.max(1, Math.min(maxLevelForRealm, Number(e.target.value))))}
|
||||
className="mt-1.5 w-full rounded-md border border-line bg-bg px-3 py-1.5 text-sm outline-none focus:border-gold"
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Class Filter */}
|
||||
<div>
|
||||
<label className="text-xs text-muted">Class Focus</label>
|
||||
<select
|
||||
value={selectedClass}
|
||||
onChange={(e) => setSelectedClass(e.target.value)}
|
||||
className="mt-1.5 w-full rounded-md border border-line bg-bg px-3 py-1.5 text-sm outline-none focus:border-gold"
|
||||
>
|
||||
<option value="all">All Realm Classes</option>
|
||||
{selectedRealm === "coa" && (
|
||||
<>
|
||||
<option value="12">Barbarian</option>
|
||||
<option value="13">Witch Doctor</option>
|
||||
<option value="14">Felsworn</option>
|
||||
<option value="15">Witch Hunter</option>
|
||||
<option value="16">Stormbringer</option>
|
||||
<option value="17">Knight of Xoroth</option>
|
||||
<option value="18">Guardian</option>
|
||||
<option value="19">Templar</option>
|
||||
<option value="20">Bloodmage</option>
|
||||
<option value="21">Ranger</option>
|
||||
<option value="22">Chronomancer</option>
|
||||
<option value="23">Necromancer</option>
|
||||
<option value="24">Pyromancer</option>
|
||||
<option value="25">Cultist</option>
|
||||
<option value="26">Starcaller</option>
|
||||
<option value="27">Tinker</option>
|
||||
<option value="28">Venomancer</option>
|
||||
<option value="29">Reaper</option>
|
||||
<option value="30">Sun Cleric</option>
|
||||
<option value="31">Runemaster</option>
|
||||
<option value="32">Primalist</option>
|
||||
</>
|
||||
)}
|
||||
{selectedRealm === "wildcard" && (
|
||||
<option value="10">Hero (Freepick)</option>
|
||||
)}
|
||||
{selectedRealm === "reborn" && (
|
||||
<>
|
||||
<option value="1">Warrior</option>
|
||||
<option value="2">Paladin</option>
|
||||
<option value="3">Hunter</option>
|
||||
<option value="4">Rogue</option>
|
||||
<option value="5">Priest</option>
|
||||
<option value="6">Death Knight</option>
|
||||
<option value="7">Shaman</option>
|
||||
<option value="8">Mage</option>
|
||||
<option value="9">Warlock</option>
|
||||
<option value="11">Druid</option>
|
||||
</>
|
||||
)}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
{/* Role Filter */}
|
||||
<div>
|
||||
<label className="text-xs text-muted">Combat Role</label>
|
||||
<select
|
||||
value={selectedRole}
|
||||
onChange={(e) => setSelectedRole(e.target.value)}
|
||||
className="mt-1.5 w-full rounded-md border border-line bg-bg px-3 py-1.5 text-sm outline-none focus:border-gold"
|
||||
>
|
||||
<option value="all">All Roles</option>
|
||||
<option value="tank">Tank</option>
|
||||
<option value="healer">Healer</option>
|
||||
<option value="melee">Melee DPS</option>
|
||||
<option value="ranged">Ranged Physical DPS</option>
|
||||
<option value="caster">Caster DPS</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
{/* Archetype Filter */}
|
||||
<div>
|
||||
<label className="text-xs text-muted">Archetype / Build</label>
|
||||
<select
|
||||
value={selectedArchetype}
|
||||
onChange={(e) => setSelectedArchetype(e.target.value)}
|
||||
className="mt-1.5 w-full rounded-md border border-line bg-bg px-3 py-1.5 text-sm outline-none focus:border-gold"
|
||||
>
|
||||
<option value="all">Auto / Integral Archetype</option>
|
||||
{selectedRealm === "wildcard" && (
|
||||
<>
|
||||
{wildcardArchetypes.map((b) => (
|
||||
<option key={b.id} value={b.id}>
|
||||
{b.name} ({formatRole(b.roles)}) [{formatStat(b.primary_stat)}]
|
||||
</option>
|
||||
))}
|
||||
</>
|
||||
)}
|
||||
{selectedRealm === "reborn" && (
|
||||
<>
|
||||
<option value="spiritguard">Spirit Guard Shaman (Tank)</option>
|
||||
<option value="darkapoth">Dark Apotheosis Warlock (Tank)</option>
|
||||
<option value="guardianbear">Guardian Bear Druid (Tank)</option>
|
||||
<option value="protpal">Protection Paladin (Tank)</option>
|
||||
<option value="protwar">Protection Warrior (Tank)</option>
|
||||
<option value="holypriest">Holy Priest (Healer)</option>
|
||||
<option value="restodruid">Restoration Druid / Shaman</option>
|
||||
</>
|
||||
)}
|
||||
{selectedRealm === "coa" && (
|
||||
<option value="class_spec">Class Mastery Specialization</option>
|
||||
)}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Deployment Actions */}
|
||||
<div className="flex flex-wrap items-center gap-3 pt-2">
|
||||
<Button
|
||||
variant="primary"
|
||||
disabled={busy || !valid || job !== null || !isRealmOperational}
|
||||
onClick={() => void handleSpawn()}
|
||||
>
|
||||
{busy && <Loader2 className="h-4 w-4 animate-spin mr-2" />}
|
||||
{spawnMode === "fleet"
|
||||
? `Spawn Level ${targetLevel} Fleet`
|
||||
: `Deploy ${valid ? count : ""} Bots`}
|
||||
</Button>
|
||||
|
||||
{running && pop && pop.bots_total > pop.bots_online && (
|
||||
<Button
|
||||
variant="secondary"
|
||||
disabled={busy || job !== null || !isRealmOperational}
|
||||
onClick={() => void handleLoginAll()}
|
||||
title="Bring all created bots online"
|
||||
>
|
||||
<Power className="h-4 w-4 mr-1.5 text-ok" />
|
||||
Bring All Online ({pop.bots_total - pop.bots_online} idle)
|
||||
</Button>
|
||||
)}
|
||||
|
||||
{!running && (
|
||||
<span className="text-xs text-muted">
|
||||
Server stopped: bots will be created directly in DB or queued for startup.
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Progress Bar during active spawn */}
|
||||
{job && (
|
||||
<div className="rounded-lg border border-line bg-bg/40 p-4 space-y-2">
|
||||
<div className="flex justify-between text-sm">
|
||||
<span className="font-medium">
|
||||
Creating bots: {done} / {job.target}
|
||||
</span>
|
||||
<span className="text-gold font-bold">
|
||||
{Math.round((done / job.target) * 100)}%
|
||||
</span>
|
||||
</div>
|
||||
<div className="h-2 overflow-hidden rounded-full bg-white/10">
|
||||
<div
|
||||
className="h-full rounded-full bg-gold transition-[width] duration-300"
|
||||
style={{ width: `${(done / job.target) * 100}%` }}
|
||||
/>
|
||||
</div>
|
||||
<div className="flex justify-between items-center pt-1">
|
||||
<span className="text-xs text-muted">
|
||||
Paced creation prevents server stalls and guarantees full talent/gear setup.
|
||||
</span>
|
||||
<Button size="sm" variant="ghost" disabled={busy} onClick={() => void stopCreating()}>
|
||||
Cancel Queue
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{note && !job && (
|
||||
<p className="text-sm text-ok flex items-center gap-1.5">
|
||||
<CheckCircle2 className="h-4 w-4 shrink-0" />
|
||||
{note}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Online Fleet Management (Despawn, Purge) */}
|
||||
{running && pop && pop.bots_total > 0 && isViewingActiveRealm && (
|
||||
<div className="border-t border-line pt-5 space-y-3">
|
||||
<h3 className="font-semibold text-sm tracking-wide uppercase text-muted">
|
||||
Online Fleet Management
|
||||
</h3>
|
||||
|
||||
<div className="flex flex-wrap items-center gap-3 text-sm">
|
||||
<label htmlFor="despawn-n" className="text-muted text-xs">
|
||||
Despawn Batch:
|
||||
</label>
|
||||
<input
|
||||
id="despawn-n"
|
||||
value={despawnN}
|
||||
onChange={(e) => setDespawnN(e.target.value)}
|
||||
inputMode="numeric"
|
||||
aria-invalid={!dnValid}
|
||||
className="w-20 rounded-md border border-line bg-bg px-3 py-1.5 text-right outline-none focus:border-gold"
|
||||
className="w-20 rounded-md border border-line bg-bg px-2.5 py-1 text-right text-sm outline-none focus:border-gold"
|
||||
/>
|
||||
<Button size="sm" variant="secondary" disabled={busy || !dnValid} onClick={() => void despawnSome()}>
|
||||
{t("comp.despawnSome", { n: dnValid ? dn : "…" })}
|
||||
<Button
|
||||
size="sm"
|
||||
variant="secondary"
|
||||
disabled={busy || !dnValid}
|
||||
onClick={() => void despawnSome()}
|
||||
>
|
||||
Despawn {dnValid ? dn : "…"} Bots
|
||||
</Button>
|
||||
</div>
|
||||
<p className="mt-1 text-xs text-muted">{t("comp.despawnHint")}</p>
|
||||
<div className="mt-3 flex flex-wrap gap-2">
|
||||
|
||||
<Button size="sm" variant="secondary" disabled={busy} onClick={takeOffline}>
|
||||
{t("comp.offline")}
|
||||
Take All Offline
|
||||
</Button>
|
||||
<Button size="sm" variant="ghost" className="text-bad hover:text-bad" disabled={busy} onClick={deleteAll}>
|
||||
{t("comp.delete")}
|
||||
|
||||
<Button
|
||||
size="sm"
|
||||
variant="ghost"
|
||||
className="text-bad hover:text-bad ml-auto"
|
||||
disabled={busy}
|
||||
onClick={deleteAll}
|
||||
>
|
||||
Purge Entire Fleet ({pop.bots_total})
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="mt-5 border-t border-line pt-4">
|
||||
<h3 className="text-sm font-semibold">{t("comp.startTitle")}</h3>
|
||||
<label className="mt-2 flex cursor-pointer items-center gap-2 text-sm">
|
||||
<input type="checkbox" checked={autoOn} onChange={(e) => setAutoOn(e.target.checked)} />
|
||||
{t("comp.startAuto")}
|
||||
</label>
|
||||
<div className="mt-2 flex flex-wrap items-center gap-2 text-sm">
|
||||
<label htmlFor="start-max" className="text-muted">{t("comp.startCount")}</label>
|
||||
<input
|
||||
id="start-max"
|
||||
value={autoMax}
|
||||
onChange={(e) => setAutoMax(e.target.value)}
|
||||
inputMode="numeric"
|
||||
disabled={!autoOn}
|
||||
aria-invalid={!maxValid}
|
||||
className="w-24 rounded-md border border-line bg-bg px-3 py-1.5 text-right outline-none focus:border-gold disabled:opacity-40"
|
||||
/>
|
||||
<Button size="sm" variant="secondary" disabled={startBusy || (autoOn && !maxValid)} onClick={() => void saveStart()}>
|
||||
{t("comp.startSave")}
|
||||
</Button>
|
||||
{/* Startup Auto-Login Configuration */}
|
||||
<div className="border-t border-line pt-5 space-y-3">
|
||||
<h3 className="font-semibold text-sm tracking-wide uppercase text-muted">
|
||||
Persistent Startup Fleet
|
||||
</h3>
|
||||
<p className="text-xs text-muted">
|
||||
Configure how many bots automatically log into the world whenever the server launches.
|
||||
</p>
|
||||
|
||||
<div className="flex flex-wrap items-center gap-4 text-sm">
|
||||
<label className="flex cursor-pointer items-center gap-2">
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={autoOn}
|
||||
onChange={(e) => setAutoOn(e.target.checked)}
|
||||
className="rounded border-line text-gold focus:ring-gold"
|
||||
/>
|
||||
<span>Enable Auto-Login on Server Startup</span>
|
||||
</label>
|
||||
|
||||
<div className="flex items-center gap-2">
|
||||
<label htmlFor="start-max" className="text-xs text-muted">
|
||||
Startup Limit:
|
||||
</label>
|
||||
<input
|
||||
id="start-max"
|
||||
value={autoMax}
|
||||
onChange={(e) => setAutoMax(e.target.value)}
|
||||
inputMode="numeric"
|
||||
disabled={!autoOn}
|
||||
aria-invalid={!maxValid}
|
||||
className="w-24 rounded-md border border-line bg-bg px-2.5 py-1 text-right text-sm outline-none focus:border-gold disabled:opacity-40"
|
||||
/>
|
||||
<Button
|
||||
size="sm"
|
||||
variant="secondary"
|
||||
disabled={startBusy || (autoOn && !maxValid)}
|
||||
onClick={() => void saveStart()}
|
||||
>
|
||||
Save Setting
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
{autoOn && !maxValid && autoMax !== "" && <p className="mt-1 text-xs text-warn">{t("comp.startInvalid")}</p>}
|
||||
<p className="mt-1 text-xs text-muted">{t("comp.startHint")}</p>
|
||||
{startNote && <p className="mt-2 text-sm text-ok" role="status">{startNote}</p>}
|
||||
{startNote && <p className="text-xs text-ok">{startNote}</p>}
|
||||
</div>
|
||||
{error && <p className="mt-3 text-sm text-bad" role="alert">{error.human.code === "unknown" ? error.technical : human(error.human).message}</p>}
|
||||
|
||||
{error && (
|
||||
<div className="rounded-md border border-bad/40 bg-bad/10 p-3 text-sm text-bad flex items-center gap-2">
|
||||
<AlertCircle className="h-4 w-4 shrink-0" />
|
||||
<span>{error.human.code === "unknown" ? error.technical : human(error.human).message}</span>
|
||||
</div>
|
||||
)}
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user