mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
[Bots] Cleanup and remove preprocessors. (#2757)
* [Bots] Cleanup and remove preprocessors. - Removes every `#ifdef BOTS` we have and locks bots behind `Bots:AllowBots` rule. - Bot updates are now done by default similar to regular database updates. - Modify `CMakeLists.txt`, `.drone.yml`, and `BUILD.md` to match the removal of `EQEMU_ENABLE_BOTS`. * Cleanup - Add SQL for enabling bots for servers with bots. - Add message that tells players/operators bots are disabled. * Suggested changes. * Bot injection stuff * Change SQL to bot SQL. * Tweaks * Remove `is_bot` * Update version.h * Update main.cpp * Update database.cpp * Fix name availability crash * Remove bots from update script Co-authored-by: Akkadius <akkadius1@gmail.com>
This commit is contained in:
@@ -430,11 +430,6 @@ sub build_linux_source
|
||||
$cmake_options = "";
|
||||
$source_folder_post_fix = "";
|
||||
|
||||
if ($build_options =~ /bots/i) {
|
||||
$cmake_options .= " -DEQEMU_ENABLE_BOTS=ON";
|
||||
$source_folder_post_fix = "_bots";
|
||||
}
|
||||
|
||||
$current_directory = `pwd`;
|
||||
@directories = split('/', $current_directory);
|
||||
foreach my $val (@directories) {
|
||||
@@ -565,11 +560,7 @@ sub do_installer_routines
|
||||
fetch_peq_db_full();
|
||||
print "[Database] Fetching and Applying Latest Database Updates...\n";
|
||||
main_db_management();
|
||||
|
||||
# if bots
|
||||
if ($build_options =~ /bots/i) {
|
||||
bots_db_management();
|
||||
}
|
||||
bots_db_management();
|
||||
|
||||
remove_duplicate_rule_values();
|
||||
|
||||
@@ -1035,8 +1026,6 @@ sub show_menu_prompt
|
||||
print ">>> Windows\n";
|
||||
print " [windows_server_download] Updates server via latest 'stable' code\n";
|
||||
print " [windows_server_latest] Updates server via latest commit 'unstable'\n";
|
||||
print " [windows_server_download_bots] Updates server (bots) via latest 'stable'\n";
|
||||
print " [windows_server_latest_bots] Updates server (bots) via latest commit 'unstable'\n";
|
||||
print " [fetch_dlls] Grabs dll's needed to run windows binaries\n";
|
||||
print " [setup_loginserver] Sets up loginserver for Windows\n";
|
||||
}
|
||||
@@ -1096,10 +1085,6 @@ sub show_menu_prompt
|
||||
fetch_latest_windows_appveyor();
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "windows_server_latest_bots") {
|
||||
fetch_latest_windows_appveyor_bots();
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "fetch_dlls") {
|
||||
fetch_server_dlls();
|
||||
$dc = 1;
|
||||
@@ -1124,10 +1109,6 @@ sub show_menu_prompt
|
||||
new_server();
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "new_server_with_bots") {
|
||||
new_server("bots");
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "setup_bots") {
|
||||
setup_bots();
|
||||
$dc = 1;
|
||||
|
||||
Reference in New Issue
Block a user