Commit Graph
100 Commits
Author SHA1 Message Date
treeston 1fb05a1797 Common/Utilities: More std::chrono overloads for EventMap. Specifying 2 std::chrono types now gives you a random (to milliseconds) time in that interval (inclusive) for (Re)ScheduleEvent. 2016-09-14 14:34:10 +02:00
Naios f0e47a27f9 Core/Define: Remove the conditional macro for constexpr.
* Not needed anymore since the requirements were raised to MSVC 2015.
2016-08-29 22:08:31 +02:00
Naios 65e2355c8f Core/Common: Correct the linking of localeNames 2016-08-29 22:08:15 +02:00
jackpoz e6c7894be1 Tools/MMapGenerator: Avoid saving uninitialized padding bytes to disk
Initialize padding bytes in MmapTileHeader struct to avoid saving uninitialized data to disk, causing issues when binary-comparing *.mmtile files.
2016-08-18 09:35:04 +02:00
roc13x a54adfd894 Core/Build: Fixed dynamic mode build
Core can now be built in dynamic mode, enabling the hotswap system to be
used.

Hotswap works fine on Windows. Didnt work for me on Debian, the rebuild
and reload process happens but the old version of the module remains for
some reason. Cant figure it out right now
2016-08-13 17:26:30 +01:00
jackpoz 1d6adef396 Common/Common: Reduce differences between 3.3.5 and 6.x branches
Code functionality shouldn't have been modified.
2016-08-12 11:58:55 +02:00
Aokromes e201c034c7 Core/Common: Converted the common library to a shared library.
* There is still the possibility to static link against common.
2016-08-12 11:58:18 +02:00
Naios a354feb48b Core/EventProcessor: Check whether an event was aborted before aborting it.
* Fixes an assertion introduced in commit 1ad73212dca0cf.
* Use itr = std::unordered_map<...>::erase for updating the iterator.
2016-08-10 09:05:17 +02:00
Naios 80d77dfb46 Core/EventProcessor: Wait for non deletable events to get deletable.
* Immediate deletion caused issues with the SpellEvent,
  so we delete it at one of the next update ticks now.
* Only affects the unforced cancellation of events.
* Ref #16675
2016-08-10 09:04:55 +02:00
Naios d4e76b75dc Core/Common: Add the linkage type to the version string
* Add platform strings for intel and apple
* Remove usage of underscore uppercase identifiers because
  those are reserved for the compiler.
* Requested by Aokromes

(cherry picked from commit afa0bac669ac787e6bd35273c967a58b3e4e2196)
2016-08-10 09:03:50 +02:00
Aokromes 9264bfaf86 Core/Game: Remove some unnecessary export macros 2016-08-10 09:03:10 +02:00
Naios a682a01270 Core/Common: Move the query callback header to the database project
* Also renames the header to it's correct name QueryCallback
2016-08-10 08:59:35 +02:00
Naios 2cd46f6f05 Core/Utilities: Inherit env vars when starting external processes 2016-08-10 08:58:38 +02:00
Naios 176f3f1a87 Core/Common: Fix a std::string -> char* -> std::string conversion
* Thanks jackpoz for noticing
2016-08-10 08:58:09 +02:00
Naios 7a827fe435 Core/Cryptography: Move the SHA1 calculate helper to the SHA1 header 2016-08-10 08:56:37 +02:00
Naios a75d2b01fb 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-08-10 08:51:52 +02:00
Aokromes 231d680826 typo fix 2016-08-10 08:21:10 +02:00
Aokromes 384a5216fd Core/Common: Converted the common library to a shared library.
* There is still the possibility to static link against common.
2016-08-10 08:19:25 +02:00
Aokromes 4905073101 Buildsystem: Initial changes to support building with vs clang toolset 2016-08-10 04:43:29 +02:00
Shauren ea918e1b69 Core/Utils: Added additional argument to Tokenizer class to make it behave like strtok - not returning empty tokens in case of multiple consecutive separators in input string
(cherry picked from commit dd1533b315bda37e1d43ebe0fb8bde87381c6e66)
2016-08-07 21:28:29 +02:00
jackpoz 0f965a530e Common/Threading: Reduce differences between 3.3.5 and 6.x branches
Code functionality shouldn't have been modified.
2016-08-04 23:48:39 +02:00
jackpoz 44165712ca Common/Logging: Reduce differences between 3.3.5 and 6.x branches
Code functionality shouldn't have been modified.
2016-08-04 21:56:30 +02:00
jackpoz e8bc203651 Common/Debugging: Reduce differences between 3.3.5 and 6.x branches
Code functionality shouldn't have been modified.
2016-08-04 20:57:38 +02:00
jackpoz 5dcb395e90 Common/Crypto: Reduce differences between 3.3.5 and 6.x branches
Code functionality shouldn't have been modified.
2016-08-03 23:35:34 +02:00
jackpoz 3c66feafcc Common/Maps: Reduce differences between 3.3.5 and 6.x branches
Code functionality shouldn't have been modified.
2016-08-03 22:39:59 +02:00
jackpoz 8cd5cefaf6 Common/Maps: Reduce differences between 3.3.5 and 6.x branches
Code functionality shouldn't have been modified.
2016-08-03 19:48:38 +02:00
Vincent-Michael aa61332af8 Core: Revert fail
(cherry picked from commit b5329d8a0394888fdf955afe0ac726ad63534220)
2016-07-22 18:51:10 +02:00
Vincent-Michael 0d7a6c6556 Core: Added missing overrides
(cherry picked from commit 5d584116feab33ac04135e46ba9b43738a02e106)
2016-07-22 18:50:26 +02:00
jackpoz 648b8859d5 Core/Crash reporting: Better handle max nesting level setting
Fix wheaty exception report counting reference symbols as 2 nesting levels, not logging child objects in some cases, i.e. spell id in SpellEvent crash.
2016-07-20 18:30:50 +02:00
jackpoz d9f485273c Core/VMaps: Fix some vmap height edge cases
Fix Map::GetWaterOrGroundLevel() checking dynamic object only in phase 1 instead of current Unit phase.
Improve DynamicMapTree::getHeight() dynamic object check by casting the ray at +0.5f from the passed Z coordinate, this value will be tuned to improve even more the results.
2016-07-20 15:45:05 +02:00
Shauren f11a9a31c2 Core/Containers: Warning fixes and RandomResizeList with predicate optimization 2016-07-20 13:28:41 +02:00
Naios 74a588b462 Core/Misc: Replace tc's optional with boost::optional. (very partial cherry-pick)
* benefits from empty optimization (objects are only constructed if needed).
* supports r-value references (move semantics) (boost >= 1.56.0).
* preparation for c++14/17's std::optional and std::none_t.
* add move constructor to CompactArray.

(cherry picked from commit 800d5d893964a82265577d3352d683035b589f78)
2016-07-19 13:37:37 +02:00
Aokromes f5de65fd96 Core/Misc: MSVC /W4 warning fixes 2016-07-19 13:02:54 +02:00
Aokromes 9c1b965136 Core/Misc: MSVC warning fixes 2016-07-19 12:40:58 +02:00
ariel- 1a6f3472da Core/Misc: remove unused function prototype 2016-07-17 14:11:33 +02:00
Aokromes 9cf3bdf125 Core/Build: Add the possibility to link libraries dynamically.
* makes it possible to access exported singletons from other shared lib's.
* reduces binary size
2016-07-15 20:35:32 +02:00
Aokromes 5ecf2e318c Update MMapManager.cpp 2016-06-24 17:16:14 +00:00
Aokromes 1cc604cdee by et65 closes https://github.com/TrinityCore/TrinityCore/issues/16910 2016-06-23 10:24:55 +02:00
Aokromes 460a660d4f CMake: Use inherited dependencies in common and tools (partial pick, need help on this) 2016-05-23 06:24:26 +02:00
Naios 9ac55d9181 Dep/CppFormat: Update cppformat to cppformat/cppformat@5174b8c
Conflicts:
	src/server/worldserver/CMakeLists.txt
2016-05-16 22:37:02 +02:00
Shauren 2aa7dff892 Core/Misc: Use steady_clock instead of system_clock for calculating ms timers. This makes update diffs immune to systemwide time changes
(cherry picked from commit 406ac4f4b492e8733d0c1e6142838b3fff8c80a3)
2016-05-12 09:09:13 +02:00
joschiwald 42033fd904 Core/Utils: replaced std::random_shuffle with our own implementation using SFMT random generator 2016-05-12 09:07:29 +02:00
Shauren 4c3db96715 Core/Common: Moved MessageBuffer to common
(cherry picked from commit a81a204678f4cbd8b8a53333600f50f0b494706a)
2016-05-12 08:28:38 +02:00
DDuarte 477a4edfe2 Core/Config: Fix 3 more missing config warnings
Closes #16861

Thanks tkrokli

(cherry picked from commit 0afcefea2724081968b07119ebd54943fdc44b60)
2016-05-12 08:24:45 +02:00
DDuarte 06a91b090d Core/Config: Error logging for ptree_bad_data
Ref https://github.com/TrinityCore/TrinityCore/commit/6487e2f2d6a1ddbeff77362219658376b8a3f9f0#commitcomment-16888976

(cherry picked from commit 9431b94bff939457cb915da3728cda6067674558)
2016-05-12 08:24:32 +02:00
DDuarte 6cc4cc362d Core/Startup: Warn when a config key isn't found in the config files
Example: "Missing name Guild.SaveInterval in config file worldserver.conf, add "Guild.SaveInterval = 15" to this file"
(cherry picked from commit 06b3bca0d2bf6f049128da110681a5244d90225a)

# Conflicts:
#	src/common/Configuration/Config.cpp
2016-05-12 08:22:15 +02:00
Shauren b68437da60 Core/Util: Extracted GetPID to separate function
(cherry picked from commit e3af42e05cdf9e4c959d4e038349008da4faca27)
2016-05-12 08:04:52 +02:00
MitchesD c5d2ece2fe Core/Misc: fix build
(cherry picked from commit ce5def332fa12ea4b2f3223fbaa4e41750da9cfb)
2016-05-05 03:40:27 +02:00
Shauren 702d19039e Core/Debugging: Make abort() less bad on windows by forcing crash log generation
(cherry picked from commit dea7d429abe5143672154784f93e4b19020062d5)

# Conflicts:
#	src/server/bnetserver/Main.cpp
2016-05-05 03:40:04 +02:00
Shauren fe64bdddb3 Core/Logging: Force synchronous logging after io_service shutdown - fixes logging on worldserver shutdown
(cherry picked from commit a0b2be6c1d0ae17ad8a17692d77f2020bbb9296e)
2016-05-05 03:35:07 +02:00