This commit is contained in:
2026-09-12 21:13:31 +04:00
parent 6956edf6cd
commit 0a277174bc
6 changed files with 22 additions and 8 deletions
+8
View File
@@ -20,6 +20,14 @@ target_compile_definitions(trinity-compile-option-interface
INTERFACE INTERFACE
-DHAVE_SSE2 -DHAVE_SSE2
-D__SSE2__) -D__SSE2__)
# Player-facing module messages are stored in the repository as UTF-8.
# Keep their byte representation deterministic even when the build host uses
# a different system locale.
target_compile_options(trinity-compile-option-interface
INTERFACE
-finput-charset=UTF-8
-fexec-charset=UTF-8)
message(STATUS "GCC: SFMT enabled, SSE2 flags forced") message(STATUS "GCC: SFMT enabled, SSE2 flags forced")
if( WITH_WARNINGS ) if( WITH_WARNINGS )
+7 -7
View File
@@ -5,7 +5,7 @@ db_user="${DB_USER:-sylvania}"
db_password="${DB_PASSWORD:-sylvania}" db_password="${DB_PASSWORD:-sylvania}"
# Identifiers are deliberately fixed; only the application login is configurable. # Identifiers are deliberately fixed; only the application login is configurable.
mariadb --protocol=socket -uroot -p"${MARIADB_ROOT_PASSWORD}" <<SQL mariadb --default-character-set=utf8mb4 --protocol=socket -uroot -p"${MARIADB_ROOT_PASSWORD}" <<SQL
CREATE DATABASE IF NOT EXISTS auth CHARACTER SET utf8 COLLATE utf8_general_ci; CREATE DATABASE IF NOT EXISTS auth CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE DATABASE IF NOT EXISTS characters CHARACTER SET utf8 COLLATE utf8_general_ci; CREATE DATABASE IF NOT EXISTS characters CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE DATABASE IF NOT EXISTS world CHARACTER SET utf8 COLLATE utf8_general_ci; CREATE DATABASE IF NOT EXISTS world CHARACTER SET utf8 COLLATE utf8_general_ci;
@@ -20,21 +20,21 @@ GRANT ALL PRIVILEGES ON shop.* TO '${db_user}'@'%';
FLUSH PRIVILEGES; FLUSH PRIVILEGES;
SQL SQL
mariadb --protocol=socket -uroot -p"${MARIADB_ROOT_PASSWORD}" auth < /sylvania/base/auth_database.sql mariadb --default-character-set=utf8mb4 --protocol=socket -uroot -p"${MARIADB_ROOT_PASSWORD}" auth < /sylvania/base/auth_database.sql
mariadb --protocol=socket -uroot -p"${MARIADB_ROOT_PASSWORD}" characters < /sylvania/base/characters_database.sql mariadb --default-character-set=utf8mb4 --protocol=socket -uroot -p"${MARIADB_ROOT_PASSWORD}" characters < /sylvania/base/characters_database.sql
mariadb --protocol=socket -uroot -p"${MARIADB_ROOT_PASSWORD}" shop < /sylvania/base/shop_database.sql mariadb --default-character-set=utf8mb4 --protocol=socket -uroot -p"${MARIADB_ROOT_PASSWORD}" shop < /sylvania/base/shop_database.sql
shopt -s nullglob shopt -s nullglob
for dump in /sylvania/dumps/*.sql /sylvania/dumps/*.sql.gz; do for dump in /sylvania/dumps/*.sql /sylvania/dumps/*.sql.gz; do
echo "Importing game database dump: ${dump}" echo "Importing game database dump: ${dump}"
if [[ "${dump}" == *.gz ]]; then if [[ "${dump}" == *.gz ]]; then
gzip -dc "${dump}" | mariadb --protocol=socket -uroot -p"${MARIADB_ROOT_PASSWORD}" gzip -dc "${dump}" | mariadb --default-character-set=utf8mb4 --protocol=socket -uroot -p"${MARIADB_ROOT_PASSWORD}"
else else
mariadb --protocol=socket -uroot -p"${MARIADB_ROOT_PASSWORD}" < "${dump}" mariadb --default-character-set=utf8mb4 --protocol=socket -uroot -p"${MARIADB_ROOT_PASSWORD}" < "${dump}"
fi fi
done done
# The published 7.3.5 dump uses a lowercase name, while the core queries this # The published 7.3.5 dump uses a lowercase name, while the core queries this
# one legacy table with its historical mixed-case identifier on Linux. # one legacy table with its historical mixed-case identifier on Linux.
mariadb --protocol=socket -uroot -p"${MARIADB_ROOT_PASSWORD}" \ mariadb --default-character-set=utf8mb4 --protocol=socket -uroot -p"${MARIADB_ROOT_PASSWORD}" \
-e 'RENAME TABLE hotfixes.questv2clitask TO hotfixes.QuestV2CliTask;' -e 'RENAME TABLE hotfixes.questv2clitask TO hotfixes.QuestV2CliTask;'
+1 -1
View File
@@ -40,7 +40,7 @@ sed -i -E \
# Keep the client-facing realm record in sync after restores and migrations. # Keep the client-facing realm record in sync after restores and migrations.
# Values are validated above before being interpolated into SQL. # Values are validated above before being interpolated into SQL.
mariadb --protocol=tcp \ mariadb --default-character-set=utf8mb4 --protocol=tcp \
-h "${db_host}" -P "${db_port}" -u "${db_user}" "-p${db_password}" auth <<SQL -h "${db_host}" -P "${db_port}" -u "${db_user}" "-p${db_password}" auth <<SQL
INSERT INTO realmlist INSERT INTO realmlist
(id, name, address, localAddress, localSubnetMask, port, icon, flag, (id, name, address, localAddress, localSubnetMask, port, icon, flag,
@@ -1,6 +1,8 @@
-- Generated from ChatGPT WoW localisation source.csv. -- Generated from ChatGPT WoW localisation source.csv.
-- Apply to dc_hotfixes. Existing frFR rows are not modified. -- Apply to dc_hotfixes. Existing frFR rows are not modified.
SET NAMES utf8mb4;
INSERT INTO `broadcast_text_locale` (`ID`,`locale`,`Text_lang`,`Text1_lang`,`VerifiedBuild`) VALUES INSERT INTO `broadcast_text_locale` (`ID`,`locale`,`Text_lang`,`Text1_lang`,`VerifiedBuild`) VALUES
(1,'ruRU','Помогите, помогите! Меня угнетают!','',26972), (1,'ruRU','Помогите, помогите! Меня угнетают!','',26972),
(3927,'ruRU','Последовательность самоуничтожения активирована.','',26972), (3927,'ruRU','Последовательность самоуничтожения активирована.','',26972),
@@ -1,6 +1,8 @@
-- Generated from ChatGPT WoW localisation source.csv. -- Generated from ChatGPT WoW localisation source.csv.
-- Apply to dc_world. Existing frFR rows are not modified. -- Apply to dc_world. Existing frFR rows are not modified.
SET NAMES utf8mb4;
INSERT INTO `creature_text_locale` (`CreatureID`,`GroupID`,`ID`,`Locale`,`Text`) VALUES INSERT INTO `creature_text_locale` (`CreatureID`,`GroupID`,`ID`,`Locale`,`Text`) VALUES
(92718,0,0,'ruRU','Мне понадобится твоя помощь, чтобы остановить Гул''дана. Освободи остальных Иллидари, поскорее!'), (92718,0,0,'ruRU','Мне понадобится твоя помощь, чтобы остановить Гул''дана. Освободи остальных Иллидари, поскорее!'),
(92980,1,0,'ruRU','Демоны хотят уничтожить наш мир. Мы должны освободить наших союзников.'), (92980,1,0,'ruRU','Демоны хотят уничтожить наш мир. Мы должны освободить наших союзников.'),
+2
View File
@@ -63,6 +63,7 @@ def build_hotfixes(translated: dict[str, str]) -> int:
with output.open("w", encoding="utf-8", newline="\n") as sql: with output.open("w", encoding="utf-8", newline="\n") as sql:
sql.write("-- Generated from ChatGPT WoW localisation source.csv.\n") sql.write("-- Generated from ChatGPT WoW localisation source.csv.\n")
sql.write("-- Apply to dc_hotfixes. Existing frFR rows are not modified.\n\n") sql.write("-- Apply to dc_hotfixes. Existing frFR rows are not modified.\n\n")
sql.write("SET NAMES utf8mb4;\n\n")
sql.write("INSERT INTO `broadcast_text_locale` " sql.write("INSERT INTO `broadcast_text_locale` "
"(`ID`,`locale`,`Text_lang`,`Text1_lang`,`VerifiedBuild`) VALUES\n") "(`ID`,`locale`,`Text_lang`,`Text1_lang`,`VerifiedBuild`) VALUES\n")
values = [] values = []
@@ -110,6 +111,7 @@ def build_world(translated: dict[str, str]) -> int:
with output.open("w", encoding="utf-8", newline="\n") as sql: with output.open("w", encoding="utf-8", newline="\n") as sql:
sql.write("-- Generated from ChatGPT WoW localisation source.csv.\n") sql.write("-- Generated from ChatGPT WoW localisation source.csv.\n")
sql.write("-- Apply to dc_world. Existing frFR rows are not modified.\n\n") sql.write("-- Apply to dc_world. Existing frFR rows are not modified.\n\n")
sql.write("SET NAMES utf8mb4;\n\n")
sql.write("INSERT INTO `creature_text_locale` " sql.write("INSERT INTO `creature_text_locale` "
"(`CreatureID`,`GroupID`,`ID`,`Locale`,`Text`) VALUES\n") "(`CreatureID`,`GroupID`,`ID`,`Locale`,`Text`) VALUES\n")
values = [] values = []