mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
Merge branch 'master' of https://github.com/EQEmu/Server into lsid
This commit is contained in:
@@ -401,6 +401,9 @@ sub build_linux_source {
|
||||
mkdir($source_dir . "/Server/build") if (!-e $source_dir . "/Server/build");
|
||||
chdir($source_dir . "/Server/build");
|
||||
|
||||
print `git submodule init`;
|
||||
print `git submodule update`;
|
||||
|
||||
print "Generating CMake build files...\n";
|
||||
if ($os_flavor eq "fedora_core") {
|
||||
print `cmake $cmake_options -DEQEMU_BUILD_LOGIN=ON -DEQEMU_BUILD_LUA=ON -DLUA_INCLUDE_DIR=/usr/include/lua-5.1/ -G "Unix Makefiles" ..`;
|
||||
@@ -812,7 +815,8 @@ 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) from latest 'stable'\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";
|
||||
}
|
||||
@@ -876,6 +880,10 @@ sub show_menu_prompt {
|
||||
fetch_latest_windows_binaries_bots();
|
||||
$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;
|
||||
@@ -1400,14 +1408,37 @@ sub fetch_latest_windows_binaries {
|
||||
rmtree('updates_staged');
|
||||
}
|
||||
|
||||
sub fetch_latest_windows_binaries_bots {
|
||||
print "[Update] Fetching Latest Windows Binaries (unstable) with Bots...\n";
|
||||
sub fetch_latest_windows_appveyor_bots {
|
||||
print "[Update] Fetching Latest Windows Binaries with Bots (unstable) from Appveyor... \n";
|
||||
get_remote_file("https://ci.appveyor.com/api/projects/KimLS/server/artifacts/eqemu-x86-bots.zip", "updates_staged/eqemu-x86-bots.zip", 1);
|
||||
#::: old repository kept for reference until no issues reported
|
||||
#::: get_remote_file($install_repository_request_url . "master_windows_build_bots.zip", "updates_staged/master_windows_build_bots.zip", 1);
|
||||
|
||||
print "[Update] Fetched Latest Windows Binaries (unstable) from Appveyor... \n";
|
||||
print "[Update] Extracting... --- \n";
|
||||
unzip('updates_staged/eqemu-x86-bots.zip', 'updates_staged/binaries/');
|
||||
my @files;
|
||||
my $start_dir = "updates_staged/binaries";
|
||||
find(
|
||||
sub { push @files, $File::Find::name unless -d; },
|
||||
$start_dir
|
||||
);
|
||||
for my $file (@files) {
|
||||
$destination_file = $file;
|
||||
$destination_file =~ s/updates_staged\/binaries\///g;
|
||||
print "[Update] Installing :: " . $destination_file . "\n";
|
||||
copy_file($file, $destination_file);
|
||||
}
|
||||
print "[Update] Done\n";
|
||||
|
||||
rmtree('updates_staged');
|
||||
}
|
||||
|
||||
sub fetch_latest_windows_binaries_bots {
|
||||
print "[Update] Fetching Latest Windows Binaries with Bots...\n";
|
||||
get_remote_file($install_repository_request_url . "master_windows_build_bots.zip", "updates_staged/master_windows_build_bots.zip", 1);
|
||||
|
||||
print "[Update] Fetched Latest Windows Binaries with Bots...\n";
|
||||
print "[Update] Extracting...\n";
|
||||
unzip('updates_staged/eqemu-x86-bots.zip', 'updates_staged/binaries/');
|
||||
unzip('updates_staged/master_windows_build_bots.zip', 'updates_staged/binaries/');
|
||||
my @files;
|
||||
my $start_dir = "updates_staged/binaries";
|
||||
find(
|
||||
|
||||
@@ -126,8 +126,9 @@ if [[ "$OS" == "Debian" ]]; then
|
||||
apt-get $apt_options install libssl-dev
|
||||
|
||||
# Install libsodium
|
||||
wget http://ftp.us.debian.org/debian/pool/main/libs/libsodium/libsodium-dev_1.0.11-1~bpo8+1_amd64.deb -O /home/eqemu/libsodium-dev.deb
|
||||
wget http://ftp.us.debian.org/debian/pool/main/libs/libsodium/libsodium18_1.0.11-1~bpo8+1_amd64.deb -O /home/eqemu/libsodium18.deb
|
||||
wget http://ftp.us.debian.org/debian/pool/main/libs/libsodium/libsodium-dev_1.0.11-2_amd64.deb -O /home/eqemu/libsodium-dev.deb
|
||||
wget http://ftp.us.debian.org/debian/pool/main/libs/libsodium/libsodium18_1.0.11-2_amd64.deb -O /home/eqemu/libsodium18.deb
|
||||
|
||||
dpkg -i /home/eqemu/libsodium*.deb
|
||||
# Cleanup after ourselves
|
||||
rm -f /home/eqemu/libsodium-dev.deb
|
||||
@@ -146,61 +147,75 @@ if [[ "$OS" == "Debian" ]]; then
|
||||
|
||||
elif [[ "$OS" == "red_hat" ]]; then
|
||||
# Do RedHat / CentOS stuff
|
||||
# Add the MariaDB repository to yum
|
||||
cat <<EOF > /etc/yum.repos.d/mariadb.repo
|
||||
# MariaDB 10.1 CentOS repository list - created 2016-08-20 05:42 UTC
|
||||
# http://downloads.mariadb.org/mariadb/repositories/
|
||||
[mariadb]
|
||||
name = MariaDB
|
||||
baseurl = http://yum.mariadb.org/10.1/centos7-amd64
|
||||
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
|
||||
enabled=1
|
||||
gpgcheck=1
|
||||
EOF
|
||||
# Install prereqs
|
||||
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
||||
yum -y install deltarpm
|
||||
yum -y install open-vm-tools vim cmake boost-* zlib-devel mariadb-server mariadb-client mariadb-devel mariadb-libs mariadb-compat perl-* lua* dos2unix php-mysql proftpd libuuid-devel
|
||||
yum -y groupinstall "Development Tools" "Basic Web Server" "Compatibility Libraries"
|
||||
yum -y install epel-release deltarpm
|
||||
yum -y update
|
||||
yum -y install \
|
||||
open-vm-tools \
|
||||
vim \
|
||||
cmake \
|
||||
boost-* \
|
||||
zlib-devel \
|
||||
mariadb \
|
||||
mariadb-server \
|
||||
mariadb-devel \
|
||||
mariadb-libs \
|
||||
perl-DBD-MySQL \
|
||||
perl-JSON \
|
||||
perl-IO-stringy \
|
||||
perl-devel \
|
||||
perl-Time-HiRes \
|
||||
lua-devel \
|
||||
dos2unix \
|
||||
php-mysql \
|
||||
proftpd \
|
||||
libuuid-devel \
|
||||
libsodium \
|
||||
libsodium-devel \
|
||||
openssl-devel
|
||||
|
||||
yum -y groupinstall \
|
||||
"Development Tools" \
|
||||
"Basic Web Server" \
|
||||
"Compatibility Libraries"
|
||||
|
||||
elif [[ "$OS" == "fedora_core" ]]; then
|
||||
# Do Fedora stuff
|
||||
dnf -y install open-vm-tools
|
||||
dnf -y install vim
|
||||
dnf -y install cmake
|
||||
dnf -y install boost-devel
|
||||
dnf -y install zlib-devel
|
||||
dnf -y install mariadb-server
|
||||
dnf -y install mariadb-devel
|
||||
dnf -y install mariadb-libs
|
||||
dnf -y install perl
|
||||
dnf -y install perl-DBD-MySQL
|
||||
dnf -y install perl-IO-stringy
|
||||
dnf -y install perl-devel
|
||||
dnf -y install lua-devel
|
||||
dnf -y install lua-sql-mysql
|
||||
dnf -y install dos2unix
|
||||
dnf -y install php-mysql
|
||||
dnf -y install php-mysqlnd
|
||||
dnf -y install proftpd
|
||||
dnf -y install wget
|
||||
dnf -y install compat-lua-libs
|
||||
dnf -y install compat-lua-devel
|
||||
dnf -y install compat-lua
|
||||
dnf -y install perl-Time-HiRes
|
||||
dnf -y install libuuid-devel
|
||||
dnf -y install libsodium
|
||||
dnf -y install libsodium-devel
|
||||
dnf -y groupinstall "Development Tools"
|
||||
dnf -y groupinstall "Basic Web Server"
|
||||
dnf -y groupinstall "C Development Tools and Libraries"
|
||||
dnf -y install \
|
||||
open-vm-tools \
|
||||
vim \
|
||||
cmake \
|
||||
boost-devel \
|
||||
zlib-devel \
|
||||
mariadb-server \
|
||||
mariadb-devel \
|
||||
perl \
|
||||
perl-DBD-MySQL \
|
||||
perl-IO-stringy \
|
||||
perl-devel \
|
||||
lua-devel \
|
||||
lua-sql-mysql \
|
||||
dos2unix \
|
||||
php-mysqlnd \
|
||||
proftpd \
|
||||
wget \
|
||||
compat-lua-libs \
|
||||
compat-lua-devel \
|
||||
compat-lua \
|
||||
perl-Time-HiRes \
|
||||
perl-JSON \
|
||||
libuuid-devel \
|
||||
libsodium \
|
||||
libsodium-devel \
|
||||
openssl-devel
|
||||
|
||||
dnf -y group install "Development Tools" "Basic Web Server" "C Development Tools and Libraries"
|
||||
fi
|
||||
|
||||
if [[ "$OS" == "fedora_core" ]] || [[ "$OS" == "red_hat" ]]; then
|
||||
# Start MariaDB server and set root password
|
||||
echo "Starting MariaDB server..."
|
||||
systemctl enable mariadb.service
|
||||
systemctl start mariadb.service
|
||||
systemctl enable mariadb.service --now
|
||||
sleep 5
|
||||
/usr/bin/mysqladmin -u root password $eqemu_db_root_password
|
||||
fi
|
||||
|
||||
@@ -393,6 +393,7 @@
|
||||
9137|2018_12_12_client_faction_tables.sql|SHOW TABLES LIKE 'faction_base_data'|empty|
|
||||
9138|2018_12_12_convert_to_client_functions.sql|SELECT `id` FROM `faction_list` WHERE `id` > 4999|empty|
|
||||
9139|2019_03_25_optional_npc_model.sql|SHOW COLUMNS FROM `npc_types` LIKE 'model'|empty|
|
||||
9140|2019_07_03_update_range.sql|SHOW COLUMNS FROM `npc_types` LIKE 'max_movement_update_range'|empty|
|
||||
|
||||
# Upgrade conditions:
|
||||
# This won't be needed after this system is implemented, but it is used database that are not
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
9021|2018_10_09_bots_owner_options.sql|SHOW TABLES LIKE 'bot_owner_options'|empty|
|
||||
9022|2019_02_07_bots_stance_type_update.sql|SELECT * FROM `bot_spell_casting_chances` WHERE `spell_type_index` = '255' AND `class_id` = '255' AND `stance_index` = '0'|not_empty|
|
||||
9023|2019_06_22_bots_owner_option_stats_update.sql|SHOW COLUMNS FROM `bot_owner_options` LIKE 'stats_update'|empty|
|
||||
9024|2019_06_27_bots_pet_get_lost.sql|SELECT `bot_command` FROM `bot_command_settings` WHERE `bot_command` LIKE 'petgetlost'|empty|
|
||||
|
||||
# Upgrade conditions:
|
||||
# This won't be needed after this system is implemented, but it is used database that are not
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
INSERT INTO `bot_command_settings`(`bot_command`, `access`, `aliases`) VALUES ('petgetlost', '0', 'pgl');
|
||||
@@ -0,0 +1 @@
|
||||
ALTER TABLE `zone` ADD COLUMN `max_movement_update_range` INT(11) UNSIGNED NOT NULL DEFAULT '600' AFTER `npc_max_aggro_dist`;
|
||||
@@ -82,6 +82,7 @@ perl_event_export_settings
|
||||
pets
|
||||
pets_equipmentset
|
||||
pets_equipmentset_entries
|
||||
profanity_list
|
||||
proximities
|
||||
races
|
||||
saylink
|
||||
|
||||
Reference in New Issue
Block a user