aboutsummaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2017-02-12Tools/MMapGenerator: Avoid saving uninitialized padding bytes to diskjackpoz
Initialize padding bytes in MmapTileHeader struct to avoid saving uninitialized data to disk, causing issues when binary-comparing *.mmtile files. (cherry picked from commit 2585c62e6fc8925bb74160fb9b24fb1d361a8b2c)
2017-01-17Build fixShauren
2017-01-17Fix static analysis issuesShauren
CID 1291964 CID 1292775
2017-01-04Core/SpellScripts: Added some const correctnessjoschiwald
2017-01-01Update copyright note for 2017vincent-michael
Happy new year
2016-12-29Dep: Update fmt (cppformat) to 3.0.1 ↵DDuarte
https://github.com/fmtlib/fmt/commit/7fa8f8fa48b0903deab5bb42e6760477173ac485 Also renamed cppformat to fmt
2016-12-24Core/Logging: Fix static analysis issueShauren
CID 1367942, 1367944, 1367953,1367955,1367957, 1367958, 1367960, 1367961, 1367962, 1367964
2016-12-10Core/Misc: Added regex compatibility layer to fall back to boost::regex for ↵Shauren
really old compiler
2016-12-04Correct Nav type for WMO objects (#18364)zori
* Tools/MMaps: Correct liquid type for WMO objects * MMaps: Update version to 6 (cherry picked from commit 0df0cb30ca9de2015ec774e50bb69337382576d3)
2016-12-03Fix typo in VMap BIH generation (#18297)Aokromes
Fix typo in VMap BIH generation By zorix (cherry picked from commit 2402f476424531a175d9a016f433321f00608501) Core/Maps: bumping Vmap version after 2402f476424531a175d9a016f433321f00608501 Re-extracting vmaps is required (cherry picked from commit ec9a8345a49938ddd9d42e9fdf7053ac25477b4d) Core/Map: missing file change in last commit (cherry picked from commit 881cd78ae32d8078e247f64a73c651959a76e746)
2016-11-28Core/Debugging: Partially revert e0fb4445cd2f5f4bb94ea23122548debddc41ba6, ↵Shauren
the cmake hack to build wheaty directly into executable is still needed as it is impossible to have it initialize before every other static variable when it resides in dll (dynamic linking only)
2016-11-28Core/Debugging: Added wheaty everywhere and modified it to always reliably ↵Shauren
report issues during static initialization
2016-11-20Core/Auras: Rewritten conditionally applying ↵Shauren
SPELL_AURA_MOD_WEAPON_CRIT_PERCENT, SPELL_AURA_MOD_DAMAGE_DONE and SPELL_AURA_MOD_DAMAGE_PERCENT_DONE auras * Now the entire aura is removed when changing equipment * All aura types can now depend on equipped items
2016-11-14Shared/Metric: Initial support for tag value escapingjackpoz
Fix #18175 (cherry picked from commit 189edc0f23a2935747eb5eb3555607f4edc15480)
2016-11-14Core/ScriptMgr: use vector instead of list to contain Spell and Aura scripts ↵ariel-
and hooks (cherry picked from commit cbb5c073ceb951fa138bb05b55de8b21ffd83063)
2016-10-26Core/DataStores: Removed the need to edit DB2Metadata automatically ↵Shauren
generated to account for non-localized string fields
2016-10-22Build fixShauren
2016-10-20Tools: Automatically create directories for tools (#17971)keke222
2016-10-09Core/DataStores: Fixed loading signed db2 fieldsShauren
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)