Skip to content

Commit

Permalink
Merge pull request #346 from TrinityCore/master
Browse files Browse the repository at this point in the history
Update 10.31.24
  • Loading branch information
KamiliaBlow authored Oct 30, 2024
2 parents 2b02131 + f689a80 commit cf3ca27
Show file tree
Hide file tree
Showing 80 changed files with 4,248 additions and 3,417 deletions.
19 changes: 14 additions & 5 deletions sql/base/auth_database.sql
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,14 @@ INSERT INTO `build_auth_key` VALUES
(57212,'Mac','x64','WoWC',0x32EB0F3BB5EA60EEC4945F71DBD2B4F3),
(57212,'Win','A64','WoW',0xA1D949D062EC49E5A2978BD1932C8D0E),
(57212,'Win','x64','WoW',0xB8ADB57D27EF98C8DDEF9943BE07EE94),
(57212,'Win','x64','WoWC',0xD18B79CEF34B5E10BA8C779EFE6D9EA0);
(57212,'Win','x64','WoWC',0xD18B79CEF34B5E10BA8C779EFE6D9EA0),
(57292,'Mac','A64','WoW',0xAB48CDD3449440EAA6E72D43914A3824),
(57292,'Mac','A64','WoWC',0x46E6FC16392B1B0B686BDC12C92A6D18),
(57292,'Mac','x64','WoW',0x375B0734567192503CC9F9C8028DC6F3),
(57292,'Mac','x64','WoWC',0xE59F7530C7BFF77CB62E62D4E6D3EEC8),
(57292,'Win','A64','WoW',0xF42B862D0559CCD3204B2DF58E995761),
(57292,'Win','x64','WoW',0xED8353327D5538F75FAF2E0C584D2EF3),
(57292,'Win','x64','WoWC',0x67FC9D56CC96C6F4ACE29151375962F4);
/*!40000 ALTER TABLE `build_auth_key` ENABLE KEYS */;
UNLOCK TABLES;

Expand Down Expand Up @@ -1180,7 +1187,8 @@ INSERT INTO `build_info` VALUES
(56647,11,0,2,NULL),
(56819,11,0,2,NULL),
(57171,11,0,5,NULL),
(57212,11,0,5,NULL);
(57212,11,0,5,NULL),
(57292,11,0,5,NULL);
/*!40000 ALTER TABLE `build_info` ENABLE KEYS */;
UNLOCK TABLES;

Expand Down Expand Up @@ -2790,7 +2798,7 @@ CREATE TABLE `realmlist` (
`timezone` tinyint unsigned NOT NULL DEFAULT '0',
`allowedSecurityLevel` tinyint unsigned NOT NULL DEFAULT '0',
`population` float NOT NULL DEFAULT '0',
`gamebuild` int unsigned NOT NULL DEFAULT '56819',
`gamebuild` int unsigned NOT NULL DEFAULT '57292',
`Region` tinyint unsigned NOT NULL DEFAULT '1',
`Battlegroup` tinyint unsigned NOT NULL DEFAULT '1',
PRIMARY KEY (`id`),
Expand All @@ -2805,7 +2813,7 @@ CREATE TABLE `realmlist` (
LOCK TABLES `realmlist` WRITE;
/*!40000 ALTER TABLE `realmlist` DISABLE KEYS */;
INSERT INTO `realmlist` VALUES
(1,'Trinity','127.0.0.1','127.0.0.1','255.255.255.0',8085,0,0,1,0,0,56819,1,1);
(1,'Trinity','127.0.0.1','127.0.0.1','255.255.255.0',8085,0,0,1,0,0,57292,1,1);
/*!40000 ALTER TABLE `realmlist` ENABLE KEYS */;
UNLOCK TABLES;

Expand Down Expand Up @@ -3269,7 +3277,8 @@ INSERT INTO `updates` VALUES
('2024_09_26_00_auth.sql','E37C3997FD7851EA360774AC568912846C448272','RELEASED','2024-09-26 18:27:26',0),
('2024_10_01_00_auth.sql','665EC51B03F52C373F713D96A1426054D7DF98C8','RELEASED','2024-10-01 23:39:44',0),
('2024_10_23_00_auth.sql','78203AE9051E866F103CC7B8A6EE09D5C25BCB9A','RELEASED','2024-10-23 15:48:13',0),
('2024_10_23_01_auth.sql','06257BB5FF23564549529C14822DD5780AA7F7C3','RELEASED','2024-10-23 22:30:54',0);
('2024_10_23_01_auth.sql','06257BB5FF23564549529C14822DD5780AA7F7C3','RELEASED','2024-10-23 22:30:54',0),
('2024_10_30_00_auth.sql','B4C930B0CE499704CEBF208A71871061DC27008C','RELEASED','2024-10-30 13:04:40',0);
/*!40000 ALTER TABLE `updates` ENABLE KEYS */;
UNLOCK TABLES;

Expand Down
23 changes: 23 additions & 0 deletions sql/updates/auth/master/2024_10_30_00_auth.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
DELETE FROM `build_info` WHERE `build` IN (57292);
INSERT INTO `build_info` (`build`,`majorVersion`,`minorVersion`,`bugfixVersion`,`hotfixVersion`) VALUES
(57292,11,0,5,NULL);

DELETE FROM `build_auth_key` WHERE `build`=57292 AND `platform`='Mac' AND `arch`='A64' AND `type`='WoW';
DELETE FROM `build_auth_key` WHERE `build`=57292 AND `platform`='Mac' AND `arch`='A64' AND `type`='WoWC';
DELETE FROM `build_auth_key` WHERE `build`=57292 AND `platform`='Mac' AND `arch`='x64' AND `type`='WoW';
DELETE FROM `build_auth_key` WHERE `build`=57292 AND `platform`='Mac' AND `arch`='x64' AND `type`='WoWC';
DELETE FROM `build_auth_key` WHERE `build`=57292 AND `platform`='Win' AND `arch`='A64' AND `type`='WoW';
DELETE FROM `build_auth_key` WHERE `build`=57292 AND `platform`='Win' AND `arch`='x64' AND `type`='WoW';
DELETE FROM `build_auth_key` WHERE `build`=57292 AND `platform`='Win' AND `arch`='x64' AND `type`='WoWC';
INSERT INTO `build_auth_key` (`build`,`platform`,`arch`,`type`,`key`) VALUES
(57292,'Mac','A64','WoW',0xAB48CDD3449440EAA6E72D43914A3824),
(57292,'Mac','A64','WoWC',0x46E6FC16392B1B0B686BDC12C92A6D18),
(57292,'Mac','x64','WoW',0x375B0734567192503CC9F9C8028DC6F3),
(57292,'Mac','x64','WoWC',0xE59F7530C7BFF77CB62E62D4E6D3EEC8),
(57292,'Win','A64','WoW',0xF42B862D0559CCD3204B2DF58E995761),
(57292,'Win','x64','WoW',0xED8353327D5538F75FAF2E0C584D2EF3),
(57292,'Win','x64','WoWC',0x67FC9D56CC96C6F4ACE29151375962F4);

UPDATE `realmlist` SET `gamebuild`=57292 WHERE `gamebuild` IN (56819,57171,57212);

ALTER TABLE `realmlist` CHANGE `gamebuild` `gamebuild` int unsigned NOT NULL DEFAULT '57292';
11 changes: 11 additions & 0 deletions sql/updates/hotfixes/master/2024_10_23_00_hotfixes.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ALTER TABLE `broadcast_text_duration` MODIFY `BroadcastTextID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `Duration`;

ALTER TABLE `chr_customization_option`
DROP `ChrRacesID`,
DROP `Sex`;

ALTER TABLE `difficulty` ADD `Unknown1105` int NOT NULL DEFAULT 0 AFTER `GroupSizeSpellPointsCurveID`;

ALTER TABLE `lfg_dungeons` ADD `MaxPremadeGroupSize` tinyint UNSIGNED NOT NULL DEFAULT 0 AFTER `MentorCharLevel`;

ALTER TABLE `spell_misc` ADD `Attributes16` int NOT NULL DEFAULT 0 AFTER `Attributes15`;
14 changes: 7 additions & 7 deletions src/server/database/Database/Implementation/HotfixDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ void HotfixDatabaseConnection::DoPrepareStatements()
" AND locale = ?", CONNECTION_SYNCH);

// BroadcastTextDuration.db2
PrepareStatement(HOTFIX_SEL_BROADCAST_TEXT_DURATION, "SELECT ID, BroadcastTextID, Locale, Duration FROM broadcast_text_duration"
PrepareStatement(HOTFIX_SEL_BROADCAST_TEXT_DURATION, "SELECT ID, Locale, Duration, BroadcastTextID FROM broadcast_text_duration"
" WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH);
PREPARE_MAX_ID_STMT(HOTFIX_SEL_BROADCAST_TEXT_DURATION, "SELECT MAX(ID) + 1 FROM broadcast_text_duration", CONNECTION_SYNCH);

Expand Down Expand Up @@ -390,9 +390,9 @@ void HotfixDatabaseConnection::DoPrepareStatements()
PREPARE_MAX_ID_STMT(HOTFIX_SEL_CHR_CUSTOMIZATION_MATERIAL, "SELECT MAX(ID) + 1 FROM chr_customization_material", CONNECTION_SYNCH);

// ChrCustomizationOption.db2
PrepareStatement(HOTFIX_SEL_CHR_CUSTOMIZATION_OPTION, "SELECT Name, ID, SecondaryID, Flags, ChrRacesID, Sex, ChrModelID, SortIndex, "
"ChrCustomizationCategoryID, OptionType, BarberShopCostModifier, ChrCustomizationID, ChrCustomizationReqID, UiOrderIndex, AddedInPatch"
" FROM chr_customization_option WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH);
PrepareStatement(HOTFIX_SEL_CHR_CUSTOMIZATION_OPTION, "SELECT Name, ID, SecondaryID, Flags, ChrModelID, SortIndex, ChrCustomizationCategoryID, "
"OptionType, BarberShopCostModifier, ChrCustomizationID, ChrCustomizationReqID, UiOrderIndex, AddedInPatch FROM chr_customization_option"
" WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH);
PREPARE_MAX_ID_STMT(HOTFIX_SEL_CHR_CUSTOMIZATION_OPTION, "SELECT MAX(ID) + 1 FROM chr_customization_option", CONNECTION_SYNCH);
PREPARE_LOCALE_STMT(HOTFIX_SEL_CHR_CUSTOMIZATION_OPTION, "SELECT ID, Name_lang FROM chr_customization_option_locale"
" WHERE (`VerifiedBuild` > 0) = ? AND locale = ?", CONNECTION_SYNCH);
Expand Down Expand Up @@ -607,7 +607,7 @@ void HotfixDatabaseConnection::DoPrepareStatements()

// Difficulty.db2
PrepareStatement(HOTFIX_SEL_DIFFICULTY, "SELECT ID, Name, InstanceType, OrderIndex, OldEnumValue, FallbackDifficultyID, MinPlayers, MaxPlayers, "
"Flags, ItemContext, ToggleDifficultyID, GroupSizeHealthCurveID, GroupSizeDmgCurveID, GroupSizeSpellPointsCurveID FROM difficulty"
"Flags, ItemContext, ToggleDifficultyID, GroupSizeHealthCurveID, GroupSizeDmgCurveID, GroupSizeSpellPointsCurveID, Unknown1105 FROM difficulty"
" WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH);
PREPARE_MAX_ID_STMT(HOTFIX_SEL_DIFFICULTY, "SELECT MAX(ID) + 1 FROM difficulty", CONNECTION_SYNCH);
PREPARE_LOCALE_STMT(HOTFIX_SEL_DIFFICULTY, "SELECT ID, Name_lang FROM difficulty_locale WHERE (`VerifiedBuild` > 0) = ? AND locale = ?", CONNECTION_SYNCH);
Expand Down Expand Up @@ -1153,7 +1153,7 @@ void HotfixDatabaseConnection::DoPrepareStatements()
PrepareStatement(HOTFIX_SEL_LFG_DUNGEONS, "SELECT ID, Name, Description, TypeID, Subtype, Faction, IconTextureFileID, RewardsBgTextureFileID, "
"PopupBgTextureFileID, ExpansionLevel, MapID, DifficultyID, MinGear, GroupID, OrderIndex, RequiredPlayerConditionId, RandomID, ScenarioID, "
"FinalEncounterID, CountTank, CountHealer, CountDamage, MinCountTank, MinCountHealer, MinCountDamage, BonusReputationAmount, MentorItemLevel, "
"MentorCharLevel, ContentTuningID, Flags1, Flags2 FROM lfg_dungeons WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH);
"MentorCharLevel, MaxPremadeGroupSize, ContentTuningID, Flags1, Flags2 FROM lfg_dungeons WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH);
PREPARE_MAX_ID_STMT(HOTFIX_SEL_LFG_DUNGEONS, "SELECT MAX(ID) + 1 FROM lfg_dungeons", CONNECTION_SYNCH);
PREPARE_LOCALE_STMT(HOTFIX_SEL_LFG_DUNGEONS, "SELECT ID, Name_lang, Description_lang FROM lfg_dungeons_locale WHERE (`VerifiedBuild` > 0) = ?"
" AND locale = ?", CONNECTION_SYNCH);
Expand Down Expand Up @@ -1738,7 +1738,7 @@ void HotfixDatabaseConnection::DoPrepareStatements()

// SpellMisc.db2
PrepareStatement(HOTFIX_SEL_SPELL_MISC, "SELECT ID, Attributes1, Attributes2, Attributes3, Attributes4, Attributes5, Attributes6, Attributes7, "
"Attributes8, Attributes9, Attributes10, Attributes11, Attributes12, Attributes13, Attributes14, Attributes15, DifficultyID, "
"Attributes8, Attributes9, Attributes10, Attributes11, Attributes12, Attributes13, Attributes14, Attributes15, Attributes16, DifficultyID, "
"CastingTimeIndex, DurationIndex, PvPDurationIndex, RangeIndex, SchoolMask, Speed, LaunchDelay, MinDuration, SpellIconFileDataID, "
"ActiveIconFileDataID, ContentTuningID, ShowFutureSpellPlayerConditionID, SpellVisualScript, ActiveSpellVisualScript, SpellID FROM spell_misc"
" WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH);
Expand Down
23 changes: 12 additions & 11 deletions src/server/game/DataStores/DB2LoadInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -792,9 +792,9 @@ struct BroadcastTextDurationLoadInfo
static constexpr DB2FieldMeta Fields[4] =
{
{ false, FT_INT, "ID" },
{ false, FT_INT, "BroadcastTextID" },
{ true, FT_INT, "Locale" },
{ true, FT_INT, "Duration" },
{ false, FT_INT, "BroadcastTextID" },
};

static constexpr DB2LoadInfo Instance{ Fields, 4, &BroadcastTextDurationMeta::Instance, HOTFIX_SEL_BROADCAST_TEXT_DURATION };
Expand Down Expand Up @@ -1060,14 +1060,12 @@ struct ChrCustomizationMaterialLoadInfo

struct ChrCustomizationOptionLoadInfo
{
static constexpr DB2FieldMeta Fields[15] =
static constexpr DB2FieldMeta Fields[13] =
{
{ false, FT_STRING, "Name" },
{ false, FT_INT, "ID" },
{ false, FT_SHORT, "SecondaryID" },
{ true, FT_INT, "Flags" },
{ true, FT_INT, "ChrRacesID" },
{ true, FT_INT, "Sex" },
{ false, FT_INT, "ChrModelID" },
{ true, FT_INT, "SortIndex" },
{ true, FT_INT, "ChrCustomizationCategoryID" },
Expand All @@ -1079,7 +1077,7 @@ struct ChrCustomizationOptionLoadInfo
{ true, FT_INT, "AddedInPatch" },
};

static constexpr DB2LoadInfo Instance{ Fields, 15, &ChrCustomizationOptionMeta::Instance, HOTFIX_SEL_CHR_CUSTOMIZATION_OPTION };
static constexpr DB2LoadInfo Instance{ Fields, 13, &ChrCustomizationOptionMeta::Instance, HOTFIX_SEL_CHR_CUSTOMIZATION_OPTION };
};

struct ChrCustomizationReqLoadInfo
Expand Down Expand Up @@ -1792,7 +1790,7 @@ struct DestructibleModelDataLoadInfo

struct DifficultyLoadInfo
{
static constexpr DB2FieldMeta Fields[14] =
static constexpr DB2FieldMeta Fields[15] =
{
{ false, FT_INT, "ID" },
{ false, FT_STRING, "Name" },
Expand All @@ -1808,9 +1806,10 @@ struct DifficultyLoadInfo
{ false, FT_INT, "GroupSizeHealthCurveID" },
{ false, FT_INT, "GroupSizeDmgCurveID" },
{ false, FT_INT, "GroupSizeSpellPointsCurveID" },
{ true, FT_INT, "Unknown1105" },
};

static constexpr DB2LoadInfo Instance{ Fields, 14, &DifficultyMeta::Instance, HOTFIX_SEL_DIFFICULTY };
static constexpr DB2LoadInfo Instance{ Fields, 15, &DifficultyMeta::Instance, HOTFIX_SEL_DIFFICULTY };
};

struct DungeonEncounterLoadInfo
Expand Down Expand Up @@ -3661,7 +3660,7 @@ struct LanguagesLoadInfo

struct LfgDungeonsLoadInfo
{
static constexpr DB2FieldMeta Fields[31] =
static constexpr DB2FieldMeta Fields[32] =
{
{ false, FT_INT, "ID" },
{ false, FT_STRING, "Name" },
Expand Down Expand Up @@ -3691,12 +3690,13 @@ struct LfgDungeonsLoadInfo
{ false, FT_SHORT, "BonusReputationAmount" },
{ false, FT_SHORT, "MentorItemLevel" },
{ false, FT_BYTE, "MentorCharLevel" },
{ false, FT_BYTE, "MaxPremadeGroupSize" },
{ true, FT_INT, "ContentTuningID" },
{ true, FT_INT, "Flags1" },
{ true, FT_INT, "Flags2" },
};

static constexpr DB2LoadInfo Instance{ Fields, 31, &LFGDungeonsMeta::Instance, HOTFIX_SEL_LFG_DUNGEONS };
static constexpr DB2LoadInfo Instance{ Fields, 32, &LFGDungeonsMeta::Instance, HOTFIX_SEL_LFG_DUNGEONS };
};

struct LightLoadInfo
Expand Down Expand Up @@ -5730,7 +5730,7 @@ struct SpellLevelsLoadInfo

struct SpellMiscLoadInfo
{
static constexpr DB2FieldMeta Fields[32] =
static constexpr DB2FieldMeta Fields[33] =
{
{ false, FT_INT, "ID" },
{ true, FT_INT, "Attributes1" },
Expand All @@ -5748,6 +5748,7 @@ struct SpellMiscLoadInfo
{ true, FT_INT, "Attributes13" },
{ true, FT_INT, "Attributes14" },
{ true, FT_INT, "Attributes15" },
{ true, FT_INT, "Attributes16" },
{ false, FT_BYTE, "DifficultyID" },
{ false, FT_SHORT, "CastingTimeIndex" },
{ false, FT_SHORT, "DurationIndex" },
Expand All @@ -5766,7 +5767,7 @@ struct SpellMiscLoadInfo
{ false, FT_INT, "SpellID" },
};

static constexpr DB2LoadInfo Instance{ Fields, 32, &SpellMiscMeta::Instance, HOTFIX_SEL_SPELL_MISC };
static constexpr DB2LoadInfo Instance{ Fields, 33, &SpellMiscMeta::Instance, HOTFIX_SEL_SPELL_MISC };
};

struct SpellNameLoadInfo
Expand Down
Loading

0 comments on commit cf3ca27

Please sign in to comment.