mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-18 23:51:28 +00:00
Update eqemu_server.pl [skip ci]
This commit is contained in:
parent
ce610db166
commit
a6638104ac
@ -811,30 +811,103 @@ sub show_menu_prompt {
|
||||
print "Enter a command #> ";
|
||||
$last_menu = trim($input);
|
||||
}
|
||||
elsif($input eq "backup_database"){ database_dump(); $dc = 1; }
|
||||
elsif($input eq "backup_player_tables"){ database_dump_player_tables(); $dc = 1; }
|
||||
elsif($input eq "backup_database_compressed"){ database_dump_compress(); $dc = 1; }
|
||||
elsif($input eq "drop_bots_db_schema"){ do_bots_db_schema_drop(); $dc = 1; }
|
||||
elsif($input eq "aa_tables"){ aa_fetch(); $dc = 1; }
|
||||
elsif($input eq "remove_duplicate_rules"){ remove_duplicate_rule_values(); $dc = 1; }
|
||||
elsif($input eq "maps"){ map_files_fetch_bulk(); $dc = 1; }
|
||||
elsif($input eq "opcodes"){ opcodes_fetch(); $dc = 1; }
|
||||
elsif($input eq "plugins"){ plugins_fetch(); $dc = 1; }
|
||||
elsif($input eq "quests"){ quest_files_fetch(); $dc = 1; }
|
||||
elsif($input eq "lua_modules"){ lua_modules_fetch(); $dc = 1; }
|
||||
elsif($input eq "windows_server_download"){ fetch_latest_windows_binaries(); $dc = 1; }
|
||||
elsif($input eq "windows_server_latest"){ fetch_latest_windows_appveyor(); $dc = 1; }
|
||||
elsif($input eq "windows_server_download_bots"){ fetch_latest_windows_binaries_bots(); $dc = 1; }
|
||||
elsif($input eq "fetch_dlls"){ fetch_server_dlls(); $dc = 1; }
|
||||
elsif($input eq "utility_scripts"){ fetch_utility_scripts(); $dc = 1; }
|
||||
elsif($input eq "check_db_updates"){ main_db_management(); main_db_management(); $dc = 1; }
|
||||
elsif($input eq "check_bot_db_updates"){ bots_db_management(); run_database_check(); $dc = 1; }
|
||||
elsif($input eq "setup_loginserver"){ do_windows_login_server_setup(); $dc = 1; }
|
||||
elsif($input eq "new_server"){ new_server(); $dc = 1; }
|
||||
elsif($input eq "setup_bots"){ setup_bots(); $dc = 1; }
|
||||
elsif($input eq "linux_login_server_setup"){ do_linux_login_server_setup(); $dc = 1; }
|
||||
elsif($input eq "quest_heading_convert"){ quest_heading_convert(); $dc = 1; }
|
||||
elsif($input eq "source_peq_db"){ fetch_peq_db_full(); $dc = 1; }
|
||||
elsif ($input eq "backup_database") {
|
||||
database_dump();
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "backup_player_tables") {
|
||||
database_dump_player_tables();
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "backup_database_compressed") {
|
||||
database_dump_compress();
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "drop_bots_db_schema") {
|
||||
do_bots_db_schema_drop();
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "aa_tables") {
|
||||
aa_fetch();
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "remove_duplicate_rules") {
|
||||
remove_duplicate_rule_values();
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "maps") {
|
||||
map_files_fetch_bulk();
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "opcodes") {
|
||||
opcodes_fetch();
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "plugins") {
|
||||
plugins_fetch();
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "quests") {
|
||||
quest_files_fetch();
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "lua_modules") {
|
||||
lua_modules_fetch();
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "windows_server_download") {
|
||||
fetch_latest_windows_binaries();
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "windows_server_latest") {
|
||||
fetch_latest_windows_appveyor();
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "windows_server_download_bots") {
|
||||
fetch_latest_windows_binaries_bots();
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "fetch_dlls") {
|
||||
fetch_server_dlls();
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "utility_scripts") {
|
||||
fetch_utility_scripts();
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "check_db_updates") {
|
||||
main_db_management();
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "check_bot_db_updates") {
|
||||
bots_db_management();
|
||||
run_database_check();
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "setup_loginserver") {
|
||||
do_windows_login_server_setup();
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "new_server") {
|
||||
new_server();
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "setup_bots") {
|
||||
setup_bots();
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "linux_login_server_setup") {
|
||||
do_linux_login_server_setup();
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "quest_heading_convert") {
|
||||
quest_heading_convert();
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "source_peq_db") {
|
||||
fetch_peq_db_full();
|
||||
$dc = 1;
|
||||
}
|
||||
elsif ($input eq "exit") {
|
||||
exit;
|
||||
}
|
||||
@ -1302,7 +1375,6 @@ sub fetch_latest_windows_binaries {
|
||||
}
|
||||
print "[Update] Done\n";
|
||||
|
||||
|
||||
rmtree('updates_staged');
|
||||
}
|
||||
|
||||
@ -2134,12 +2206,16 @@ sub run_database_check{
|
||||
#::: Run 1 - Initial checking of needed updates...
|
||||
else {
|
||||
print "[Database] Reading manifest...\n";
|
||||
|
||||
use Data::Dumper;
|
||||
open(FILE, "db_update/db_update_manifest.txt");
|
||||
while (<FILE>) {
|
||||
chomp;
|
||||
$o = $_;
|
||||
if($o=~/#/i){ next; }
|
||||
if ($o =~ /#/i) {
|
||||
next;
|
||||
}
|
||||
|
||||
@manifest = split('\|', $o);
|
||||
$m_d{$manifest[0]} = [ @manifest ];
|
||||
}
|
||||
@ -2162,7 +2238,9 @@ sub run_database_check{
|
||||
|
||||
#::: Iterate through Manifest backwards from binary version down to local version...
|
||||
for ($i = $revision_check; $i <= $binary_database_version; $i++) {
|
||||
if(!defined($m_d{$i}[0])){ next; }
|
||||
if (!defined($m_d{$i}[0])) {
|
||||
next;
|
||||
}
|
||||
|
||||
$file_name = trim($m_d{$i}[1]);
|
||||
$query_check = trim($m_d{$i}[2]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user