aboutsummaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2016-09-01Core/Random: Remove no longer needed hack for VS 2013Shauren
2016-08-29Core/Define: Remove the conditional macro for constexpr.Naios
* Not needed anymore since the requirements were raised to MSVC 2015. (cherry picked from commit da3c03a48bdf0ef4add6aa1f718ca761afeaebbb)
2016-08-29Core/Common: Correct the linking of localeNamesNaios
(cherry picked from commit 13e5817417f48374ff460c5ccdc5f149a1ae8791)
2016-08-06Common/Utilities: Reduce differences between 3.3.5 and 6.x branchesjackpoz
Code functionality shouldn't have been modified.
2016-08-04Common/Logging: Reduce differences between 3.3.5 and 6.x branchesjackpoz
Code functionality shouldn't have been modified.
2016-08-04Core/Crash reporting: Better handle max nesting level settingjackpoz
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. (cherry picked from commit 284dd6b80d79f5691c82eda848c7474c5b87cfd9)
2016-08-04Common/Crypto: Reduce differences between 3.3.5 and 6.x branchesjackpoz
Code functionality shouldn't have been modified.
2016-08-03Common/Crypto: Reduce differences between 3.3.5 and 6.x branchesjackpoz
Code functionality shouldn't have been modified.
2016-08-03Common/Maps: Reduce differences between 3.3.5 and 6.x branchesjackpoz
Partially port 1347d7cf7a8656f3db9d8b2f6e6d955e1fa8c129 too
2016-08-02Core/Misc: remove unused function prototypeariel-
(cherry picked from commit 2efd40b8049efc4c35622a7997cc47b10b468b4d)
2016-07-19Build fix for dynamic linkingShauren
2016-07-18Tools: Extractor updatesShauren
* VMAP extractor does not work due to a bug in CascLib
2016-07-17Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into legionShauren
2016-07-17Build fix for dynamic linkingShauren
2016-07-17Tools: Added universal TrinityCore banner with git version info to all toolsShauren
2016-07-10Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into legionShauren
2016-07-07Core/MMaps: Fix crash introduced in commit 32e8b65 (#17447)et65
* Core/MMaps: Fix crash introduced in commit 32e8b6506fc064fdba134d692dfe99298e43f055 * Also fix remaining memory leaks scenarios.
2016-07-06Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into legionShauren
2016-07-05Core/EventProcessor: Check whether an event was aborted before aborting it.Naios
* Fixes an assertion introduced in commit 1ad73212dca0cf. * Use itr = std::unordered_map<...>::erase for updating the iterator. (cherry picked from commit d9755c637c39e600f145f5ecb7ff0ccf3724b1ad)
2016-07-05Core/EventProcessor: Wait for non deletable events to get deletable.Naios
* 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 (cherry picked from commit 1ad73212dca0cf8a829d15ffdbcc4cd611e64d4e)
2016-06-15Core/Common: Add the linkage type to the version stringNaios
* Add platform strings for intel and apple * Remove usage of underscore uppercase identifiers because those are reserved for the compiler. * Requested by Aokromes
2016-06-13Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into legionShauren
2016-06-04Core/Utils: Added additional argument to Tokenizer class to make it behave ↵Shauren
like strtok - not returning empty tokens in case of multiple consecutive separators in input string
2016-06-04Core/GameTables: Fixed loading gametables with trailing tabsShauren
2016-06-04Implement real time statistic visualization (#16956)DDuarte
Docs at https://trinitycore.atlassian.net/wiki/display/tc/Monitoring+a+TrinityCore+server * Common/Graphs: Initial proof of concept * Move influx db code to its own class * Reuse the same socket * Allow to log values of different categories * Allow to log events * Pass the timestamp to influxdb * Send events in batches * Send data async * Log server shutdown. Fix memory leak. * Allow to enable/disable Stats in the settings and at runtime * Read interval between each batch send from config * Add InfluxDB connection info to configs * Move each event category to its own table * Log pathfinding queries * Move categories table initialization to constructor using enum as key to avoid assigning the table name to the wrong enum value * Log player login/logout events. Pass the hostname correctly in the HTTP request. * Fix linux build * Handle "Connection: close" HTTP header, reconnecting on next scheduled send. Disable StatsLogger if connection fails, logging the error. * Add an enum for categories of logged values, it's still possible to pass a string instead of the enum. * Don't log the whole batchedData when InfluxDB returns an error, it's too long and unreadable on console. * Allow to call a function at a specified interval in thread-safe World::Update() context to log data like player count. * Log map tile load/unload * Core/StatsLogger: Allow logging more value types other than ints https://docs.influxdata.com/influxdb/v0.10/write_protocols/write_syntax/ * Fix a typo in string escape of StatsLogger * Yet more fixes to the escaping in FormatInfluxDBValue * DB/Gameobject: Fix respawn time of few Quest GameObjects By Tauriella, closes #16701 * DB/Misc: Fix some engrish By tkrokli closes #16648 * Tools/MMaps: Add format library linking to mmaps_generator (Very) partial cherry pick of ed75b0649add23e082976fa4e5d504bc0c312602 * Core/StatsLogger: Simplify code Convert values and categories arrays to maps initialized in-place Remove constructor and destructor * Core/StatsLogger: Add realm name to the event and value tags * Log amount of processed packet of each session * Apply recent singleton changes to sStatsLogger too * Fix influxdb data format if no realm name is present * Remove unneeded newlines from request body, fixes response 400 from InfluxDB 0.10 * Rename Reporting folder to Metric * Rename StatsLogger to Metric * Rename InfluxDB configs to Metric * Add Grafana dashboards * Add a random annoying macro * Move string formatting to Metric::SendBatch(), reducing performance footprint of Metric::LogEvent() and Metric::LogValue() * Update grafana graphs refresing tags on load and showing now-15m data, refreshing every minute. These settings can be modified in grafana. * Rename MetricData fields * Contrib/Grafana: Rename dashboard files * Contrib/Grafana: Replace hardcoded Windows/Ubuntu realm names by the default, Trinity * Config/Worldserver: Add missing section to the index * Contrib/Grafana: Add singlestat panels with current online players, update diff averages (1 min, 5 mins and 15 mins) http://i.imgur.com/Zi8lfvS.png * Core/Metric: Replace the enums MetricEventCategory and MetricValueCategory by strings For the sake of simplicity and less recompile time when adding new metrics, similar to how TC_LOG_* works * Contrib/Grafana: Display the current number of online players and not its average Closes #15075 (cherry picked from commit 3ae10160820782d039c3449107960108fb3a63b9) # Conflicts: # src/server/game/Server/WorldSession.cpp # src/server/game/World/World.cpp # src/server/worldserver/Main.cpp
2016-05-27Core/DataStores: Updated db2 to 7.0.3.21737Shauren
2016-05-24Core/Containers: Warning fixes and RandomResizeList with predicate optimizationShauren
(cherry picked from commit 0fbfa8ead04a59f3eef70f4f2e454e318d895bd9)
2016-05-20Core/DataStores: Updated opcodes and db2 to 7.0.3.21414Shauren
2016-05-20Core/DataStores: Updated dbc/db2 to 7.0.1.20810Shauren
2016-05-10Core/Game: Remove some unnecessary export macrosNaios
(cherry picked from commit f50c4b71a137b90c2c5848c2ddef0139b05fa4a1)
2016-05-10Core/Common: Move the query callback header to the database projectNaios
* Also renames the header to it's correct name QueryCallback (cherry picked from commit d4d199d7654a95c53c77e30e6bd9203ee70b9373)
2016-05-01Core/Utilities: Inherit env vars when starting external processesNaios
(cherry picked from commit 5b15b714abfa5d8a38f08046dae5a5348c08b5a1)
2016-04-26Core/Misc: Use steady_clock instead of system_clock for calculating ms ↵Shauren
timers. This makes update diffs immune to systemwide time changes
2016-04-24Core/Utils: replaced std::random_shuffle with our own implementation using ↵joschiwald
SFMT random generator (cherry picked from commit 9e371b766c75faf899cbbe24515b8b5c01716a50)
2016-04-23Core/Common: Fix a std::string -> char* -> std::string conversionNaios
* Thanks jackpoz for noticing (cherry picked from commit 2698d1ff48cd449e6d5350d8b306d345f83a5de9)
2016-04-18Core/Scripting: Use the path of the worldserver executable to search for the ↵Naios
scripts dir * Fixes issues when starting the worldserver not in the bin directory or the CMAKE_INSTALL_PREFIX directory using the -c option. (cherry picked from commit 86b0fcf67aadc0d313253befb0590d00efd085bc)
2016-04-18Core/Cryptography: Move the SHA1 calculate helper to the SHA1 headerNaios
(cherry picked from commit 3271f328de35f940f682a0dbe1d9466e29190182)
2016-04-16Core/Proto: Convert the proto project to a standalone shared libraryNaios
* Fixes issues with dynamic linking on linux * Closes #16981
2016-04-11Core/Common: Capsule boost process into helper functionsNaios
* 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-10Core/Misc: Build fix for dynamic linkingShauren
2016-04-09Core/Misc: gcc 5.3 nopch build fixShauren
Closes #16878
2016-04-08Util/Random: Add randtime(Milliseconds const&, Milliseconds const&) to ↵treeston
supersede urandms(uint32,uint32) for scripts being ported to std::chrono. (cherry picked from commit 224b42c53a6ae212f2d1d550903e019ab8a741d6)
2016-04-06Core/Misc: MSVC /W4 warning fixesShauren
2016-04-05Buildsystem: Initial changes to support building with vs clang toolsetShauren
2016-04-05Core/Misc: MSVC warning fixesShauren
2016-04-02Core/Util: Add a missing includeCarbenium
(cherry picked from commit 1038df8d5b522e1e959528c3b7c17c01a88e7759)
2016-03-31Core/Config: Fix 3 more missing config warningsDDuarte
Closes #16861 Thanks tkrokli
2016-03-31Core/Config: Error logging for ptree_bad_dataDDuarte
Ref https://github.com/TrinityCore/TrinityCore/commit/6487e2f2d6a1ddbeff77362219658376b8a3f9f0#commitcomment-16888976
2016-03-27Core/Startup: Warn when a config key isn't found in the config filesDDuarte
Example: "Missing name Guild.SaveInterval in config file worldserver.conf, add "Guild.SaveInterval = 15" to this file"
2016-03-26Core/Common: Moved MessageBuffer to commonShauren