Commit Graph
2091 Commits
Author SHA1 Message Date
Shauren d8861342a3 Core/PacketIO: Updated combat log packets 2016-06-16 20:50:27 +02:00
Shauren 7398b2383e Core/PacketIO: Updated calendar, bg, battle pet and bmah packet structures 2016-06-15 22:44:31 +02:00
Shauren 27e08e48e1 Core/PacketIO: Updated AH and mail packets 2016-06-14 21:28:48 +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 3903482eb8 Core: Updated to 7.0.3.21916 2016-06-13 19:54:06 +02: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 dbce0b5aa7 Core/PacketIO: Add missing opcode handlers 2016-06-12 17:51:00 +02:00
Shauren 2ecd7e0cb9 Core/PacketIO: Initialize HasDemonHunterOnRealm field in character enum 2016-06-12 14:03:48 +02:00
Shauren 419e8e7c19 Core/PacketIO: Defined one more opcode 2016-06-12 12:43:45 +02:00
Shauren ad3e701c3a Core/PacketIO: Defined some spell opcodes 2016-06-11 16:56:25 +02:00
Shauren 4c29b8ba83 Core/PacketIO: Updated MiscPackets 2016-06-10 00:18:50 +02:00
Shauren f14c66b5e4 Core/Players: Updated talent specializations 2016-06-09 21:33:18 +02:00
Shauren 6226f04caf Core/PacketIO: Updated query opcodes 2016-06-07 19:56:40 +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 d8e0ce4d40 Core/Misc: Fixed uninitialized fields in black market packets
Coverity CID 1354736 and 1354737
2016-06-06 08:49:10 +02:00
Shauren 737469cfaa Core/PacketIO: Update movement packets 2016-06-05 17:57:19 +02:00
Shauren 6b1c85a676 Core/PacketIO: Updated spell packets 2016-06-05 14:08:53 +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 3a63cfb1b2 Core/PacketIO: Updated SendKnownSpells 2016-06-03 19:14:59 +02:00
Warpten 12f029d442 Core/PacketIO: Implemented new Cast HighGuid type and fix some mistakes with SMSG_MOVE_UPDATE_APPLY_MOVEMENT_FORCE
Core/Updatefields: Health is now stored as an unsigned long int.
2016-06-03 09:27:27 +02:00
Warpten c631656fb8 Core/PacketIO: Update a few movement-related structures and enable some opcodes. 2016-06-03 00:13:31 +02:00
Shauren 832944db24 Core/PacketIO: Updated SMSG_DB_REPLY 2016-06-03 00:00:49 +02:00
Shauren fa1c499150 Core/PacketIO: Fixed starting spline movement with 0 length segments 2016-06-02 18:55:42 +02:00
Shauren cc03d7ca24 Core/PacketIO: Updated SMSG_UPDATE_OBJECT 2016-06-01 20:14:16 +02:00
Shauren 2cead228d2 Core/PacketIO: Fixed setting player declined names
Closes #16669
2016-05-31 17:03:05 +02:00
Shauren 5ad01990c6 Core/PacketIO: Updated opcodes to 7.0.3.21796 2016-05-30 23:51:06 +02:00
Shauren d62b52befb Core/Addons: Removed AddonMgr 2016-05-30 23:42:09 +02:00
Shauren b82332487a Core/DataStores: Updated db2 to 7.0.3.21737 2016-05-27 23:14:36 +02:00
myran2 bc1a81747a Core/Pets: Implemented pet specializations (#17058)
* Use prepared statements in Pet::SavePetToDB
* Add support for resetting all of a player's pet specializations
* Send one big spell unlearn/learn packet instead of lots of small ones
* Implemented Adaptation talent
2016-05-26 17:20:01 +02:00
Shauren b426262d1b Core/PacketIO: Fixed LFGuildApplications structure 2016-05-21 11:25:58 +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
Shauren 91753a94b3 Core/PacketIO: Updated character list packets for 7.x 2016-05-20 23:39:39 +02:00
Shauren 5287f70a4f Core/PacketIO: Updated opcodes to 7.0.1.20810 2016-05-20 23:39:39 +02:00
Shauren 42ab42ce27 Core/Networking: Fixed cleanup of disconnected sockets
Ref #15892
2016-05-09 00:08:18 +02:00
Incorrect c28e6a8c16 Core/Spells: Fixed overwriting summon requests
Closes #17049
2016-05-01 12:53:39 +02:00
Ovalord 948146f3ee Core/Instances: Updated and enabled encounter packets and implemented combat resurrection limit
Closes #16966
2016-04-24 12:46:26 +02:00
Shauren 3ac33163db Core/Misc: Fixed -Wmisleading-indentation warnings 2016-04-23 13:22:03 +02:00
Vincent-Michael 3cd19d3b30 Core: Removed Whitespaces 2016-04-16 12:19:23 +02:00
Vincent-Michael 1c7515524d Core/Pets: Fixed issues reported by static analysis 2016-04-13 19:29:36 +02:00
Shauren c1c0253560 Build fix 2016-04-11 18:36:16 +02:00
Shauren 9db2b786b0 Add missing characters.updates, also build fix 2016-04-11 18:27:43 +02:00
Gigi1237 c19172cad9 Core/Blackmarket: Implemented black market 2016-04-11 18:22:09 +02:00
pete318 7d5d79aa01 Implement AuctionHouse features: GetAll scan and search throttling
Implements two standard features of the Auction House.
* GetAll scan, retrieves all auctions and sends them in a single packet.
  There's a limitation on how often a player can do this (Max 55000 items)
* Search throttling. For normal searches, the server can send a time
  in milliseconds to the client, the client will wait that long between
  searches. Delay set in config

Closes #16469

(cherry picked from commit 3aaeb574050668e5a240078f6e40337c3975d110)
2016-04-10 17:48:29 +02:00
Shauren 174a6142f4 Core/Networking: Fixed a crash caused by attempting to connect directly to worldserver by setting portal=worldserver address
Closes #16927
2016-04-10 00:08:11 +02:00
Vincent-Michael 179b521dce Core: Remove whitespaces
(cherry picked from commit 5e74c2223bff8a467d6f1ce18f6f08aa05e17019)
2016-04-09 17:14:08 +02:00
Vincent-Michael 2a0582c3f2 Core/PacketIO: Updated SMSG_ACCOUNT_HEIRLOOM_UPDATE opcode 2016-04-03 17:12:57 +02:00
DDuarte 7f8cd123c4 Core/PacketIO: Properly send normalized realm names
Ref #14949
2016-03-28 23:10:44 +01:00
Shauren dde620c402 Core: Updated to 6.2.4
* Rewrite bnetserver for new authentication protocol
2016-03-28 17:12:57 +02:00
Shauren 619669c620 Core/PacketIO: Updated remaining packet structures and enums appearing in packets 2016-03-28 15:23:41 +02:00