Commit Graph
61 Commits
Author SHA1 Message Date
Vincent-Michael 913d112449 Core/Hotfix: Fixed startup in bc106abb07 2016-04-24 20:39:29 +02:00
Naios 4f9352d773 Core/Updater: Correct the config key hint of a log message
(cherry picked from commit dadc02d77a969ef97a6726c509a1851b5e4fed32)
2016-04-23 17:26:14 +02:00
Shauren 67fd3ee726 Core/Misc: Fixed warnings found by GCC 6 2016-04-22 13:45:23 +02:00
Naios a679829050 Core/Cryptography: Move the SHA1 calculate helper to the SHA1 header
(cherry picked from commit 3271f328de35f940f682a0dbe1d9466e29190182)
2016-04-18 22:11:16 +02:00
Naios 3497b4960b Core/Common: Capsule boost process into helper functions
* For easier usage, the processes output it routed
  correctly to the TC logger line by line now.
* Add support for asynchronous process execution
  and process termination.
2016-04-11 20:07:24 +02:00
Gigi1237 c19172cad9 Core/Blackmarket: Implemented black market 2016-04-11 18:22:09 +02:00
Shauren 4a3a178d7f Buildsystem: Initial changes to support building with vs clang toolset 2016-04-05 22:43:41 +02:00
Shauren 4e67383621 Merge branch '3.3.5-instanceextend' into 3.3.5 (PR #16392)
(cherry picked from commit 62aff401f687b56d720a320778950e82b65fbd8b)
2016-04-05 20:35:59 +02:00
Shauren 70412e7e25 Core/Misc: MSVC warning fixes 2016-04-05 00:15:56 +02:00
Shauren dde620c402 Core: Updated to 6.2.4
* Rewrite bnetserver for new authentication protocol
2016-03-28 17:12:57 +02:00
Shauren 619669c620 Core/PacketIO: Updated remaining packet structures and enums appearing in packets 2016-03-28 15:23:41 +02:00
Shauren 9ad79934d3 Core/PacketIO: Updated packet structures to 6.2.4.21355 2016-03-25 21:33:55 +01:00
Naios 6cfea2d8f7 Core/Database: Converted the database library to a shared library.
* There is still the possibility to static link against database.
2016-03-24 01:28:59 +01:00
Naios 5fe83abbe5 CMake: Use inherited dependencies in database, shared and game
(cherry picked from commit 469f2d3ade168de0b5be18112008c337067a8e03)
2016-03-19 23:19:53 +01:00
Naios 0db4f018e8 CMake: Use inherited dependencies in common and tools
(cherry picked from commit abda7a910a760687f9c1b9e0893314e04982c0f1)
2016-03-19 23:19:52 +01:00
Naios a8fe7f6eb7 Core/Database: Move singleton instances into compilation units
* Fixes issues when building shared libraries
  (prevents gcc and clang from providing several instance)
* Also instantiate the database worker pools in DatabaseEnv.cpp now.
2016-03-11 18:25:55 +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 62815c6e1c0427e1d0229d02b1ba70449654cded)
2016-03-03 01:51:50 +01:00
Naios 31c8f9a7ed Core/Database: Move DatabaseWorkerPool into it's own translation unit
(cherry picked from commit 09fa0ab46a487ea85d475ac0b3495724c170fe1a)
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 5ed018099418099e23921409ff96dc6175b97062)
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 7d3cffc297b6a1e24faf64a19b5167609ad8abbf)
2016-03-03 01:27:02 +01: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
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 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 ae1a5c6c2b82918850cb7b851e2f7dff33a40c57)
2016-02-20 20:32:34 +01:00
jackpoz 1ab8f0b00e Core/Quest: Fix issues reported by static analysis
(cherry picked from commit 5b8b32dac7bd4071462aebdc94b2b3ae45e60b1e)
2016-01-15 20:35:24 +01:00
Shauren d00ba9587d Core/DataStores: Dropped unused DB2 file 2016-01-10 23:26:45 +01:00
Shauren 2a6f65fddc Core/Players: Split playerBytes fields in characters table 2016-01-05 00:03:18 +01:00
Duarte Duarte 6b529fcd43 Core/DBUpdater: Fix help text download link
Change from forums to GH Releases
2016-01-04 22:51:48 +00:00
Shauren d9849fb87b Core/DataStores: Implemented checking PlayerCondition for future use 2016-01-03 00:40:18 +01:00
Vincent-Michael 478cc756eb Update copyright note for 2016
Happy new year (Again new year with idiots ...)
2016-01-01 00:34:25 +01:00
Shauren d5fb18d3c3 Core/Spells: Implemented scaling spell value with item level 2015-11-24 00:16:42 +01:00
Shauren d31706b07e Core/DBLayer: Improve error message from 0a27f8bce2 2015-11-13 22:43:36 +01:00
Shauren 5604aed5f1 Fix build for mysql versions older than 5.7 2015-11-13 00:01:31 +01:00
Shauren 0a27f8bce2 Core/DBLayer: Ensure that MySQL version used when compiling is the same as libmysql.dll version used for running the server.
Ref #15848
2015-11-12 17:54:22 +01:00
Vincent-Michael 6d01960448 Updated url for tc wiki 2015-11-07 11:22:16 +01:00
pete318 39d29edf93 Merge pull request #15707 from ShinDarth/pvpstats
Core/BG fix .character changefaction pvpstats victories amount
(cherry picked from commit 69941864efa9e40a787f53f055c79336378b8d4d)

Conflicts:
	sql/base/characters_database.sql
	src/server/game/Battlegrounds/Battleground.cpp
2015-11-06 23:46:03 +01:00
Shauren 49543a5174 Core/Accounts: Unified game account ban checks with 3.3.5 branch 2015-11-05 21:24:42 +01:00
Shauren c463c84325 Core/Auth: Added missing lock country check to AuthSession handler 2015-11-02 20:23:39 +01:00
MitchesD 9fe29de260 Core/Player: implemented Heirloom Collection
* implemented all things related to that collection
* you can create heirloom by click on item in collection
* also you can upgrade heirlooms by using specific kits
* old heirlooms are converted to new ones
2015-10-16 23:09:42 +02:00
Naios 1bce131bdc CMake: Fix bad generation of "revision_data.h" not including MYSQL_EXECUTABLE.
* was caused through invoking "FindMySQL" after using ${MYSQL_EXECUTABLE}.
* better re-run CMake if you are affected by the mysql exe wasn't found issue.

(cherry picked from commit 45a60c2d22a93f6196491a0eb0478d05795e310f)
2015-10-05 17:18:15 +02:00
Naios 02ab60a133 Core/Updater: Fix mysql in path check/search.
(cherry picked from commit a561edefb90af25864aeb7ca7fc48fe0364df765)
2015-10-05 17:17:56 +02:00
Shauren aaaa1c3441 Core/World: Store account id in CharacterInfo to reduce the amount of database queries 2015-10-05 15:06:27 +02:00
Shauren fd17ea1643 Core/Players: Removed db queries from friend packet builders 2015-10-02 20:00:49 +02:00
Shauren cd27fd38b9 Core/Maps: Moved corpse management to map level 2015-09-28 17:20:27 +02:00
joschiwald e51b660177 Core/Updater: fixed host parameter is being ignored 2015-09-26 19:18:05 +02:00
Shauren 20423c363a Build fix 2015-09-26 00:50:22 +02:00
Shauren 2d109b63e2 Core/Updater: Pipe mysql process output into worldserver log 2015-09-26 00:24:22 +02:00
StormBytePP 0bed9d56cb Core: Added ABORT() macro to prevent the usage of ASSERT(false) as a quick hack to crash the core misusing assert 2015-09-21 15:17:05 +02:00
Shauren 3109ab2da0 Core/DBLayer: Allowed using GetDouble for SUM results instead of requiring string conversions 2015-09-13 11:13:04 +02:00
Shauren 1efb3f08e2 Core/Spells: Improved spell category cooldown handling
* Category cooldown is stored with the spell that started the cooldown (and only resetting cooldown on that spell will clear cooldowns on entire category - this fully mirrors client behavior)
* This significantly reduces the amount of data saved to database for cooldowns
* Spell casts from items that have a different category specified than on spell will now check for cooldown during the cast

Closes #15349
2015-09-10 19:39:30 +02:00