Files
azerothcore-wotlk-pbot/doc/changelog/master.md
AzerothCoreBot b405b5130a chore(DB): import pending files
Referenced commit(s): 0897705a68
2021-07-15 22:56:34 +00:00

9.6 KiB

4.0.0-dev.10 | Commit: [0897705a68

](0897705a68

How to upgrade

Upgrade your Boost version to 1.74 or higher.

4.0.0-dev.9 | Commit: [edfc2a8db4

](edfc2a8db4

Changelog for commit "feature(Core/Spells): Allow to learn all spells for characters on creation"

Added

  • All abilities for classes up to TBC into playercreateinfo_spell_custom
  • Config option PlayerStart.AllSpells - If enabled, players will start with all their class spells (not talents). You must populate playercreateinfo_spell_custom table with the spells you want, or this will not work! The table has data for all classes / races up to TBC expansion.

Removed

  • Config option PlayerStart.CustomSpells

How to upgrade

  • Update the worldserver.conf file with the new PlayerStart.AllSpells if you want to change it to "ON". Otherwise it will go with the default option "OFF" from the worldserver.conf.dist file.

4.0.0-dev.8 | Commit: [edfc2a8db4

](edfc2a8db4

Changelog for commit "fix(Core/Player): Use SkillLineAbility.dbc to determine player initial spells - skill assignment done in a new table playercreateinfo_skills"

Added

  • playercreateinfo_skills - New Database table for skill assignment.

Removed

  • playercreateinfo_spells

Changed

  • Use SkillLineAbility.dbc to determine player initial spells.
  • Renamed SkillLineAbilityEntry fields

How to upgrade

-    uint32    id;                                           // 0        m_ID
-    uint32    skillId;                                      // 1        m_skillLine
-    uint32    spellId;                                      // 2        m_spell
-    uint32    racemask;                                     // 3        m_raceMask
-    uint32    classmask;                                    // 4        m_classMask
-    //uint32    racemaskNot;                                // 5        m_excludeRace
-    //uint32    classmaskNot;                               // 6        m_excludeClass
-    uint32    req_skill_value;                              // 7        m_minSkillLineRank
-    uint32    forward_spellid;                              // 8        m_supercededBySpell
-    uint32    learnOnGetSkill;                              // 9        m_acquireMethod
-    uint32    max_value;                                    // 10       m_trivialSkillLineRankHigh
-    uint32    min_value;                                    // 11       m_trivialSkillLineRankLow
-    //uint32    characterPoints[2];                         // 12-13    m_characterPoints[2]
+    uint32 ID;                                              // 0
+    uint32 SkillLine;                                       // 1
+    uint32 Spell;                                           // 2
+    uint32 RaceMask;                                        // 3
+    uint32 ClassMask;                                       // 4
+    //uint32 ExcludeRace;                                   // 5
+    //uint32 ExcludeClass;                                  // 6
+    uint32 MinSkillLineRank;                                // 7
+    uint32 SupercededBySpell;                               // 8
+    uint32 AcquireMethod;                                   // 9
+    uint32 TrivialSkillLineRankHigh;                        // 10
+    uint32 TrivialSkillLineRankLow;                         // 11
+    //uint32 CharacterPoints[2];                            // 12-13
  • for example skillLine->forward_spellid will become skillLine->SupercededBySpell

4.0.0-dev.7 | Commit: [59a3912a3b

](59a3912a3b

Removed

How to upgrade

  • player->ADD_GOSSIP_ITEM(whatever) -> AddGossipItemFor(player, whatever)
  • player->ADD_GOSSIP_ITEM_DB(whatever) -> AddGossipItemFor(player, whatever)
  • player->ADD_GOSSIP_ITEM_EXTENDED(whatever) -> AddGossipItemFor(player, whatever)
  • player->CLOSE_GOSSIP_MENU() -> CloseGossipMenuFor(player)
  • player->SEND_GOSSIP_MENU(textid, creature->GetGUID()) -> SendGossipMenuFor(player, textid, creature->GetGUID())

You also need #include "ScriptedGossip.h" in your cpp files

4.0.0-dev.6 | Commit: [59a3912a3b

](59a3912a3b

Changed

  • New options for loading scripts static dynamic minimal-static minimal-dynamic #5346
static - Build statically. Default option. for all scripts (As it was before)
dynamic - Build dynamically. After start support Dynamic Linking Library (DLL) can make separated library for each script. Now don't support
minimal-static - builds commands and spells statically
minimal-dynamic - builds commands and spells dynamically. Now don't support
  • Also the default value which is provided by the SCRIPTS variable is overwriteable through the SCRIPTS_COMMANDS, SCRIPTS_SPELLS... variable.
  • Each subdirectory contains it's own translation unit now which is responsible for loading it's directory
  • If module using deprecated script loader api, you get error message.
> Module (mod-ah-bot) using deprecated loader api

How to upgrade

  • For most modules, the `CMakeLists.txt' file is no longer needed
  • Need change script loader file.
1. Rename extension in file to `.cpp`
2. Rename general loading function to `Add(module name with replace all whitespace to '_')Scripts()`.
3. Delete macros `AC_ADD_SCRIPT_LOADER` from `CMakeLists.txt`
  • Example loader script for modules:
/*
 * Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3
 */

// From SC
void AddSC_ServerAutoShutdown();

// Add all scripts
void Addmod_server_auto_shutdownScripts()
{
    AddSC_ServerAutoShutdown();
}

4.0.0-dev.5 | Commit: [59a3912a3b

](59a3912a3b

Added

  • New cmake option WITH_STRICT_DATABASE_TYPE_CHECKS #5611

Changed

  • Prevent mixing databases with query holders #5611
  • Prevent using prepared statements on wrong database #5611
  • Prevent committing transactions started on a different database #5611
  • Convert async queries to new query callbacks #5611

How to upgrade

  • PreparedStatement
- PreparedStatement* stmt = LoginDatabase.GetPreparedStatement(LOGIN_UPD_LOGONPROOF);
+ LoginDatabasePreparedStatement* stmt = LoginDatabase.GetPreparedStatement(LOGIN_UPD_LOGONPROOF);
  • SQLTransaction
- SQLTransaction trans = CharacterDatabase.BeginTransaction();
+ CharacterDatabaseTransaction trans = CharacterDatabase.BeginTransaction();

4.0.0-dev.4 | Commit: [fbad1f3d6c

](fbad1f3d6c

Added

  • new hook OnBeforeSendJoinMessageArenaQueue and OnBeforeSendExitMessageArenaQueue

Changed

  • Rename CanExitJoinMessageArenaQueue to OnBeforeSendExitMessageArenaQueue
  • Rename CanSendJoinMessageArenaQueue to OnBeforeSendJoinMessageArenaQueue

How to upgrade

  • Just rename all hooks from CanExitJoinMessageArenaQueue and CanSendMessageArenaQueue, to OnBeforeSendExitMessageArenaQueue
  • Just rename all hooks from CanSendJoinMessageArenaQueue and OnBeforeSendJoinMessageArenaQueue

4.0.0-dev.3 | Commit: [c35dde6fae

](c35dde6fae

Changelog for commit "refactor(Collision): Update some methods to UpperCamelCase"

Changes

- getPosition
- getBounds
- getBounds2
- getInstanceMapTree
- getModelInstances
- getPosInfo
- getMeshData
- getGroupModels
- getIntersectionTime
- getObjectHitPos
- getAreaInfo
+ GetPosition
+ GetBounds
+ GetBounds2
+ GetInstanceMapTree
+ GetModelInstances
+ GetPosInfo
+ GetMeshData
+ GetGroupModels
+ GetIntersectionTime
+ GetObjectHitPos
+ GetAreaInfo

How to upgrade

If you are using any of those methods, simply rename it by changing the first letter of the method from lowercase to uppercase.

Example: getAreaInfo -> GetAreaInfo

4.0.0-dev.2 | Commit: 3f70d0b80ff483f142ffbebf8960aeb503913a35

Added

  • Created new changelog system.

How to upgrade

To create a new changelog please follow the instructions on our wiki page