Commit Graph

25614 Commits

Author SHA1 Message Date
Dr-J
8d2ccc4d1a DB/Quest: A Little Slime Goes a Long Way
http://www.wowhead.com/quest=4513/a-little-slime-goes-a-long-way

* Conditions so spell can only be http://www.wowhead.com/spell=15702/filling-empty-jar can only be used on dead oozes in Un'goro Crater rather than any npc regardless of if dead or alive
* Script to despawn on spellhit so the item cant be re-used on same ooze
2016-06-04 15:14:08 +01:00
jackpoz
1347d7cf7a 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-06-04 15:01:39 +02:00
jackpoz
911bffd208 Grafana/Dashboards: Fix General info datasources
Fix General info datasources for counter panels
2016-06-04 13:11:35 +02:00
Aokromes
069e1c8120 Update worldserver.conf.dist 2016-06-04 12:49:39 +02:00
Duarte Duarte
3ae1016082 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
2016-06-04 11:23:29 +01:00
treeston
123e45c119 AI/SmartScripts: Add action_param3 "disablePathfinding" to SMART_ACTION_MOVE_TO_POS (69). 2016-06-04 00:51:19 +02:00
treeston
7fbd70d4c4 Compiler warning fix. 2016-06-03 22:41:30 +02:00
treeston
4407877f36 Scripts/TotC: More follow-up to #16346. Also code style cleanup. Who names all their creature pointers "temp"? 2016-06-03 22:39:04 +02:00
treeston
4e922a5146 Scripts/Instances: Follow-up to #16346. Fix Illidan and Northrend Beasts. 2016-06-03 22:14:09 +02:00
treeston
2d2544fab0 AI/PlayerAI: Fix potential edge case crash. 2016-06-03 17:57:05 +02:00
Sean Rhone
b253b694ed Update worldserver.conf.dist (#17276)
- Same as https://github.com/TrinityCore/TrinityCore/pull/17270
2016-06-03 15:40:30 +02:00
Treeston
b19005715c Merge pull request #16346 from Trisjdc/creature_no_flag_reset_on_combat
Core/Creatures: Remove resetting of UNIT_FLAG_IMMUNE_TO_PC on combat clearing
2016-06-03 00:30:45 +02:00
Trisjdc
34ef05ce0b Core/Creatures: Remove resetting of UNIT_FLAG_IMMUNE_TO_PC on combat clearing 2016-06-02 23:07:27 +01:00
MitchesD
7f0e1caf72 Rename 9999_99_99_world.sql to 2016_06_02_01_world.sql 2016-06-02 22:31:19 +02:00
Keader
43855b47d8 Core/Scripts Improve Felflame Infernal of Lord Jaraxxus fight (#16998) 2016-06-02 22:30:18 +02:00
Kittnz
cae19692ab Fix SQL name 2016-06-02 19:39:37 +02:00
Kittnz
8a386fb389 Merge pull request #17020 from Keader/jormungars
Core/Scripts: [Trial of the Crusader] Improve  Jormungars fight
2016-06-02 19:35:47 +02:00
jackpoz
24ac2bb9be Travis: Remove unneeded apt-get update 2016-06-02 14:17:17 +02:00
jackpoz
6007f2a6a0 Merge pull request #17259 from SnapperRy/smart_ai
Core/SmartAI: Allow SMART_ACTION_FORCE_DESPAWN on no-SmartAI GameObjects
2016-06-02 00:31:32 +02:00
Trond B Krokli
8fe8501712 Core/DB/Updater: engrish corrections in DBUpdater.cpp (#17262)
English grammar and syntax corrections in DBUpdater.cpp
- string texts corrected, source code unchanged
- comments improved and checked for typos
2016-06-01 21:10:20 +01:00
Killyana
3251439600 DB: Fix some DB errors 2016-06-01 21:27:47 +02:00
jackpoz
21ee9be110 Travis: Move to Ubuntu 14.04 Trusty Travic-CI from Ubuntu 12.04 2016-06-01 20:37:46 +02:00
treeston
321d35417d Build fix for horrendous, outdated, non-standards-compliant compilers. Such as the one in VS 2013. I hate VS 2013.
Closes #17260.
2016-06-01 19:41:35 +02:00
Killyana
b1aca1d1cf DB/Quest: Add conditions related to certain kinds of quests
Closes #17255
By SnapperRy
2016-06-01 19:35:57 +02:00
Killyana
b033188e8c DB/Quest: fix repeatableness for a few quests
Closes #17253
By SnapperRy
2016-06-01 19:32:34 +02:00
Killyana
60835936c4 DB/Quest: set required profession for quest "Gathering Leather"
Closes #17252
By SnapperRy
2016-06-01 19:30:28 +02:00
Killyana
e7ac0236fe DB/Loot: Fix drop chance for quest item "Burning Legion Gate Key"
Closes #17250
By SnapperRy
2016-06-01 19:27:58 +02:00
Killyana
84f5cde6a7 DB/Quest: Add missing quest giver for quest "Morganth"
Closes #17249
By SnapperRy
2016-06-01 19:25:26 +02:00
Killyana
326f3b9369 DB/Quest: Remove faction requirement for quest "Deviate Hides"
Closes #17248
By SnapperRy
2016-06-01 19:23:44 +02:00
Killyana
4b8f285c18 DB/Loot: Fix chance for contents of item "Fireproof Satchel"
Closes #17247
By SnapperRy
2016-06-01 19:21:33 +02:00
Killyana
712ac6cace DB/Quest: Fix required race for "Report to Tarren Mill"
Closes #17246
By SnapperRy
2016-06-01 19:19:43 +02:00
Killyana
b451c931d3 DB/Quest: Fix required class for "You Have Served Us Well"
Closes #17245
By SnapperRy
2016-06-01 19:17:23 +02:00
Killyana
374c917a79 DB/Quest: Fix chaining for quest "A Lost Master"
Closes #17244
By SnapperRy
2016-06-01 19:15:35 +02:00
Killyana
d23a65be82 DB/Quest: fix required race for "Travel to Darkshire"
Closes #17243
By SnapperRy
2016-06-01 19:11:43 +02:00
Killyana
3feeecf76c DB/Creature: Fix spawn position for Froggers
Updates #16488
2016-06-01 18:45:49 +02:00
Snapper
9803e58392 Core/SmartAI: remove unneeded check for SMART_ACTION_FORCE_DESPAWN.
Gameobjects do not need to use SmartAI in order to be targeted by other entities' scripts.
2016-06-01 13:41:58 +02:00
treeston
e3aa19281f AI/PlayerAI: Code style cleanup. 2016-05-31 22:18:26 +02:00
Killyana
a0e659434e DB/Creature: Fix Unit flag for Lurielle
Closes #17215
Value taken from 6.x DB
2016-05-31 19:45:47 +02:00
Killyana
51d100f4ba DB/Quest: Improvements to the Brood of Nozdormu rings quests
Closes #17220
By SnapperRy
2016-05-31 19:20:37 +02:00
Killyana
90db909995 DB/Quest: fix prevquest for "Red Silk Bandanas"
Closes #17221
By SnapperRy
2016-05-31 19:02:48 +02:00
Killyana
6b95d0b667 DB/Loot: Waterlogged Recipe
Closes #17222
By SnapperRy
2016-05-31 18:56:40 +02:00
Killyana
d455b77a51 DB/Loot: item "Primed Key Mold" should not be droppable by any NPC
Closes #17224
By SnapperRy
2016-05-31 18:50:16 +02:00
Killyana
37d01859c2 DB/Creature: Frogger
Fix pathing and speed
Updates #16488
2016-05-31 18:33:45 +02:00
Killyana
f177b81038 DB/Conditions: Add condition target for spell cast by item "Zorbin's Ultra-Shrinker
Closes #17228
By SnapperRy
2016-05-31 17:32:32 +02:00
Killyana
5161a830ea DB/Loot: Reduce dropped quantity for item "Ravasaur Pheromone Gland"
Closes #17229
By SnapperRy
2016-05-31 17:24:09 +02:00
Killyana
dec66e3174 DB/Creature: Remove and fix some wrong spawns in Eversong Woods
Closes #17230
By SnapperRy and lyn1337
2016-05-31 17:18:19 +02:00
Killyana
2a9732031f DB/Quest: correct some quests' availability in K3, Storm Peaks
Closes #17235
By SnapperRy
2016-05-31 17:05:45 +02:00
Killyana
73b51bb15f DB: Scripts for teleportation Pads in Storm Peaks and K3
Closes #17236
By SnapperRy
2016-05-31 16:59:30 +02:00
Killyana
6242399457 DB/conditions: Fix quest Condition to loot item "Vrykul Scroll of Ascension
Closes #17238
By SnapperRy
2016-05-31 16:47:04 +02:00
Killyana
e518e297ef DB/Creature: Make some creatures appear dead when appropriate: K3 Snow Runner, Trapped Animal, Marsh Caribou
Closes #17239
By SnapperRy
2016-05-31 16:39:02 +02:00