Commit Graph

26075 Commits

Author SHA1 Message Date
Naios
352012e531 Core/Updates: Add an automatic database update system. Automatically detects new and edited sql updates through file lists and hashing. Detects renames, deletes and is able to create and auto import full databases. * cleanups in main.cpp of world & bnetserver * refactoring in DatabaseWorkerPool.h & MySQLConnection.cpp
Make sure you re-run cmake, because boost::iostreams was added as dependency.
Maybe you need to install libboost-iostreams1.55-dev on unix as well.

Import every update manual until (included) those INSERT IGNORE updates for each database.

Thanks DDuarte and Shauren for your amazing ideas, help and advises.

In hope that nobody gets a "Your database structure is not up to date..." anymore ,-)

Signed-off-by: Naios <naios-dev@live.de>
Signed-off-by: Nayd <dnpd.dd@gmail.com>
2015-03-21 14:09:38 +00:00
Vincent-Michael
127d8a2bcc Core/PacketIO: Sync with wpp and enable some opcodes 2015-03-21 11:27:15 +01:00
Vincent-Michael
844eaae029 Core/PacketIO: Update SMSG_MAIL_QUERY_NEXT_TIME_RESULT for 6.1.0 2015-03-20 21:12:10 +01:00
MitchesD
d1b549a23a DB/World: Add all SQLs from 4.3.4 (last 3-4 months)
Multiple authors (mostly @Rushor)

538b364 DB/Quest: A Little Oomph
94671b8 DB/Quest: A Daughter's Embrace
c95510e DB/Quest: Variety is the Spice of Death
7886d3a DB/Quest: Take to the Skies
a4db55e DB/Quest: The Grasp Weakens
5fd36a6 DB/Quest: Planting the Seed of Fear
0a27c13 DB/Quest: Quest: Holland's Experiment
b398c0a DB/Quest: Johaan's Experiment
15ad27a DB/Creature: Risen Recruit
51b0fbf DB/Quest: The Shadow Grave
dccf39a DB/Quest: Tirisfal - Item-Quest-Drops
d136e80 DB/Quest: Tirisfal Questchains
fc7b6a9 DB/Quest: Undead Start
4536e3b DB/Quest: Recruitment
745e1c6 DB/Quest: The Wakening
d5aef19 DB/Quest: A Scarlet Letter
f8c0a3b DB/Quest: The Truth of the Grave
2126a91 DB/NPC: Tirisfal - Creature SAIs
057bbc9 DB/NPC: Tirisfal - Creature Movement
4db2826 DB/Quest: Dark Deeds and 5 class quests
db2ada8 DB/Creature: Maxx Avalanche
84b4b2b DB/Creature: Marie Allen, Gerard Walthorn
b1286ac DB/Creature: Add equip template to misc kezan creatures
a89cfb1 DB/Creature: The Vortex Pinnacle trash SAI
a266077 DB/Quest: Demonic Thieves item can be looted without quest
9ffa421 DB/QUEST - Ride to the Undercity
9ac83f8 DB/Creature: Misc SAI updates

Ref https://github.com/TrinityCore/TrinityCore/issues/13792
2015-03-20 20:44:41 +01:00
Duarte Duarte
b2746dd19c Merge pull request #14415 from Zedron/6.x
Core/PacketIO: Fixed teleporting between maps
2015-03-20 19:14:57 +00:00
MitchesD
f6428df949 Scripts/Misc: sync with 3cc305138c
adfd8a6 - Scripts/Mulgore: The Plains Vision - Move Corescrript to SAI
c21a600 - Delete zone_mulgore.cpp
87f40a5 - Scripts/Kalimdor: Remove Mulgorescripts
8904a94 - Scripts/The Barrens: Add missing Text for 'The Escape'
cfc5fb2 - DB/Misc: Fix a few startup errors from recent Updates (Script part)
2015-03-20 20:07:25 +01:00
Zedron
791cf47d0b Core/PacketIO: Fixed teleporting between maps
CMSG_MOVE_WORLDPORT_ACK should have STATUS_TRANSFER, as the player isn't in the world (yet)
2015-03-20 13:51:50 -05:00
MitchesD
3cc305138c DB/World: Add all SQLs from 3.3.5 (last 2 months)
Multiple authors

cb3fcea26e  DB/Misc: Fix a runtime error
890ebd385e  DB/Creature: Emissary of Hate
b2745980ae  DB/Quest: Minshina's Skull
4e5b54f65b  DB/Creature: Caretaker Dilandrus
7b915119b4  DB/Creature: Antu'sul
40b09317ef  DB/Quest: Honor the Fallen
4179c35eb2  DB/Quest: Respite for a Tormented Soul
04fb8d7f24  DB/Creature: Tiny Snowman
ea3034cb21  DB/Quest: Digging for Prayer Beads
ad350edd68  DB/Creature: Thousand Needle's Silithids
4e0fb54a41  DB/Creature: Fix immunity Herald Volazj
826717de1b  DB/Misc: Disable mmaps for Argent tournament instances
abea307cdb  DB/Gameobject: Fix some Scholomance doors
0c9e39f151  DB/Quest: A Friendly Chat
e7124c6964  DB/Creature: Irespeaker
20641e0eb2  DB/Creature: Millhouse Manastorm
5e218a8135  DB/Quest: Ready for Pickup
026c966daf  DB/Creature: Gundrak pathing
cd0186630d  DB/Creature: Halls of Stone visuals
8b139bc2df  DB/Creature: Drak'Tharon Keep pathing
6577d02c9d  DB/Creature: Drak'Tharon Keep pathing
f1b124dabc  DB/Creature: Halls of Lighting pathing
e0ea7d48ad  DB/Creature: Mellichar
bc9cfd02b7  DB/Creature: Ru'zah
c5553df9ec  DB/Item: Banish Charms
a7cb42ea72  DB/Creature: Theradrim Shardling/Theradrim Guardian
49cff7382a  DB/Quest: Tree's Company
ea96d208ec  DB/Quest: A Hearty Thanks!
c9c4cb6c04  DB/Misc: Fix one startup error
b31391d463  DB/Misc: Remove Eternal Might from NR Alchemy Research
0e4db8964b  DB/Creature: Magmoth Shaman / Totem
2449baf0fa  DB/Creature: Beryl Treasure Hunter
926df371d4  DB/Creature: Kvaldir Mist Lord
a61b2be824  DB/Creature: Fireguard Destroyer
d8c67f33f2  DB/Quest: Mission: Plague This
ad58fd5177  DB/Creature: Borean Tundra pathing
b4a62e077f  DB/Creature: Lunchbox
497ae6be70  DB/Creature: Fix few startup errors
a218ce4d22  DB/Creature: Fix startup and runtime errors
73709e7c13  DB/Quest: Fix Aces High!
e25336ae2c  DB/Creature: Scavenge-bot 004-A8
61b116efb6  DB/Creature: Stonebreaker - Waypoints and Keb'ezil's tweak
244c09db86  DB/Creature: Terokkar waypoints 1
1b2eac60ef  DB/Quest: Crushing the Crown
884bccef58  DB/Quest: Finding the Phylactery
c25ad02c54  DB/Creature: Fix SAI target_type for Scarlet Peasant
16eb49270d  DB/Misc: Wintergrasp teleporter in dalaran
f6491b4ac8  DB/Quest: Gammothra the Tormentor
ccdffeb711  DB/Quest: By Fire Be Purged
8460559b5a  DB/Quest: Becoming a Shadoweave Tailor
08bf885916  DB/Quest: Street "Cred"
b1a4a8f435  DB/NPC: Isle of Quel'Danas - Movement
015d984b79  DB/Quest: Delivering the Message
554e0c2e5d  DB/Creature: Magrin Rivermane
adfd8a6172  Scripts/Mulgore: The Plains Vision - Move Corescrript to SAI
94a97974b9  DB/Quest: The Black Knight's Fall
d0d9a5b8e6  DB/Quest: Whispers of the Raven God
46280a1bb7  DB/Misc: Startup errors
f7e2fe766d  DB/Misc: Fix 3 startup errors
ee049b908f  DB/Creature: Kyle - Move Corescript to SAI
ed08fcbaa7  DB/Misc: Fix startup errors
4132285ad3  DB/Creature: Zuluhed the Whacked
5ead00b9fc  DB/Misc: Fix startup errors
5403658814  DB/Misc: Fix startup errors
bbcf8f58e6  DB/Creature: Thrallmar - Waypoints
68c4ea3144  DB/Quest: Death from below
2f55c71734  DB/Quest: Fervor of the Frostborn
f180bc25d1  DB/Creature: Hellfire Peninsula - Waypoints 5
664de1eba2  DB/Creature: Darnassian Scouts
7691d477d5  DB/Creature: Nexus-King Salhadaar
164c12cab0  DB/Creature: Plagueborn Horro
b28228395f  DB/Quest: Escape through force
72a23a92ab  DB/Quest: Special Delivery to Shattrath City
7592b65fae  DB/Creature: Skorn WhiteCloude
a75b651e93  DB/Quest: Nothing But The Truth
f9af033b7a  DB/Creature: Cyrus Therepentous
aa6c7ab0f0  DB/Quest: Stop the Plague
a269c61e6e  DB/Quest: Fury of the Frostborn King
e9d97466da  DB/Creature: Keristrasza
64fcbb8c91  DB/Creature: Drak'Tharon Keep start sequence
cfc5fb29b6  DB/Misc: Fix a few startup errors from recent Updates
780010084e  DB/SAI: Durnan Furcutter
6c7cfccf20  DB/Misc: Fix startup error
0651b82de9  DB/Gameobject: Add 2 missing gameobjects
a7fdc27c9d  DB/Misc: Fix startup error from DTK
a19cc68496  DB/Quest: The Howling Vale
f4ee5ad58f  DB/Quest: Learning to Communicate
890d1fe57d  DB/Misc: Luna Festival (Commoner texts & Gossip)
1967dfc4cb  DB/Creature: Hai'shulud, Mature Bone Sifter and Tunneler
fe290b27e4  DB/SAI: Remove one unneeded SAI
d8ad0f5110  DB/Misc: Adition to Fervor of the Frostborn
03f32bee7b  DB/Quest: The reckoning
63913bc37b  DB/Misc: Correct gossip menu
3a293c9ac2  DB/Creature: Mug'gok
d2836cfe24  DB/Quest: Vyletongue Corruption
c87088016e  DB/Creature: Coprous the Defiled and Plagued Fiend
7fbf08d644  DB/Creature: Complete Borean Tundra Movement
3820d80ce6  DB/Misc: Fix startup errors
fe78c8ee73  DB/Quest: A Hearty Thanks!
8722164d37  DB/Quest: Seeds of Chaos
6445761827  DB/Creature: Hyldsmeet Warbear
092e61cd3d  DB/Creature: Skettis Waypoints 1
b6e3640fce  DB/Item: The Egg of Mortal Essence
a0e5f5a376  DB/Spell: Elixir of Minor Accuracy
90899e7395  DB/Quest: Wanted: Murkdeep
dc8fabe9e6  DB/Achievement: Flirt with Disaster (Faction change issue)
73f74ffcab  DB/Quest: Krolmir, Hammer of Storms
1124daab36  DB/Misc: Crusader's Pinnacle Phasing
98f7094119  DB/Creature: Northsea Kraken
a7bd64a4a6  DB/Item: Bountiful Feast
879678e50f  DB/Quest: A Distraction for Akama
37298bbc2f  DB/Creature: Add some missing gossips
50a9424e45  DB/Creature: Conditions for king jokkum
2676d56da4  DB/Quest: Basic Chemistry
5469b4cb44  DB/Quest: A Rough Ride
fa7663a9bc  DB/Conditions: Fix Taking of Mind Tricks for Alliance Players
32b792915f  DB/Quest: On Nethery Wings
3fbd10dd55  DB/Creature: Fix 2 factions and 1 spawn coords
76e7b8e00b  DB/Quest: Tooga's_Quest
a6962763aa  DB/Quest: The Lodestone
9d3af9d30c  DB/Quest: wing commander gryphongar
d195c7a71b  DB/Creature: High Tinker Mekkatorque
d6d7d956ff  DB/Quest: The Essence of Enmity
634e5d41e4  DB/Creature: Tyrion flavor text
c8c6b0fbf5  DB/Quest: Razormaw
acc235a0f8  DB/Quest: Parts for the Job
9927bb241d  DB/Quest: The Escape + Collecting Kelp
0014a9d1fc  DB/SAI: Tortured Skeleton
00f97e3ca8  DB/Creature: Dread Tactician
7af2a49e63  DB/Quest: Disrupt Their Reinforcements
810b998e77  DB/Creature: Expedition Warden
ca174e4239  DB/Creature: Susan Tillinghast
1d8f98d988  DB/Object: Stone of Remembrance
04e1f35043  DB/SAI: Scarlet Initiate
d3a20809eb  DB/Misc: Fix startup errors
125ab57133  DB/Creature: Misc SAI updates
e1f75fe0c7  DB/Creature: Misc SAI updates
222c49a0eb  DB/Creature: Misc SAI updates
66aead34d8  DB/Creature: Misc SAI updates
7fa1f9587c  DB/Creature: Misc SAI updates
d3a20809eb  DB/Misc: Fix startup errors

Ref https://github.com/TrinityCore/TrinityCore/issues/13792
Todo: some leftover scripts and 434 fixes
2015-03-20 19:41:15 +01:00
MitchesD
a5b662e0d9 Core/PacketIO: CMSG_SET_ACTIVE_MOVER, SMSG_MOVE_SET_ACTIVE_MOVER updated and enabled 2015-03-20 15:41:13 +01:00
AriDEV
3e46222c7d DB/SAI: Thunderlord War-Gronn, Ice Fury and some Pandaria SAI
Closes https://github.com/TrinityCore/TrinityCore/issues/14212
Closes https://github.com/TrinityCore/TrinityCore/issues/14211
Closes https://github.com/TrinityCore/TrinityCore/issues/14162
2015-03-20 14:43:21 +01:00
Rushor
2c6500a231 Scripts/Spells: Hand of Reins - Questsupport for 'Mounting Up'
by @untaught closes #3977

(cherry picked from commit 588b92ee05)
2015-03-20 13:16:39 +01:00
Nyeriah
a30eb73e46 Scripts/ToC: The Lich King event should only be started by the announcer
(cherry picked from commit ea78bce592)
2015-03-19 19:12:17 -03:00
Duarte Duarte
f024287521 Merge pull request #14403 from Luzifix/opcode-banksystem
Core/PacketIO: Banksystem
2015-03-19 21:14:55 +00:00
ariel-
b3a279b6ab Split up LANG_MAP_POSITION to fix a crash when issuing .gps command
Conflicts:
	src/server/game/Miscellaneous/Language.h

(cherry picked from commit 461daadcaf)
2015-03-19 11:14:02 +01:00
Carbenium
2abcd4ef46 Core/Support: Fix some static analysis issues 2015-03-19 00:52:03 +01:00
Luzifix
478e86c074 Core/PacketIO: Create BankHandler & Bank opcode Structure
Thx @gigi1237 for search Opcodes
Thx @Nayd to help with InvUpdate & InvItem Structure
2015-03-19 00:10:26 +01:00
Rushor
06744a3ef5 DB/Creature: Silithus - Complete Questrelated Stuff
* mostly texts and wps
2015-03-18 21:24:37 +01:00
Naios
433bc289c2 Core/Misc: Fix some issues detected by static analysis
* Assignment of function parameter has no effect outside the function. Did you forget dereferencing it?
  -> This argument is passed by value, it makes no sence so set it to null here.

* Member variable 'instance_violet_hold_InstanceMapScript::bWiped' is not initialized in the constructor.

* Mismatching allocation and deallocation: Data
2015-03-18 20:20:04 +01:00
Naios
e40a5bf0b1 Dep/CppFormat: Update cppformat to cppformat/cppformat@bf8636c959
* fixes detecting support of <initializer_list>
* fixes build on solaris
2015-03-18 19:19:30 +01:00
Rushor
7e6ef94cb1 DB/Creature: Un'Goro Crater - Spawn
includes:
* all rndmmovement
* all wps
* all gos
* all creatures
2015-03-18 17:12:17 +01:00
Naios
a610dea85c Core/RemoteAccess: Remove an unused define in RASession
* probably fixes gcc compile after adding cppformat
2015-03-18 16:32:19 +01:00
Naios
d64e6ffade Core/Log: Readd include of <stdarg.h> to fix compile issues under gcc 2015-03-18 15:29:56 +01:00
Nayd
a4b5b41a9b Core/LFGMgr: Fix compiler error 2015-03-18 00:53:39 +00:00
Nayd
3eaace1508 Dep/CppFormat: Fix cmake error when using GCC 2015-03-18 00:47:19 +00:00
Duarte Duarte
ec640e3840 Merge pull request #14370 from Kittnz/realm_achievement
Core/Condition: Realm Achievement condition
(cherry picked from commit 769acfbd02)
2015-03-18 00:36:17 +00:00
click
cc3387d984 Merge pull request #14371 from Kittnz/movecirclepath_003
Core: Move FillCirclePath function to MotionMaster
Closes #14371
(cherry picked from commit cf14e9051d)
2015-03-18 00:35:39 +00:00
click
3a1c778d54 Core/AHBot: Remove a lingering warning that annoyed me for all too long
(cherry picked from commit 7c8f7f6f8f)
2015-03-18 00:35:24 +00:00
jackpoz
61e0ff3208 Revert "*Do not allow players to use vehicles to go further than 1st boss in Ulduar."
This reverts commit a009e53049.
Remove hackfix for Ulduar vehicles, it should be handled in Ulduar script

(cherry picked from commit f1ae2c7b73)
2015-03-18 00:35:05 +00:00
jackpoz
38c23495b3 Core/Dungeon Finder: Fix Vote Kick breaking LFG queue
Fix Vote Kick started with party in queue breaking the whole LFG queue. The status of Vote Kick is now storing in a bool variable in LfgGroupData, separated from LfgState of the group/members.
If a Vote Kick started with party in queue, the members were not removed from queue correctly and would cause LFG matching system to match these "broken" players but not allowing to start a dungeon.

Closes #10191

(cherry picked from commit 22403121fe)
2015-03-18 00:34:51 +00:00
click
812e117b30 Core/Script: INFO->DEBUG notification changes in ToC
(cherry picked from commit 0c7c25d6ed)
2015-03-18 00:34:00 +00:00
click
5a1c4fca7c Core/Scripts: INFO-DEBUG changes in scripts (gawd)
(cherry picked from commit a8a5fae4f9)
2015-03-18 00:33:50 +00:00
click
b0ee48370d Core: INFO->DEBUG level changes - forgot one in Map.cpp
(cherry picked from commit ad7b33a47f)
2015-03-18 00:33:40 +00:00
click
49f4ffc2c8 Core: More INFO -> DEBUG changes
(cherry picked from commit 781edbe46a)
2015-03-18 00:33:31 +00:00
click
be078fd8a9 Core: WARN instead of INFO - this is actually something we'd want to be informed of...
(cherry picked from commit d5718f3372)
2015-03-18 00:33:20 +00:00
click
aec29478d3 Core: And yet more INFO->DEBUG logging
(cherry picked from commit 6f961ba138)

Conflicts:
	src/server/game/Entities/Object/Object.cpp
2015-03-18 00:32:58 +00:00
click
fb9b203be9 Core: Pet.cpp - INFO -> DEBUG level notifications...
(cherry picked from commit a31bc08e44)

Conflicts:
	src/server/game/Entities/Pet/Pet.cpp
2015-03-18 00:32:57 +00:00
click
cbe97cc37d Core: More INFO -> DEBUG (Unit.cpp this time)
(cherry picked from commit 64584e9e7a)

Conflicts:
	src/server/game/Entities/Unit/Unit.cpp
2015-03-18 00:32:56 +00:00
click
b3b7b53003 Core: INFO->DEBUG cleanups in Player.cpp
(cherry picked from commit 6e509cf7c1)

Conflicts:
	src/server/game/Entities/Player/Player.cpp
2015-03-18 00:32:55 +00:00
click
2bc44a2fb1 Core: More INFO -> DEBUG/WARN/ERROR mangling
(cherry picked from commit 15e56ed0b3)
2015-03-18 00:32:54 +00:00
Carbenium
cc0c9add5a Merge pull request #14317 from Naios/typesafelog
Type safe logging
2015-03-18 01:25:38 +01:00
click
aec6353297 Core: More INFO -> DEBUG changes (WorldSession/WorldSocket)
(cherry picked from commit 132d4ede37)

Conflicts:
	src/server/game/Server/WorldSession.cpp
	src/server/game/Server/WorldSocket.cpp
2015-03-18 00:18:20 +00:00
click
59b6c4dbbb Core: Move LOG_INFO -> LOG_DEBUG level for achievements
(cherry picked from commit 8562be602b)

Conflicts:
	src/server/game/Achievements/AchievementMgr.cpp
2015-03-18 00:17:21 +00:00
click
ff50abca8a Core: Move some MMAPS-related INFO-messages to DEBUG
(cherry picked from commit a854e17690)
2015-03-18 00:16:29 +00:00
click
c235835827 Core: Change some map-specific INFO-messages over to to DEBUG or ERROR
(cherry picked from commit ec6bec6bc4)

Conflicts:
	src/server/game/Maps/Map.cpp
2015-03-18 00:16:21 +00:00
click
4df9f46214 Core: Move some more INFO-level logentries to DEBUG
(cherry picked from commit db302c28c2)

Conflicts:
	src/server/game/Spells/Spell.cpp
	src/server/game/Spells/SpellEffects.cpp
2015-03-18 00:15:52 +00:00
jackpoz
a20905598d Core/PacketLog: Avoid unneeded calls with disabled packet logs
Avoid calling GetOpcodeNameForLogging() when packet logs are disabled.

(cherry picked from commit 5e7d4a44e0)

Conflicts:
	src/server/game/Server/WorldSocket.cpp
2015-03-18 00:13:05 +00:00
jackpoz
22d655451c Shared/Logs: Add support to .server set loglevel command after 003d67708b
Update the lowest log level when using ".server set loglevel" command.

(cherry picked from commit 43f74fd8cf)
2015-03-18 00:10:19 +00:00
jackpoz
064b6a4c84 Shared/Logs: Improve log performances
Improve Log::ShouldLog() performances by saving the lowest log level across all loggers and discarding any log with lower level than that.

(cherry picked from commit 003d67708b)
2015-03-18 00:10:02 +00:00
jackpoz
034dbe267d Core/Player: Optimize Player::HaveAtClient() performance
Change m_clientGUIDs from std::set to std::unordered_set to reduce by 2.7x times the cpu usage in Player::HaveAtClient()

(cherry picked from commit 49ececf038)
2015-03-18 00:09:32 +00:00
jackpoz
f3f44c468d Core/Collision: Fix crash when loading invalid vmap data
Fix array overflow when loading Models from vmap tiles with wrong/outdated/bad data.
Try extracting again vmaps if you see this error.
Closes #14255

(cherry picked from commit 3035a4218b)
2015-03-18 00:09:07 +00:00