mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 03:31:08 +00:00
[Performance] Server Reload Overhaul (#4689)
* [Performance] Server Reload Overhaul * Client::SendReloadCommandMessages * Remove global buffs
This commit is contained in:
+17
-443
@@ -9728,14 +9728,6 @@ void Client::ShowDevToolsMenu()
|
||||
std::string menu_search;
|
||||
std::string menu_show;
|
||||
std::string menu_reload_one;
|
||||
std::string menu_reload_two;
|
||||
std::string menu_reload_three;
|
||||
std::string menu_reload_four;
|
||||
std::string menu_reload_five;
|
||||
std::string menu_reload_six;
|
||||
std::string menu_reload_seven;
|
||||
std::string menu_reload_eight;
|
||||
std::string menu_reload_nine;
|
||||
std::string menu_toggle;
|
||||
std::string window_toggle;
|
||||
|
||||
@@ -9760,45 +9752,7 @@ void Client::ShowDevToolsMenu()
|
||||
/**
|
||||
* Reload
|
||||
*/
|
||||
menu_reload_one += Saylink::Silent("#reload aa", "AAs");
|
||||
menu_reload_one += " | " + Saylink::Silent("#reload alternate_currencies", "Alternate Currencies");
|
||||
menu_reload_one += " | " + Saylink::Silent("#reload base_data", "Base Data");
|
||||
menu_reload_one += " | " + Saylink::Silent("#reload blocked_spells", "Blocked Spells");
|
||||
|
||||
menu_reload_two += Saylink::Silent("#reload commands", "Commands");
|
||||
menu_reload_two += " | " + Saylink::Silent("#reload content_flags", "Content Flags");
|
||||
|
||||
menu_reload_three += Saylink::Silent("#reload data_buckets_cache", "Databuckets");
|
||||
menu_reload_three += " | " + Saylink::Silent("#reload doors", "Doors");
|
||||
menu_reload_three += " | " + Saylink::Silent("#reload factions", "Factions");
|
||||
menu_reload_three += " | " + Saylink::Silent("#reload ground_spawns", "Ground Spawns");
|
||||
|
||||
menu_reload_four += Saylink::Silent("#reload logs", "Level Based Experience Modifiers");
|
||||
menu_reload_four += " | " + Saylink::Silent("#reload logs", "Log Settings");
|
||||
menu_reload_four += " | " + Saylink::Silent("#reload Loot", "Loot");
|
||||
|
||||
menu_reload_five += Saylink::Silent("#reload merchants", "Merchants");
|
||||
menu_reload_five += " | " + Saylink::Silent("#reload npc_emotes", "NPC Emotes");
|
||||
menu_reload_five += " | " + Saylink::Silent("#reload npc_spells", "NPC Spells");
|
||||
menu_reload_five += " | " + Saylink::Silent("#reload objects", "Objects");
|
||||
menu_reload_five += " | " + Saylink::Silent("#reload opcodes", "Opcodes");
|
||||
|
||||
menu_reload_six += Saylink::Silent("#reload perl_export", "Perl Event Export Settings");
|
||||
menu_reload_six += " | " + Saylink::Silent("#reload quest", "Quests");
|
||||
|
||||
menu_reload_seven += Saylink::Silent("#reload rules", "Rules");
|
||||
menu_reload_seven += " | " + Saylink::Silent("#reload skill_caps", "Skill Caps");
|
||||
menu_reload_seven += " | " + Saylink::Silent("#reload static", "Static Zone Data");
|
||||
menu_reload_seven += " | " + Saylink::Silent("#reload tasks", "Tasks");
|
||||
|
||||
menu_reload_eight += Saylink::Silent("#reload titles", "Titles");
|
||||
menu_reload_eight += " | " + Saylink::Silent("#reload traps 1", "Traps");
|
||||
menu_reload_eight += " | " + Saylink::Silent("#reload variables", "Variables");
|
||||
menu_reload_eight += " | " + Saylink::Silent("#reload veteran_rewards", "Veteran Rewards");
|
||||
|
||||
menu_reload_nine += Saylink::Silent("#reload world", "World");
|
||||
menu_reload_nine += " | " + Saylink::Silent("#reload zone", "Zone");
|
||||
menu_reload_nine += " | " + Saylink::Silent("#reload zone_points", "Zone Points");
|
||||
menu_reload_one += Saylink::Silent("#reload", "Reload Menu (#reload)");
|
||||
|
||||
/**
|
||||
* Show window status
|
||||
@@ -9868,70 +9822,6 @@ void Client::ShowDevToolsMenu()
|
||||
).c_str()
|
||||
);
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Reload | {}",
|
||||
menu_reload_two
|
||||
).c_str()
|
||||
);
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Reload | {}",
|
||||
menu_reload_three
|
||||
).c_str()
|
||||
);
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Reload | {}",
|
||||
menu_reload_four
|
||||
).c_str()
|
||||
);
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Reload | {}",
|
||||
menu_reload_five
|
||||
).c_str()
|
||||
);
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Reload | {}",
|
||||
menu_reload_six
|
||||
).c_str()
|
||||
);
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Reload | {}",
|
||||
menu_reload_seven
|
||||
).c_str()
|
||||
);
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Reload | {}",
|
||||
menu_reload_eight
|
||||
).c_str()
|
||||
);
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Reload | {}",
|
||||
menu_reload_nine
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto help_link = Saylink::Silent("#help");
|
||||
|
||||
Message(
|
||||
@@ -11681,338 +11571,22 @@ void Client::ReconnectUCS()
|
||||
void Client::SendReloadCommandMessages() {
|
||||
SendChatLineBreak();
|
||||
|
||||
auto aa_link = Saylink::Silent("#reload aa");
|
||||
for (auto &t: ServerReload::GetTypes()) {
|
||||
std::string reload_slug = Strings::Slugify(ServerReload::GetNameClean(t), "_");;
|
||||
auto reload_link = Saylink::Silent(fmt::format("#reload {}", reload_slug), "Local");
|
||||
auto reload_link_global = Saylink::Silent(fmt::format("#reload {} global", reload_slug), "Global");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} - Reloads Alternate Advancement Data globally",
|
||||
aa_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto alternate_currencies_link = Saylink::Silent("#reload alternate_currencies");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} - Reloads Alternate Currencies globally",
|
||||
alternate_currencies_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto base_data_link = Saylink::Silent("#reload base_data");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} - Reloads Base Data globally",
|
||||
base_data_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto blocked_spells_link = Saylink::Silent("#reload blocked_spells");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} - Reloads Blocked Spells globally",
|
||||
blocked_spells_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto commands_link = Saylink::Silent("#reload commands");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} - Reloads Commands globally",
|
||||
commands_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto content_flags_link = Saylink::Silent("#reload content_flags");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} - Reloads Content Flags globally",
|
||||
content_flags_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto doors_link = Saylink::Silent("#reload doors");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} - Reloads Doors globally",
|
||||
doors_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto data_buckets_link = Saylink::Silent("#reload data_buckets_cache");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} - Reloads data buckets cache globally",
|
||||
data_buckets_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto dztemplates_link = Saylink::Silent("#reload dztemplates");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} - Reloads Dynamic Zone Templates globally",
|
||||
dztemplates_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto factions_link = Saylink::Silent("#reload factions");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} - Reloads Factions globally",
|
||||
factions_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto ground_spawns_link = Saylink::Silent("#reload ground_spawns");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} - Reloads Ground Spawns globally",
|
||||
ground_spawns_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto level_mods_link = Saylink::Silent("#reload level_mods");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} - Reloads Level Based Experience Modifiers globally",
|
||||
level_mods_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto logs_link = Saylink::Silent("#reload logs");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} - Reloads Log Settings globally",
|
||||
logs_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto loot_link = Saylink::Silent("#reload loot");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} - Reloads Loot globally",
|
||||
loot_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto merchants_link = Saylink::Silent("#reload merchants");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} - Reloads Merchants globally",
|
||||
merchants_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto npc_emotes_link = Saylink::Silent("#reload npc_emotes");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} - Reloads NPC Emotes globally",
|
||||
npc_emotes_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto npc_spells_link = Saylink::Silent("#reload npc_spells");
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} - Reloads NPC Spells globally",
|
||||
npc_spells_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto objects_link = Saylink::Silent("#reload objects");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} - Reloads Objects globally",
|
||||
objects_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto opcodes_link = Saylink::Silent("#reload opcodes");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} - Reloads Opcodes globally",
|
||||
opcodes_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto perl_export_link = Saylink::Silent("#reload perl_export");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} - Reloads Perl Event Export Settings globally",
|
||||
perl_export_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto quest_link_one = Saylink::Silent("#reload quest");
|
||||
auto quest_link_two = Saylink::Silent("#reload quest", "0");
|
||||
auto quest_link_three = Saylink::Silent("#reload quest 1", "1");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} [{}|{}] - Reloads Quests and Timers in your current zone if specified (0 = Do Not Reload Timers, 1 = Reload Timers)",
|
||||
quest_link_one,
|
||||
quest_link_two,
|
||||
quest_link_three
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto rules_link = Saylink::Silent("#reload rules");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} - Reloads Rules globally",
|
||||
rules_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto skill_caps_link = Saylink::Silent("#reload skill_caps");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} - Reloads Skill Caps globally",
|
||||
skill_caps_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto static_link = Saylink::Silent("#reload static");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} - Reloads Static Zone Data globally",
|
||||
static_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto tasks_link = Saylink::Silent("#reload tasks");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} [Task ID] - Reloads Tasks globally or by ID if specified",
|
||||
tasks_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto titles_link = Saylink::Silent("#reload titles");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} - Reloads Titles globally",
|
||||
titles_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto traps_link_one = Saylink::Silent("#reload traps");
|
||||
auto traps_link_two = Saylink::Silent("#reload traps", "0");
|
||||
auto traps_link_three = Saylink::Silent("#reload traps 1", "1");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} [{}|{}] - Reloads Traps in your current zone or globally if specified",
|
||||
traps_link_one,
|
||||
traps_link_two,
|
||||
traps_link_three
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto variables_link = Saylink::Silent("#reload variables");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} - Reloads Variables globally",
|
||||
variables_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto veteran_rewards_link = Saylink::Silent("#reload veteran_rewards");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} - Reloads Veteran Rewards globally",
|
||||
veteran_rewards_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto world_link_one = Saylink::Silent("#reload world");
|
||||
auto world_link_two = Saylink::Silent("#reload world", "0");
|
||||
auto world_link_three = Saylink::Silent("#reload world 1", "1");
|
||||
auto world_link_four = Saylink::Silent("#reload world 2", "2");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} [{}|{}|{}] - Reloads Quests and repops globally if specified (0 = No Repop, 1 = Repop, 2 = Force Repop)",
|
||||
world_link_one,
|
||||
world_link_two,
|
||||
world_link_three,
|
||||
world_link_four
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto zone_link = Saylink::Silent("#reload zone");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} [Zone ID] [Version] - Reloads Zone configuration for your current zone, can load another Zone's configuration if specified",
|
||||
zone_link
|
||||
).c_str()
|
||||
);
|
||||
|
||||
auto zone_points_link = Saylink::Silent("#reload zone_points");
|
||||
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: {} - Reloads Zone Points globally",
|
||||
zone_points_link
|
||||
).c_str()
|
||||
);
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Usage: [{}] [{}] #reload {} - Reloads {}",
|
||||
reload_link,
|
||||
reload_link_global,
|
||||
reload_slug,
|
||||
ServerReload::GetName(t)
|
||||
).c_str()
|
||||
);
|
||||
}
|
||||
|
||||
SendChatLineBreak();
|
||||
}
|
||||
@@ -13479,4 +13053,4 @@ void Client::CheckItemDiscoverability(uint32 item_id)
|
||||
}
|
||||
|
||||
DiscoverItem(item_id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user