Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0940e9cf28 | ||
|
|
ab0bdbe3e9 | ||
|
|
313d3e1c08 | ||
|
|
8686990a30 | ||
|
|
dd066f2094 | ||
|
|
5bbe5adff1 | ||
|
|
79846186ea | ||
|
|
f7d29b09ef | ||
|
|
efacd4946e | ||
|
|
b4b1260099 |
No files matched your search
@@ -347,7 +347,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "coa-core"
|
name = "coa-core"
|
||||||
version = "0.1.5"
|
version = "0.2.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64 0.22.1",
|
"base64 0.22.1",
|
||||||
"chrono",
|
"chrono",
|
||||||
@@ -375,7 +375,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "coa-release"
|
name = "coa-release"
|
||||||
version = "0.1.5"
|
version = "0.2.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"coa-core",
|
"coa-core",
|
||||||
@@ -384,7 +384,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "coa-server-manager"
|
name = "coa-server-manager"
|
||||||
version = "0.1.5"
|
version = "0.2.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"coa-core",
|
"coa-core",
|
||||||
"serde",
|
"serde",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ resolver = "2"
|
|||||||
members = ["crates/coa-core", "crates/coa-release", "src-tauri"]
|
members = ["crates/coa-core", "crates/coa-release", "src-tauri"]
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
version = "0.1.5"
|
version = "0.2.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "AGPL-3.0-only"
|
license = "AGPL-3.0-only"
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,127 @@
|
|||||||
|
-- Companion template characters: one level 80 character per CoA class (12-32), used by the bot module as the
|
||||||
|
-- source its bots are copied from. Generated from a maintainer database; guids and the owning account are
|
||||||
|
-- variables (@G is added to every guid, @ACC is the owner account, which must not be account 1 or a bot host).
|
||||||
|
-- Idempotent: rows that already exist are kept.
|
||||||
|
INSERT IGNORE INTO `characters` (`guid`, `account`, `name`, `race`, `class`, `gender`, `level`, `xp`, `money`, `skin`, `face`, `hairStyle`, `hairColor`, `facialStyle`, `bankSlots`, `restState`, `playerFlags`, `position_x`, `position_y`, `position_z`, `map`, `instance_id`, `instance_mode_mask`, `orientation`, `taximask`, `online`, `cinematic`, `totaltime`, `leveltime`, `logout_time`, `is_logout_resting`, `rest_bonus`, `resettalents_cost`, `resettalents_time`, `trans_x`, `trans_y`, `trans_z`, `trans_o`, `transguid`, `extra_flags`, `stable_slots`, `at_login`, `zone`, `death_expire_time`, `taxi_path`, `arenaPoints`, `totalHonorPoints`, `todayHonorPoints`, `yesterdayHonorPoints`, `totalKills`, `todayKills`, `yesterdayKills`, `chosenTitle`, `knownCurrencies`, `watchedFaction`, `drunk`, `health`, `power1`, `power2`, `power3`, `power4`, `power5`, `power6`, `power7`, `latency`, `talentGroupsCount`, `activeTalentGroup`, `exploredZones`, `equipmentCache`, `ammoId`, `knownTitles`, `actionBars`, `grantableLevels`, `order`, `creation_date`, `deleteInfos_Account`, `deleteInfos_Name`, `deleteDate`, `innTriggerId`, `extraBonusTalentCount`) VALUES (@G+112,@ACC,'TcBarbarian',2,12,0,80,0,0,0,0,0,0,0,0,2,0,16226,16258,13.2,1,0,0,3.14159,'4194304 0 0 4 0 0 1048576 0 0 0 0 0 0 0 ',0,1,374,374,1789536550,0,0,0,0,0,0,0,0,0,0,0,0,876,0,'',0,0,0,0,0,0,0,0,0,0,0,8175,0,1000,0,100,0,0,1000,0,1,0,'0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ','0 0 0 0 357876 0 0 0 2000002 0 0 0 2000000 0 2000001 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9999001 0 9999003 0 9999013 0 0 0 0 0 0 0 0 0 0 0 ',0,'0 0 0 0 0 0 ',0,0,NULL,'2026-09-13 08:33:38',NULL,NULL,NULL,0,0);
|
||||||
|
INSERT IGNORE INTO `characters` (`guid`, `account`, `name`, `race`, `class`, `gender`, `level`, `xp`, `money`, `skin`, `face`, `hairStyle`, `hairColor`, `facialStyle`, `bankSlots`, `restState`, `playerFlags`, `position_x`, `position_y`, `position_z`, `map`, `instance_id`, `instance_mode_mask`, `orientation`, `taximask`, `online`, `cinematic`, `totaltime`, `leveltime`, `logout_time`, `is_logout_resting`, `rest_bonus`, `resettalents_cost`, `resettalents_time`, `trans_x`, `trans_y`, `trans_z`, `trans_o`, `transguid`, `extra_flags`, `stable_slots`, `at_login`, `zone`, `death_expire_time`, `taxi_path`, `arenaPoints`, `totalHonorPoints`, `todayHonorPoints`, `yesterdayHonorPoints`, `totalKills`, `todayKills`, `yesterdayKills`, `chosenTitle`, `knownCurrencies`, `watchedFaction`, `drunk`, `health`, `power1`, `power2`, `power3`, `power4`, `power5`, `power6`, `power7`, `latency`, `talentGroupsCount`, `activeTalentGroup`, `exploredZones`, `equipmentCache`, `ammoId`, `knownTitles`, `actionBars`, `grantableLevels`, `order`, `creation_date`, `deleteInfos_Account`, `deleteInfos_Name`, `deleteDate`, `innTriggerId`, `extraBonusTalentCount`) VALUES (@G+113,@ACC,'TcWitchDoc',8,13,0,80,0,0,0,0,0,0,0,0,2,0,16226,16258,13.2,1,0,0,3.14159,'4194304 0 0 4 0 0 1048576 0 0 0 0 0 0 0 ',0,1,267,267,1789443324,0,0,0,0,0,0,0,0,0,0,0,0,876,0,'',0,0,0,0,0,0,0,0,0,0,0,3791,6796,1000,0,100,0,0,1000,0,1,0,'0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ','2000014 0 0 0 0 0 0 0 2000013 0 0 0 2000011 0 484330 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9999003 0 9999009 0 9999007 0 0 0 0 0 0 0 0 0 0 0 ',0,'0 0 0 0 0 0 ',0,0,NULL,'2026-09-13 08:33:38',NULL,NULL,NULL,0,0);
|
||||||
|
INSERT IGNORE INTO `characters` (`guid`, `account`, `name`, `race`, `class`, `gender`, `level`, `xp`, `money`, `skin`, `face`, `hairStyle`, `hairColor`, `facialStyle`, `bankSlots`, `restState`, `playerFlags`, `position_x`, `position_y`, `position_z`, `map`, `instance_id`, `instance_mode_mask`, `orientation`, `taximask`, `online`, `cinematic`, `totaltime`, `leveltime`, `logout_time`, `is_logout_resting`, `rest_bonus`, `resettalents_cost`, `resettalents_time`, `trans_x`, `trans_y`, `trans_z`, `trans_o`, `transguid`, `extra_flags`, `stable_slots`, `at_login`, `zone`, `death_expire_time`, `taxi_path`, `arenaPoints`, `totalHonorPoints`, `todayHonorPoints`, `yesterdayHonorPoints`, `totalKills`, `todayKills`, `yesterdayKills`, `chosenTitle`, `knownCurrencies`, `watchedFaction`, `drunk`, `health`, `power1`, `power2`, `power3`, `power4`, `power5`, `power6`, `power7`, `latency`, `talentGroupsCount`, `activeTalentGroup`, `exploredZones`, `equipmentCache`, `ammoId`, `knownTitles`, `actionBars`, `grantableLevels`, `order`, `creation_date`, `deleteInfos_Account`, `deleteInfos_Name`, `deleteDate`, `innTriggerId`, `extraBonusTalentCount`) VALUES (@G+114,@ACC,'TcFelsworn',10,14,0,80,0,0,0,0,0,0,0,0,2,32,16234,16258,13.6675,1,0,0,3.14159,'0 0 131072 4 0 0 1048576 0 0 0 0 0 0 0 ',0,1,400,400,1789561795,1,0,0,0,0,0,0,0,0,0,0,0,876,0,'',0,0,0,0,0,0,0,0,0,0,0,7749,0,1000,0,100,0,0,1000,0,1,0,'0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ','0 0 0 0 0 0 2000009 0 0 0 0 0 2000007 0 2000008 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9999001 0 9999003 0 9999007 0 0 0 0 0 0 0 0 0 0 0 ',0,'0 0 0 0 0 0 ',0,0,NULL,'2026-09-13 08:33:38',NULL,NULL,NULL,0,0);
|
||||||
|
INSERT IGNORE INTO `characters` (`guid`, `account`, `name`, `race`, `class`, `gender`, `level`, `xp`, `money`, `skin`, `face`, `hairStyle`, `hairColor`, `facialStyle`, `bankSlots`, `restState`, `playerFlags`, `position_x`, `position_y`, `position_z`, `map`, `instance_id`, `instance_mode_mask`, `orientation`, `taximask`, `online`, `cinematic`, `totaltime`, `leveltime`, `logout_time`, `is_logout_resting`, `rest_bonus`, `resettalents_cost`, `resettalents_time`, `trans_x`, `trans_y`, `trans_z`, `trans_o`, `transguid`, `extra_flags`, `stable_slots`, `at_login`, `zone`, `death_expire_time`, `taxi_path`, `arenaPoints`, `totalHonorPoints`, `todayHonorPoints`, `yesterdayHonorPoints`, `totalKills`, `todayKills`, `yesterdayKills`, `chosenTitle`, `knownCurrencies`, `watchedFaction`, `drunk`, `health`, `power1`, `power2`, `power3`, `power4`, `power5`, `power6`, `power7`, `latency`, `talentGroupsCount`, `activeTalentGroup`, `exploredZones`, `equipmentCache`, `ammoId`, `knownTitles`, `actionBars`, `grantableLevels`, `order`, `creation_date`, `deleteInfos_Account`, `deleteInfos_Name`, `deleteDate`, `innTriggerId`, `extraBonusTalentCount`) VALUES (@G+115,@ACC,'TcWitchHunt',1,15,0,80,0,0,0,0,0,0,0,0,2,0,16226,16258,13.2,1,0,0,3.14159,'2 0 0 8 0 0 1048576 0 0 0 0 0 0 0 ',0,1,238,238,1789439472,0,0,0,0,0,0,0,0,0,0,0,0,876,0,'',0,0,0,0,0,0,0,0,0,0,0,10000,4878,526,0,100,0,0,1000,0,1,0,'0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ','2000017 0 0 0 0 0 0 0 2000016 0 0 0 2000018 0 2000015 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9999001 0 9999011 0 9999014 0 0 0 0 0 0 0 0 0 0 0 ',0,'0 0 0 0 0 0 ',0,0,NULL,'2026-09-13 08:33:38',NULL,NULL,NULL,0,0);
|
||||||
|
INSERT IGNORE INTO `characters` (`guid`, `account`, `name`, `race`, `class`, `gender`, `level`, `xp`, `money`, `skin`, `face`, `hairStyle`, `hairColor`, `facialStyle`, `bankSlots`, `restState`, `playerFlags`, `position_x`, `position_y`, `position_z`, `map`, `instance_id`, `instance_mode_mask`, `orientation`, `taximask`, `online`, `cinematic`, `totaltime`, `leveltime`, `logout_time`, `is_logout_resting`, `rest_bonus`, `resettalents_cost`, `resettalents_time`, `trans_x`, `trans_y`, `trans_z`, `trans_o`, `transguid`, `extra_flags`, `stable_slots`, `at_login`, `zone`, `death_expire_time`, `taxi_path`, `arenaPoints`, `totalHonorPoints`, `todayHonorPoints`, `yesterdayHonorPoints`, `totalKills`, `todayKills`, `yesterdayKills`, `chosenTitle`, `knownCurrencies`, `watchedFaction`, `drunk`, `health`, `power1`, `power2`, `power3`, `power4`, `power5`, `power6`, `power7`, `latency`, `talentGroupsCount`, `activeTalentGroup`, `exploredZones`, `equipmentCache`, `ammoId`, `knownTitles`, `actionBars`, `grantableLevels`, `order`, `creation_date`, `deleteInfos_Account`, `deleteInfos_Name`, `deleteDate`, `innTriggerId`, `extraBonusTalentCount`) VALUES (@G+116,@ACC,'TcStormbr',6,16,0,80,0,0,0,0,0,0,0,0,2,32,16226,16258,13.2,1,0,0,0,'2097152 0 0 4 0 0 1048576 0 0 0 0 0 0 0 ',0,1,199,199,1789436314,1,0,0,0,0,0,0,0,0,0,0,0,139,0,'',0,0,0,0,0,0,0,0,0,0,0,8482,4681,660,0,100,0,0,1000,0,1,0,'0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ','501973 0 0 0 0 0 0 0 2000021 0 0 0 2000019 0 2000020 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9999003 0 0 0 9999007 0 0 0 0 0 0 0 0 0 0 0 ',0,'0 0 0 0 0 0 ',0,0,NULL,'2026-09-13 08:33:38',NULL,NULL,NULL,0,0);
|
||||||
|
INSERT IGNORE INTO `characters` (`guid`, `account`, `name`, `race`, `class`, `gender`, `level`, `xp`, `money`, `skin`, `face`, `hairStyle`, `hairColor`, `facialStyle`, `bankSlots`, `restState`, `playerFlags`, `position_x`, `position_y`, `position_z`, `map`, `instance_id`, `instance_mode_mask`, `orientation`, `taximask`, `online`, `cinematic`, `totaltime`, `leveltime`, `logout_time`, `is_logout_resting`, `rest_bonus`, `resettalents_cost`, `resettalents_time`, `trans_x`, `trans_y`, `trans_z`, `trans_o`, `transguid`, `extra_flags`, `stable_slots`, `at_login`, `zone`, `death_expire_time`, `taxi_path`, `arenaPoints`, `totalHonorPoints`, `todayHonorPoints`, `yesterdayHonorPoints`, `totalKills`, `todayKills`, `yesterdayKills`, `chosenTitle`, `knownCurrencies`, `watchedFaction`, `drunk`, `health`, `power1`, `power2`, `power3`, `power4`, `power5`, `power6`, `power7`, `latency`, `talentGroupsCount`, `activeTalentGroup`, `exploredZones`, `equipmentCache`, `ammoId`, `knownTitles`, `actionBars`, `grantableLevels`, `order`, `creation_date`, `deleteInfos_Account`, `deleteInfos_Name`, `deleteDate`, `innTriggerId`, `extraBonusTalentCount`) VALUES (@G+117,@ACC,'TcXoroth',2,17,0,80,0,0,0,0,0,0,0,0,2,32,16210,16258,16.3796,1,0,0,3.14159,'4194304 0 0 4 0 0 1048576 0 0 0 0 0 0 0 ',0,1,220,220,1789561746,1,0,0,0,0,0,0,0,0,0,0,0,876,0,'',0,0,0,0,0,0,0,0,0,0,0,9450,0,1000,0,100,0,0,1000,0,1,0,'0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ','0 0 0 0 0 0 0 0 2000024 0 0 0 2000022 0 2000023 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9999001 0 9999003 0 9999014 0 0 0 0 0 0 0 0 0 0 0 ',0,'0 0 0 0 0 0 ',0,0,NULL,'2026-09-13 08:33:38',NULL,NULL,NULL,0,0);
|
||||||
|
INSERT IGNORE INTO `characters` (`guid`, `account`, `name`, `race`, `class`, `gender`, `level`, `xp`, `money`, `skin`, `face`, `hairStyle`, `hairColor`, `facialStyle`, `bankSlots`, `restState`, `playerFlags`, `position_x`, `position_y`, `position_z`, `map`, `instance_id`, `instance_mode_mask`, `orientation`, `taximask`, `online`, `cinematic`, `totaltime`, `leveltime`, `logout_time`, `is_logout_resting`, `rest_bonus`, `resettalents_cost`, `resettalents_time`, `trans_x`, `trans_y`, `trans_z`, `trans_o`, `transguid`, `extra_flags`, `stable_slots`, `at_login`, `zone`, `death_expire_time`, `taxi_path`, `arenaPoints`, `totalHonorPoints`, `todayHonorPoints`, `yesterdayHonorPoints`, `totalKills`, `todayKills`, `yesterdayKills`, `chosenTitle`, `knownCurrencies`, `watchedFaction`, `drunk`, `health`, `power1`, `power2`, `power3`, `power4`, `power5`, `power6`, `power7`, `latency`, `talentGroupsCount`, `activeTalentGroup`, `exploredZones`, `equipmentCache`, `ammoId`, `knownTitles`, `actionBars`, `grantableLevels`, `order`, `creation_date`, `deleteInfos_Account`, `deleteInfos_Name`, `deleteDate`, `innTriggerId`, `extraBonusTalentCount`) VALUES (@G+118,@ACC,'TcGuardian',1,18,0,80,0,0,0,0,0,0,0,0,2,16,16226,16258,13.2,1,0,0,-3.00499,'2 0 0 8 0 0 1048576 0 0 0 0 0 0 0 ',0,1,457,457,1789465163,0,0,0,0,0,0,0,0,0,0,0,0,876,1789453570,'',0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1000,0,1,0,'0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ','0 0 0 0 0 0 244613 0 2000027 0 0 0 2000025 0 2000026 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9999001 0 9999015 0 9999014 0 0 0 0 0 0 0 0 0 0 0 ',0,'0 0 0 0 0 0 ',0,0,NULL,'2026-09-13 08:33:38',NULL,NULL,NULL,0,0);
|
||||||
|
INSERT IGNORE INTO `characters` (`guid`, `account`, `name`, `race`, `class`, `gender`, `level`, `xp`, `money`, `skin`, `face`, `hairStyle`, `hairColor`, `facialStyle`, `bankSlots`, `restState`, `playerFlags`, `position_x`, `position_y`, `position_z`, `map`, `instance_id`, `instance_mode_mask`, `orientation`, `taximask`, `online`, `cinematic`, `totaltime`, `leveltime`, `logout_time`, `is_logout_resting`, `rest_bonus`, `resettalents_cost`, `resettalents_time`, `trans_x`, `trans_y`, `trans_z`, `trans_o`, `transguid`, `extra_flags`, `stable_slots`, `at_login`, `zone`, `death_expire_time`, `taxi_path`, `arenaPoints`, `totalHonorPoints`, `todayHonorPoints`, `yesterdayHonorPoints`, `totalKills`, `todayKills`, `yesterdayKills`, `chosenTitle`, `knownCurrencies`, `watchedFaction`, `drunk`, `health`, `power1`, `power2`, `power3`, `power4`, `power5`, `power6`, `power7`, `latency`, `talentGroupsCount`, `activeTalentGroup`, `exploredZones`, `equipmentCache`, `ammoId`, `knownTitles`, `actionBars`, `grantableLevels`, `order`, `creation_date`, `deleteInfos_Account`, `deleteInfos_Name`, `deleteDate`, `innTriggerId`, `extraBonusTalentCount`) VALUES (@G+119,@ACC,'TcTemplar',1,19,0,80,0,0,0,0,0,0,0,0,2,0,16233,16258,14.0852,1,0,0,-2.93445,'2 0 0 8 0 0 1048576 0 0 0 0 0 0 0 ',0,1,543,543,1789561768,0,0,0,0,0,0,0,0,0,0,0,0,876,1789453179,'',0,0,0,0,0,0,0,0,0,0,0,8554,0,1000,0,19,0,0,1000,0,1,0,'0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ','0 0 0 0 0 0 2446130 0 2000030 0 0 0 2000028 0 2117000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9999001 0 0 0 9999014 0 0 0 0 0 0 0 0 0 0 0 ',0,'0 0 0 0 0 0 ',0,0,NULL,'2026-09-13 08:33:38',NULL,NULL,NULL,0,0);
|
||||||
|
INSERT IGNORE INTO `characters` (`guid`, `account`, `name`, `race`, `class`, `gender`, `level`, `xp`, `money`, `skin`, `face`, `hairStyle`, `hairColor`, `facialStyle`, `bankSlots`, `restState`, `playerFlags`, `position_x`, `position_y`, `position_z`, `map`, `instance_id`, `instance_mode_mask`, `orientation`, `taximask`, `online`, `cinematic`, `totaltime`, `leveltime`, `logout_time`, `is_logout_resting`, `rest_bonus`, `resettalents_cost`, `resettalents_time`, `trans_x`, `trans_y`, `trans_z`, `trans_o`, `transguid`, `extra_flags`, `stable_slots`, `at_login`, `zone`, `death_expire_time`, `taxi_path`, `arenaPoints`, `totalHonorPoints`, `todayHonorPoints`, `yesterdayHonorPoints`, `totalKills`, `todayKills`, `yesterdayKills`, `chosenTitle`, `knownCurrencies`, `watchedFaction`, `drunk`, `health`, `power1`, `power2`, `power3`, `power4`, `power5`, `power6`, `power7`, `latency`, `talentGroupsCount`, `activeTalentGroup`, `exploredZones`, `equipmentCache`, `ammoId`, `knownTitles`, `actionBars`, `grantableLevels`, `order`, `creation_date`, `deleteInfos_Account`, `deleteInfos_Name`, `deleteDate`, `innTriggerId`, `extraBonusTalentCount`) VALUES (@G+120,@ACC,'TcBloodmage',5,20,0,80,0,0,0,0,0,0,0,0,2,32,16226,16258,13.2,1,0,0,0,'1024 0 0 4 0 0 1048576 0 0 0 0 0 0 0 ',0,1,276,276,1789436248,1,0,0,0,0,0,0,0,0,0,0,0,139,0,'',0,0,0,0,0,0,0,0,0,0,0,413,0,1000,0,100,0,0,1000,0,1,0,'0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ','0 0 0 0 0 0 0 0 2000033 0 0 0 2000031 0 494334 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9999001 0 9999003 0 9999007 0 0 0 0 0 0 0 0 0 0 0 ',0,'0 0 0 0 0 0 ',0,0,NULL,'2026-09-13 08:33:38',NULL,NULL,NULL,0,0);
|
||||||
|
INSERT IGNORE INTO `characters` (`guid`, `account`, `name`, `race`, `class`, `gender`, `level`, `xp`, `money`, `skin`, `face`, `hairStyle`, `hairColor`, `facialStyle`, `bankSlots`, `restState`, `playerFlags`, `position_x`, `position_y`, `position_z`, `map`, `instance_id`, `instance_mode_mask`, `orientation`, `taximask`, `online`, `cinematic`, `totaltime`, `leveltime`, `logout_time`, `is_logout_resting`, `rest_bonus`, `resettalents_cost`, `resettalents_time`, `trans_x`, `trans_y`, `trans_z`, `trans_o`, `transguid`, `extra_flags`, `stable_slots`, `at_login`, `zone`, `death_expire_time`, `taxi_path`, `arenaPoints`, `totalHonorPoints`, `todayHonorPoints`, `yesterdayHonorPoints`, `totalKills`, `todayKills`, `yesterdayKills`, `chosenTitle`, `knownCurrencies`, `watchedFaction`, `drunk`, `health`, `power1`, `power2`, `power3`, `power4`, `power5`, `power6`, `power7`, `latency`, `talentGroupsCount`, `activeTalentGroup`, `exploredZones`, `equipmentCache`, `ammoId`, `knownTitles`, `actionBars`, `grantableLevels`, `order`, `creation_date`, `deleteInfos_Account`, `deleteInfos_Name`, `deleteDate`, `innTriggerId`, `extraBonusTalentCount`) VALUES (@G+121,@ACC,'TcRanger',4,21,0,80,0,0,0,0,0,0,0,0,2,0,16226,16258,13.2,1,0,0,4.37863,'100663296 0 0 8 0 0 1048576 0 0 0 0 0 0 0 ',0,1,314,314,1789465922,0,0,0,0,0,0,0,0,0,0,0,0,876,1789434887,'',0,0,0,0,0,0,0,0,0,0,0,4349,0,0,30,100,0,0,1000,0,1,0,'0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ','0 0 0 0 0 0 0 0 2000040 0 0 0 2000038 0 2000039 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9999001 0 9999003 0 9999008 0 0 0 0 0 0 0 0 0 0 0 ',0,'0 0 0 0 0 0 ',0,0,NULL,'2026-09-13 08:33:38',NULL,NULL,NULL,0,0);
|
||||||
|
INSERT IGNORE INTO `characters` (`guid`, `account`, `name`, `race`, `class`, `gender`, `level`, `xp`, `money`, `skin`, `face`, `hairStyle`, `hairColor`, `facialStyle`, `bankSlots`, `restState`, `playerFlags`, `position_x`, `position_y`, `position_z`, `map`, `instance_id`, `instance_mode_mask`, `orientation`, `taximask`, `online`, `cinematic`, `totaltime`, `leveltime`, `logout_time`, `is_logout_resting`, `rest_bonus`, `resettalents_cost`, `resettalents_time`, `trans_x`, `trans_y`, `trans_z`, `trans_o`, `transguid`, `extra_flags`, `stable_slots`, `at_login`, `zone`, `death_expire_time`, `taxi_path`, `arenaPoints`, `totalHonorPoints`, `todayHonorPoints`, `yesterdayHonorPoints`, `totalKills`, `todayKills`, `yesterdayKills`, `chosenTitle`, `knownCurrencies`, `watchedFaction`, `drunk`, `health`, `power1`, `power2`, `power3`, `power4`, `power5`, `power6`, `power7`, `latency`, `talentGroupsCount`, `activeTalentGroup`, `exploredZones`, `equipmentCache`, `ammoId`, `knownTitles`, `actionBars`, `grantableLevels`, `order`, `creation_date`, `deleteInfos_Account`, `deleteInfos_Name`, `deleteDate`, `innTriggerId`, `extraBonusTalentCount`) VALUES (@G+122,@ACC,'TcChrono',7,22,0,80,0,0,0,0,0,0,0,0,2,0,16226,16258,13.2,1,0,0,3.14159,'32 0 0 8 0 0 1048576 0 0 0 0 0 0 0 ',0,1,154,154,1789537290,0,0,0,0,0,0,0,0,0,0,0,0,876,0,'',0,0,0,0,0,0,0,0,0,0,0,7453,4851,1000,0,100,0,0,1000,0,1,0,'0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ','0 0 0 0 0 0 0 0 2000046 0 0 0 494335 0 2000045 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9999001 0 0 0 9999007 0 0 0 0 0 0 0 0 0 0 0 ',0,'0 0 0 0 0 0 ',0,0,NULL,'2026-09-13 08:33:38',NULL,NULL,NULL,0,0);
|
||||||
|
INSERT IGNORE INTO `characters` (`guid`, `account`, `name`, `race`, `class`, `gender`, `level`, `xp`, `money`, `skin`, `face`, `hairStyle`, `hairColor`, `facialStyle`, `bankSlots`, `restState`, `playerFlags`, `position_x`, `position_y`, `position_z`, `map`, `instance_id`, `instance_mode_mask`, `orientation`, `taximask`, `online`, `cinematic`, `totaltime`, `leveltime`, `logout_time`, `is_logout_resting`, `rest_bonus`, `resettalents_cost`, `resettalents_time`, `trans_x`, `trans_y`, `trans_z`, `trans_o`, `transguid`, `extra_flags`, `stable_slots`, `at_login`, `zone`, `death_expire_time`, `taxi_path`, `arenaPoints`, `totalHonorPoints`, `todayHonorPoints`, `yesterdayHonorPoints`, `totalKills`, `todayKills`, `yesterdayKills`, `chosenTitle`, `knownCurrencies`, `watchedFaction`, `drunk`, `health`, `power1`, `power2`, `power3`, `power4`, `power5`, `power6`, `power7`, `latency`, `talentGroupsCount`, `activeTalentGroup`, `exploredZones`, `equipmentCache`, `ammoId`, `knownTitles`, `actionBars`, `grantableLevels`, `order`, `creation_date`, `deleteInfos_Account`, `deleteInfos_Name`, `deleteDate`, `innTriggerId`, `extraBonusTalentCount`) VALUES (@G+123,@ACC,'TcNecro',5,23,0,80,0,0,0,0,0,0,0,0,2,0,16235,16258,13.7211,1,0,0,3.14159,'1024 0 0 4 0 0 1048576 0 0 0 0 0 0 0 ',0,1,141,141,1789561691,0,0,0,0,0,0,0,0,0,0,0,0,876,0,'',0,0,0,0,0,0,0,0,0,0,0,7118,6036,1000,0,100,0,0,1000,0,1,0,'0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ','0 0 0 0 0 0 0 0 2000053 0 0 0 2000051 0 2000052 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9999001 0 9999003 0 9999007 0 0 0 0 0 0 0 0 0 0 0 ',0,'0 0 0 0 0 0 ',0,0,NULL,'2026-09-13 08:33:38',NULL,NULL,NULL,0,0);
|
||||||
|
INSERT IGNORE INTO `characters` (`guid`, `account`, `name`, `race`, `class`, `gender`, `level`, `xp`, `money`, `skin`, `face`, `hairStyle`, `hairColor`, `facialStyle`, `bankSlots`, `restState`, `playerFlags`, `position_x`, `position_y`, `position_z`, `map`, `instance_id`, `instance_mode_mask`, `orientation`, `taximask`, `online`, `cinematic`, `totaltime`, `leveltime`, `logout_time`, `is_logout_resting`, `rest_bonus`, `resettalents_cost`, `resettalents_time`, `trans_x`, `trans_y`, `trans_z`, `trans_o`, `transguid`, `extra_flags`, `stable_slots`, `at_login`, `zone`, `death_expire_time`, `taxi_path`, `arenaPoints`, `totalHonorPoints`, `todayHonorPoints`, `yesterdayHonorPoints`, `totalKills`, `todayKills`, `yesterdayKills`, `chosenTitle`, `knownCurrencies`, `watchedFaction`, `drunk`, `health`, `power1`, `power2`, `power3`, `power4`, `power5`, `power6`, `power7`, `latency`, `talentGroupsCount`, `activeTalentGroup`, `exploredZones`, `equipmentCache`, `ammoId`, `knownTitles`, `actionBars`, `grantableLevels`, `order`, `creation_date`, `deleteInfos_Account`, `deleteInfos_Name`, `deleteDate`, `innTriggerId`, `extraBonusTalentCount`) VALUES (@G+124,@ACC,'TcPyromancer',1,24,0,80,0,0,0,0,0,0,0,0,2,0,16231,16258,13.7211,1,0,0,3.14159,'2 0 0 8 0 0 1048576 0 0 0 0 0 0 0 ',0,1,485,485,1789561719,0,0,0,0,0,0,0,0,0,0,0,0,876,0,'',0,0,0,0,0,0,0,0,0,0,0,7395,5481,1000,0,100,0,0,1000,0,1,0,'0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ','0 0 0 0 0 0 0 0 2000056 0 0 0 2000054 0 2000055 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9999001 0 9999003 0 9999007 0 0 0 0 0 0 0 0 0 0 0 ',0,'0 0 0 0 0 0 ',0,0,NULL,'2026-09-13 08:33:38',NULL,NULL,NULL,0,0);
|
||||||
|
INSERT IGNORE INTO `characters` (`guid`, `account`, `name`, `race`, `class`, `gender`, `level`, `xp`, `money`, `skin`, `face`, `hairStyle`, `hairColor`, `facialStyle`, `bankSlots`, `restState`, `playerFlags`, `position_x`, `position_y`, `position_z`, `map`, `instance_id`, `instance_mode_mask`, `orientation`, `taximask`, `online`, `cinematic`, `totaltime`, `leveltime`, `logout_time`, `is_logout_resting`, `rest_bonus`, `resettalents_cost`, `resettalents_time`, `trans_x`, `trans_y`, `trans_z`, `trans_o`, `transguid`, `extra_flags`, `stable_slots`, `at_login`, `zone`, `death_expire_time`, `taxi_path`, `arenaPoints`, `totalHonorPoints`, `todayHonorPoints`, `yesterdayHonorPoints`, `totalKills`, `todayKills`, `yesterdayKills`, `chosenTitle`, `knownCurrencies`, `watchedFaction`, `drunk`, `health`, `power1`, `power2`, `power3`, `power4`, `power5`, `power6`, `power7`, `latency`, `talentGroupsCount`, `activeTalentGroup`, `exploredZones`, `equipmentCache`, `ammoId`, `knownTitles`, `actionBars`, `grantableLevels`, `order`, `creation_date`, `deleteInfos_Account`, `deleteInfos_Name`, `deleteDate`, `innTriggerId`, `extraBonusTalentCount`) VALUES (@G+125,@ACC,'TcCultist',10,25,0,80,0,0,0,0,0,0,0,0,2,0,16235,16262,13.2,1,0,0,3.14159,'0 0 131072 4 0 0 1048576 0 0 0 0 0 0 0 ',0,1,374,374,1789561732,0,0,0,0,0,0,0,0,0,0,0,0,876,0,'',0,0,0,0,0,0,0,0,0,0,0,8261,4332,1000,0,100,0,0,1000,0,1,0,'0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ','0 0 0 0 0 0 0 0 2000059 0 0 0 2000057 0 484331 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9999001 0 9999003 0 9999007 0 0 0 0 0 0 0 0 0 0 0 ',0,'0 0 0 0 0 0 ',0,0,NULL,'2026-09-13 08:33:38',NULL,NULL,NULL,0,0);
|
||||||
|
INSERT IGNORE INTO `characters` (`guid`, `account`, `name`, `race`, `class`, `gender`, `level`, `xp`, `money`, `skin`, `face`, `hairStyle`, `hairColor`, `facialStyle`, `bankSlots`, `restState`, `playerFlags`, `position_x`, `position_y`, `position_z`, `map`, `instance_id`, `instance_mode_mask`, `orientation`, `taximask`, `online`, `cinematic`, `totaltime`, `leveltime`, `logout_time`, `is_logout_resting`, `rest_bonus`, `resettalents_cost`, `resettalents_time`, `trans_x`, `trans_y`, `trans_z`, `trans_o`, `transguid`, `extra_flags`, `stable_slots`, `at_login`, `zone`, `death_expire_time`, `taxi_path`, `arenaPoints`, `totalHonorPoints`, `todayHonorPoints`, `yesterdayHonorPoints`, `totalKills`, `todayKills`, `yesterdayKills`, `chosenTitle`, `knownCurrencies`, `watchedFaction`, `drunk`, `health`, `power1`, `power2`, `power3`, `power4`, `power5`, `power6`, `power7`, `latency`, `talentGroupsCount`, `activeTalentGroup`, `exploredZones`, `equipmentCache`, `ammoId`, `knownTitles`, `actionBars`, `grantableLevels`, `order`, `creation_date`, `deleteInfos_Account`, `deleteInfos_Name`, `deleteDate`, `innTriggerId`, `extraBonusTalentCount`) VALUES (@G+126,@ACC,'TcStarcaller',4,26,0,80,0,0,0,0,0,0,0,0,2,0,16226,16258,13.2,1,0,0,3.14159,'100663296 0 0 8 0 0 1048576 0 0 0 0 0 0 0 ',0,1,233,233,1789536668,0,0,0,0,0,0,0,0,0,0,0,0,876,0,'',0,0,0,0,0,0,0,0,0,0,0,8296,5461,1000,0,100,0,0,1000,0,1,0,'0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ','0 0 0 0 0 0 0 0 2000062 0 0 0 2000060 0 2000061 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9999001 0 9999003 0 9999014 0 0 0 0 0 0 0 0 0 0 0 ',0,'0 0 0 0 0 0 ',0,0,NULL,'2026-09-13 08:33:38',NULL,NULL,NULL,0,0);
|
||||||
|
INSERT IGNORE INTO `characters` (`guid`, `account`, `name`, `race`, `class`, `gender`, `level`, `xp`, `money`, `skin`, `face`, `hairStyle`, `hairColor`, `facialStyle`, `bankSlots`, `restState`, `playerFlags`, `position_x`, `position_y`, `position_z`, `map`, `instance_id`, `instance_mode_mask`, `orientation`, `taximask`, `online`, `cinematic`, `totaltime`, `leveltime`, `logout_time`, `is_logout_resting`, `rest_bonus`, `resettalents_cost`, `resettalents_time`, `trans_x`, `trans_y`, `trans_z`, `trans_o`, `transguid`, `extra_flags`, `stable_slots`, `at_login`, `zone`, `death_expire_time`, `taxi_path`, `arenaPoints`, `totalHonorPoints`, `todayHonorPoints`, `yesterdayHonorPoints`, `totalKills`, `todayKills`, `yesterdayKills`, `chosenTitle`, `knownCurrencies`, `watchedFaction`, `drunk`, `health`, `power1`, `power2`, `power3`, `power4`, `power5`, `power6`, `power7`, `latency`, `talentGroupsCount`, `activeTalentGroup`, `exploredZones`, `equipmentCache`, `ammoId`, `knownTitles`, `actionBars`, `grantableLevels`, `order`, `creation_date`, `deleteInfos_Account`, `deleteInfos_Name`, `deleteDate`, `innTriggerId`, `extraBonusTalentCount`) VALUES (@G+127,@ACC,'TcSunCleric',1,27,0,80,0,0,0,0,0,0,0,0,2,0,16210,16258,16.3796,1,0,0,5.76404,'2 0 0 8 0 0 1048576 0 0 0 0 0 0 0 ',0,1,1100,1100,1789564571,0,0,0,0,0,0,0,0,0,0,0,0,876,0,'',0,0,0,0,0,0,0,0,0,0,0,7523,6165,900,0,100,0,0,1000,0,1,0,'0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ','0 0 0 0 0 0 0 0 2000065 0 0 0 2000063 0 2000064 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9999001 0 9999011 0 9999007 0 0 0 0 0 0 0 0 0 0 0 ',0,'0 0 0 0 0 0 ',0,0,NULL,'2026-09-13 08:33:38',NULL,NULL,NULL,0,0);
|
||||||
|
INSERT IGNORE INTO `characters` (`guid`, `account`, `name`, `race`, `class`, `gender`, `level`, `xp`, `money`, `skin`, `face`, `hairStyle`, `hairColor`, `facialStyle`, `bankSlots`, `restState`, `playerFlags`, `position_x`, `position_y`, `position_z`, `map`, `instance_id`, `instance_mode_mask`, `orientation`, `taximask`, `online`, `cinematic`, `totaltime`, `leveltime`, `logout_time`, `is_logout_resting`, `rest_bonus`, `resettalents_cost`, `resettalents_time`, `trans_x`, `trans_y`, `trans_z`, `trans_o`, `transguid`, `extra_flags`, `stable_slots`, `at_login`, `zone`, `death_expire_time`, `taxi_path`, `arenaPoints`, `totalHonorPoints`, `todayHonorPoints`, `yesterdayHonorPoints`, `totalKills`, `todayKills`, `yesterdayKills`, `chosenTitle`, `knownCurrencies`, `watchedFaction`, `drunk`, `health`, `power1`, `power2`, `power3`, `power4`, `power5`, `power6`, `power7`, `latency`, `talentGroupsCount`, `activeTalentGroup`, `exploredZones`, `equipmentCache`, `ammoId`, `knownTitles`, `actionBars`, `grantableLevels`, `order`, `creation_date`, `deleteInfos_Account`, `deleteInfos_Name`, `deleteDate`, `innTriggerId`, `extraBonusTalentCount`) VALUES (@G+128,@ACC,'TcTinker',7,28,0,80,0,0,0,0,0,0,0,0,2,0,16235,16262,13.2,1,0,0,3.14159,'32 0 0 8 0 0 1048576 0 0 0 0 0 0 0 ',0,1,301,301,1789561705,0,0,0,0,0,0,0,0,0,0,0,0,876,0,'',0,0,0,0,0,0,0,0,0,0,0,8463,5522,1000,0,100,0,0,1000,0,1,0,'0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ','2000047 0 0 0 0 0 0 0 2000043 0 0 0 2000041 0 2000042 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9999001 0 9999003 0 9999014 655032320 0 0 0 0 0 0 0 0 0 0 ',0,'0 0 0 0 0 0 ',0,0,NULL,'2026-09-13 08:33:38',NULL,NULL,NULL,0,0);
|
||||||
|
INSERT IGNORE INTO `characters` (`guid`, `account`, `name`, `race`, `class`, `gender`, `level`, `xp`, `money`, `skin`, `face`, `hairStyle`, `hairColor`, `facialStyle`, `bankSlots`, `restState`, `playerFlags`, `position_x`, `position_y`, `position_z`, `map`, `instance_id`, `instance_mode_mask`, `orientation`, `taximask`, `online`, `cinematic`, `totaltime`, `leveltime`, `logout_time`, `is_logout_resting`, `rest_bonus`, `resettalents_cost`, `resettalents_time`, `trans_x`, `trans_y`, `trans_z`, `trans_o`, `transguid`, `extra_flags`, `stable_slots`, `at_login`, `zone`, `death_expire_time`, `taxi_path`, `arenaPoints`, `totalHonorPoints`, `todayHonorPoints`, `yesterdayHonorPoints`, `totalKills`, `todayKills`, `yesterdayKills`, `chosenTitle`, `knownCurrencies`, `watchedFaction`, `drunk`, `health`, `power1`, `power2`, `power3`, `power4`, `power5`, `power6`, `power7`, `latency`, `talentGroupsCount`, `activeTalentGroup`, `exploredZones`, `equipmentCache`, `ammoId`, `knownTitles`, `actionBars`, `grantableLevels`, `order`, `creation_date`, `deleteInfos_Account`, `deleteInfos_Name`, `deleteDate`, `innTriggerId`, `extraBonusTalentCount`) VALUES (@G+129,@ACC,'TcVenomancer',8,29,0,80,0,0,0,0,0,0,0,0,2,0,16220,16258,13.2307,1,0,0,3.14159,'4194304 0 0 4 0 0 1048576 0 0 0 0 0 0 0 ',0,1,274,274,1789561782,0,0,0,0,0,0,0,0,0,0,0,0,876,0,'',0,0,0,0,0,0,0,0,0,0,0,8076,6021,0,0,100,0,0,1000,0,1,0,'0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ','0 0 0 0 0 0 0 0 2000068 0 0 0 967757 0 2000067 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9999001 0 9999009 0 9999007 0 0 0 0 0 0 0 0 0 0 0 ',0,'0 0 0 0 0 0 ',0,0,NULL,'2026-09-13 08:33:38',NULL,NULL,NULL,0,0);
|
||||||
|
INSERT IGNORE INTO `characters` (`guid`, `account`, `name`, `race`, `class`, `gender`, `level`, `xp`, `money`, `skin`, `face`, `hairStyle`, `hairColor`, `facialStyle`, `bankSlots`, `restState`, `playerFlags`, `position_x`, `position_y`, `position_z`, `map`, `instance_id`, `instance_mode_mask`, `orientation`, `taximask`, `online`, `cinematic`, `totaltime`, `leveltime`, `logout_time`, `is_logout_resting`, `rest_bonus`, `resettalents_cost`, `resettalents_time`, `trans_x`, `trans_y`, `trans_z`, `trans_o`, `transguid`, `extra_flags`, `stable_slots`, `at_login`, `zone`, `death_expire_time`, `taxi_path`, `arenaPoints`, `totalHonorPoints`, `todayHonorPoints`, `yesterdayHonorPoints`, `totalKills`, `todayKills`, `yesterdayKills`, `chosenTitle`, `knownCurrencies`, `watchedFaction`, `drunk`, `health`, `power1`, `power2`, `power3`, `power4`, `power5`, `power6`, `power7`, `latency`, `talentGroupsCount`, `activeTalentGroup`, `exploredZones`, `equipmentCache`, `ammoId`, `knownTitles`, `actionBars`, `grantableLevels`, `order`, `creation_date`, `deleteInfos_Account`, `deleteInfos_Name`, `deleteDate`, `innTriggerId`, `extraBonusTalentCount`) VALUES (@G+130,@ACC,'TcReaper',5,30,0,80,0,0,0,0,0,0,0,0,2,0,16226,16258,13.2,1,0,0,0,'1024 0 0 4 0 0 1048576 0 0 0 0 0 0 0 ',0,1,128,128,1789465178,0,0,0,0,0,0,0,0,0,0,0,0,876,0,'',0,0,0,0,0,0,0,0,0,0,0,8230,0,1000,0,100,0,0,100,0,1,0,'0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ','0 0 0 0 0 0 2001095 0 2000071 0 0 0 2000069 0 2000070 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9999001 0 9999011 0 9999008 0 0 0 0 0 0 0 0 0 0 0 ',0,'0 0 0 0 0 0 ',0,0,NULL,'2026-09-13 08:33:38',NULL,NULL,NULL,0,0);
|
||||||
|
INSERT IGNORE INTO `characters` (`guid`, `account`, `name`, `race`, `class`, `gender`, `level`, `xp`, `money`, `skin`, `face`, `hairStyle`, `hairColor`, `facialStyle`, `bankSlots`, `restState`, `playerFlags`, `position_x`, `position_y`, `position_z`, `map`, `instance_id`, `instance_mode_mask`, `orientation`, `taximask`, `online`, `cinematic`, `totaltime`, `leveltime`, `logout_time`, `is_logout_resting`, `rest_bonus`, `resettalents_cost`, `resettalents_time`, `trans_x`, `trans_y`, `trans_z`, `trans_o`, `transguid`, `extra_flags`, `stable_slots`, `at_login`, `zone`, `death_expire_time`, `taxi_path`, `arenaPoints`, `totalHonorPoints`, `todayHonorPoints`, `yesterdayHonorPoints`, `totalKills`, `todayKills`, `yesterdayKills`, `chosenTitle`, `knownCurrencies`, `watchedFaction`, `drunk`, `health`, `power1`, `power2`, `power3`, `power4`, `power5`, `power6`, `power7`, `latency`, `talentGroupsCount`, `activeTalentGroup`, `exploredZones`, `equipmentCache`, `ammoId`, `knownTitles`, `actionBars`, `grantableLevels`, `order`, `creation_date`, `deleteInfos_Account`, `deleteInfos_Name`, `deleteDate`, `innTriggerId`, `extraBonusTalentCount`) VALUES (@G+131,@ACC,'TcPrimalist',6,31,0,80,0,0,0,0,0,0,0,0,2,32,16226,16258,13.2,1,0,0,0,'2097152 0 0 4 0 0 1048576 0 0 0 0 0 0 0 ',0,1,227,227,1789437186,1,0,0,0,0,0,0,0,0,0,0,0,139,0,'',0,0,0,0,0,0,0,0,0,0,0,9536,3431,980,0,100,0,0,1000,0,1,0,'0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ','0 0 0 0 0 0 0 0 2000074 0 0 0 2000072 0 2000073 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9999007 0 0 0 0 0 0 0 0 0 0 0 ',0,'0 0 0 0 0 0 ',0,0,NULL,'2026-09-13 08:33:38',NULL,NULL,NULL,0,0);
|
||||||
|
INSERT IGNORE INTO `characters` (`guid`, `account`, `name`, `race`, `class`, `gender`, `level`, `xp`, `money`, `skin`, `face`, `hairStyle`, `hairColor`, `facialStyle`, `bankSlots`, `restState`, `playerFlags`, `position_x`, `position_y`, `position_z`, `map`, `instance_id`, `instance_mode_mask`, `orientation`, `taximask`, `online`, `cinematic`, `totaltime`, `leveltime`, `logout_time`, `is_logout_resting`, `rest_bonus`, `resettalents_cost`, `resettalents_time`, `trans_x`, `trans_y`, `trans_z`, `trans_o`, `transguid`, `extra_flags`, `stable_slots`, `at_login`, `zone`, `death_expire_time`, `taxi_path`, `arenaPoints`, `totalHonorPoints`, `todayHonorPoints`, `yesterdayHonorPoints`, `totalKills`, `todayKills`, `yesterdayKills`, `chosenTitle`, `knownCurrencies`, `watchedFaction`, `drunk`, `health`, `power1`, `power2`, `power3`, `power4`, `power5`, `power6`, `power7`, `latency`, `talentGroupsCount`, `activeTalentGroup`, `exploredZones`, `equipmentCache`, `ammoId`, `knownTitles`, `actionBars`, `grantableLevels`, `order`, `creation_date`, `deleteInfos_Account`, `deleteInfos_Name`, `deleteDate`, `innTriggerId`, `extraBonusTalentCount`) VALUES (@G+132,@ACC,'TcRunemaster',11,32,0,80,0,0,0,0,0,0,0,0,2,32,16226,16258,13.2,1,0,0,0,'0 0 536870912 8 0 0 1048576 0 0 0 0 0 0 0 ',0,1,327,327,1789437523,1,0,0,0,0,0,0,0,0,0,0,0,139,0,'',0,0,0,0,0,0,0,0,0,0,0,8174,1,1000,0,100,0,0,1000,0,1,0,'0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ','0 0 0 0 0 0 511017 0 2000080 0 0 0 2000078 0 2000079 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9999001 65929216 9999009 0 9999007 0 0 0 0 0 0 0 0 0 0 0 ',0,'0 0 0 0 0 0 ',0,0,NULL,'2026-09-13 08:33:38',NULL,NULL,NULL,0,0);
|
||||||
|
INSERT IGNORE INTO `character_homebind` (`guid`, `mapId`, `zoneId`, `posX`, `posY`, `posZ`) VALUES (@G+112,1,876,16226,16258,13.2);
|
||||||
|
INSERT IGNORE INTO `character_homebind` (`guid`, `mapId`, `zoneId`, `posX`, `posY`, `posZ`) VALUES (@G+113,1,876,16226,16258,13.2);
|
||||||
|
INSERT IGNORE INTO `character_homebind` (`guid`, `mapId`, `zoneId`, `posX`, `posY`, `posZ`) VALUES (@G+114,1,876,16234,16258,13.6675);
|
||||||
|
INSERT IGNORE INTO `character_homebind` (`guid`, `mapId`, `zoneId`, `posX`, `posY`, `posZ`) VALUES (@G+115,1,876,16226,16258,13.2);
|
||||||
|
INSERT IGNORE INTO `character_homebind` (`guid`, `mapId`, `zoneId`, `posX`, `posY`, `posZ`) VALUES (@G+116,1,139,16226,16258,13.2);
|
||||||
|
INSERT IGNORE INTO `character_homebind` (`guid`, `mapId`, `zoneId`, `posX`, `posY`, `posZ`) VALUES (@G+117,1,876,16210,16258,16.3796);
|
||||||
|
INSERT IGNORE INTO `character_homebind` (`guid`, `mapId`, `zoneId`, `posX`, `posY`, `posZ`) VALUES (@G+118,1,876,16226,16258,13.2);
|
||||||
|
INSERT IGNORE INTO `character_homebind` (`guid`, `mapId`, `zoneId`, `posX`, `posY`, `posZ`) VALUES (@G+119,1,876,16233,16258,14.0852);
|
||||||
|
INSERT IGNORE INTO `character_homebind` (`guid`, `mapId`, `zoneId`, `posX`, `posY`, `posZ`) VALUES (@G+120,1,139,16226,16258,13.2);
|
||||||
|
INSERT IGNORE INTO `character_homebind` (`guid`, `mapId`, `zoneId`, `posX`, `posY`, `posZ`) VALUES (@G+121,1,876,16226,16258,13.2);
|
||||||
|
INSERT IGNORE INTO `character_homebind` (`guid`, `mapId`, `zoneId`, `posX`, `posY`, `posZ`) VALUES (@G+122,1,876,16226,16258,13.2);
|
||||||
|
INSERT IGNORE INTO `character_homebind` (`guid`, `mapId`, `zoneId`, `posX`, `posY`, `posZ`) VALUES (@G+123,1,876,16235,16258,13.7211);
|
||||||
|
INSERT IGNORE INTO `character_homebind` (`guid`, `mapId`, `zoneId`, `posX`, `posY`, `posZ`) VALUES (@G+124,1,876,16231,16258,13.7211);
|
||||||
|
INSERT IGNORE INTO `character_homebind` (`guid`, `mapId`, `zoneId`, `posX`, `posY`, `posZ`) VALUES (@G+125,1,876,16235,16262,13.2);
|
||||||
|
INSERT IGNORE INTO `character_homebind` (`guid`, `mapId`, `zoneId`, `posX`, `posY`, `posZ`) VALUES (@G+126,1,876,16226,16258,13.2);
|
||||||
|
INSERT IGNORE INTO `character_homebind` (`guid`, `mapId`, `zoneId`, `posX`, `posY`, `posZ`) VALUES (@G+127,1,876,16210,16258,16.3796);
|
||||||
|
INSERT IGNORE INTO `character_homebind` (`guid`, `mapId`, `zoneId`, `posX`, `posY`, `posZ`) VALUES (@G+128,1,876,16235,16262,13.2);
|
||||||
|
INSERT IGNORE INTO `character_homebind` (`guid`, `mapId`, `zoneId`, `posX`, `posY`, `posZ`) VALUES (@G+129,1,876,16220,16258,13.2307);
|
||||||
|
INSERT IGNORE INTO `character_homebind` (`guid`, `mapId`, `zoneId`, `posX`, `posY`, `posZ`) VALUES (@G+130,1,876,16226,16258,13.2);
|
||||||
|
INSERT IGNORE INTO `character_homebind` (`guid`, `mapId`, `zoneId`, `posX`, `posY`, `posZ`) VALUES (@G+131,1,139,16226,16258,13.2);
|
||||||
|
INSERT IGNORE INTO `character_homebind` (`guid`, `mapId`, `zoneId`, `posX`, `posY`, `posZ`) VALUES (@G+132,1,139,16226,16258,13.2);
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+112,'core.ascension_active_spec','0 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+112,'core.ascension_starter','1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+112,'core.spell_charge.500919','2 0 0 6000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+112,'core.spell_charge.804138','3 0 0 8000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+113,'core.ascension_active_spec','0 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+113,'core.ascension_starter','1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+114,'core.ascension_active_spec','0 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+114,'core.ascension_starter','1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+114,'core.spell_charge.500028','3 0 0 10000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+114,'core.spell_charge.561216','2 0 0 90000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+115,'core.ascension_active_spec','0 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+115,'core.ascension_starter','1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+115,'core.spell_charge.802006','2 0 0 25000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+115,'core.spell_charge.803333','2 0 0 15000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+116,'core.ascension_active_spec','0 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+116,'core.ascension_starter','1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+116,'core.spell_charge.705669','3 0 0 15000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+116,'core.spell_charge.804036','3 0 0 10000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+117,'core.ascension_active_spec','0 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+117,'core.ascension_starter','1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+117,'core.spell_charge.805555','2 0 0 8000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+117,'core.spell_charge.807247','2 0 0 60000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+118,'core.ascension_active_spec','0 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+118,'core.ascension_starter','1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+118,'core.spell_charge.800316','1 1789452964 866 6000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+119,'core.ascension_active_spec','0 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+119,'core.ascension_starter','1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+119,'core.spell_charge.801165','3 0 0 35000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+120,'core.ascension_active_spec','0 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+120,'core.ascension_starter','1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+120,'core.spell_charge.804197','2 0 0 6000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+121,'core.ascension_active_spec','28 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+121,'core.ascension_starter','1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+122,'core.ascension_active_spec','0 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+122,'core.ascension_starter','1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+122,'core.spell_charge.706969','3 0 0 15000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+123,'core.ascension_active_spec','0 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+123,'core.ascension_starter','1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+124,'core.ascension_active_spec','0 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+124,'core.ascension_starter','1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+125,'core.ascension_active_spec','0 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+125,'core.ascension_starter','1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+125,'core.spell_charge.500720','3 0 0 6000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+125,'core.spell_charge.500721','3 0 0 30000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+125,'core.spell_charge.804711','2 0 0 60000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+126,'core.ascension_active_spec','0 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+126,'core.ascension_starter','1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+126,'core.spell_charge.520590','2 0 0 18000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+127,'core.ascension_active_spec','46 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+127,'core.ascension_starter','1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+127,'core.spell_charge.560095','2 0 0 25000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+128,'core.ascension_active_spec','0 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+128,'core.ascension_starter','1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+128,'core.spell_charge.500241','3 0 0 30000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+128,'core.spell_charge.500600','3 0 0 10000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+128,'core.spell_charge.504527','2 0 0 8000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+128,'core.spell_charge.560750','3 0 0 15000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+128,'core.spell_charge.560754','3 0 0 15000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+128,'core.spell_charge.801799','3 0 0 15000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+128,'core.spell_charge.801801','3 0 0 15000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+128,'core.spell_charge.805306','3 0 0 20000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+129,'core.ascension_active_spec','0 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+129,'core.ascension_starter','1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+129,'core.spell_charge.504342','2 0 0 12000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+129,'core.spell_charge.504706','2 0 0 25000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+129,'core.spell_charge.805931','3 0 0 20000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+130,'core.ascension_active_spec','0 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+130,'core.ascension_starter','1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+130,'core.spell_charge.573425','3 0 0 30000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+130,'core.spell_charge.803990','2 0 0 60000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+130,'core.spell_charge.803997','2 0 0 40000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+131,'core.ascension_active_spec','0 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+131,'core.ascension_starter','1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+131,'core.spell_charge.503630','2 0 0 20000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+131,'core.spell_charge.706342','2 0 0 10000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+131,'core.spell_charge.803974','2 0 0 8000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+132,'core.ascension_active_spec','0 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+132,'core.ascension_starter','1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+132,'core.runemaster.echoes','2 0 0 0 0 0 0 0 0 0 0 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+132,'core.spell_charge.707141','0 1789437518 37 6000 1 ');
|
||||||
|
INSERT IGNORE INTO `character_settings` (`guid`, `source`, `data`) VALUES (@G+132,'core.spell_charge.712389','2 0 0 45000 1 ');
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
//! Adds the template characters to a scratch install and creates companions offline. usage: companions_e2e <install folder> <count>
|
||||||
|
//! The folder name must contain "installtest" and its database must already be running (Scripts/manage.py start-mysql).
|
||||||
|
use coa_core::db::{Account, Db};
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
let a: Vec<String> = std::env::args().skip(1).collect();
|
||||||
|
let root = std::path::PathBuf::from(&a[0]);
|
||||||
|
assert!(a[0].to_lowercase().contains("installtest"), "refusing to touch a server that is not a disposable test install");
|
||||||
|
let count: u32 = a[1].parse().unwrap();
|
||||||
|
let db = Db::from_repack(&root, Account::Admin).expect("db");
|
||||||
|
println!("templates before: {}", coa_core::companions::template_count(&db).unwrap());
|
||||||
|
println!("added: {}", coa_core::companions::ensure_templates(&db).unwrap());
|
||||||
|
println!("templates after: {}", coa_core::companions::template_count(&db).unwrap());
|
||||||
|
let t = std::time::Instant::now();
|
||||||
|
match coa_core::companions::offline_create(&root, &root.join("companions-e2e.log"), count) {
|
||||||
|
Ok(tail) => println!("offline create ok in {:?}:\n{tail}", t.elapsed()),
|
||||||
|
Err(e) => println!("offline create FAILED: {e}"),
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
//! Check and apply a real published update on a DISPOSABLE install. usage: update_url <install folder> <update url>
|
||||||
|
//! The folder name must contain "installtest"; ports must already point away from any running server.
|
||||||
|
use coa_core::download::Cancel;
|
||||||
|
use coa_core::pkgsource::Source;
|
||||||
|
use coa_core::registry::{metadata_dir_for, MetaDir};
|
||||||
|
use coa_core::update::{apply, preview, Params, RepackEnv};
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
let a: Vec<String> = std::env::args().skip(1).collect();
|
||||||
|
let root = std::path::PathBuf::from(&a[0]);
|
||||||
|
assert!(a[0].to_lowercase().contains("installtest"), "refusing: not a disposable test install");
|
||||||
|
let dir = metadata_dir_for(&root).unwrap();
|
||||||
|
let (_, meta) = MetaDir::open(&dir).unwrap();
|
||||||
|
let src = Source::Url(a[1].clone());
|
||||||
|
let p = preview(&root, &meta, &src, coa_core::signing::EMBEDDED_PUBLIC_KEY, &Default::default()).unwrap_or_else(|e| panic!("preview failed: {e:?}"));
|
||||||
|
println!("preview: {} -> {} | download {} bytes | {} files change | {} migrations | conflicts {:?}", p.from_version.clone().unwrap_or_default(), p.to_version, p.download_bytes, p.items.iter().filter(|i| format!("{:?}", i.action) != "Skip").count(), p.migrations, p.conflicts);
|
||||||
|
let env = RepackEnv { root: &root, meta_dir: &dir };
|
||||||
|
let t = std::time::Instant::now();
|
||||||
|
let out = apply(
|
||||||
|
&Params { root: &root, meta_dir: &dir, source: src, trusted_key: coa_core::signing::EMBEDDED_PUBLIC_KEY, cancel: Cancel::default(), resolutions: Default::default(), env: &env, fail_after_ops: None },
|
||||||
|
&|s, pct| eprintln!(" {pct:>3}% {s}"),
|
||||||
|
)
|
||||||
|
.unwrap_or_else(|e| panic!("apply failed: {e:?}"));
|
||||||
|
println!("apply finished in {:?}: state {:?}, to {:?}", t.elapsed(), out.txn.state, out.txn.to_version);
|
||||||
|
}
|
||||||
@@ -86,9 +86,41 @@ pub fn restore_quiet_logging(settings: &Path) -> Result<()> {
|
|||||||
fs::remove_file(&original)?;
|
fs::remove_file(&original)?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
let world = settings.join("worldserver.conf.template");
|
||||||
|
if world.is_file() {
|
||||||
|
let bytes = fs::read(&world)?;
|
||||||
|
let patched = quiet_world_logging(&String::from_utf8_lossy(&bytes));
|
||||||
|
if patched.as_bytes() != bytes.as_slice() {
|
||||||
|
fs::write(&world, patched)?;
|
||||||
|
}
|
||||||
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// The network logger at debug level writes a line for every packet the world sends (hundreds of thousands per hour
|
||||||
|
/// with creatures fighting); keep it to errors. CoA's own logger defaults to errors only unless `Logger.coa` exists.
|
||||||
|
pub fn quiet_world_logging(text: &str) -> String {
|
||||||
|
let nl = if text.contains("\r\n") { "\r\n" } else { "\n" };
|
||||||
|
let mut out: Vec<String> = Vec::new();
|
||||||
|
let has_coa = text.lines().any(|l| l.trim_start().starts_with("Logger.coa="));
|
||||||
|
for line in text.lines() {
|
||||||
|
let l = line.trim();
|
||||||
|
if l.starts_with("Logger.network=") {
|
||||||
|
out.push("Logger.network=2,Server".to_string());
|
||||||
|
} else {
|
||||||
|
out.push(line.to_string());
|
||||||
|
}
|
||||||
|
if l.starts_with("Logger.root=") && !has_coa {
|
||||||
|
out.push("Logger.coa=4,Console Server".to_string());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let mut s = out.join(nl);
|
||||||
|
if text.ends_with('\n') {
|
||||||
|
s.push_str(nl);
|
||||||
|
}
|
||||||
|
s
|
||||||
|
}
|
||||||
|
|
||||||
pub fn build(p: &Params, say: &dyn Fn(&str)) -> Result<()> {
|
pub fn build(p: &Params, say: &dyn Fn(&str)) -> Result<()> {
|
||||||
if p.out.exists() {
|
if p.out.exists() {
|
||||||
return Err(Error::Invalid(format!("{} already exists; choose a new folder.", p.out.display())));
|
return Err(Error::Invalid(format!("{} already exists; choose a new folder.", p.out.display())));
|
||||||
@@ -209,11 +241,15 @@ pub fn build(p: &Params, say: &dyn Fn(&str)) -> Result<()> {
|
|||||||
db.run_sql_file("acore_world", file)?;
|
db.run_sql_file("acore_world", file)?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 3d. the companion template characters (the bot module copies every bot from one of them)
|
||||||
|
crate::companions::seed_fresh(db)?;
|
||||||
// 4. prove it is clean
|
// 4. prove it is clean
|
||||||
let accounts = db.query("SELECT COUNT(*) FROM acore_auth.account;")?;
|
let accounts = db.query("SELECT COUNT(*) FROM acore_auth.account;")?;
|
||||||
let chars = db.query("SELECT COUNT(*) FROM acore_characters.characters;")?;
|
// nothing but the template characters may exist
|
||||||
if accounts != "0" || chars != "0" {
|
let chars = db.query(&format!("SELECT COUNT(*) FROM acore_characters.characters WHERE account<>{};", crate::companions::TEMPLATE_ACCOUNT))?;
|
||||||
return Err(Error::Invalid(format!("The database is not clean ({accounts} accounts, {chars} characters).")));
|
let templates = crate::companions::template_count(db)?;
|
||||||
|
if accounts != "0" || chars != "0" || templates != 21 {
|
||||||
|
return Err(Error::Invalid(format!("The database is not clean ({accounts} accounts, {chars} player characters, {templates} templates).")));
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
})?;
|
})?;
|
||||||
@@ -264,11 +300,20 @@ mod tests {
|
|||||||
fs::write(d.path().join("worldserver.conf.template.original"), "Logger.root=2,Console Server").unwrap();
|
fs::write(d.path().join("worldserver.conf.template.original"), "Logger.root=2,Console Server").unwrap();
|
||||||
fs::write(d.path().join("authserver.conf.template"), "unchanged").unwrap();
|
fs::write(d.path().join("authserver.conf.template"), "unchanged").unwrap();
|
||||||
restore_quiet_logging(d.path()).unwrap();
|
restore_quiet_logging(d.path()).unwrap();
|
||||||
assert_eq!(fs::read_to_string(d.path().join("worldserver.conf.template")).unwrap(), "Logger.root=2,Console Server");
|
let restored = fs::read_to_string(d.path().join("worldserver.conf.template")).unwrap();
|
||||||
|
assert!(restored.starts_with("Logger.root=2,Console Server") && !restored.contains("Logger.root=6"), "{restored}");
|
||||||
assert!(!d.path().join("worldserver.conf.template.original").exists());
|
assert!(!d.path().join("worldserver.conf.template.original").exists());
|
||||||
assert_eq!(fs::read_to_string(d.path().join("authserver.conf.template")).unwrap(), "unchanged");
|
assert_eq!(fs::read_to_string(d.path().join("authserver.conf.template")).unwrap(), "unchanged");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn the_world_template_gets_a_quiet_network_logger_and_a_coa_logger() {
|
||||||
|
let input = "Logger.root=2,Console Server\r\nLogger.network=5,Server\r\nOther = 1\r\n";
|
||||||
|
let out = quiet_world_logging(input);
|
||||||
|
assert_eq!(out, "Logger.root=2,Console Server\r\nLogger.coa=4,Console Server\r\nLogger.network=2,Server\r\nOther = 1\r\n");
|
||||||
|
assert_eq!(quiet_world_logging(&out), out, "idempotent");
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn refuses_to_overwrite_an_existing_output_folder() {
|
fn refuses_to_overwrite_an_existing_output_folder() {
|
||||||
let d = tempfile::tempdir().unwrap();
|
let d = tempfile::tempdir().unwrap();
|
||||||
|
|||||||
@@ -0,0 +1,118 @@
|
|||||||
|
//! Companion (bot) support data. The bot module creates each bot by copying a level 80 "template" character of the
|
||||||
|
//! same class, so a server with no such characters can not create any bot. A freshly installed server ships with a
|
||||||
|
//! small set (one per CoA class); older or imported servers can have it added on request.
|
||||||
|
|
||||||
|
use std::fs;
|
||||||
|
use std::path::Path;
|
||||||
|
|
||||||
|
use crate::db::Db;
|
||||||
|
use crate::error::Result;
|
||||||
|
|
||||||
|
/// Owner of the template characters. Not account 1 (the bot module skips it) and not a bot-host account; no such
|
||||||
|
/// account exists in the login database, so nobody can ever log in to these characters.
|
||||||
|
pub const TEMPLATE_ACCOUNT: u32 = 900_000;
|
||||||
|
|
||||||
|
const SQL: &str = include_str!("../data/companion-templates.sql");
|
||||||
|
|
||||||
|
/// The seed script with its two variables set: `base_guid` is added to every character guid.
|
||||||
|
pub fn seed_sql(base_guid: &str) -> String {
|
||||||
|
format!("SET @G = {base_guid}; SET @ACC = {TEMPLATE_ACCOUNT};\n{SQL}")
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Number of characters the bot module could use as templates (level 80, a CoA class, not account 1).
|
||||||
|
pub fn template_count(db: &Db) -> Result<u32> {
|
||||||
|
let n = db.query("SELECT COUNT(*) FROM acore_characters.characters WHERE account<>1 AND level>=80 AND class BETWEEN 12 AND 32;")?;
|
||||||
|
Ok(n.trim().parse().unwrap_or(0))
|
||||||
|
}
|
||||||
|
|
||||||
|
fn run_seed(db: &Db, base_guid: &str) -> Result<()> {
|
||||||
|
let file = std::env::temp_dir().join(format!("coa-companion-templates-{}.sql", std::process::id()));
|
||||||
|
fs::write(&file, seed_sql(base_guid))?;
|
||||||
|
let r = db.run_sql_file("acore_characters", &file);
|
||||||
|
let _ = fs::remove_file(&file);
|
||||||
|
r
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Fresh databases (release tooling): the original guids.
|
||||||
|
pub fn seed_fresh(db: &Db) -> Result<()> {
|
||||||
|
run_seed(db, "0")
|
||||||
|
}
|
||||||
|
|
||||||
|
/// An existing server without templates: add them far above the highest guid in use, so a running world can never
|
||||||
|
/// hand a new character one of their guids. Returns whether anything was added.
|
||||||
|
pub fn ensure_templates(db: &Db) -> Result<bool> {
|
||||||
|
if template_count(db)? > 0 {
|
||||||
|
return Ok(false);
|
||||||
|
}
|
||||||
|
run_seed(db, "(SELECT IFNULL(MAX(guid),0) FROM acore_characters.characters) + 100000")?;
|
||||||
|
Ok(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/// The bot module's offline factory ships with the server package; it creates fully equipped bots straight in the
|
||||||
|
/// database while the world server is stopped (fast and safe for large batches).
|
||||||
|
pub const OFFLINE_FACTORY: &str = "Extras/CoABotTools/offline_bot_factory.py";
|
||||||
|
|
||||||
|
/// Batches at least this large are created offline when the server happens to be stopped.
|
||||||
|
pub const OFFLINE_MIN: u32 = 100;
|
||||||
|
|
||||||
|
pub fn offline_factory(root: &Path) -> Option<std::path::PathBuf> {
|
||||||
|
let p = root.join(OFFLINE_FACTORY);
|
||||||
|
(p.is_file() && root.join("Runtime/python/python.exe").is_file() && root.join("mysql/bin/mysql.exe").is_file() && root.join("mysql/admin-client.ini").is_file()).then_some(p)
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Run the offline factory for `count` leveled bots. The database must be running and the world/auth servers stopped.
|
||||||
|
/// Returns the tail of its report. Credentials are passed as a file path only, never on the command line.
|
||||||
|
pub fn offline_create(root: &Path, log: &Path, count: u32) -> Result<String> {
|
||||||
|
use std::process::{Command, Stdio};
|
||||||
|
let script = offline_factory(root).ok_or_else(|| crate::error::Error::Invalid("The offline bot factory is not part of this server.".into()))?;
|
||||||
|
if let Some(dir) = log.parent() {
|
||||||
|
fs::create_dir_all(dir)?;
|
||||||
|
}
|
||||||
|
let out = fs::File::create(log)?;
|
||||||
|
let err = out.try_clone()?;
|
||||||
|
let mut child = Command::new(root.join("Runtime/python/python.exe"))
|
||||||
|
.arg(&script)
|
||||||
|
.args(["--count", &count.to_string(), "--leveled", "--mysql-exe"])
|
||||||
|
.arg(root.join("mysql/bin/mysql.exe"))
|
||||||
|
.arg("--defaults-file")
|
||||||
|
.arg(root.join("mysql/admin-client.ini"))
|
||||||
|
.current_dir(root)
|
||||||
|
.stdin(Stdio::null())
|
||||||
|
.stdout(Stdio::from(out))
|
||||||
|
.stderr(Stdio::from(err))
|
||||||
|
.spawn()?;
|
||||||
|
let started = std::time::Instant::now();
|
||||||
|
let status = loop {
|
||||||
|
if let Some(s) = child.try_wait()? {
|
||||||
|
break s;
|
||||||
|
}
|
||||||
|
if started.elapsed() > std::time::Duration::from_secs(45 * 60) {
|
||||||
|
let _ = child.kill();
|
||||||
|
return Err(crate::error::Error::Invalid("Creating the companions took too long and was stopped.".into()));
|
||||||
|
}
|
||||||
|
std::thread::sleep(std::time::Duration::from_millis(500));
|
||||||
|
};
|
||||||
|
let text = fs::read_to_string(log).unwrap_or_default();
|
||||||
|
let tail: Vec<&str> = text.lines().rev().take(6).collect::<Vec<_>>().into_iter().rev().collect();
|
||||||
|
if status.success() {
|
||||||
|
Ok(tail.join("\n"))
|
||||||
|
} else {
|
||||||
|
Err(crate::error::Error::Invalid(format!("The bot factory reported an error: {}", tail.join(" | "))))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
use super::*;
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn the_seed_has_one_template_per_class_and_uses_only_variables_for_ids() {
|
||||||
|
let s = seed_sql("0");
|
||||||
|
assert!(s.starts_with("SET @G = 0; SET @ACC = 900000;"));
|
||||||
|
let chars = s.matches("INSERT IGNORE INTO `characters`").count();
|
||||||
|
assert_eq!(chars, 21);
|
||||||
|
assert_eq!(s.matches("VALUES (@G+").count(), s.matches("INSERT IGNORE").count(), "every row takes its guid from @G");
|
||||||
|
assert!(s.contains("@ACC"));
|
||||||
|
assert!(!s.contains("INSERT INTO "), "rows that exist are kept");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -24,6 +24,10 @@ pub enum Error {
|
|||||||
PackageNotPublished(String),
|
PackageNotPublished(String),
|
||||||
#[error("download server unreachable: {0}")]
|
#[error("download server unreachable: {0}")]
|
||||||
NetworkUnreachable(String),
|
NetworkUnreachable(String),
|
||||||
|
#[error("the bot module found no level 80 template characters")]
|
||||||
|
CompanionTemplatesMissing,
|
||||||
|
#[error("this server's bot module does not have that command yet")]
|
||||||
|
CompanionCommandUnsupported,
|
||||||
#[error("invalid values: {}", .0.iter().map(|f| format!("{}: {}", f.key, f.message)).collect::<Vec<_>>().join("; "))]
|
#[error("invalid values: {}", .0.iter().map(|f| format!("{}: {}", f.key, f.message)).collect::<Vec<_>>().join("; "))]
|
||||||
Validation(Vec<FieldError>),
|
Validation(Vec<FieldError>),
|
||||||
}
|
}
|
||||||
@@ -52,6 +56,8 @@ pub enum ErrorCode {
|
|||||||
PathRejected,
|
PathRejected,
|
||||||
PackageNotPublished,
|
PackageNotPublished,
|
||||||
NetworkUnreachable,
|
NetworkUnreachable,
|
||||||
|
CompanionTemplatesMissing,
|
||||||
|
CompanionCommandUnsupported,
|
||||||
Unknown,
|
Unknown,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -142,6 +148,16 @@ impl ErrorCode {
|
|||||||
"Check your internet connection and try again.",
|
"Check your internet connection and try again.",
|
||||||
&[Retry, ShowDetails],
|
&[Retry, ShowDetails],
|
||||||
),
|
),
|
||||||
|
ErrorCode::CompanionTemplatesMissing => (
|
||||||
|
"Companions have nothing to be copied from yet",
|
||||||
|
"New companions are copied from level 80 characters of each class. Create one level 80 character per class on any account except the console account, then try again.",
|
||||||
|
&[ShowDetails],
|
||||||
|
),
|
||||||
|
ErrorCode::CompanionCommandUnsupported => (
|
||||||
|
"This server version can not do that yet",
|
||||||
|
"The bot module of this server build has no such command. Update the server, or restart it to stop what is running.",
|
||||||
|
&[ShowDetails],
|
||||||
|
),
|
||||||
ErrorCode::Unknown => ("Something went wrong", "See the technical details.", &[ShowDetails]),
|
ErrorCode::Unknown => ("Something went wrong", "See the technical details.", &[ShowDetails]),
|
||||||
};
|
};
|
||||||
Human { code: self, title, message, actions }
|
Human { code: self, title, message, actions }
|
||||||
@@ -157,6 +173,8 @@ impl Error {
|
|||||||
Error::Validation(_) => ErrorCode::InvalidConfigValue,
|
Error::Validation(_) => ErrorCode::InvalidConfigValue,
|
||||||
Error::PackageNotPublished(_) => ErrorCode::PackageNotPublished,
|
Error::PackageNotPublished(_) => ErrorCode::PackageNotPublished,
|
||||||
Error::NetworkUnreachable(_) => ErrorCode::NetworkUnreachable,
|
Error::NetworkUnreachable(_) => ErrorCode::NetworkUnreachable,
|
||||||
|
Error::CompanionTemplatesMissing => ErrorCode::CompanionTemplatesMissing,
|
||||||
|
Error::CompanionCommandUnsupported => ErrorCode::CompanionCommandUnsupported,
|
||||||
_ => ErrorCode::Unknown,
|
_ => ErrorCode::Unknown,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
pub mod backup;
|
pub mod backup;
|
||||||
pub mod cleanbase;
|
pub mod cleanbase;
|
||||||
|
pub mod companions;
|
||||||
pub mod client;
|
pub mod client;
|
||||||
pub mod config;
|
pub mod config;
|
||||||
pub mod console;
|
pub mod console;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ use std::net::{SocketAddr, TcpStream};
|
|||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
|
||||||
use serde::Deserialize;
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
use crate::error::{Error, Result};
|
use crate::error::{Error, Result};
|
||||||
use crate::fsx;
|
use crate::fsx;
|
||||||
@@ -91,12 +91,50 @@ impl Ra {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// World update timing from the server's own `server info` report (mean/median/percentiles of the last 500 updates).
|
||||||
|
pub fn performance(&mut self) -> Result<Option<Performance>> {
|
||||||
|
let out = self.command("server info")?;
|
||||||
|
Ok(parse_server_info(&out))
|
||||||
|
}
|
||||||
|
|
||||||
|
fn bot_command(&mut self, cmd: &str) -> Result<String> {
|
||||||
|
let out = self.command(cmd)?;
|
||||||
|
if is_unsupported_command(&out) {
|
||||||
|
return Err(Error::CompanionCommandUnsupported);
|
||||||
|
}
|
||||||
|
Ok(out)
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Drop every bot still waiting to be created. Returns how many were waiting.
|
||||||
|
pub fn cancel_spawning(&mut self) -> Result<u32> {
|
||||||
|
Ok(first_number(&self.bot_command("botcmd spawncancel")?))
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Log every bot out without deleting anything. Returns how many were online.
|
||||||
|
pub fn despawn_all(&mut self) -> Result<u32> {
|
||||||
|
Ok(first_number(&self.bot_command("botcmd despawnall")?))
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Log one bot out (the character stays saved). False when that bot was not online.
|
||||||
|
pub fn despawn_bot(&mut self, guid: u64) -> Result<bool> {
|
||||||
|
Ok(self.bot_command(&format!("botcmd despawn {guid}"))?.to_lowercase().contains("despawned"))
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Log every bot out and delete every bot character for good (the caller saves a recovery point first).
|
||||||
|
pub fn purge_all(&mut self) -> Result<String> {
|
||||||
|
let out = self.bot_command("botcmd purgeall")?;
|
||||||
|
Ok(out.lines().last().unwrap_or("").to_string())
|
||||||
|
}
|
||||||
|
|
||||||
/// Ask the bot module to create `count` leveling bots (throttled by the module itself). Only a number is sent.
|
/// Ask the bot module to create `count` leveling bots (throttled by the module itself). Only a number is sent.
|
||||||
pub fn spawn_bots(&mut self, count: u32) -> Result<String> {
|
pub fn spawn_bots(&mut self, count: u32) -> Result<String> {
|
||||||
if !(1..=2000).contains(&count) {
|
if !(1..=2000).contains(&count) {
|
||||||
return Err(Error::Invalid("Choose between 1 and 2000 companions.".into()));
|
return Err(Error::Invalid("Choose between 1 and 2000 companions.".into()));
|
||||||
}
|
}
|
||||||
let out = self.command(&format!("botcmd spawnleveled {count}"))?;
|
let out = self.command(&format!("botcmd spawnleveled {count}"))?;
|
||||||
|
if out.to_lowercase().contains("no usable template characters") {
|
||||||
|
return Err(Error::CompanionTemplatesMissing);
|
||||||
|
}
|
||||||
Ok(out.lines().last().unwrap_or("").to_string())
|
Ok(out.lines().last().unwrap_or("").to_string())
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -112,6 +150,51 @@ impl Ra {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// The console answers an unknown sub-command with the list of the ones it knows.
|
||||||
|
fn is_unsupported_command(out: &str) -> bool {
|
||||||
|
let l = out.to_lowercase();
|
||||||
|
l.contains("possible subcommands") || l.contains("### usage") || l.contains("no such command") || l.contains("unknown command")
|
||||||
|
}
|
||||||
|
|
||||||
|
fn first_number(text: &str) -> u32 {
|
||||||
|
text.split(|c: char| !c.is_ascii_digit()).find(|t| !t.is_empty()).and_then(|t| t.parse().ok()).unwrap_or(0)
|
||||||
|
}
|
||||||
|
|
||||||
|
/// How fast the world loop is running, read from `server info`.
|
||||||
|
#[derive(Debug, Clone, Serialize, PartialEq)]
|
||||||
|
pub struct Performance {
|
||||||
|
pub mean_ms: u32,
|
||||||
|
pub median_ms: u32,
|
||||||
|
pub p95_ms: u32,
|
||||||
|
pub p99_ms: u32,
|
||||||
|
pub max_ms: u32,
|
||||||
|
/// World updates per second implied by the mean update time.
|
||||||
|
pub ticks_per_sec: f32,
|
||||||
|
}
|
||||||
|
|
||||||
|
fn ms(text: &str) -> Option<u32> {
|
||||||
|
text.trim().trim_end_matches("ms").trim().parse().ok()
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn parse_server_info(text: &str) -> Option<Performance> {
|
||||||
|
let (mut mean, mut median, mut pct) = (None, None, None);
|
||||||
|
for line in text.lines() {
|
||||||
|
let line = line.trim().trim_start_matches('|').trim_start_matches('-').trim();
|
||||||
|
if let Some(v) = line.strip_prefix("Mean:") {
|
||||||
|
mean = ms(v);
|
||||||
|
} else if let Some(v) = line.strip_prefix("Median:") {
|
||||||
|
median = ms(v);
|
||||||
|
} else if let Some(v) = line.strip_prefix("Percentiles (95, 99, max):") {
|
||||||
|
let p: Vec<Option<u32>> = v.split(',').map(ms).collect();
|
||||||
|
if p.len() == 3 {
|
||||||
|
pct = Some((p[0]?, p[1]?, p[2]?));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let (mean_ms, median_ms, (p95_ms, p99_ms, max_ms)) = (mean?, median?, pct?);
|
||||||
|
Some(Performance { mean_ms, median_ms, p95_ms, p99_ms, max_ms, ticks_per_sec: 1000.0 / mean_ms.max(1) as f32 })
|
||||||
|
}
|
||||||
|
|
||||||
/// Account names are letters/digits (3-17); passwords are 6-16 printable characters without spaces or quotes.
|
/// Account names are letters/digits (3-17); passwords are 6-16 printable characters without spaces or quotes.
|
||||||
pub fn validate_account(name: &str, password: &str) -> Result<()> {
|
pub fn validate_account(name: &str, password: &str) -> Result<()> {
|
||||||
let bad = |m: &str| Err(Error::Invalid(m.into()));
|
let bad = |m: &str| Err(Error::Invalid(m.into()));
|
||||||
@@ -169,6 +252,31 @@ mod tests {
|
|||||||
(port, h)
|
(port, h)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn an_unknown_bot_subcommand_is_recognised_and_numbers_are_read_from_replies() {
|
||||||
|
assert!(is_unsupported_command("### USAGE: .botcmd ...
|
||||||
|
Possible subcommands:
|
||||||
|
|- botcmd despawn"));
|
||||||
|
assert!(!is_unsupported_command("BotMgr: cancelled 35 queued bot spawn(s)."));
|
||||||
|
assert_eq!(first_number("BotMgr: cancelled 35 queued bot spawn(s)."), 35);
|
||||||
|
assert_eq!(first_number("nothing"), 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn server_info_timing_is_parsed_and_unrelated_text_is_ignored() {
|
||||||
|
let text = "AzerothCore rev. x
|
||||||
|
Connected players: 0. Characters in world: 0.
|
||||||
|
Update time diff: 1ms. Last 500 diffs summary:
|
||||||
|
|- Mean: 14ms
|
||||||
|
|- Median: 15ms
|
||||||
|
|- Percentiles (95, 99, max): 24ms, 30ms, 61ms
|
||||||
|
AC>";
|
||||||
|
let p = parse_server_info(text).unwrap();
|
||||||
|
assert_eq!((p.mean_ms, p.median_ms, p.p95_ms, p.p99_ms, p.max_ms), (14, 15, 24, 30, 61));
|
||||||
|
assert!((p.ticks_per_sec - 71.4).abs() < 0.2);
|
||||||
|
assert!(parse_server_info("Connected players: 0.").is_none());
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn creates_an_account_over_ra_with_the_expected_commands() {
|
fn creates_an_account_over_ra_with_the_expected_commands() {
|
||||||
let _lock = serial();
|
let _lock = serial();
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>CoA Server Manager</title>
|
<title>CoA Server Manager</title>
|
||||||
|
<link rel="icon" type="image/png" href="/src/assets/logo.png" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "coa-server-manager",
|
"name": "coa-server-manager",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.1.5",
|
"version": "0.2.0",
|
||||||
"license": "AGPL-3.0-only",
|
"license": "AGPL-3.0-only",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 141 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 49 KiB |
|
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 171 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 200 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 7.3 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 167 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 499 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 1.7 MiB |
@@ -204,6 +204,23 @@ async fn start_server(state: State<'_, AppState>, id: String) -> std::result::Re
|
|||||||
let out = run_verb(&state, id.clone(), Verb::StartAll).await?;
|
let out = run_verb(&state, id.clone(), Verb::StartAll).await?;
|
||||||
if out.ok {
|
if out.ok {
|
||||||
if let Ok(root) = path_of(&state, &id) {
|
if let Ok(root) = path_of(&state, &id) {
|
||||||
|
// Companions requested while the server was stopped are created now (once; a failure is only logged).
|
||||||
|
let r = root.clone();
|
||||||
|
let _ = tauri::async_runtime::spawn_blocking(move || -> Result<()> {
|
||||||
|
let pending = meta_dir(&r)?.join("companions.pending.json");
|
||||||
|
if let Ok(v) = coa_core::fsx::read_json::<serde_json::Value>(&pending) {
|
||||||
|
let _ = std::fs::remove_file(&pending);
|
||||||
|
let n = v["count"].as_u64().unwrap_or(0) as u32;
|
||||||
|
if n > 0 {
|
||||||
|
let made = coa_core::db::Db::from_repack(&r, coa_core::db::Account::Admin).and_then(|db| coa_core::companions::ensure_templates(&db));
|
||||||
|
if let Err(e) = made.and_then(|_| Ra::connect(&r)).and_then(|mut ra| ra.spawn_bots(n)) {
|
||||||
|
tracing::warn!("pending companions were not created: {e}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Ok(())
|
||||||
|
})
|
||||||
|
.await;
|
||||||
let _ = tauri::async_runtime::spawn_blocking(move || meta_dir(&root).and_then(|m| coa_core::friends::reapply(&root, &m))).await;
|
let _ = tauri::async_runtime::spawn_blocking(move || meta_dir(&root).and_then(|m| coa_core::friends::reapply(&root, &m))).await;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -497,6 +514,92 @@ async fn get_population(state: State<'_, AppState>, id: String) -> std::result::
|
|||||||
.unwrap_or(None))
|
.unwrap_or(None))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Serialize)]
|
||||||
|
struct CompanionAction {
|
||||||
|
/// Bots affected (cancelled from the queue, or logged out).
|
||||||
|
count: u32,
|
||||||
|
}
|
||||||
|
|
||||||
|
#[tauri::command]
|
||||||
|
async fn companions_stop_spawning(state: State<'_, AppState>, id: String) -> std::result::Result<CompanionAction, UiError> {
|
||||||
|
let root = path_of(&state, &id)?;
|
||||||
|
blocking(move || Ok(CompanionAction { count: Ra::connect(&root)?.cancel_spawning()? })).await
|
||||||
|
}
|
||||||
|
|
||||||
|
#[tauri::command]
|
||||||
|
async fn companions_take_offline(state: State<'_, AppState>, id: String) -> std::result::Result<CompanionAction, UiError> {
|
||||||
|
let root = path_of(&state, &id)?;
|
||||||
|
let _guard = BusyGuard::acquire(&state, &id)?;
|
||||||
|
blocking(move || {
|
||||||
|
let mut ra = Ra::connect(&root)?;
|
||||||
|
// Anything still waiting to be created must not come back right after.
|
||||||
|
let _ = ra.cancel_spawning();
|
||||||
|
Ok(CompanionAction { count: ra.despawn_all()? })
|
||||||
|
})
|
||||||
|
.await
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Log `count` randomly chosen online companions out to lower the load. Uses the per-bot command that every server
|
||||||
|
/// build has, so it works on older builds too.
|
||||||
|
#[tauri::command]
|
||||||
|
async fn companions_despawn_some(state: State<'_, AppState>, id: String, count: u32) -> std::result::Result<CompanionAction, UiError> {
|
||||||
|
let root = path_of(&state, &id)?;
|
||||||
|
let _guard = BusyGuard::acquire(&state, &id)?;
|
||||||
|
blocking(move || {
|
||||||
|
if !(1..=5000).contains(&count) {
|
||||||
|
return Err(Error::Invalid("Choose a number between 1 and 5000.".into()));
|
||||||
|
}
|
||||||
|
let prefix = coa_core::population::bot_account_prefix(&root).to_uppercase();
|
||||||
|
let db = coa_core::db::Db::from_repack(&root, coa_core::db::Account::App)?;
|
||||||
|
let rows = db.query(&format!(
|
||||||
|
"SELECT c.guid FROM acore_characters.characters c JOIN acore_auth.account a ON a.id=c.account WHERE c.online=1 AND UPPER(a.username) LIKE '{prefix}%' ORDER BY RAND() LIMIT {count};"
|
||||||
|
))?;
|
||||||
|
let guids: Vec<u64> = rows.lines().filter_map(|l| l.trim().parse().ok()).collect();
|
||||||
|
let mut ra = Ra::connect(&root)?;
|
||||||
|
let mut done = 0;
|
||||||
|
for g in guids {
|
||||||
|
if ra.despawn_bot(g).unwrap_or(false) {
|
||||||
|
done += 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Ok(CompanionAction { count: done })
|
||||||
|
})
|
||||||
|
.await
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Delete every companion for good. A recovery point of the characters and accounts is saved first.
|
||||||
|
#[tauri::command]
|
||||||
|
async fn companions_delete_all(app: AppHandle, state: State<'_, AppState>, id: String) -> std::result::Result<CompanionAction, UiError> {
|
||||||
|
let root = path_of(&state, &id)?;
|
||||||
|
let _guard = BusyGuard::acquire(&state, &id)?;
|
||||||
|
blocking(move || {
|
||||||
|
let meta = meta_dir(&root)?;
|
||||||
|
backup::create(&root, &meta, Kind::Quick, Trigger::BeforeDangerousChange, Some("before deleting all companions".into()), &|step| {
|
||||||
|
let _ = app.emit("backup-progress", step);
|
||||||
|
})?;
|
||||||
|
let before = coa_core::population::query(&root).map(|p| p.bots_total).unwrap_or(0);
|
||||||
|
let mut ra = Ra::connect(&root)?;
|
||||||
|
let _ = ra.cancel_spawning();
|
||||||
|
ra.purge_all()?;
|
||||||
|
Ok(CompanionAction { count: before })
|
||||||
|
})
|
||||||
|
.await
|
||||||
|
}
|
||||||
|
|
||||||
|
#[tauri::command]
|
||||||
|
async fn get_performance(state: State<'_, AppState>, id: String) -> std::result::Result<Option<coa_core::ra::Performance>, UiError> {
|
||||||
|
let root = path_of(&state, &id)?;
|
||||||
|
Ok(tauri::async_runtime::spawn_blocking(move || {
|
||||||
|
let o = coa_core::process::observe(&root, &layout::read_ports(&root));
|
||||||
|
if o.world.state != coa_core::process::ServiceState::Running {
|
||||||
|
return None;
|
||||||
|
}
|
||||||
|
Ra::connect(&root).and_then(|mut r| r.performance()).ok().flatten()
|
||||||
|
})
|
||||||
|
.await
|
||||||
|
.unwrap_or(None))
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Serialize)]
|
#[derive(Serialize)]
|
||||||
struct CompanionSizes {
|
struct CompanionSizes {
|
||||||
hardware: coa_core::population::Hardware,
|
hardware: coa_core::population::Hardware,
|
||||||
@@ -513,6 +616,10 @@ fn companion_sizes() -> CompanionSizes {
|
|||||||
#[derive(Serialize)]
|
#[derive(Serialize)]
|
||||||
struct CompanionsResult {
|
struct CompanionsResult {
|
||||||
spawned: Option<String>,
|
spawned: Option<String>,
|
||||||
|
/// Created offline with their equipment (server was stopped and the batch was large).
|
||||||
|
created: Option<u32>,
|
||||||
|
/// Companions that existed before this request (for a progress bar while the server creates the new ones).
|
||||||
|
baseline: Option<u32>,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Turn on automatic bot login for `count` bots and, if the server is running, ask it to create them.
|
/// Turn on automatic bot login for `count` bots and, if the server is running, ask it to create them.
|
||||||
@@ -527,16 +634,53 @@ async fn add_companions(state: State<'_, AppState>, id: String, count: u32) -> s
|
|||||||
let meta = meta_dir(&root)?;
|
let meta = meta_dir(&root)?;
|
||||||
let mut changes = BTreeMap::new();
|
let mut changes = BTreeMap::new();
|
||||||
changes.insert("CoaBots.AutoLoginOnStartup".to_string(), Value::Bool(true));
|
changes.insert("CoaBots.AutoLoginOnStartup".to_string(), Value::Bool(true));
|
||||||
changes.insert("CoaBots.AutoLogin.MaxCount".to_string(), Value::from(count));
|
// Every companion, old and new, should come back at the next start, so the start-up limit only ever grows here.
|
||||||
|
let existing_max = config::load(&root, Scope::Bots)
|
||||||
|
.ok()
|
||||||
|
.and_then(|v| v.settings.iter().find(|s| s.meta.key == "CoaBots.AutoLogin.MaxCount").and_then(|s| s.value.as_u64()))
|
||||||
|
.unwrap_or(0) as u32;
|
||||||
|
let already = coa_core::population::query(&root).map(|p| p.bots_total).unwrap_or(0);
|
||||||
|
changes.insert("CoaBots.AutoLogin.MaxCount".to_string(), Value::from(existing_max.max(already + count).min(5000)));
|
||||||
config::save(&root, &meta, Scope::Bots, &changes)?;
|
config::save(&root, &meta, Scope::Bots, &changes)?;
|
||||||
let o = coa_core::process::observe(&root, &layout::read_ports(&root));
|
let o = coa_core::process::observe(&root, &layout::read_ports(&root));
|
||||||
|
// Large batches while the server is stopped: create them in the database right now, fully equipped.
|
||||||
|
if o.world.state == coa_core::process::ServiceState::Stopped
|
||||||
|
&& o.auth.state == coa_core::process::ServiceState::Stopped
|
||||||
|
&& count >= coa_core::companions::OFFLINE_MIN
|
||||||
|
&& coa_core::companions::offline_factory(&root).is_some()
|
||||||
|
{
|
||||||
|
let started_db = o.mysql.state != coa_core::process::ServiceState::Running;
|
||||||
|
if started_db {
|
||||||
|
let out = driver::run(&root, Verb::StartMysql)?;
|
||||||
|
if !out.ok {
|
||||||
|
return Err(Error::Invalid("The database could not be started.".into()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let made = (|| -> Result<()> {
|
||||||
|
coa_core::companions::ensure_templates(&coa_core::db::Db::from_repack(&root, coa_core::db::Account::Admin)?)?;
|
||||||
|
coa_core::companions::offline_create(&root, &meta.join("logs").join("companions-offline.log"), count)?;
|
||||||
|
Ok(())
|
||||||
|
})();
|
||||||
|
if started_db {
|
||||||
|
let _ = driver::run(&root, Verb::StopAll);
|
||||||
|
}
|
||||||
|
made?;
|
||||||
|
tracing::info!(count, "companions created offline");
|
||||||
|
return Ok(CompanionsResult { spawned: None, created: Some(count), baseline: None });
|
||||||
|
}
|
||||||
|
let mut baseline = None;
|
||||||
let spawned = if o.world.state == coa_core::process::ServiceState::Running {
|
let spawned = if o.world.state == coa_core::process::ServiceState::Running {
|
||||||
|
// Older servers have no template characters to copy bots from: add them first.
|
||||||
|
coa_core::companions::ensure_templates(&coa_core::db::Db::from_repack(&root, coa_core::db::Account::Admin)?)?;
|
||||||
|
baseline = coa_core::population::query(&root).ok().map(|p| p.bots_total);
|
||||||
Some(Ra::connect(&root)?.spawn_bots(count)?)
|
Some(Ra::connect(&root)?.spawn_bots(count)?)
|
||||||
} else {
|
} else {
|
||||||
|
// The server is stopped: creating bots needs it running, so remember the request and do it after the next start.
|
||||||
|
coa_core::fsx::atomic_write_json(&meta.join("companions.pending.json"), &serde_json::json!({ "count": count }))?;
|
||||||
None
|
None
|
||||||
};
|
};
|
||||||
tracing::info!(count, spawned = spawned.is_some(), "companions requested");
|
tracing::info!(count, spawned = spawned.is_some(), "companions requested");
|
||||||
Ok(CompanionsResult { spawned })
|
Ok(CompanionsResult { spawned, created: None, baseline })
|
||||||
})
|
})
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
@@ -615,6 +759,21 @@ struct FriendsStatus {
|
|||||||
firewall: coa_core::firewall::Status,
|
firewall: coa_core::firewall::Status,
|
||||||
tailscale: coa_core::net::Tailscale,
|
tailscale: coa_core::net::Tailscale,
|
||||||
server_running: bool,
|
server_running: bool,
|
||||||
|
auth_port: u16,
|
||||||
|
world_port: u16,
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Open one of a few known help pages in the default browser. Anything else is refused, so a page can never ask the
|
||||||
|
/// Manager to launch an arbitrary address.
|
||||||
|
#[tauri::command]
|
||||||
|
fn open_link(url: String) -> std::result::Result<(), UiError> {
|
||||||
|
const ALLOWED: &[&str] = &["https://tailscale.com/", "https://login.tailscale.com/", "https://portforward.com/"];
|
||||||
|
if !ALLOWED.iter().any(|p| url.starts_with(p)) || !url.chars().all(|c| c.is_ascii_alphanumeric() || "/:._-?=#%".contains(c)) {
|
||||||
|
return Err(Error::Invalid("That link is not allowed.".into()).into());
|
||||||
|
}
|
||||||
|
// explorer.exe opens the address in the default browser without going through a shell.
|
||||||
|
std::process::Command::new("explorer.exe").arg(&url).spawn().map_err(|e| Error::Invalid(e.to_string()))?;
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tauri::command]
|
#[tauri::command]
|
||||||
@@ -631,6 +790,8 @@ async fn friends_status(state: State<'_, AppState>, id: String) -> std::result::
|
|||||||
firewall: coa_core::firewall::status(),
|
firewall: coa_core::firewall::status(),
|
||||||
tailscale: coa_core::net::tailscale(),
|
tailscale: coa_core::net::tailscale(),
|
||||||
server_running: coa_core::process::observe(&root, &ports).world.state == coa_core::process::ServiceState::Running,
|
server_running: coa_core::process::observe(&root, &ports).world.state == coa_core::process::ServiceState::Running,
|
||||||
|
auth_port: ports.auth,
|
||||||
|
world_port: ports.world,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.await
|
.await
|
||||||
@@ -839,6 +1000,12 @@ pub fn run() {
|
|||||||
apply_update,
|
apply_update,
|
||||||
rollback_update,
|
rollback_update,
|
||||||
get_population,
|
get_population,
|
||||||
|
get_performance,
|
||||||
|
companions_stop_spawning,
|
||||||
|
companions_take_offline,
|
||||||
|
companions_delete_all,
|
||||||
|
companions_despawn_some,
|
||||||
|
open_link,
|
||||||
companion_sizes,
|
companion_sizes,
|
||||||
add_companions,
|
add_companions,
|
||||||
client_info,
|
client_info,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://schema.tauri.app/config/2",
|
"$schema": "https://schema.tauri.app/config/2",
|
||||||
"productName": "CoA Server Manager",
|
"productName": "CoA Server Manager",
|
||||||
"version": "0.1.5",
|
"version": "0.2.0",
|
||||||
"identifier": "com.coa.servermanager",
|
"identifier": "com.coa.servermanager",
|
||||||
"build": {
|
"build": {
|
||||||
"beforeDevCommand": "npm run dev",
|
"beforeDevCommand": "npm run dev",
|
||||||
|
|||||||
|
After Width: | Height: | Size: 143 KiB |
@@ -30,7 +30,9 @@ export {};
|
|||||||
if(cmd==="list_presets"){const pr=args?.scope==="server"?serverPresets:botsPresets;return (pr.presets as any[]).map(p=>({id:p.id,title:p.title,description:p.description}));}
|
if(cmd==="list_presets"){const pr=args?.scope==="server"?serverPresets:botsPresets;return (pr.presets as any[]).map(p=>({id:p.id,title:p.title,description:p.description}));}
|
||||||
if(cmd==="preview_preset"){const a=args;const sc=a.scope==="server"?serverSchema:botsSchema;const pr=(a.scope==="server"?serverPresets:botsPresets).presets as any[];const p=pr.find(x=>x.id===a.preset)??{id:a.preset??"defaults",title:"Recommended defaults",description:"Every setting returns to its default value."};const st=(sc.settings as any[]).filter(x=>x.type==="int"||x.type==="float"||x.type==="enum").slice(0,3);return {id:p.id,title:p.title,description:p.description,changes:st.map(x=>({key:x.key,title:x.title,from:x.default,to:x.type==="enum"?(x.options?.[1]?.value??x.default):(Number(x.default)||1)*2,dangerous:false}))};}
|
if(cmd==="preview_preset"){const a=args;const sc=a.scope==="server"?serverSchema:botsSchema;const pr=(a.scope==="server"?serverPresets:botsPresets).presets as any[];const p=pr.find(x=>x.id===a.preset)??{id:a.preset??"defaults",title:"Recommended defaults",description:"Every setting returns to its default value."};const st=(sc.settings as any[]).filter(x=>x.type==="int"||x.type==="float"||x.type==="enum").slice(0,3);return {id:p.id,title:p.title,description:p.description,changes:st.map(x=>({key:x.key,title:x.title,from:x.default,to:x.type==="enum"?(x.options?.[1]?.value??x.default):(Number(x.default)||1)*2,dangerous:false}))};}
|
||||||
if(cmd==="companion_sizes") return {hardware:{cores:16,ram_gb:31,free_ram_gb:12},sizes:[{id:"small",title:"Small",bots:50,warning:null},{id:"medium",title:"Medium",bots:250,warning:null},{id:"large",title:"Large",bots:500,warning:"500 companions may need more CPU and memory than this computer has (8 cores, 16 GB)."}]};
|
if(cmd==="companion_sizes") return {hardware:{cores:16,ram_gb:31,free_ram_gb:12},sizes:[{id:"small",title:"Small",bots:50,warning:null},{id:"medium",title:"Medium",bots:250,warning:null},{id:"large",title:"Large",bots:500,warning:"500 companions may need more CPU and memory than this computer has (8 cores, 16 GB)."}]};
|
||||||
if(cmd==="get_population") return null;
|
if(cmd==="add_companions"){const base=(window as any).__bots??85;(window as any).__target=base+args.count;return {spawned:"queued",created:null,baseline:base};}
|
||||||
|
if(cmd==="get_population"){if(!running) return null;let b=(window as any).__bots??85;const t=(window as any).__target??0;if(t>b){b=Math.min(t,b+25);(window as any).__bots=b;}return {online_total:b,bots_online:Math.max(0,b-7),players_online:0,bots_total:b};}
|
||||||
|
if(cmd==="get_performance") return running?{mean_ms:14,median_ms:15,p95_ms:24,p99_ms:30,max_ms:61,ticks_per_sec:71.4}:null;
|
||||||
if(cmd==="run_diagnostics") return {problems:2,checks:[{id:"files",title:"Server files",level:"ok",detail:"All expected server parts were found."},{id:"world",title:"World server",level:"warn",detail:"Not running."},{id:"disk",title:"Free disk space",level:"warn",detail:"Only 3 GB free; backups and updates need room."},{id:"exposure",title:"Private services",level:"ok",detail:"Database and server console are not reachable from the network."}]};
|
if(cmd==="run_diagnostics") return {problems:2,checks:[{id:"files",title:"Server files",level:"ok",detail:"All expected server parts were found."},{id:"world",title:"World server",level:"warn",detail:"Not running."},{id:"disk",title:"Free disk space",level:"warn",detail:"Only 3 GB free; backups and updates need room."},{id:"exposure",title:"Private services",level:"ok",detail:"Database and server console are not reachable from the network."}]};
|
||||||
if(cmd==="plugin:event|listen") return 1;
|
if(cmd==="plugin:event|listen") return 1;
|
||||||
if(cmd==="plugin:event|unlisten") return null;
|
if(cmd==="plugin:event|unlisten") return null;
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ const de: Partial<Record<keyof typeof en, string>> = {
|
|||||||
"comp.addPlain": "Begleiter hinzufügen",
|
"comp.addPlain": "Begleiter hinzufügen",
|
||||||
"comp.stoppedHint": "Der Server ist gestoppt: Sie werden beim nächsten Start erstellt.",
|
"comp.stoppedHint": "Der Server ist gestoppt: Sie werden beim nächsten Start erstellt.",
|
||||||
"comp.spawned": "{n} Begleiter werden erstellt. Sie erscheinen nach und nach in den nächsten Minuten.",
|
"comp.spawned": "{n} Begleiter werden erstellt. Sie erscheinen nach und nach in den nächsten Minuten.",
|
||||||
"comp.saved": "Gespeichert. {n} Begleiter melden sich beim Serverstart an.",
|
"comp.saved": "Gespeichert. {n} Begleiter werden beim Serverstart erstellt.",
|
||||||
|
|
||||||
// Client
|
// Client
|
||||||
"client.title": "Spielclient",
|
"client.title": "Spielclient",
|
||||||
@@ -304,7 +304,7 @@ const de: Partial<Record<keyof typeof en, string>> = {
|
|||||||
"fr.publicAddr": "Deine öffentliche Adresse:",
|
"fr.publicAddr": "Deine öffentliche Adresse:",
|
||||||
"fr.noRouter": " · dein Router kann nicht automatisch eingerichtet werden; leite die beiden Spielports manuell weiter",
|
"fr.noRouter": " · dein Router kann nicht automatisch eingerichtet werden; leite die beiden Spielports manuell weiter",
|
||||||
"fr.noInternet": "Das Internet war nicht erreichbar, um deine Adresse zu ermitteln.",
|
"fr.noInternet": "Das Internet war nicht erreichbar, um deine Adresse zu ermitteln.",
|
||||||
"fr.tsMissing": "Tailscale ist nicht installiert. Installiere die kostenlose App von tailscale.com/download, melde dich an und komm zurück.",
|
"fr.tsMissing": "Tailscale ist nicht installiert. Installiere die kostenlose App, melde dich an und komm zurück.",
|
||||||
"fr.tsOff": "Tailscale ist installiert, aber nicht verbunden. Melde dich zuerst an.",
|
"fr.tsOff": "Tailscale ist installiert, aber nicht verbunden. Melde dich zuerst an.",
|
||||||
"fr.privateAddr": "Deine private Adresse:",
|
"fr.privateAddr": "Deine private Adresse:",
|
||||||
"fr.checkFirst": "Prüfe zuerst deine Verbindung",
|
"fr.checkFirst": "Prüfe zuerst deine Verbindung",
|
||||||
@@ -497,6 +497,77 @@ const de: Partial<Record<keyof typeof en, string>> = {
|
|||||||
"scan.label.companions": "CoA-Begleiter (Bots)",
|
"scan.label.companions": "CoA-Begleiter (Bots)",
|
||||||
"scan.label.client": "Spielclient",
|
"scan.label.client": "Spielclient",
|
||||||
"placeholder.soon": "Dieser Bereich entsteht in einer späteren Version.",
|
"placeholder.soon": "Dieser Bereich entsteht in einer späteren Version.",
|
||||||
|
|
||||||
|
// Tick rate
|
||||||
|
"overview.tick": "Weltgeschwindigkeit",
|
||||||
|
"overview.tickUnit": "Ticks/s",
|
||||||
|
"overview.tickGood": "Flüssig",
|
||||||
|
"overview.tickBusy": "Ausgelastet",
|
||||||
|
"overview.tickLag": "Ruckelt",
|
||||||
|
"overview.tickDetail": "durchschnittlich {mean} ms pro Tick · 95 % unter {p95} ms · Spitze {max} ms",
|
||||||
|
"overview.tickHint": "Wie schnell der Weltserver läuft. Über 20 Ticks pro Sekunde fühlt sich das Spiel flüssig an, unter 10 ruckelt es.",
|
||||||
|
|
||||||
|
// Companions start
|
||||||
|
"err.companion_templates_missing.title": "Begleiter haben noch keine Vorlage zum Kopieren",
|
||||||
|
"err.companion_templates_missing.message": "Neue Begleiter werden von Charakteren der Stufe 80 jeder Klasse kopiert. Erstelle pro Klasse einen Charakter der Stufe 80 auf einem beliebigen Konto außer dem Konsolenkonto und versuche es erneut.",
|
||||||
|
|
||||||
|
// Friends guides
|
||||||
|
"fr.tsDownload": "Tailscale herunterladen (kostenlos)",
|
||||||
|
"fr.guide": "So richtest du es ein",
|
||||||
|
"fr.g.net.1": "Klicke auf „Meine Verbindung prüfen“: Der Manager ermittelt deine öffentliche Adresse und versucht, die Ports am Router selbst zu öffnen.",
|
||||||
|
"fr.g.net.2": "Falls das nicht klappt, öffne die Einstellungsseite deines Routers (oft 192.168.0.1 oder 192.168.1.1) und suche „Portweiterleitung“ (auch „Virtueller Server“ oder „NAT“).",
|
||||||
|
"fr.g.net.3": "Leite zwei TCP-Ports an diesen Computer ({lan}) weiter: {auth} (Anmeldung) und {world} (Spiel). Verwende innen und außen dieselbe Nummer.",
|
||||||
|
"fr.g.net.4": "Leite niemals den Datenbankport (3307) oder den Port der Serverkonsole (3443) weiter.",
|
||||||
|
"fr.g.net.5": "Klicke auf „Aktivieren“, starte den Server neu und schicke deinem Freund die Zeile oben („set realmlist …“). Er trägt sie in die Datei realmlist.wtf seines Spiels ein.",
|
||||||
|
"fr.g.net.6": "Wenn dein Anbieter dir eine gemeinsam genutzte Adresse gibt („CGNAT“), lassen sich Ports gar nicht öffnen: Nutze stattdessen das private Netzwerk.",
|
||||||
|
"fr.g.routerHelp": "Schritt-für-Schritt-Anleitungen für viele Router (portforward.com)",
|
||||||
|
"fr.g.ts.1": "Du und dein Freund installiert die kostenlose Tailscale-App (Link oben) und meldet euch an.",
|
||||||
|
"fr.g.ts.2": "Teile diesen Computer mit deinem Freund: Öffne die Tailscale-Verwaltungsseite, suche diesen Computer in der Liste, wähle „Share…“ und schicke deinem Freund den Link. Er nimmt ihn mit seinem eigenen Tailscale-Konto an.",
|
||||||
|
"fr.g.ts.3": "Am Router muss nichts eingestellt werden. Klicke auf „Aktivieren“, starte den Server neu und schicke deinem Freund die Zeile oben („set realmlist …“ mit deiner Tailscale-Adresse).",
|
||||||
|
"fr.g.ts.4": "Tailscale muss bei euch beiden laufen, solange ihr spielt.",
|
||||||
|
"fr.g.ts.admin": "Tailscale-Verwaltungsseite öffnen",
|
||||||
|
"fr.g.ts.share": "So funktioniert das Teilen (tailscale.com)",
|
||||||
|
|
||||||
|
// Bots at start
|
||||||
|
"comp.startTitle": "Bots beim Serverstart",
|
||||||
|
"comp.startAuto": "Bots melden sich beim Serverstart automatisch an",
|
||||||
|
"comp.startCount": "Wie viele sich anmelden",
|
||||||
|
"comp.startSave": "Speichern",
|
||||||
|
"comp.startSaved": "Gespeichert. Gilt ab dem nächsten Serverstart.",
|
||||||
|
"comp.startHint": "Bots, die sich nicht anmelden, bleiben gespeichert und können später online gebracht werden.",
|
||||||
|
"comp.startInvalid": "Gib eine ganze Zahl von 0 bis 5000 ein.",
|
||||||
|
|
||||||
|
// Overview start bots
|
||||||
|
"overview.startBots": "Bots melden sich beim Start an: {n}",
|
||||||
|
"overview.startBotsOff": "Bots melden sich beim Start nicht an",
|
||||||
|
|
||||||
|
// Offline bots
|
||||||
|
"comp.offlineDone": "{n} Begleiter samt Ausrüstung erstellt. Sie melden sich beim Serverstart an.",
|
||||||
|
|
||||||
|
// Companions progress
|
||||||
|
"comp.progress": "{done} von {target} hinzugefügt",
|
||||||
|
"comp.progressDone": "Alle {n} Begleiter sind erstellt. Sie melden sich jetzt an.",
|
||||||
|
"comp.progressOffline": "{n} Begleiter werden samt Ausrüstung erstellt … das dauert einige Minuten.",
|
||||||
|
"comp.progressStalled": "Warte darauf, dass der Server weitere erstellt …",
|
||||||
|
|
||||||
|
// Companions control
|
||||||
|
"comp.stop": "Erstellung stoppen",
|
||||||
|
"comp.stopped": "Gestoppt. {n} noch wartende Begleiter wurden abgebrochen; bereits erstellte bleiben erhalten.",
|
||||||
|
"comp.manageTitle": "Vorhandene Begleiter verwalten",
|
||||||
|
"comp.offline": "Alle offline nehmen",
|
||||||
|
"comp.offlineConfirm": "Alle Begleiter aus dem Spiel abmelden? Sie bleiben gespeichert und kommen beim nächsten Serverstart oder beim erneuten Hinzufügen zurück.",
|
||||||
|
"comp.offlineDone2": "{n} Begleiter offline genommen. Sie bleiben gespeichert.",
|
||||||
|
"comp.delete": "Alle Begleiter löschen …",
|
||||||
|
"comp.deleteConfirm": "Alle {n} Begleiter endgültig löschen? Zuvor wird ein Wiederherstellungspunkt gespeichert. Deine eigenen Charaktere bleiben unberührt.",
|
||||||
|
"comp.deleteDone": "Alle Begleiter wurden gelöscht. Zuvor wurde ein Wiederherstellungspunkt gespeichert.",
|
||||||
|
"err.companion_command_unsupported.title": "Diese Serverversion kann das noch nicht",
|
||||||
|
"err.companion_command_unsupported.message": "Das Bot-Modul dieses Server-Builds kennt diesen Befehl nicht. Aktualisiere den Server oder starte ihn neu, um Laufendes zu stoppen.",
|
||||||
|
|
||||||
|
// Despawn some
|
||||||
|
"comp.despawnSome": "{n} Bots entfernen",
|
||||||
|
"comp.despawnCount": "Wie viele abmelden",
|
||||||
|
"comp.despawnHint": "Entlastet sofort: Jeder Bot online kostet Serverzeit. Sie bleiben gespeichert und kommen beim nächsten Start zurück, wenn die automatische Anmeldung an ist.",
|
||||||
|
"comp.despawnSomeDone": "{n} Begleiter abgemeldet. Sie bleiben gespeichert.",
|
||||||
};
|
};
|
||||||
|
|
||||||
export default de;
|
export default de;
|
||||||
@@ -174,7 +174,7 @@ const en = {
|
|||||||
"comp.addPlain": "Add companions",
|
"comp.addPlain": "Add companions",
|
||||||
"comp.stoppedHint": "The server is stopped: they will be created the next time it runs.",
|
"comp.stoppedHint": "The server is stopped: they will be created the next time it runs.",
|
||||||
"comp.spawned": "Creating {n} companions. They appear gradually over the next minutes.",
|
"comp.spawned": "Creating {n} companions. They appear gradually over the next minutes.",
|
||||||
"comp.saved": "Saved. {n} companions will log in when the server starts.",
|
"comp.saved": "Saved. {n} companions will be created when the server starts.",
|
||||||
|
|
||||||
// Client
|
// Client
|
||||||
"client.title": "Game client",
|
"client.title": "Game client",
|
||||||
@@ -304,7 +304,7 @@ const en = {
|
|||||||
"fr.publicAddr": "Your public address:",
|
"fr.publicAddr": "Your public address:",
|
||||||
"fr.noRouter": " · your router cannot be set up automatically; forward the two game ports by hand",
|
"fr.noRouter": " · your router cannot be set up automatically; forward the two game ports by hand",
|
||||||
"fr.noInternet": "Could not reach the internet to find your address.",
|
"fr.noInternet": "Could not reach the internet to find your address.",
|
||||||
"fr.tsMissing": "Tailscale is not installed. Install the free app from tailscale.com/download, sign in, then come back.",
|
"fr.tsMissing": "Tailscale is not installed. Install the free app, sign in, then come back.",
|
||||||
"fr.tsOff": "Tailscale is installed but not connected. Sign in to it first.",
|
"fr.tsOff": "Tailscale is installed but not connected. Sign in to it first.",
|
||||||
"fr.privateAddr": "Your private address:",
|
"fr.privateAddr": "Your private address:",
|
||||||
"fr.checkFirst": "Check your connection first",
|
"fr.checkFirst": "Check your connection first",
|
||||||
@@ -497,6 +497,77 @@ const en = {
|
|||||||
"scan.label.companions": "CoA Companions (bots)",
|
"scan.label.companions": "CoA Companions (bots)",
|
||||||
"scan.label.client": "Game client",
|
"scan.label.client": "Game client",
|
||||||
"placeholder.soon": "This section is being built in a later release.",
|
"placeholder.soon": "This section is being built in a later release.",
|
||||||
|
|
||||||
|
// Tick rate
|
||||||
|
"overview.tick": "World speed",
|
||||||
|
"overview.tickUnit": "ticks/s",
|
||||||
|
"overview.tickGood": "Smooth",
|
||||||
|
"overview.tickBusy": "Busy",
|
||||||
|
"overview.tickLag": "Lagging",
|
||||||
|
"overview.tickDetail": "average {mean} ms per tick · 95% under {p95} ms · peak {max} ms",
|
||||||
|
"overview.tickHint": "How fast the world server runs. Above 20 ticks per second the game feels smooth; below 10 it lags.",
|
||||||
|
|
||||||
|
// Companions start
|
||||||
|
"err.companion_templates_missing.title": "Companions have nothing to be copied from yet",
|
||||||
|
"err.companion_templates_missing.message": "New companions are copied from level 80 characters of each class. Create one level 80 character per class on any account except the console account, then try again.",
|
||||||
|
|
||||||
|
// Friends guides
|
||||||
|
"fr.tsDownload": "Download Tailscale (free)",
|
||||||
|
"fr.guide": "How to set this up",
|
||||||
|
"fr.g.net.1": "Press “Check my connection”: the Manager finds your public address and tries to open the ports on your router by itself.",
|
||||||
|
"fr.g.net.2": "If that does not work, open your router's settings page (often 192.168.0.1 or 192.168.1.1) and find “Port forwarding” (also called “Virtual server” or “NAT”).",
|
||||||
|
"fr.g.net.3": "Forward two TCP ports to this computer ({lan}): {auth} (login) and {world} (game). Use the same number inside and outside.",
|
||||||
|
"fr.g.net.4": "Never forward the database port (3307) or the server console port (3443).",
|
||||||
|
"fr.g.net.5": "Press “Enable”, restart the server and send your friend the line above (“set realmlist …”). They put it in the realmlist.wtf file of their game.",
|
||||||
|
"fr.g.net.6": "If your provider gives you a shared address (“CGNAT”), ports cannot be opened at all: use the private network instead.",
|
||||||
|
"fr.g.routerHelp": "Step-by-step guides for many routers (portforward.com)",
|
||||||
|
"fr.g.ts.1": "You and your friend both install the free Tailscale app (link above) and sign in.",
|
||||||
|
"fr.g.ts.2": "Share this computer with your friend: open the Tailscale admin page, find this computer in the list, choose “Share…” and send the link to your friend. They accept it with their own Tailscale account.",
|
||||||
|
"fr.g.ts.3": "No router settings are needed. Press “Enable”, restart the server and send your friend the line above (“set realmlist …” with your Tailscale address).",
|
||||||
|
"fr.g.ts.4": "Both of you must keep Tailscale running while you play.",
|
||||||
|
"fr.g.ts.admin": "Open the Tailscale admin page",
|
||||||
|
"fr.g.ts.share": "How sharing works (tailscale.com)",
|
||||||
|
|
||||||
|
// Bots at start
|
||||||
|
"comp.startTitle": "Bots at server start",
|
||||||
|
"comp.startAuto": "Bots log in automatically when the server starts",
|
||||||
|
"comp.startCount": "How many log in",
|
||||||
|
"comp.startSave": "Save",
|
||||||
|
"comp.startSaved": "Saved. It applies the next time the server starts.",
|
||||||
|
"comp.startHint": "Bots that do not log in stay saved and can be brought online later.",
|
||||||
|
"comp.startInvalid": "Enter a whole number from 0 to 5000.",
|
||||||
|
|
||||||
|
// Overview start bots
|
||||||
|
"overview.startBots": "Bots log in at start: {n}",
|
||||||
|
"overview.startBotsOff": "Bots log in at start: off",
|
||||||
|
|
||||||
|
// Offline bots
|
||||||
|
"comp.offlineDone": "Created {n} companions with their equipment. They log in when the server starts.",
|
||||||
|
|
||||||
|
// Companions progress
|
||||||
|
"comp.progress": "{done} of {target} added",
|
||||||
|
"comp.progressDone": "All {n} companions are created. They are logging in now.",
|
||||||
|
"comp.progressOffline": "Creating {n} companions with their equipment… this takes a few minutes.",
|
||||||
|
"comp.progressStalled": "Waiting for the server to create more…",
|
||||||
|
|
||||||
|
// Companions control
|
||||||
|
"comp.stop": "Stop creating",
|
||||||
|
"comp.stopped": "Stopped. {n} companions that were still waiting are cancelled; the ones already created stay.",
|
||||||
|
"comp.manageTitle": "Manage existing companions",
|
||||||
|
"comp.offline": "Take all offline",
|
||||||
|
"comp.offlineConfirm": "Log all companions out of the game? They stay saved and come back at the next server start or when you add them again.",
|
||||||
|
"comp.offlineDone2": "{n} companions taken offline. They stay saved.",
|
||||||
|
"comp.delete": "Delete all companions…",
|
||||||
|
"comp.deleteConfirm": "Delete all {n} companions for good? A recovery point is saved first. Your own characters are not touched.",
|
||||||
|
"comp.deleteDone": "All companions were deleted. A recovery point was saved first.",
|
||||||
|
"err.companion_command_unsupported.title": "This server version can not do that yet",
|
||||||
|
"err.companion_command_unsupported.message": "The bot module of this server build has no such command. Update the server, or restart it to stop what is running.",
|
||||||
|
|
||||||
|
// Despawn some
|
||||||
|
"comp.despawnSome": "Despawn {n} bots",
|
||||||
|
"comp.despawnCount": "How many to log out",
|
||||||
|
"comp.despawnHint": "Eases the load right away: every online bot costs server time. They stay saved and return at the next start if automatic login is on.",
|
||||||
|
"comp.despawnSomeDone": "{n} companions logged out. They stay saved.",
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export default en;
|
export default en;
|
||||||
@@ -174,7 +174,7 @@ const es: Partial<Record<keyof typeof en, string>> = {
|
|||||||
"comp.addPlain": "Añadir compañeros",
|
"comp.addPlain": "Añadir compañeros",
|
||||||
"comp.stoppedHint": "El servidor está detenido: se crearán la próxima vez que se inicie.",
|
"comp.stoppedHint": "El servidor está detenido: se crearán la próxima vez que se inicie.",
|
||||||
"comp.spawned": "Creando {n} compañeros. Aparecerán gradualmente durante los próximos minutos.",
|
"comp.spawned": "Creando {n} compañeros. Aparecerán gradualmente durante los próximos minutos.",
|
||||||
"comp.saved": "Guardado. {n} compañeros iniciarán sesión cuando se inicie el servidor.",
|
"comp.saved": "Guardado. Se crearán {n} compañeros cuando se inicie el servidor.",
|
||||||
|
|
||||||
// Client
|
// Client
|
||||||
"client.title": "Cliente del juego",
|
"client.title": "Cliente del juego",
|
||||||
@@ -304,7 +304,7 @@ const es: Partial<Record<keyof typeof en, string>> = {
|
|||||||
"fr.publicAddr": "Tu dirección pública:",
|
"fr.publicAddr": "Tu dirección pública:",
|
||||||
"fr.noRouter": " · tu router no se puede configurar automáticamente; redirige los dos puertos del juego a mano",
|
"fr.noRouter": " · tu router no se puede configurar automáticamente; redirige los dos puertos del juego a mano",
|
||||||
"fr.noInternet": "No se pudo acceder a internet para averiguar tu dirección.",
|
"fr.noInternet": "No se pudo acceder a internet para averiguar tu dirección.",
|
||||||
"fr.tsMissing": "Tailscale no está instalado. Instala la aplicación gratuita desde tailscale.com/download, inicia sesión y vuelve.",
|
"fr.tsMissing": "Tailscale no está instalado. Instala la aplicación gratuita, inicia sesión y vuelve.",
|
||||||
"fr.tsOff": "Tailscale está instalado pero no conectado. Inicia sesión primero.",
|
"fr.tsOff": "Tailscale está instalado pero no conectado. Inicia sesión primero.",
|
||||||
"fr.privateAddr": "Tu dirección privada:",
|
"fr.privateAddr": "Tu dirección privada:",
|
||||||
"fr.checkFirst": "Comprueba primero tu conexión",
|
"fr.checkFirst": "Comprueba primero tu conexión",
|
||||||
@@ -497,6 +497,77 @@ const es: Partial<Record<keyof typeof en, string>> = {
|
|||||||
"scan.label.companions": "Compañeros de CoA (bots)",
|
"scan.label.companions": "Compañeros de CoA (bots)",
|
||||||
"scan.label.client": "Cliente del juego",
|
"scan.label.client": "Cliente del juego",
|
||||||
"placeholder.soon": "Esta sección se está desarrollando para una versión posterior.",
|
"placeholder.soon": "Esta sección se está desarrollando para una versión posterior.",
|
||||||
|
|
||||||
|
// Tick rate
|
||||||
|
"overview.tick": "Velocidad del mundo",
|
||||||
|
"overview.tickUnit": "ticks/s",
|
||||||
|
"overview.tickGood": "Fluido",
|
||||||
|
"overview.tickBusy": "Cargado",
|
||||||
|
"overview.tickLag": "Con retrasos",
|
||||||
|
"overview.tickDetail": "media de {mean} ms por tick · 95 % por debajo de {p95} ms · pico de {max} ms",
|
||||||
|
"overview.tickHint": "Qué tan rápido funciona el servidor del mundo. Por encima de 20 ticks por segundo el juego va fluido; por debajo de 10 se retrasa.",
|
||||||
|
|
||||||
|
// Companions start
|
||||||
|
"err.companion_templates_missing.title": "Los compañeros aún no tienen nada de lo que copiarse",
|
||||||
|
"err.companion_templates_missing.message": "Los compañeros nuevos se copian de personajes de nivel 80 de cada clase. Crea un personaje de nivel 80 por clase en cualquier cuenta salvo la de la consola y vuelve a intentarlo.",
|
||||||
|
|
||||||
|
// Friends guides
|
||||||
|
"fr.tsDownload": "Descargar Tailscale (gratis)",
|
||||||
|
"fr.guide": "Cómo configurarlo",
|
||||||
|
"fr.g.net.1": "Pulsa «Comprobar mi conexión»: el Manager averigua tu dirección pública e intenta abrir por sí mismo los puertos del router.",
|
||||||
|
"fr.g.net.2": "Si no funciona, abre la página de configuración del router (a menudo 192.168.0.1 o 192.168.1.1) y busca «Reenvío de puertos» (también «Servidor virtual» o «NAT»).",
|
||||||
|
"fr.g.net.3": "Redirige dos puertos TCP a este equipo ({lan}): {auth} (acceso) y {world} (juego). Usa el mismo número dentro y fuera.",
|
||||||
|
"fr.g.net.4": "No redirijas nunca el puerto de la base de datos (3307) ni el de la consola del servidor (3443).",
|
||||||
|
"fr.g.net.5": "Pulsa «Activar», reinicia el servidor y envía a tu amigo la línea de arriba («set realmlist …»). Debe ponerla en el archivo realmlist.wtf de su juego.",
|
||||||
|
"fr.g.net.6": "Si tu proveedor te da una dirección compartida («CGNAT»), no se pueden abrir puertos: usa en su lugar la red privada.",
|
||||||
|
"fr.g.routerHelp": "Guías paso a paso para muchos routers (portforward.com)",
|
||||||
|
"fr.g.ts.1": "Tú y tu amigo instaláis la aplicación gratuita Tailscale (enlace de arriba) e iniciáis sesión.",
|
||||||
|
"fr.g.ts.2": "Comparte este equipo con tu amigo: abre la página de administración de Tailscale, busca este equipo en la lista, elige «Share…» y envía el enlace a tu amigo. Él lo acepta con su propia cuenta de Tailscale.",
|
||||||
|
"fr.g.ts.3": "No hace falta configurar el router. Pulsa «Activar», reinicia el servidor y envía a tu amigo la línea de arriba («set realmlist …» con tu dirección de Tailscale).",
|
||||||
|
"fr.g.ts.4": "Tailscale debe seguir en marcha en ambos equipos mientras jugáis.",
|
||||||
|
"fr.g.ts.admin": "Abrir la página de administración de Tailscale",
|
||||||
|
"fr.g.ts.share": "Cómo funciona compartir (tailscale.com)",
|
||||||
|
|
||||||
|
// Bots at start
|
||||||
|
"comp.startTitle": "Bots al iniciar el servidor",
|
||||||
|
"comp.startAuto": "Los bots inician sesión automáticamente al arrancar el servidor",
|
||||||
|
"comp.startCount": "Cuántos inician sesión",
|
||||||
|
"comp.startSave": "Guardar",
|
||||||
|
"comp.startSaved": "Guardado. Se aplica la próxima vez que se inicie el servidor.",
|
||||||
|
"comp.startHint": "Los bots que no inician sesión quedan guardados y se pueden conectar más tarde.",
|
||||||
|
"comp.startInvalid": "Introduce un número entero de 0 a 5000.",
|
||||||
|
|
||||||
|
// Overview start bots
|
||||||
|
"overview.startBots": "Bots que inician sesión al arrancar: {n}",
|
||||||
|
"overview.startBotsOff": "Bots al arrancar: desactivado",
|
||||||
|
|
||||||
|
// Offline bots
|
||||||
|
"comp.offlineDone": "Se crearon {n} compañeros con su equipo. Iniciarán sesión cuando arranque el servidor.",
|
||||||
|
|
||||||
|
// Companions progress
|
||||||
|
"comp.progress": "{done} de {target} añadidos",
|
||||||
|
"comp.progressDone": "Se crearon los {n} compañeros. Están iniciando sesión.",
|
||||||
|
"comp.progressOffline": "Creando {n} compañeros con su equipo… esto tarda unos minutos.",
|
||||||
|
"comp.progressStalled": "Esperando a que el servidor cree más…",
|
||||||
|
|
||||||
|
// Companions control
|
||||||
|
"comp.stop": "Detener la creación",
|
||||||
|
"comp.stopped": "Detenido. Se cancelaron {n} compañeros que seguían en espera; los ya creados se quedan.",
|
||||||
|
"comp.manageTitle": "Gestionar los compañeros existentes",
|
||||||
|
"comp.offline": "Desconectar a todos",
|
||||||
|
"comp.offlineConfirm": "¿Desconectar a todos los compañeros del juego? Quedan guardados y vuelven en el próximo inicio del servidor o cuando los añadas de nuevo.",
|
||||||
|
"comp.offlineDone2": "{n} compañeros desconectados. Quedan guardados.",
|
||||||
|
"comp.delete": "Eliminar a todos los compañeros…",
|
||||||
|
"comp.deleteConfirm": "¿Eliminar definitivamente los {n} compañeros? Antes se guarda un punto de recuperación. Tus propios personajes no se tocan.",
|
||||||
|
"comp.deleteDone": "Se eliminaron todos los compañeros. Antes se guardó un punto de recuperación.",
|
||||||
|
"err.companion_command_unsupported.title": "Esta versión del servidor aún no puede hacerlo",
|
||||||
|
"err.companion_command_unsupported.message": "El módulo de bots de esta versión del servidor no tiene ese comando. Actualiza el servidor o reinícialo para detener lo que esté en marcha.",
|
||||||
|
|
||||||
|
// Despawn some
|
||||||
|
"comp.despawnSome": "Retirar {n} bots",
|
||||||
|
"comp.despawnCount": "Cuántos desconectar",
|
||||||
|
"comp.despawnHint": "Alivia la carga al instante: cada bot conectado cuesta tiempo de servidor. Quedan guardados y vuelven en el próximo inicio si el inicio de sesión automático está activado.",
|
||||||
|
"comp.despawnSomeDone": "{n} compañeros desconectados. Quedan guardados.",
|
||||||
};
|
};
|
||||||
|
|
||||||
export default es;
|
export default es;
|
||||||
@@ -174,7 +174,7 @@ const fr: Partial<Record<keyof typeof en, string>> = {
|
|||||||
"comp.addPlain": "Ajouter des compagnons",
|
"comp.addPlain": "Ajouter des compagnons",
|
||||||
"comp.stoppedHint": "Le serveur est arrêté : ils seront créés au prochain démarrage.",
|
"comp.stoppedHint": "Le serveur est arrêté : ils seront créés au prochain démarrage.",
|
||||||
"comp.spawned": "Création de {n} compagnons. Ils apparaissent progressivement dans les prochaines minutes.",
|
"comp.spawned": "Création de {n} compagnons. Ils apparaissent progressivement dans les prochaines minutes.",
|
||||||
"comp.saved": "Enregistré. {n} compagnons se connecteront au démarrage du serveur.",
|
"comp.saved": "Enregistré. {n} compagnons seront créés au démarrage du serveur.",
|
||||||
|
|
||||||
// Client
|
// Client
|
||||||
"client.title": "Client du jeu",
|
"client.title": "Client du jeu",
|
||||||
@@ -304,7 +304,7 @@ const fr: Partial<Record<keyof typeof en, string>> = {
|
|||||||
"fr.publicAddr": "Votre adresse publique :",
|
"fr.publicAddr": "Votre adresse publique :",
|
||||||
"fr.noRouter": " · votre routeur ne peut pas être configuré automatiquement ; redirigez les deux ports du jeu à la main",
|
"fr.noRouter": " · votre routeur ne peut pas être configuré automatiquement ; redirigez les deux ports du jeu à la main",
|
||||||
"fr.noInternet": "Impossible d’accéder à internet pour trouver votre adresse.",
|
"fr.noInternet": "Impossible d’accéder à internet pour trouver votre adresse.",
|
||||||
"fr.tsMissing": "Tailscale n’est pas installé. Installez l’application gratuite depuis tailscale.com/download, connectez-vous, puis revenez.",
|
"fr.tsMissing": "Tailscale n’est pas installé. Installez l’application gratuite, connectez-vous, puis revenez.",
|
||||||
"fr.tsOff": "Tailscale est installé mais non connecté. Connectez-vous d’abord.",
|
"fr.tsOff": "Tailscale est installé mais non connecté. Connectez-vous d’abord.",
|
||||||
"fr.privateAddr": "Votre adresse privée :",
|
"fr.privateAddr": "Votre adresse privée :",
|
||||||
"fr.checkFirst": "Vérifiez d’abord votre connexion",
|
"fr.checkFirst": "Vérifiez d’abord votre connexion",
|
||||||
@@ -497,6 +497,77 @@ const fr: Partial<Record<keyof typeof en, string>> = {
|
|||||||
"scan.label.companions": "Compagnons CoA (bots)",
|
"scan.label.companions": "Compagnons CoA (bots)",
|
||||||
"scan.label.client": "Client du jeu",
|
"scan.label.client": "Client du jeu",
|
||||||
"placeholder.soon": "Cette section sera développée dans une prochaine version.",
|
"placeholder.soon": "Cette section sera développée dans une prochaine version.",
|
||||||
|
|
||||||
|
// Tick rate
|
||||||
|
"overview.tick": "Vitesse du monde",
|
||||||
|
"overview.tickUnit": "ticks/s",
|
||||||
|
"overview.tickGood": "Fluide",
|
||||||
|
"overview.tickBusy": "Chargé",
|
||||||
|
"overview.tickLag": "Saccadé",
|
||||||
|
"overview.tickDetail": "en moyenne {mean} ms par tick · 95 % sous {p95} ms · pic {max} ms",
|
||||||
|
"overview.tickHint": "La vitesse du serveur de monde. Au-dessus de 20 ticks par seconde le jeu est fluide, sous 10 il saccade.",
|
||||||
|
|
||||||
|
// Companions start
|
||||||
|
"err.companion_templates_missing.title": "Les compagnons n’ont encore rien à copier",
|
||||||
|
"err.companion_templates_missing.message": "Les nouveaux compagnons sont copiés à partir de personnages de niveau 80 de chaque classe. Créez un personnage de niveau 80 par classe sur un compte quelconque, hors le compte de la console, puis réessayez.",
|
||||||
|
|
||||||
|
// Friends guides
|
||||||
|
"fr.tsDownload": "Télécharger Tailscale (gratuit)",
|
||||||
|
"fr.guide": "Comment le configurer",
|
||||||
|
"fr.g.net.1": "Appuyez sur « Vérifier ma connexion » : le Manager trouve votre adresse publique et essaie d’ouvrir lui-même les ports de votre routeur.",
|
||||||
|
"fr.g.net.2": "Si cela échoue, ouvrez la page de configuration de votre routeur (souvent 192.168.0.1 ou 192.168.1.1) et cherchez « Redirection de ports » (aussi appelée « Serveur virtuel » ou « NAT »).",
|
||||||
|
"fr.g.net.3": "Redirigez deux ports TCP vers cet ordinateur ({lan}) : {auth} (connexion) et {world} (jeu). Utilisez le même numéro à l’intérieur et à l’extérieur.",
|
||||||
|
"fr.g.net.4": "Ne redirigez jamais le port de la base de données (3307) ni celui de la console du serveur (3443).",
|
||||||
|
"fr.g.net.5": "Appuyez sur « Activer », redémarrez le serveur et envoyez à votre ami la ligne ci-dessus (« set realmlist … »). Il la place dans le fichier realmlist.wtf de son jeu.",
|
||||||
|
"fr.g.net.6": "Si votre fournisseur vous attribue une adresse partagée (« CGNAT »), il est impossible d’ouvrir les ports : utilisez plutôt le réseau privé.",
|
||||||
|
"fr.g.routerHelp": "Guides pas à pas pour de nombreux routeurs (portforward.com)",
|
||||||
|
"fr.g.ts.1": "Vous et votre ami installez l’application gratuite Tailscale (lien ci-dessus) et vous vous connectez.",
|
||||||
|
"fr.g.ts.2": "Partagez cet ordinateur avec votre ami : ouvrez la page d’administration de Tailscale, trouvez cet ordinateur dans la liste, choisissez « Share… » et envoyez le lien à votre ami. Il l’accepte avec son propre compte Tailscale.",
|
||||||
|
"fr.g.ts.3": "Aucun réglage du routeur n’est nécessaire. Appuyez sur « Activer », redémarrez le serveur et envoyez à votre ami la ligne ci-dessus (« set realmlist … » avec votre adresse Tailscale).",
|
||||||
|
"fr.g.ts.4": "Tailscale doit rester lancé chez vous deux pendant que vous jouez.",
|
||||||
|
"fr.g.ts.admin": "Ouvrir la page d’administration de Tailscale",
|
||||||
|
"fr.g.ts.share": "Comment fonctionne le partage (tailscale.com)",
|
||||||
|
|
||||||
|
// Bots at start
|
||||||
|
"comp.startTitle": "Bots au démarrage du serveur",
|
||||||
|
"comp.startAuto": "Les bots se connectent automatiquement au démarrage du serveur",
|
||||||
|
"comp.startCount": "Combien se connectent",
|
||||||
|
"comp.startSave": "Enregistrer",
|
||||||
|
"comp.startSaved": "Enregistré. S’applique au prochain démarrage du serveur.",
|
||||||
|
"comp.startHint": "Les bots qui ne se connectent pas restent enregistrés et peuvent être mis en ligne plus tard.",
|
||||||
|
"comp.startInvalid": "Saisissez un nombre entier de 0 à 5000.",
|
||||||
|
|
||||||
|
// Overview start bots
|
||||||
|
"overview.startBots": "Bots connectés au démarrage : {n}",
|
||||||
|
"overview.startBotsOff": "Bots connectés au démarrage : aucun",
|
||||||
|
|
||||||
|
// Offline bots
|
||||||
|
"comp.offlineDone": "{n} compagnons créés avec leur équipement. Ils se connecteront au démarrage du serveur.",
|
||||||
|
|
||||||
|
// Companions progress
|
||||||
|
"comp.progress": "{done} sur {target} ajoutés",
|
||||||
|
"comp.progressDone": "Les {n} compagnons sont créés. Ils se connectent maintenant.",
|
||||||
|
"comp.progressOffline": "Création de {n} compagnons avec leur équipement… cela prend quelques minutes.",
|
||||||
|
"comp.progressStalled": "En attente de la création des suivants par le serveur…",
|
||||||
|
|
||||||
|
// Companions control
|
||||||
|
"comp.stop": "Arrêter la création",
|
||||||
|
"comp.stopped": "Arrêté. {n} compagnons encore en attente sont annulés ; ceux déjà créés restent.",
|
||||||
|
"comp.manageTitle": "Gérer les compagnons existants",
|
||||||
|
"comp.offline": "Tout mettre hors ligne",
|
||||||
|
"comp.offlineConfirm": "Déconnecter tous les compagnons du jeu ? Ils restent enregistrés et reviennent au prochain démarrage du serveur ou quand vous les ajoutez de nouveau.",
|
||||||
|
"comp.offlineDone2": "{n} compagnons mis hors ligne. Ils restent enregistrés.",
|
||||||
|
"comp.delete": "Supprimer tous les compagnons…",
|
||||||
|
"comp.deleteConfirm": "Supprimer définitivement les {n} compagnons ? Un point de restauration est d’abord enregistré. Vos propres personnages ne sont pas touchés.",
|
||||||
|
"comp.deleteDone": "Tous les compagnons ont été supprimés. Un point de restauration a été enregistré d’abord.",
|
||||||
|
"err.companion_command_unsupported.title": "Cette version du serveur ne sait pas encore le faire",
|
||||||
|
"err.companion_command_unsupported.message": "Le module de bots de cette version du serveur n’a pas cette commande. Mettez le serveur à jour ou redémarrez-le pour arrêter ce qui est en cours.",
|
||||||
|
|
||||||
|
// Despawn some
|
||||||
|
"comp.despawnSome": "Retirer {n} bots",
|
||||||
|
"comp.despawnCount": "Combien déconnecter",
|
||||||
|
"comp.despawnHint": "Allège aussitôt la charge : chaque bot en ligne coûte du temps serveur. Ils restent enregistrés et reviennent au prochain démarrage si la connexion automatique est activée.",
|
||||||
|
"comp.despawnSomeDone": "{n} compagnons déconnectés. Ils restent enregistrés.",
|
||||||
};
|
};
|
||||||
|
|
||||||
export default fr;
|
export default fr;
|
||||||
@@ -174,7 +174,7 @@ const ru: Partial<Record<keyof typeof en, string>> = {
|
|||||||
"comp.addPlain": "Добавить компаньонов",
|
"comp.addPlain": "Добавить компаньонов",
|
||||||
"comp.stoppedHint": "Сервер остановлен: компаньоны будут созданы при следующем запуске.",
|
"comp.stoppedHint": "Сервер остановлен: компаньоны будут созданы при следующем запуске.",
|
||||||
"comp.spawned": "Создаю компаньонов: {n}. Они появятся постепенно в течение нескольких минут.",
|
"comp.spawned": "Создаю компаньонов: {n}. Они появятся постепенно в течение нескольких минут.",
|
||||||
"comp.saved": "Сохранено. Компаньоны ({n}) войдут в игру при запуске сервера.",
|
"comp.saved": "Сохранено. Компаньоны ({n}) будут созданы при запуске сервера.",
|
||||||
|
|
||||||
// Client
|
// Client
|
||||||
"client.title": "Клиент игры",
|
"client.title": "Клиент игры",
|
||||||
@@ -304,7 +304,7 @@ const ru: Partial<Record<keyof typeof en, string>> = {
|
|||||||
"fr.publicAddr": "Ваш публичный адрес:",
|
"fr.publicAddr": "Ваш публичный адрес:",
|
||||||
"fr.noRouter": " · роутер нельзя настроить автоматически; пробросьте два игровых порта вручную",
|
"fr.noRouter": " · роутер нельзя настроить автоматически; пробросьте два игровых порта вручную",
|
||||||
"fr.noInternet": "Не удалось выйти в интернет, чтобы определить ваш адрес.",
|
"fr.noInternet": "Не удалось выйти в интернет, чтобы определить ваш адрес.",
|
||||||
"fr.tsMissing": "Tailscale не установлен. Установите бесплатное приложение с tailscale.com/download, войдите в него и вернитесь сюда.",
|
"fr.tsMissing": "Tailscale не установлен. Установите бесплатное приложение, войдите в него и вернитесь сюда.",
|
||||||
"fr.tsOff": "Tailscale установлен, но не подключён. Сначала войдите в него.",
|
"fr.tsOff": "Tailscale установлен, но не подключён. Сначала войдите в него.",
|
||||||
"fr.privateAddr": "Ваш частный адрес:",
|
"fr.privateAddr": "Ваш частный адрес:",
|
||||||
"fr.checkFirst": "Сначала проверьте подключение",
|
"fr.checkFirst": "Сначала проверьте подключение",
|
||||||
@@ -497,6 +497,77 @@ const ru: Partial<Record<keyof typeof en, string>> = {
|
|||||||
"scan.label.companions": "Компаньоны CoA (боты)",
|
"scan.label.companions": "Компаньоны CoA (боты)",
|
||||||
"scan.label.client": "Клиент игры",
|
"scan.label.client": "Клиент игры",
|
||||||
"placeholder.soon": "Этот раздел появится в одном из следующих выпусков.",
|
"placeholder.soon": "Этот раздел появится в одном из следующих выпусков.",
|
||||||
|
|
||||||
|
// Tick rate
|
||||||
|
"overview.tick": "Скорость мира",
|
||||||
|
"overview.tickUnit": "тиков/с",
|
||||||
|
"overview.tickGood": "Плавно",
|
||||||
|
"overview.tickBusy": "Нагружен",
|
||||||
|
"overview.tickLag": "Лагает",
|
||||||
|
"overview.tickDetail": "в среднем {mean} мс на тик · 95% быстрее {p95} мс · пик {max} мс",
|
||||||
|
"overview.tickHint": "Как быстро работает игровой сервер. Выше 20 тиков в секунду игра идёт плавно, ниже 10 — лагает.",
|
||||||
|
|
||||||
|
// Companions start
|
||||||
|
"err.companion_templates_missing.title": "Пока не из чего создавать компаньонов",
|
||||||
|
"err.companion_templates_missing.message": "Новые компаньоны копируются с персонажей 80 уровня каждого класса. Создайте по одному персонажу 80 уровня на каждый класс на любой учётной записи, кроме консольной, и повторите попытку.",
|
||||||
|
|
||||||
|
// Friends guides
|
||||||
|
"fr.tsDownload": "Скачать Tailscale (бесплатно)",
|
||||||
|
"fr.guide": "Как это настроить",
|
||||||
|
"fr.g.net.1": "Нажмите «Проверить моё подключение»: менеджер определит ваш публичный адрес и сам попробует открыть порты на роутере.",
|
||||||
|
"fr.g.net.2": "Если не получилось, откройте страницу настроек роутера (часто 192.168.0.1 или 192.168.1.1) и найдите «Проброс портов» (также «Виртуальный сервер» или «NAT»).",
|
||||||
|
"fr.g.net.3": "Пробросьте два TCP-порта на этот компьютер ({lan}): {auth} (вход) и {world} (игра). Внутренний и внешний номер порта должны совпадать.",
|
||||||
|
"fr.g.net.4": "Никогда не пробрасывайте порт базы данных (3307) и порт консоли сервера (3443).",
|
||||||
|
"fr.g.net.5": "Нажмите «Включить», перезапустите сервер и отправьте другу строку выше («set realmlist …»). Он вписывает её в файл realmlist.wtf своей игры.",
|
||||||
|
"fr.g.net.6": "Если провайдер выдаёт вам общий адрес («CGNAT»), открыть порты невозможно вообще: используйте частную сеть.",
|
||||||
|
"fr.g.routerHelp": "Пошаговые инструкции для многих роутеров (portforward.com)",
|
||||||
|
"fr.g.ts.1": "Вы и ваш друг устанавливаете бесплатное приложение Tailscale (ссылка выше) и входите в аккаунт.",
|
||||||
|
"fr.g.ts.2": "Поделитесь этим компьютером с другом: откройте страницу администрирования Tailscale, найдите этот компьютер в списке, выберите «Share…» и отправьте другу ссылку. Он принимает её в своём аккаунте Tailscale.",
|
||||||
|
"fr.g.ts.3": "Настраивать роутер не нужно. Нажмите «Включить», перезапустите сервер и отправьте другу строку выше («set realmlist …» с вашим адресом Tailscale).",
|
||||||
|
"fr.g.ts.4": "Пока вы играете, Tailscale должен быть запущен у обоих.",
|
||||||
|
"fr.g.ts.admin": "Открыть страницу администрирования Tailscale",
|
||||||
|
"fr.g.ts.share": "Как работает предоставление доступа (tailscale.com)",
|
||||||
|
|
||||||
|
// Bots at start
|
||||||
|
"comp.startTitle": "Боты при запуске сервера",
|
||||||
|
"comp.startAuto": "Боты входят в игру автоматически при запуске сервера",
|
||||||
|
"comp.startCount": "Сколько входит",
|
||||||
|
"comp.startSave": "Сохранить",
|
||||||
|
"comp.startSaved": "Сохранено. Вступит в силу при следующем запуске сервера.",
|
||||||
|
"comp.startHint": "Боты, которые не входят, остаются сохранёнными, их можно вывести в сеть позже.",
|
||||||
|
"comp.startInvalid": "Введите целое число от 0 до 5000.",
|
||||||
|
|
||||||
|
// Overview start bots
|
||||||
|
"overview.startBots": "Боты входят при запуске: {n}",
|
||||||
|
"overview.startBotsOff": "Боты при запуске не входят",
|
||||||
|
|
||||||
|
// Offline bots
|
||||||
|
"comp.offlineDone": "Создано компаньонов: {n}, сразу со снаряжением. Они войдут в игру при запуске сервера.",
|
||||||
|
|
||||||
|
// Companions progress
|
||||||
|
"comp.progress": "Добавлено {done} из {target}",
|
||||||
|
"comp.progressDone": "Все компаньоны ({n}) созданы. Они входят в игру.",
|
||||||
|
"comp.progressOffline": "Создаю компаньонов ({n}) со снаряжением… это займёт несколько минут.",
|
||||||
|
"comp.progressStalled": "Жду, пока сервер создаст остальных…",
|
||||||
|
|
||||||
|
// Companions control
|
||||||
|
"comp.stop": "Остановить создание",
|
||||||
|
"comp.stopped": "Остановлено. Ожидавшие очереди компаньоны ({n}) отменены; уже созданные остаются.",
|
||||||
|
"comp.manageTitle": "Управление существующими компаньонами",
|
||||||
|
"comp.offline": "Вывести всех из игры",
|
||||||
|
"comp.offlineConfirm": "Вывести всех компаньонов из игры? Они остаются сохранёнными и вернутся при следующем запуске сервера или когда вы их снова добавите.",
|
||||||
|
"comp.offlineDone2": "Из игры выведено компаньонов: {n}. Они остаются сохранёнными.",
|
||||||
|
"comp.delete": "Удалить всех компаньонов…",
|
||||||
|
"comp.deleteConfirm": "Удалить всех компаньонов ({n}) навсегда? Сначала сохраняется точка восстановления. Ваши собственные персонажи не затрагиваются.",
|
||||||
|
"comp.deleteDone": "Все компаньоны удалены. Сначала была сохранена точка восстановления.",
|
||||||
|
"err.companion_command_unsupported.title": "Эта версия сервера пока этого не умеет",
|
||||||
|
"err.companion_command_unsupported.message": "В модуле ботов этой сборки сервера нет такой команды. Обновите сервер или перезапустите его, чтобы остановить текущую работу.",
|
||||||
|
|
||||||
|
// Despawn some
|
||||||
|
"comp.despawnSome": "Убрать ботов: {n}",
|
||||||
|
"comp.despawnCount": "Сколько убрать",
|
||||||
|
"comp.despawnHint": "Сразу снижает нагрузку: каждый бот в сети отнимает время сервера. Они остаются сохранёнными и вернутся при следующем запуске, если включён автоматический вход.",
|
||||||
|
"comp.despawnSomeDone": "Убрано из игры компаньонов: {n}. Они остаются сохранёнными.",
|
||||||
};
|
};
|
||||||
|
|
||||||
export default ru;
|
export default ru;
|
||||||
@@ -37,6 +37,46 @@ body {
|
|||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Dark, slim scroll bars that match the interface (the default light ones stand out too much). */
|
||||||
|
html {
|
||||||
|
color-scheme: dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
scrollbar-width: thin;
|
||||||
|
scrollbar-color: rgb(255 255 255 / 0.16) transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-webkit-scrollbar {
|
||||||
|
width: 10px;
|
||||||
|
height: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-webkit-scrollbar-track {
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-webkit-scrollbar-thumb {
|
||||||
|
background: rgb(255 255 255 / 0.14);
|
||||||
|
border-radius: 999px;
|
||||||
|
border: 2px solid transparent;
|
||||||
|
background-clip: content-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-webkit-scrollbar-thumb:hover {
|
||||||
|
background: rgb(201 162 74 / 0.55);
|
||||||
|
background-clip: content-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-webkit-scrollbar-thumb:active {
|
||||||
|
background: rgb(201 162 74 / 0.8);
|
||||||
|
background-clip: content-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-webkit-scrollbar-corner {
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
::selection {
|
::selection {
|
||||||
background: rgb(201 162 74 / 0.35);
|
background: rgb(201 162 74 / 0.35);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -204,6 +204,15 @@ export interface Population {
|
|||||||
bots_total: number;
|
bots_total: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface Performance {
|
||||||
|
mean_ms: number;
|
||||||
|
median_ms: number;
|
||||||
|
p95_ms: number;
|
||||||
|
p99_ms: number;
|
||||||
|
max_ms: number;
|
||||||
|
ticks_per_sec: number;
|
||||||
|
}
|
||||||
|
|
||||||
export interface CompanionSizes {
|
export interface CompanionSizes {
|
||||||
hardware: { cores: number; ram_gb: number; free_ram_gb: number };
|
hardware: { cores: number; ram_gb: number; free_ram_gb: number };
|
||||||
sizes: { id: string; title: string; bots: number; warning: string | null }[];
|
sizes: { id: string; title: string; bots: number; warning: string | null }[];
|
||||||
@@ -227,6 +236,8 @@ export interface FriendsStatus {
|
|||||||
firewall: { auth: boolean; world: boolean };
|
firewall: { auth: boolean; world: boolean };
|
||||||
tailscale: { installed: boolean; ip: string | null; connected: boolean };
|
tailscale: { installed: boolean; ip: string | null; connected: boolean };
|
||||||
server_running: boolean;
|
server_running: boolean;
|
||||||
|
auth_port: number;
|
||||||
|
world_port: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface InternetCheck {
|
export interface InternetCheck {
|
||||||
@@ -278,8 +289,14 @@ export const api = {
|
|||||||
invoke<{ txn: UpdateTxn }>("apply_update", { id, source: source ?? null, resolutions }),
|
invoke<{ txn: UpdateTxn }>("apply_update", { id, source: source ?? null, resolutions }),
|
||||||
rollbackUpdate: (id: string, txn: string) => invoke<UpdateTxn>("rollback_update", { id, txn }),
|
rollbackUpdate: (id: string, txn: string) => invoke<UpdateTxn>("rollback_update", { id, txn }),
|
||||||
population: (id: string) => invoke<Population | null>("get_population", { id }),
|
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 }),
|
||||||
|
openLink: (url: string) => invoke<void>("open_link", { url }),
|
||||||
|
performance: (id: string) => invoke<Performance | null>("get_performance", { id }),
|
||||||
companionSizes: () => invoke<CompanionSizes>("companion_sizes"),
|
companionSizes: () => invoke<CompanionSizes>("companion_sizes"),
|
||||||
addCompanions: (id: string, count: number) => invoke<{ spawned: string | null }>("add_companions", { id, count }),
|
addCompanions: (id: string, count: number) => invoke<{ spawned: string | null; created: number | null; baseline: number | null }>("add_companions", { id, count }),
|
||||||
clientInfo: (id: string) => invoke<ClientInfo | null>("client_info", { id }),
|
clientInfo: (id: string) => invoke<ClientInfo | null>("client_info", { id }),
|
||||||
setClient: (id: string, path: string) => invoke<ClientInfo>("set_client", { id, path }),
|
setClient: (id: string, path: string) => invoke<ClientInfo>("set_client", { id, path }),
|
||||||
setRealmlist: (id: string, host: string) => invoke<string[]>("client_realmlist", { id, host }),
|
setRealmlist: (id: string, host: string) => invoke<string[]>("client_realmlist", { id, host }),
|
||||||
|
|||||||
@@ -16,6 +16,88 @@ export function CompanionsCard({ serverId }: { serverId: string }) {
|
|||||||
const [busy, setBusy] = useState(false);
|
const [busy, setBusy] = useState(false);
|
||||||
const [error, setError] = useState<UiError | null>(null);
|
const [error, setError] = useState<UiError | null>(null);
|
||||||
const [note, setNote] = useState<string | 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 [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");
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
void api
|
||||||
|
.settings(serverId, "bots")
|
||||||
|
.then((v) => {
|
||||||
|
const on = v.settings.find((s) => s.key === "CoaBots.AutoLoginOnStartup");
|
||||||
|
const max = v.settings.find((s) => s.key === "CoaBots.AutoLogin.MaxCount");
|
||||||
|
if (on) setAutoOn(on.value === true);
|
||||||
|
if (max) setAutoMax(String(max.value));
|
||||||
|
})
|
||||||
|
.catch(() => {});
|
||||||
|
}, [serverId]);
|
||||||
|
|
||||||
|
const maxNum = Number(autoMax);
|
||||||
|
const maxValid = autoMax.trim() !== "" && Number.isInteger(maxNum) && maxNum >= 0 && maxNum <= 5000;
|
||||||
|
|
||||||
|
async function act(fn: () => Promise<string>) {
|
||||||
|
setBusy(true);
|
||||||
|
setError(null);
|
||||||
|
try {
|
||||||
|
setNote(await fn());
|
||||||
|
} catch (e) {
|
||||||
|
setError(asUiError(e));
|
||||||
|
} finally {
|
||||||
|
setBusy(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const stopCreating = () =>
|
||||||
|
act(async () => {
|
||||||
|
const r = await api.stopSpawning(serverId);
|
||||||
|
setJob(null);
|
||||||
|
return t("comp.stopped", { n: r.count });
|
||||||
|
});
|
||||||
|
|
||||||
|
const takeOffline = () => {
|
||||||
|
if (!window.confirm(t("comp.offlineConfirm"))) return;
|
||||||
|
void act(async () => {
|
||||||
|
const r = await api.takeOffline(serverId);
|
||||||
|
setJob(null);
|
||||||
|
return t("comp.offlineDone2", { n: r.count });
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
const dn = Number(despawnN);
|
||||||
|
const dnValid = Number.isInteger(dn) && dn >= 1 && dn <= 5000;
|
||||||
|
const despawnSome = () =>
|
||||||
|
act(async () => {
|
||||||
|
const r = await api.despawnSome(serverId, dn);
|
||||||
|
return t("comp.despawnSomeDone", { n: r.count });
|
||||||
|
});
|
||||||
|
|
||||||
|
const deleteAll = () => {
|
||||||
|
if (!window.confirm(t("comp.deleteConfirm", { n: pop?.bots_total ?? 0 }))) return;
|
||||||
|
void act(async () => {
|
||||||
|
await api.deleteAllCompanions(serverId);
|
||||||
|
setJob(null);
|
||||||
|
return t("comp.deleteDone");
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
async function saveStart() {
|
||||||
|
setStartBusy(true);
|
||||||
|
setError(null);
|
||||||
|
setStartNote(null);
|
||||||
|
try {
|
||||||
|
await api.save(serverId, "bots", { "CoaBots.AutoLoginOnStartup": autoOn, "CoaBots.AutoLogin.MaxCount": maxNum });
|
||||||
|
setStartNote(t("comp.startSaved"));
|
||||||
|
} catch (e) {
|
||||||
|
setError(asUiError(e));
|
||||||
|
} finally {
|
||||||
|
setStartBusy(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
void api.companionSizes().then(setSizes);
|
void api.companionSizes().then(setSizes);
|
||||||
@@ -28,12 +110,23 @@ export function CompanionsCard({ serverId }: { serverId: string }) {
|
|||||||
setPop(up ? await api.population(serverId).catch(() => null) : null);
|
setPop(up ? await api.population(serverId).catch(() => null) : null);
|
||||||
};
|
};
|
||||||
void poll();
|
void poll();
|
||||||
const t = setInterval(poll, 4000);
|
// Faster while companions are being created, so the progress bar moves.
|
||||||
|
const t = setInterval(poll, job ? 1500 : 4000);
|
||||||
return () => {
|
return () => {
|
||||||
alive = false;
|
alive = false;
|
||||||
clearInterval(t);
|
clearInterval(t);
|
||||||
};
|
};
|
||||||
}, [serverId]);
|
}, [serverId, 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;
|
||||||
|
// 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.
|
// 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 }) => {
|
const warningFor = (size?: { bots: number; warning: string | null }) => {
|
||||||
@@ -52,7 +145,8 @@ export function CompanionsCard({ serverId }: { serverId: string }) {
|
|||||||
setNote(null);
|
setNote(null);
|
||||||
try {
|
try {
|
||||||
const r = await api.addCompanions(serverId, count);
|
const r = await api.addCompanions(serverId, count);
|
||||||
setNote(r.spawned ? t("comp.spawned", { n: count }) : t("comp.saved", { n: 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) {
|
} catch (e) {
|
||||||
setError(asUiError(e));
|
setError(asUiError(e));
|
||||||
} finally {
|
} finally {
|
||||||
@@ -94,13 +188,91 @@ export function CompanionsCard({ serverId }: { serverId: string }) {
|
|||||||
{sizes && <p className="mt-2 text-xs text-muted">{t("comp.hardware", { cores: sizes.hardware.cores, ram: sizes.hardware.ram_gb.toFixed(0) })}</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">
|
<div className="mt-4 flex items-center gap-3">
|
||||||
<Button variant="primary" disabled={busy || !valid} onClick={() => void add()}>
|
<Button variant="primary" disabled={busy || !valid || job !== null} onClick={() => void add()}>
|
||||||
{busy && <Loader2 className="h-4 w-4 animate-spin" aria-hidden />}
|
{busy && <Loader2 className="h-4 w-4 animate-spin" aria-hidden />}
|
||||||
{valid ? t("comp.add", { n: count }) : t("comp.addPlain")}
|
{valid ? t("comp.add", { n: count }) : t("comp.addPlain")}
|
||||||
</Button>
|
</Button>
|
||||||
{!running && <span className="text-xs text-muted">{t("comp.stoppedHint")}</span>}
|
{!running && <span className="text-xs text-muted">{t("comp.stoppedHint")}</span>}
|
||||||
</div>
|
</div>
|
||||||
{note && <p className="mt-3 text-sm text-ok" role="status">{note}</p>}
|
{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" />
|
||||||
|
</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")}
|
||||||
|
</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>
|
||||||
|
<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"
|
||||||
|
/>
|
||||||
|
<Button size="sm" variant="secondary" disabled={busy || !dnValid} onClick={() => void despawnSome()}>
|
||||||
|
{t("comp.despawnSome", { n: dnValid ? dn : "…" })}
|
||||||
|
</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")}
|
||||||
|
</Button>
|
||||||
|
<Button size="sm" variant="ghost" className="text-bad hover:text-bad" disabled={busy} onClick={deleteAll}>
|
||||||
|
{t("comp.delete")}
|
||||||
|
</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>
|
||||||
|
</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>}
|
||||||
|
</div>
|
||||||
{error && <p className="mt-3 text-sm text-bad" role="alert">{error.human.code === "unknown" ? error.technical : human(error.human).message}</p>}
|
{error && <p className="mt-3 text-sm text-bad" role="alert">{error.human.code === "unknown" ? error.technical : human(error.human).message}</p>}
|
||||||
</Card>
|
</Card>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -22,6 +22,31 @@ const MODES: { id: FriendsMode; title: Key; text: Key }[] = [
|
|||||||
{ id: "private", title: "fr.mode.private.title", text: "fr.mode.private.text" },
|
{ id: "private", title: "fr.mode.private.title", text: "fr.mode.private.text" },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/** A link to one of the few help pages the Manager may open; it goes through the backend, which checks the address. */
|
||||||
|
function ExtLink({ url, children }: { url: string; children: React.ReactNode }) {
|
||||||
|
return (
|
||||||
|
<button type="button" onClick={() => void api.openLink(url).catch(() => {})} className="cursor-pointer text-left text-gold underline underline-offset-2 hover:text-gold-strong">
|
||||||
|
{children}
|
||||||
|
</button>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Collapsible step-by-step help inside a mode card. */
|
||||||
|
function Guide({ steps, links }: { steps: string[]; links?: React.ReactNode }) {
|
||||||
|
const t = useT();
|
||||||
|
return (
|
||||||
|
<details className="mt-3 text-sm">
|
||||||
|
<summary className="cursor-pointer text-muted hover:text-ink">{t("fr.guide")}</summary>
|
||||||
|
<ol className="mt-2 list-decimal space-y-1.5 pl-5 text-muted">
|
||||||
|
{steps.map((s, i) => (
|
||||||
|
<li key={i}>{s}</li>
|
||||||
|
))}
|
||||||
|
</ol>
|
||||||
|
{links && <div className="mt-2 flex flex-col items-start gap-1">{links}</div>}
|
||||||
|
</details>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/** A ready-to-paste realmlist line for the friend, shown as soon as the address is known. */
|
/** A ready-to-paste realmlist line for the friend, shown as soon as the address is known. */
|
||||||
function RealmlistLine({ host }: { host: string }) {
|
function RealmlistLine({ host }: { host: string }) {
|
||||||
const t = useT();
|
const t = useT();
|
||||||
@@ -151,6 +176,17 @@ export function FriendsPage({ serverId }: { serverId: string }) {
|
|||||||
<p className="mt-2">{t("fr.publicAddr")} <b className="selectable">{net.public_ip}</b>{!net.router_found && <span className="text-muted">{t("fr.noRouter")}</span>}</p>
|
<p className="mt-2">{t("fr.publicAddr")} <b className="selectable">{net.public_ip}</b>{!net.router_found && <span className="text-muted">{t("fr.noRouter")}</span>}</p>
|
||||||
)}
|
)}
|
||||||
{net?.public_ip && net.reachability !== "cgnat" && cur.mode !== m.id && <RealmlistLine host={net.public_ip} />}
|
{net?.public_ip && net.reachability !== "cgnat" && cur.mode !== m.id && <RealmlistLine host={net.public_ip} />}
|
||||||
|
<Guide
|
||||||
|
steps={[
|
||||||
|
t("fr.g.net.1"),
|
||||||
|
t("fr.g.net.2"),
|
||||||
|
t("fr.g.net.3", { lan: st.lan_ip ?? "?", auth: st.auth_port, world: st.world_port }),
|
||||||
|
t("fr.g.net.4"),
|
||||||
|
t("fr.g.net.5"),
|
||||||
|
t("fr.g.net.6"),
|
||||||
|
]}
|
||||||
|
links={<ExtLink url="https://portforward.com/router.htm">{t("fr.g.routerHelp")}</ExtLink>}
|
||||||
|
/>
|
||||||
{net && !net.public_ip && <p className="mt-2 text-warn">{t("fr.noInternet")}</p>}
|
{net && !net.public_ip && <p className="mt-2 text-warn">{t("fr.noInternet")}</p>}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
@@ -162,7 +198,24 @@ export function FriendsPage({ serverId }: { serverId: string }) {
|
|||||||
{st.tailscale.connected && <>{t("fr.privateAddr")} <b className="selectable">{st.tailscale.ip}</b></>}
|
{st.tailscale.connected && <>{t("fr.privateAddr")} <b className="selectable">{st.tailscale.ip}</b></>}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
|
{m.id === "private" && !st.tailscale.installed && (
|
||||||
|
<div className="mt-2 text-sm">
|
||||||
|
<ExtLink url="https://tailscale.com/download">{t("fr.tsDownload")}</ExtLink>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
{m.id === "private" && st.tailscale.connected && st.tailscale.ip && cur.mode !== m.id && <RealmlistLine host={st.tailscale.ip} />}
|
{m.id === "private" && st.tailscale.connected && st.tailscale.ip && cur.mode !== m.id && <RealmlistLine host={st.tailscale.ip} />}
|
||||||
|
{m.id === "private" && (
|
||||||
|
<Guide
|
||||||
|
steps={[t("fr.g.ts.1"), t("fr.g.ts.2"), t("fr.g.ts.3"), t("fr.g.ts.4")]}
|
||||||
|
links={
|
||||||
|
<>
|
||||||
|
<ExtLink url="https://tailscale.com/download">{t("fr.tsDownload")}</ExtLink>
|
||||||
|
<ExtLink url="https://login.tailscale.com/admin/machines">{t("fr.g.ts.admin")}</ExtLink>
|
||||||
|
<ExtLink url="https://tailscale.com/kb/1084/sharing">{t("fr.g.ts.share")}</ExtLink>
|
||||||
|
</>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
<Button
|
<Button
|
||||||
size="sm"
|
size="sm"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { useCallback, useEffect, useRef, useState } from "react";
|
import { useCallback, useEffect, useRef, useState } from "react";
|
||||||
import { Loader2 } from "lucide-react";
|
import { Loader2 } from "lucide-react";
|
||||||
import { api, asUiError, type ClientInfo, type Human, type Population, type ServerSummary, type ServiceStatus, type StatusView } from "@/lib/api";
|
import { api, asUiError, type ClientInfo, type Human, type Performance, type Population, type ServerSummary, type ServiceStatus, type StatusView } from "@/lib/api";
|
||||||
import { cn, formatUptime } from "@/lib/utils";
|
import { cn, formatUptime } from "@/lib/utils";
|
||||||
import { useHuman, useT } from "@/i18n";
|
import { useHuman, useT } from "@/i18n";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
@@ -9,6 +9,31 @@ import { Card } from "@/components/ui/card";
|
|||||||
type Action = "starting" | "stopping" | "restarting" | null;
|
type Action = "starting" | "stopping" | "restarting" | null;
|
||||||
type Failure = { human: Human; technical: string };
|
type Failure = { human: Human; technical: string };
|
||||||
|
|
||||||
|
/** World loop speed from the server's own timing report, with a simple smooth / busy / lagging verdict. */
|
||||||
|
function TickRate({ perf }: { perf: Performance }) {
|
||||||
|
const t = useT();
|
||||||
|
const level = perf.mean_ms <= 50 ? "good" : perf.mean_ms <= 100 ? "busy" : "lag";
|
||||||
|
const tone = { good: "text-ok bg-ok/15", busy: "text-warn bg-warn/15", lag: "text-bad bg-bad/15" }[level];
|
||||||
|
const bar = { good: "bg-ok", busy: "bg-warn", lag: "bg-bad" }[level];
|
||||||
|
const fill = Math.max(4, Math.min(100, Math.round(100 - perf.mean_ms)));
|
||||||
|
return (
|
||||||
|
<div className="mt-4 rounded-md border border-line bg-black/20 p-3" title={t("overview.tickHint")}>
|
||||||
|
<div className="flex items-center justify-between text-sm">
|
||||||
|
<span className="text-muted">{t("overview.tick")}</span>
|
||||||
|
<span className={`rounded px-2 py-0.5 text-xs font-medium ${tone}`}>{t(level === "good" ? "overview.tickGood" : level === "busy" ? "overview.tickBusy" : "overview.tickLag")}</span>
|
||||||
|
</div>
|
||||||
|
<div className="mt-1 flex items-baseline gap-2">
|
||||||
|
<span className="text-3xl font-semibold tabular-nums">{Math.round(perf.ticks_per_sec)}</span>
|
||||||
|
<span className="text-sm text-muted">{t("overview.tickUnit")}</span>
|
||||||
|
</div>
|
||||||
|
<div className="mt-2 h-1.5 overflow-hidden rounded-full bg-white/10" role="meter" aria-valuemin={0} aria-valuemax={100} aria-valuenow={fill} aria-label={t("overview.tick")}>
|
||||||
|
<div className={`h-full rounded-full transition-[width] duration-500 ${bar}`} style={{ width: `${fill}%` }} />
|
||||||
|
</div>
|
||||||
|
<p className="mt-2 text-xs text-muted">{t("overview.tickDetail", { mean: perf.mean_ms, p95: perf.p95_ms, max: perf.max_ms })}</p>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
function Row({ label, s }: { label: string; s: ServiceStatus }) {
|
function Row({ label, s }: { label: string; s: ServiceStatus }) {
|
||||||
const t = useT();
|
const t = useT();
|
||||||
const running = s.state === "running";
|
const running = s.state === "running";
|
||||||
@@ -43,6 +68,19 @@ export function Overview({ server, onForget }: { server: ServerSummary; onForget
|
|||||||
const [pop, setPop] = useState<Population | null>(null);
|
const [pop, setPop] = useState<Population | null>(null);
|
||||||
const [client, setClient] = useState<ClientInfo | null>(null);
|
const [client, setClient] = useState<ClientInfo | null>(null);
|
||||||
const [playing, setPlaying] = useState(false);
|
const [playing, setPlaying] = useState(false);
|
||||||
|
const [perf, setPerf] = useState<Performance | null>(null);
|
||||||
|
const [startBots, setStartBots] = useState<number | null | undefined>(undefined);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
void api
|
||||||
|
.settings(server.id, "bots")
|
||||||
|
.then((v) => {
|
||||||
|
const on = v.settings.find((s) => s.key === "CoaBots.AutoLoginOnStartup");
|
||||||
|
const max = v.settings.find((s) => s.key === "CoaBots.AutoLogin.MaxCount");
|
||||||
|
setStartBots(on?.value === true && typeof max?.value === "number" ? max.value : null);
|
||||||
|
})
|
||||||
|
.catch(() => setStartBots(undefined));
|
||||||
|
}, [server.id]);
|
||||||
const alive = useRef(true);
|
const alive = useRef(true);
|
||||||
|
|
||||||
const poll = useCallback(async () => {
|
const poll = useCallback(async () => {
|
||||||
@@ -58,6 +96,23 @@ export function Overview({ server, onForget }: { server: ServerSummary; onForget
|
|||||||
}
|
}
|
||||||
}, [server.id]);
|
}, [server.id]);
|
||||||
|
|
||||||
|
// The tick rate comes from the server console (one short connection per reading), so it is read less often.
|
||||||
|
const worldUp = status?.observed.world.state === "running";
|
||||||
|
useEffect(() => {
|
||||||
|
if (!worldUp) {
|
||||||
|
setPerf(null);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
let live = true;
|
||||||
|
const read = () => void api.performance(server.id).then((p) => live && setPerf(p)).catch(() => {});
|
||||||
|
read();
|
||||||
|
const iv = setInterval(read, 10000);
|
||||||
|
return () => {
|
||||||
|
live = false;
|
||||||
|
clearInterval(iv);
|
||||||
|
};
|
||||||
|
}, [worldUp, server.id]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
alive.current = true;
|
alive.current = true;
|
||||||
void api.clientInfo(server.id).then(setClient).catch(() => setClient(null));
|
void api.clientInfo(server.id).then(setClient).catch(() => setClient(null));
|
||||||
@@ -170,6 +225,10 @@ export function Overview({ server, onForget }: { server: ServerSummary; onForget
|
|||||||
<dd className="mt-0.5 text-lg">{pop ? `${pop.players_online}` : "—"}{pop && pop.bots_online > 0 ? <span className="ml-2 text-sm text-muted">{t("overview.companions", { n: pop.bots_online })}</span> : null}</dd>
|
<dd className="mt-0.5 text-lg">{pop ? `${pop.players_online}` : "—"}{pop && pop.bots_online > 0 ? <span className="ml-2 text-sm text-muted">{t("overview.companions", { n: pop.bots_online })}</span> : null}</dd>
|
||||||
</div>
|
</div>
|
||||||
</dl>
|
</dl>
|
||||||
|
{startBots !== undefined && (
|
||||||
|
<p className="mt-3 text-xs text-muted">{startBots === null ? t("overview.startBotsOff") : t("overview.startBots", { n: startBots })}</p>
|
||||||
|
)}
|
||||||
|
{perf && <TickRate perf={perf} />}
|
||||||
|
|
||||||
<div className="mt-7 flex items-center gap-4">
|
<div className="mt-7 flex items-center gap-4">
|
||||||
{running ? (
|
{running ? (
|
||||||
|
|||||||
@@ -395,15 +395,18 @@ export function SettingsPage(props: { serverId: string; scope: Scope; title: str
|
|||||||
|
|
||||||
{advanced.length > 0 && (
|
{advanced.length > 0 && (
|
||||||
<div className="mt-4">
|
<div className="mt-4">
|
||||||
<button
|
{/* A tab whose settings are all advanced has nothing else to show, so its settings are listed directly. */}
|
||||||
onClick={() => setShowAdvanced((v) => !v)}
|
{basic.length > 0 && (
|
||||||
aria-expanded={showAdvanced}
|
<button
|
||||||
className="flex cursor-pointer items-center gap-1 text-sm text-muted hover:text-ink"
|
onClick={() => setShowAdvanced((v) => !v)}
|
||||||
>
|
aria-expanded={showAdvanced}
|
||||||
{showAdvanced ? <ChevronDown className="h-4 w-4" aria-hidden /> : <ChevronRight className="h-4 w-4" aria-hidden />}
|
className="flex cursor-pointer items-center gap-1 text-sm text-muted hover:text-ink"
|
||||||
{t("set.advanced", { n: advanced.length })}
|
>
|
||||||
</button>
|
{showAdvanced ? <ChevronDown className="h-4 w-4" aria-hidden /> : <ChevronRight className="h-4 w-4" aria-hidden />}
|
||||||
{showAdvanced && (
|
{t("set.advanced", { n: advanced.length })}
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
|
{(showAdvanced || basic.length === 0) && (
|
||||||
<div className="divide-y divide-line">
|
<div className="divide-y divide-line">
|
||||||
{advanced.map((s) => (
|
{advanced.map((s) => (
|
||||||
<Row
|
<Row
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import { useState } from "react";
|
|||||||
import { Archive, Bot, Gauge, Globe, Server, Settings, Terminal, Users, type LucideIcon } from "lucide-react";
|
import { Archive, Bot, Gauge, Globe, Server, Settings, Terminal, Users, type LucideIcon } from "lucide-react";
|
||||||
import { type ServerSummary } from "@/lib/api";
|
import { type ServerSummary } from "@/lib/api";
|
||||||
import { useT, type Key } from "@/i18n";
|
import { useT, type Key } from "@/i18n";
|
||||||
|
import logo from "@/assets/logo.png";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
import { Overview } from "@/screens/Overview";
|
import { Overview } from "@/screens/Overview";
|
||||||
import { Placeholder } from "@/screens/Placeholder";
|
import { Placeholder } from "@/screens/Placeholder";
|
||||||
@@ -41,7 +42,10 @@ export function Shell(props: {
|
|||||||
return (
|
return (
|
||||||
<div className="flex h-full">
|
<div className="flex h-full">
|
||||||
<nav className="flex w-60 shrink-0 flex-col border-r border-line bg-[#0b0c0e] p-3" aria-label={t("nav.main")}>
|
<nav className="flex w-60 shrink-0 flex-col border-r border-line bg-[#0b0c0e] p-3" aria-label={t("nav.main")}>
|
||||||
<div className="px-3 pb-4 pt-2 text-sm font-semibold tracking-wide text-gold">{t("app.name")}</div>
|
<div className="flex items-center gap-2 px-3 pb-4 pt-2 text-sm font-semibold tracking-wide text-gold">
|
||||||
|
<img src={logo} alt="" aria-hidden className="h-7 w-7" />
|
||||||
|
{t("app.name")}
|
||||||
|
</div>
|
||||||
<ul className="flex flex-col gap-0.5">
|
<ul className="flex flex-col gap-0.5">
|
||||||
{NAV.map(({ id, label, icon: Icon }) => (
|
{NAV.map(({ id, label, icon: Icon }) => (
|
||||||
<li key={id}>
|
<li key={id}>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { FolderSearch, Download } from "lucide-react";
|
import { FolderSearch, Download } from "lucide-react";
|
||||||
import { useT } from "@/i18n";
|
import { useT } from "@/i18n";
|
||||||
|
import logo from "@/assets/logo.png";
|
||||||
import { LanguagePicker } from "@/components/LanguagePicker";
|
import { LanguagePicker } from "@/components/LanguagePicker";
|
||||||
|
|
||||||
export function Welcome({ onImport, onInstall, onBack }: { onImport: () => void; onInstall: () => void; onBack?: () => void }) {
|
export function Welcome({ onImport, onInstall, onBack }: { onImport: () => void; onInstall: () => void; onBack?: () => void }) {
|
||||||
@@ -8,7 +9,7 @@ export function Welcome({ onImport, onInstall, onBack }: { onImport: () => void;
|
|||||||
<main className="relative flex h-full flex-col items-center justify-center px-8">
|
<main className="relative flex h-full flex-col items-center justify-center px-8">
|
||||||
<LanguagePicker className="absolute right-6 top-5" />
|
<LanguagePicker className="absolute right-6 top-5" />
|
||||||
<div className="mb-10 text-center">
|
<div className="mb-10 text-center">
|
||||||
<div className="mx-auto mb-5 h-12 w-12 rounded-full border-2 border-gold/80 bg-card-2" aria-hidden />
|
<img src={logo} alt="" aria-hidden className="mx-auto mb-5 h-24 w-24 drop-shadow-[0_6px_24px_rgb(201_162_74/0.35)]" />
|
||||||
<h1 className="text-3xl font-semibold tracking-tight">{t("welcome.title")}</h1>
|
<h1 className="text-3xl font-semibold tracking-tight">{t("welcome.title")}</h1>
|
||||||
<p className="mt-2 text-muted">{t("welcome.subtitle")}</p>
|
<p className="mt-2 text-muted">{t("welcome.subtitle")}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||