Commit Graph

28149 Commits

Author SHA1 Message Date
MitchesD
ce5def332f Core/Misc: fix build 2016-03-03 19:58:28 +01:00
MitchesD
82cc37e130 Core/Opcodes: enabled SMSG_PET_NAME_INVALID 2016-03-03 17:50:59 +01:00
Shauren
dea7d429ab Core/Debugging: Make abort() less bad on windows by forcing crash log generation 2016-03-03 17:29:48 +01:00
Naios
d0263c03fd Core/Database: Use RAII for resource management in MySQLConnection
* Prevents double deletion of MySQLConnection after errors
* The object stays valid after an error and will wait for a reconnect
* Also crash the server if 5 reconnects fail
* Corrects an issue where the server was crashed after one reconnect
  because mysql_thread_id was invoked with an invalid handle

(cherry picked from commit 62815c6e1c)
2016-03-03 01:51:50 +01:00
Naios
31c8f9a7ed Core/Database: Move DatabaseWorkerPool into it's own translation unit
(cherry picked from commit 09fa0ab46a)
2016-03-03 01:51:49 +01:00
Naios
6a4a65521d Core/Database: Use RAII instead of raw pointers for resource management
* Corrects dirty usage of vectors with array indexes
* Removes _connectionCount which is now handled through the vector size
* Rename magic identifier "t" to "connection"

(cherry picked from commit 5ed0180994)
2016-03-03 01:27:24 +01:00
Naios
ba3f439bcb Core/Database: Close the databases correctly when the DBUpdater fails
* Also fixes a memory leak spotted by Aokromes

(cherry picked from commit 7d3cffc297)
2016-03-03 01:27:02 +01:00
Shauren
cf2fead644 Core/Spells: Adjusted implicit targeting for SPELL_EFFECT_DESTROY_ITEM 2016-03-02 17:24:07 +01:00
DDuarte
849c906014 CMake/Revision: Use raw strings in path/executable #defines
Fixes some possible warnings (e.g. "warning C4129: 's': unrecognized character escape sequence")
especially on Windows
2016-03-02 02:11:44 +00:00
DDuarte
a939a3119f Fix non PCH build after 67b977c86a 2016-03-02 02:03:49 +00:00
DDuarte
43f9fdecff Minor 67b977c86a typo fix 2016-03-02 01:46:37 +00:00
DDuarte
67b977c86a Merge branch 'pets' of https://github.com/myran2/TrinityCore into myran2-pets
# Conflicts:
#	src/server/game/Handlers/PetHandler.cpp
#	src/server/game/Handlers/SpellHandler.cpp
#	src/server/game/Server/Packets/PetPackets.cpp
#	src/server/game/Server/Packets/PetPackets.h
#	src/server/game/Server/Protocol/Opcodes.cpp
#	src/server/game/Server/WorldSession.h
2016-03-02 01:38:39 +00:00
Shauren
397519debf Core/PacketIO: Updated and enabled SMSG_PENDING_RAID_LOCK 2016-03-01 23:44:18 +01:00
Shauren
4c94108ba9 Core/PacketIO: Updated and enabled SMSG_OVERRIDE_LIGHT 2016-02-29 23:54:20 +01:00
DDuarte
147322b570 Github: Minor updates to issue and PR templates 2016-02-29 16:02:49 +00:00
DDuarte
78f89c51de And a typo fix 2016-02-29 11:22:10 +00:00
DDuarte
de7c3c8e1c Core/Packets: Move flushbits to the correct place in SpellDispellLog 2016-02-29 11:21:25 +00:00
DDuarte
5576f06f20 Fix build and add a missing FlushBits to SpellDispellLog::Write() 2016-02-29 01:59:53 +00:00
DDuarte
f76771dca0 Core/Packets: Updated and enabled SMSG_SPELL_DISPELL_LOG 2016-02-29 01:54:18 +00:00
DDuarte
ce0deb1013 Core/Packets: Enabled CMSG_REQUEST_VEHICLE_SWITCH_SEAT and CMSG_RIDE_VEHICLE_INTERACT 2016-02-29 00:46:36 +00:00
DDuarte
a07337967b Core/Packets: Updated and enabled SMSG_SPELL_DELAYED 2016-02-29 00:23:23 +00:00
Shauren
4900d50939 Core/PacketIO: Updated and enabled SMSG_GAME_OBJECT_CUSTOM_ANIM 2016-02-28 23:14:27 +01:00
Shauren
71f48ab79b Core/PacketIO: Enabled SMSG_GUILD_EVENT_BANK_CONTENTS_CHANGED 2016-02-27 23:45:12 +01:00
joschiwald
44ad10f884 Core/Logging: fixed default logger (partial reverts 0904858624)
(cherry picked from commit 9beeca79ac)
2016-02-27 18:00:02 +01:00
joschiwald
4c9de857c9 Core/Gossips: fixed long time not seen typo in c81d6e9b4b
(cherry picked from commit 75511d0e0a)
2016-02-27 17:58:53 +01:00
Shauren
529820bc14 Core/PacketIO: Implemented SMSG_DAILY_QUESTS_RESET 2016-02-26 23:06:09 +01:00
Shauren
fc49833fa6 Add missing changes 2016-02-25 23:20:54 +01:00
Shauren
330529eda2 Core/PacketIO: Updated and enabled calendar raid lockout opcodes 2016-02-25 23:19:32 +01:00
Naios
e40371909c Core/Scripts: Prepare commands once
* Thanks @joschiwald for pointing this out

(cherry picked from commit eee75b80ac)
2016-02-24 23:30:04 +01:00
Shauren
e3b162db7a Core/IPC: Fixed bnet & world servers getting stuck on shutdown after having communicated at any point 2016-02-24 17:52:07 +01:00
Shauren
a0b2be6c1d Core/Logging: Force synchronous logging after io_service shutdown - fixes logging on worldserver shutdown 2016-02-23 23:41:18 +01:00
Shauren
8086a39210 Core/PacketIO: Requeue packets handled with STATUS_LOGGEDIN received before player is fully loaded in one step after packet processing loop - reduces used locks from 3 per packet to 1 per packet 2016-02-22 20:02:26 +01:00
Naios
346b9c1534 Core/Scripts: Remove the npc_netherweb_victim script which is handled through sai now
* Ref 546c8a5b8e

(cherry picked from commit ecd74a8ccc)
2016-02-22 16:58:02 +01:00
Naios
44223e1af1 CMake: Add the possibility to pass an arbitrary count of targets to add_cxx_pch.
* A PCH is still generated for every target which was passed to the macro
* Resolves naming conflicts when using the same PCH header from multiple projects
* Ref #15671

(cherry picked from commit a974574d6e)
2016-02-22 16:57:55 +01:00
Shauren
7afb542a49 Merge branch 'HeirloomLoginFix' into 6.x 2016-02-21 19:48:08 +01:00
KarrokDC
54ed384452 Create fallback for item-cast spells while character is still in the process of logging in.
closes #16604
2016-02-21 19:47:38 +01:00
Killyana
09614568ee DB/Creature: Add missing spawns on Azuremyst Isle 2016-02-21 16:48:46 +01:00
Naios
c43b808665 Core/Updater: Convert an assertion into a fatal error
* The error is triggered when it fails to open an update for hashing
* See 'https://community.trinitycore.org/topic/12352-worldserver-crashes-on-database-update/'
  for details
* And a minor cleanup in the UpdateFetcher
2016-02-21 15:52:50 +01:00
Naios
719159e207 Core/Common: Add a generic config helper to access built-in overwriteable paths.
* Adds CMAKE_COMMAND and CMAKE_BINARY_DIR to revision_data.h
* Move the source and mysql exe path handling out of the DBUpdater.
* Make some Config methods const for correctness.
* Remove C & CXX flags from revision_data.h
 (was unused and didn't capture all cxx vars)
* Reorder the link order to prevent `ld` from ignoring the file
* Ref #15671
2016-02-21 15:52:42 +01:00
Naios
5534915f74 Core/Scripts: Split the huge scriptloader into smaller pieces
* Each subdirectory contains it's own translation unit now
  which is responsible for loading it's directory
* Improves merging & decoupling between 3.3.5 <-> 6.x
* Removes unused Battleground loader
* Ref #15671
2016-02-21 15:36:41 +01:00
Shauren
3829a73e14 Final build fix for gcc 4.7 (no longer supported in 8 days)
(cherry picked from commit 2345e84855)
2016-02-21 14:24:37 +01:00
Naios
716c952cb9 Core/Updater: Use a different method for file reading
* Current method causes issues under CentOS 6 and could possibly
  lead to cutted buffer content when reading in textmode.
* Closes #16209

(cherry picked from commit ae1a5c6c2b)
2016-02-20 20:32:34 +01:00
Shauren
2a186f29f4 Core/Networking: Close the instance socket acceptor on shutdown 2016-02-20 12:57:38 +01:00
Shauren
97a79af470 Core/Networking: Rewrite networking threading model
Each network thread has its own io_service - this means that all operations on a given socket except queueing packets run from a single thread, removing the need for locking
Sending packets now writes to a lockfree intermediate queue directly, encryption is applied in network thread if it was required at the time of sending the packet
2016-02-19 19:23:04 +01:00
Shauren
06ec1b8fe8 Build fix - who the hell places semicolons after preprocessor defines?! 2016-02-18 00:03:52 +01:00
Shauren
5e06fdfcc3 Core/Configuration: Set default value of "Expansion" config to CURRENT_EXPANSION (whatever the value at the moment is) and prevent setting LOCALE_none as dbc locale 2016-02-17 23:41:26 +01:00
DDuarte
b6b5665158 Give emphasis to the steps part of issue_template.md 2016-02-17 20:59:05 +00:00
DDuarte
08e6294c80 Also add a template for new Github pull requests
https://github.com/blog/2111-issue-and-pull-request-templates
2016-02-17 20:33:23 +00:00
DDuarte
a624b4523f Fix typos and shortify issue template 2016-02-17 20:22:12 +00:00
DDuarte
4944802399 Add a Github issue template
https://github.com/TrinityCore/TrinityCore/issues/new
2016-02-17 19:53:19 +00:00