Commit Graph

22070 Commits

Author SHA1 Message Date
Aokromes
e76f5bd93e Update worldserver.conf.dist 2016-07-02 14:18:18 +02:00
Aokromes
54881d2296 Update worldserver.conf.dist 2016-07-02 13:20:18 +02:00
Shauren
ef396877ae Core/Spells: Fixed spell range check
Closes #17060

(cherry picked from commit e6a52d4aae)
2016-07-01 20:39:38 +02:00
Shauren
1b1478ba86 Core/Auras: Implemented spell aura 402 - SPELL_AURA_MOD_POWER_DISPLAY
Closes #17468
2016-06-30 17:20:13 +02:00
Shauren
7ed1c47f6b Core/Auras: Implemented SPELL_AURA_OVERRIDE_SPELL_VISUAL 2016-06-29 19:49:23 +02:00
Shauren
b3d814ee50 Core/Spells: Fixed spell effect on caster not being processed instantly for spells that have travel time and hit both caster and another unit 2016-06-28 17:38:19 +02:00
Shauren
68473ccba2 Core/PacketIO: Marked CMSG_GUILD_NEWS_UPDATE_STICKY as thread unsafe 2016-06-27 17:19:05 +02:00
Shauren
a515b73738 Core/Spells: Fixed Glyph of Surging Mist 2016-06-26 19:52:41 +02:00
Shocker
9ae700c809 Core/Reputation: Player::SetReputation() / Player::GetReputation() should work with signed values 2016-06-26 14:51:37 +03:00
Shauren
55d5cd37df Core/Auras: Implemented aura 321 SPELL_AURA_MOD_NO_ACTIONS 2016-06-25 10:50:28 +02:00
Shauren
420b9045e4 Core/Auras: Fixed SPELL_AURA_OVERRIDE_ATTACK_POWER_BY_SP_PCT to affect ranged attack power as well 2016-06-24 16:00:39 +02:00
Shauren
73aababbd4 Core/Spells: Fixed handling spell interrupts - PreventionType dbc field is a bitmask 2016-06-23 22:19:52 +02:00
Kito
c5bad429e2 Scripts/Monk: Surging Mist
* When glyphed and in stance will cast AOE ally selection heal
* Else, cast normal heal on Explicit target
2016-06-23 22:01:24 +02:00
Nelidon
b4c83443e7 Core/Battlenet: Allow player to switch realm (#17441) 2016-06-23 18:04:54 +02:00
Shauren
63c2804beb Core/DataStores: Fixed typo in field name 2016-06-22 22:04:42 +02:00
Shauren
9a2d8eac99 Prepared statement parameter fix, screw manual indexing 2016-06-21 20:45:34 +02:00
Shauren
f6cac4df5b Core/Items: Item upgrade followup
* Fixed Item::SetModifier to broadcast value updates
* Generate base item upgrade when looting
* Generate base item upgrade when loading from db and db2 data changed
2016-06-21 20:41:30 +02:00
frozen4
ed00534e7c Core/Items: Implemented item upgrades
Closes #17432
2016-06-21 20:33:51 +02:00
Shauren
688635ff92 Core/Players: Fixed learning riding 2016-06-20 17:04:12 +02:00
Shauren
78b31e9637 Tools/Patcher: Fixed client crashes happening on macs
Closes #16872
2016-06-19 11:25:47 +02:00
Shauren
f6637439f4 Core/Items: Updated max durability calculation 2016-06-18 16:23:55 +02:00
P-Kito
11ed9b0b63 Game/Unit: Update shapeshift forms enum to match SpellShapeshiftForm.dbc (#17407) 2016-06-17 21:26:51 +02:00
Shauren
65eb88c8a5 Core/Spells: Fixed monk spell Provoke
Initial PR submitted by @Infamous-devel

Closes #17384
2016-06-17 21:17:07 +02:00
Shauren
5fdeb06675 Core/Quests: Fixed loading quest objective progress
Closes #17297
2016-06-17 18:33:54 +02:00
Shauren
cfc40f2ccc Core/Auras: Defined more aura types 2016-06-16 17:47:10 +02:00
Aokromes
be0ce1c4d3 Scripts/Ulduar: Remove removed achievement
Closes #17387
2016-06-16 15:49:27 +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
5da217877b Core/Spells: Automatically generate spell rank info from SkillLineAbility
* This fixes weird spellbook/talent/glyph/profession ui behavior when knowing multiple spells to remove talent or glyph, or multiple spells to open profession ui
2016-06-15 16:20:43 +02:00
Shauren
96e5d9cd68 Core/Auras: Defined new aura type 468 SPELL_AURA_TRIGGER_SPELL_ON_HEALTH_BELOW_PCT 2016-06-14 19:01:30 +02:00
Shocker
9baebb1b5d Core/Spells: Implement SPELL_AURA_PROC_ON_POWER_AMOUNT_2 2016-06-14 13:28:53 +03:00
Shauren
2fe6fc63d7 Core/Movement: Fixed weird loading screen behavior (progress bar loading to full then disappearing) - also makes teleporting between maps faster 2016-06-13 18:00:55 +02:00
Shauren
c529566ac4 Core/GameObejcts: Fixed disconnects happening when viewing nearby players on elevators
Closes #17335
2016-06-12 00:11:00 +02:00
Shauren
f583476f9a Core/PacketIO: Send movement status changes around moving unit, not its controller 2016-06-11 00:56:31 +02:00
Shauren
ee2b8b4e87 Core/PacketIO: Fixed sending wrong movement packets to nearby players that require ACK response 2016-06-10 19:57:49 +02:00
treeston
051d403624 Entities/Unit: Fix speed update packets if player is being moved by something else.
Closes #17184
Closes #17254

(cherry picked from commit 19fa504ff5)
2016-06-10 19:33:12 +02:00
Shauren
e744c43a30 Core/Auras: Defined more known stat related aura types 2016-06-09 21:55:40 +02:00
Shauren
de2efe0105 Core/Taxi: Implemented PlayerCondition requirements on taxi paths 2016-06-08 21:46:08 +02:00
Vincent-Michael
7eceba09d7 Core/Misc: Fixed warnings 2016-06-08 13:06:16 +02:00
Shauren
15bea97f83 Core/GameObjects: Defined more GO flags
(cherry picked from commit 4b00ca0299)
2016-06-07 19:05:26 +02:00
Shauren
8396dabdad Core/Misc: Fixed coverity issues
Uninitialized fields: CID 1354593, 1354595, 1354738
Unchecked return value: CID 1354558
Out of bounds access: CID 1352989, 1352993
Null pointer dereference: CID 1296286
2016-06-06 09:16:59 +02:00
Shauren
d59bba3c5d Core/Misc: Fixed uninitialized field
Coverity CID 1354596
2016-06-06 08:51:42 +02:00
Shauren
d8e0ce4d40 Core/Misc: Fixed uninitialized fields in black market packets
Coverity CID 1354736 and 1354737
2016-06-06 08:49:10 +02:00
Shauren
b920d6a35c Core/Spells: Fixed possible null pointer dereference
Coverity CID 1355243
2016-06-06 08:45:09 +02:00
Shauren
1c139214b5 Core/Spells: Silence coverity false positive - CID 1356246 2016-06-06 08:38:39 +02:00
Vincent-Michael
9d7a17d9f5 Core/Commands: Added ".npc set phase" command error message for invalid phaseid
Closes #14927
2016-06-05 16:43:41 +02:00
Shauren
6ce84d9401 Core/PacketIO: Fixed sending SMSG_SPELL_EXECUTE_LOG 2016-06-05 01:19: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
Aokromes
1379505bf2 Update worldserver.conf.dist 2016-06-04 12:49:07 +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 3ae1016082)

# 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
2c2bb4a237 Core/Auras: Named currency gain modifying aura types 2016-06-03 23:27:07 +02:00