Commit Graph
113 Commits
Author SHA1 Message Date
joschiwald fc22e97369 Core/SpellScripts: Added some const correctness 2017-01-04 00:08:52 +01:00
vincent-michael 86b98686a9 Update copyright note for 2017
Happy new year
2017-01-01 16:23:13 +01:00
DDuarte e6473ab5d9 Dep: Update fmt (cppformat) to 3.0.1 https://github.com/fmtlib/fmt/commit/7fa8f8fa48b0903deab5bb42e6760477173ac485
Also renamed cppformat to fmt
2016-12-29 23:45:59 +00:00
Shauren 0c9bfd074d Core/Logging: Fix static analysis issue
CID 1367942, 1367944, 1367953,1367955,1367957, 1367958, 1367960, 1367961, 1367962, 1367964
2016-12-24 13:09:12 +01:00
Shauren b6f1f8405f Core/Misc: Added regex compatibility layer to fall back to boost::regex for really old compiler 2016-12-10 19:11:10 +01:00
zori fcbbeb3644 Correct Nav type for WMO objects (#18364)
* Tools/MMaps: Correct liquid type for WMO objects

* MMaps: Update version to 6

(cherry picked from commit 0df0cb30ca9de2015ec774e50bb69337382576d3)
2016-12-04 02:23:13 +01:00
Aokromes 22396f1bcf Fix typo in VMap BIH generation (#18297)
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-12-03 15:27:23 +01:00
Shauren 9633c8c2b7 Core/Debugging: Partially revert e0fb4445cd, 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-28 20:21:21 +01:00
Shauren e0fb4445cd Core/Debugging: Added wheaty everywhere and modified it to always reliably report issues during static initialization 2016-11-28 18:37:51 +01:00
Shauren b9f7b500a3 Core/Auras: Rewritten conditionally applying 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-20 00:44:49 +01:00
jackpoz f23c6c4d7e Shared/Metric: Initial support for tag value escaping
Fix #18175

(cherry picked from commit 189edc0f23a2935747eb5eb3555607f4edc15480)
2016-11-14 20:33:03 +01:00
ariel- 780d1019f2 Core/ScriptMgr: use vector instead of list to contain Spell and Aura scripts and hooks
(cherry picked from commit cbb5c073ceb951fa138bb05b55de8b21ffd83063)
2016-11-14 05:35:41 -03:00
Shauren 505d3e24cc Core/DataStores: Removed the need to edit DB2Metadata automatically generated to account for non-localized string fields 2016-10-26 01:34:29 +02:00
Shauren cd28d23ed8 Build fix 2016-10-22 13:28:58 +02:00
keke222 a3b953952a Tools: Automatically create directories for tools (#17971) 2016-10-20 23:32:49 +02:00
Shauren d34020da7f Core/DataStores: Fixed loading signed db2 fields 2016-10-09 16:54:11 +02:00
Shauren 59fe908744 Core/Random: Remove no longer needed hack for VS 2013 2016-09-01 11:52:08 +02:00
Naios b74aadca23 Core/Define: Remove the conditional macro for constexpr.
* Not needed anymore since the requirements were raised to MSVC 2015.

(cherry picked from commit da3c03a48bdf0ef4add6aa1f718ca761afeaebbb)
2016-08-29 22:07:24 +02:00
Naios a2eb1c0066 Core/Common: Correct the linking of localeNames
(cherry picked from commit 13e5817417f48374ff460c5ccdc5f149a1ae8791)
2016-08-29 22:07:18 +02:00
jackpoz 6d866102de Common/Utilities: Reduce differences between 3.3.5 and 6.x branches
Code functionality shouldn't have been modified.
2016-08-06 16:27:10 +02:00
jackpoz fe6d8016af Common/Logging: Reduce differences between 3.3.5 and 6.x branches
Code functionality shouldn't have been modified.
2016-08-04 21:54:02 +02:00
jackpoz bceb385773 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.

(cherry picked from commit 284dd6b80d79f5691c82eda848c7474c5b87cfd9)
2016-08-04 17:05:24 +02:00
jackpoz 37fedcc8f6 Common/Crypto: Reduce differences between 3.3.5 and 6.x branches
Code functionality shouldn't have been modified.
2016-08-04 17:03:25 +02:00
jackpoz ab40f20bad Common/Crypto: Reduce differences between 3.3.5 and 6.x branches
Code functionality shouldn't have been modified.
2016-08-03 23:34:01 +02:00
jackpoz 02a9ae031e Common/Maps: Reduce differences between 3.3.5 and 6.x branches
Partially port 1347d7cf7a8656f3db9d8b2f6e6d955e1fa8c129 too
2016-08-03 18:51:42 +02:00
ariel- 02b98010cd Core/Misc: remove unused function prototype
(cherry picked from commit 2efd40b8049efc4c35622a7997cc47b10b468b4d)
2016-08-02 21:23:00 +02:00
Shauren 298333a55a Build fix for dynamic linking 2016-07-19 19:57:57 +02:00
Shauren fe4d11c65a Tools: Extractor updates
* VMAP extractor does not work due to a bug in CascLib
2016-07-18 23:37:19 +02:00
Shauren a9a13d10f7 Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into legion 2016-07-17 17:37:06 +02:00
Shauren 201d09ec34 Build fix for dynamic linking 2016-07-17 17:32:03 +02:00
Shauren a8c412a063 Tools: Added universal TrinityCore banner with git version info to all tools 2016-07-17 17:24:53 +02:00
Shauren 0d9136f764 Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into legion 2016-07-10 00:37:33 +02:00
et65 f293994ef4 Core/MMaps: Fix crash introduced in commit 32e8b65 (#17447)
* Core/MMaps: Fix crash introduced in commit 32e8b6506f
* Also fix remaining memory leaks scenarios.
2016-07-07 15:04:52 +02:00
Shauren 70137b8f3a Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into legion 2016-07-06 00:05:13 +02:00
Naios a2ac2b3cc7 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.

(cherry picked from commit d9755c637c39e600f145f5ecb7ff0ccf3724b1ad)
2016-07-05 00:19:53 +02:00
Naios 80fe552894 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

(cherry picked from commit 1ad73212dca0cf8a829d15ffdbcc4cd611e64d4e)
2016-07-05 00:19:45 +02:00
Naios afa0bac669 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
2016-06-15 19:58:21 +02:00
Shauren d2733eb6f1 Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into legion 2016-06-13 21:00:25 +02:00
Shauren dd1533b315 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 2016-06-04 16:40:57 +02:00
Shauren 40065aa658 Core/GameTables: Fixed loading gametables with trailing tabs 2016-06-04 16:36:23 +02:00
DDuarte 8b26aea95a Implement real time statistic visualization (#16956)
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 ed75b0649a

* 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-06-04 11:26:57 +01:00
Shauren b82332487a Core/DataStores: Updated db2 to 7.0.3.21737 2016-05-27 23:14:36 +02:00
Shauren a6205e4035 Core/Containers: Warning fixes and RandomResizeList with predicate optimization
(cherry picked from commit 0fbfa8ead04a59f3eef70f4f2e454e318d895bd9)
2016-05-24 18:52:34 +02:00
Shauren 70102f32fe Core/DataStores: Updated opcodes and db2 to 7.0.3.21414 2016-05-20 23:49:53 +02:00
Shauren 5c2c9a684f Core/DataStores: Updated dbc/db2 to 7.0.1.20810 2016-05-20 23:46:17 +02:00
Naios a0dacd90cb Core/Game: Remove some unnecessary export macros
(cherry picked from commit f50c4b71a137b90c2c5848c2ddef0139b05fa4a1)
2016-05-10 19:24:30 +02:00
Naios be90932eda Core/Common: Move the query callback header to the database project
* Also renames the header to it's correct name QueryCallback

(cherry picked from commit d4d199d7654a95c53c77e30e6bd9203ee70b9373)
2016-05-10 18:20:52 +02:00
Naios 8f05a47793 Core/Utilities: Inherit env vars when starting external processes
(cherry picked from commit 5b15b714abfa5d8a38f08046dae5a5348c08b5a1)
2016-05-01 01:45:10 +02:00
Shauren 406ac4f4b4 Core/Misc: Use steady_clock instead of system_clock for calculating ms timers. This makes update diffs immune to systemwide time changes 2016-04-26 18:10:17 +02:00
joschiwald 803473fb64 Core/Utils: replaced std::random_shuffle with our own implementation using SFMT random generator
(cherry picked from commit 9e371b766c75faf899cbbe24515b8b5c01716a50)
2016-04-24 20:19:42 +02:00