Commit Graph
100 Commits
Author SHA1 Message Date
DDuarte 7f2b7dc9c2 TDB 735.00 - 2018/02/19 2018-02-19 22:48:54 +00:00
Duarte Duarte ae917e950b Scripts: Fix static analysis issues CID 1381648, 1379869, 1377302 and… (#20748)
* Scripts: Fix static analysis issues CID 1381648, 1379869, 1377302 and 1377300
2017-11-14 11:23:25 +00:00
Duarte Duarte 7cbb70affc Scripts/Fireland: Fix static analysis issues CID 1379866 and CID 1379865 (#20746) 2017-11-02 10:12:08 +00:00
Duarte Duarte 42321babe6 Scripts: Fix static analysis issues CID 1379870 and 1367941 (#20747) 2017-10-30 21:27:55 +01:00
Duarte Duarte b5b03a7be0 Core/ObjectMgr: Replace ABORT() with defaulting to faction 35 when faction template does not exist in DB (#20655) 2017-10-19 22:59:02 +02:00
Duarte Duarte cc78e34043 Core/Gossips: Typo fix 2017-07-03 23:56:26 +01:00
DDuarte 95ebd19f8c Core/Guild: Misc. code changes
NULL to nullptr, add const to methods and remove unimplemented method definitions
2017-05-14 17:46:21 +01:00
DDuarte c784780156 Core/Guilds: Remove old Guild.UndeletableLevel config
Send guild achievement points in SMSG_GUILD_INVITE instead of level
Remove old references to guild levels
Player still have PLAYER_GUILDLEVEL field which is always 25
2017-05-14 17:31:06 +01:00
DDuarte e91a5146ac Misc: Add license header to Memory.h 2017-05-14 16:51:06 +01:00
DDuarte c01d28bc33 Docs: Update notes in issue_template and pull_request_template 2017-05-02 21:38:25 +01:00
Duarte Duarte 41abb35cda Update THANKS 2017-04-24 13:27:14 +01:00
DDuarte 15b1aaff41 TDB 720.00 - 2016/04/18 2017-04-19 00:25:43 +01:00
DDuarte a15985edc6 GCC build fix
It's been too long, C++
2017-04-18 21:38:47 +01:00
DDuarte 844755aa07 Core/DBUpdater: Improve message when base SQL file is missing 2017-04-18 21:20:46 +01:00
Duarte Duarte 92420ba5ba Update issue_template.md
Attempt to make the issue template clearer. Let's see if it helps...
2017-02-27 23:52:28 +00:00
DDuarte 237e291c3f Core/World: Remove unused config CONFIG_SIGHT_GUARDER
(cherry picked from commit ca231cba0bb08f6fcf3747d634543c4c3264ca94)
2017-01-11 21:44:33 +01:00
DDuarte 0c511397a4 Revert "Merge pull request #16433 from Tonghost/3.3.5"
This reverts commit e3d52990dd1e543baea6fed0c7e99359263e6452, reversing
changes made to 6d8e39f59c80639de3681565f55d68d452223c87.

Opens #16759

(cherry picked from commit 5aae01986f506b160dbd5dc08aa7e6f3fec72342)
2017-01-09 21:50:49 +01:00
Duarte Duarte d0b9521954 TravisCI: Rollback to using current Clang on Travis VMs
Change from Clang 3.9 to 3.5 (current version available).

3.9 was shown to take longer than 3.5 and having random segfaults here and there.
2017-01-03 16:48:44 +00:00
DDuarte 467e49c1fa Build/Clang: Suppress -Wexpansion-to-defined because of rapidjson dep
https://travis-ci.org/TrinityCore/TrinityCore/builds/187588737#L985-L995
2016-12-30 02:15:40 +00:00
DDuarte 5e845b97bd TravisCI: Clang 3.9 2016-12-29 23:46:21 +00: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
Duarte Duarte 49ac4ab623 Update .travis.yml
Ref https://docs.travis-ci.com/user/build-environment-updates/2016-12-02/
2016-12-02 18:13:13 +00:00
Duarte Duarte 7eb4512eee Scripts: Minimize duplicated enum names in header files (#18346)
This reduces the number of cache resets with the Zapcc compiler

Standard followed is instance/raid TLA + DataTypes/CreaturesIds/etc
2016-12-01 01:51:07 +00:00
DDuarte da2026e764 Yet more 6.x -> master renames 2016-10-16 20:42:14 +01:00
DDuarte c8bd6a7ec5 SQLs: Move SQL updates the correct sub-folder (6.x -> master) 2016-10-16 20:20:55 +01:00
Duarte Duarte 730bab93f3 Update README.md 2016-10-16 18:19:24 +01:00
Duarte Duarte a8b233c08c Update pull_request_template.md 2016-10-16 18:16:26 +01:00
DDuarte a249d86b00 TDB 703.00 - 2016/10/17 2016-10-16 17:38:56 +01:00
DDuarte 9d07fa9bfc DB: Updates to GO templates, GO quest items, pages texts, quest templates, quest objectives and quest visual effects 2016-10-05 04:27:34 +01:00
DDuarte ee2774c26d Remove BOM byte from 2016_08_28_02_hotfixes.sql 2016-08-29 04:30:26 +01:00
Duarte Duarte f5b6fa46a7 .travis.yml: fix path to the update sql files 2016-08-29 00:43:51 +01:00
DDuarte 01f7bacd05 Tools/VMapExtractor: Port 060256000b 2016-08-04 18:09:54 +01:00
DDuarte da50b5c9b3 DB/Commands: Update help description of .account (set) addon with new expansions 2016-08-02 21:20:57 +01:00
Duarte Duarte bd415eb586 Add AppVeyor Build badge to the README 2016-07-31 22:43:22 +01:00
DDuarte b9ec8ae328 Scripts/Commands: Fix build warning
(cherry picked from commit 42028a18421f672a3292733cac73840c4e766089)
2016-07-05 11:56:04 +01:00
DDuarte 7ab5145321 Scripts/Commands: Remove unused argument of .cometome command
(cherry picked from commit 1100fe60572b186eee98b6b7cbdccf5a2d67b7e1)

# Conflicts:
#	sql/updates/world/3.3.5/2016_07_05_01_world.sql
2016-07-05 11:23:04 +01:00
Duarte Duarte 7ec0d94119 DB/Schema: Add missing PK to world.playercreateinfo_cast_spell 2016-06-19 22:49:16 +01: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
DDuarte e873006153 DB/Strings: Fix a .npc info crash
Fixes #17066
2016-05-02 16:01:07 +01:00
Duarte Duarte 71a7f96e22 Scripts/SWP: Remove unused #defines 2016-05-02 03:09:08 +01:00
DDuarte e7c203334b Scripts: Add missing override 2016-04-19 01:37:17 +01:00
DDuarte 5299e25d25 Core/Items: Move Item::GetSkill to ItemTemplate::GetSkill
Also moved some methods of ItemPrototype to .cpp

Thanks to Yehonal for the original patch

Closes #16884

(cherry picked from commit 0257aa05280651b48e07e89950ad6ad5becfe9d2)

# Conflicts:
#	src/server/game/Entities/Item/Item.cpp
#	src/server/game/Entities/Item/ItemPrototype.h
2016-04-17 00:30:48 +01:00
DDuarte 37a79bde97 Travis: Remove libzmq apt-get 2016-04-16 20:38:45 +01:00
DDuarte 8778829a98 SQLs: Update to the /sql/updates organization
Update SQL files should now be in a sub-folder equal to the current branch name

/sql/updates/auth/*.sql -> /sql/updates/auth/6.x/*.sql
/sql/updates/characters/*.sql -> /sql/updates/characters/6.x/*.sql
/sql/updates/hotfixes/*.sql -> /sql/hotfixes/world/6.x/*.sql
/sql/updates/world/*.sql -> /sql/updates/world/6.x/*.sql

This facilitates merges between the version branches
2016-04-16 18:48:11 +01:00
DDuarte eaaee4b7c0 Core/Players: Fix flight form & fall damage (#16955)
(cherry picked from commit fcbbc60b93625211d958431461345fede9dcbe46)
2016-04-16 18:35:30 +01:00
DDuarte 4e0b0e76c9 Core/Quests Fix Quests Borrowed Technology, Volatility and The Solution Solution (#16968)
(cherry picked from commit d1a053e4f5a29f96b3300397e16d3e63a1cf9bae)

Rename sql

(cherry picked from commit 41e776fe64e2072d165b990cc9e9d2bfdd698855)
2016-04-16 18:22:35 +01:00
DDuarte e8179e107b Merge branch '3.3.5-gluth' into 3.3.5 (PR #14865)
(cherry picked from commit b11545800190795de5573fb917e81f61b774427b)
2016-04-16 18:21:22 +01:00
DDuarte 00da19ed9e Merge remote-tracking branch 'sirikfoll/geddon' into 3.3.5 (PR #16975)
(cherry picked from commit 75f7b5ae4baa4eeb8f6e28e2270536274bfecd4c)
2016-04-16 18:20:11 +01:00
DDuarte 98a8f539b4 Merge remote-tracking branch 'sirikfoll/bossAhune' into 3.3.5 (PR #14884)
(cherry picked from commit 37067ad3905059753f38254e72dae62cd2db2ce6)
2016-04-16 17:20:57 +01:00
DDuarte 92905cdaae Update revision_data.h.in.cmake and the updates in base SQLs 2016-04-11 03:28:07 +01:00
DDuarte a1f59c9d8d TDB 6.04 - 2016/04/11 2016-04-11 02:42:03 +01:00
DDuarte 580773dc1a DB/Creature: More exterminations
This time in the Halls of Anguish in Black Temple
ALso script Mutant War Hound
(cherry picked from commit f93d91aa1b7e49edb1b7fd1380abaf83083e6acc)

# Conflicts:
#	sql/updates/world/2016_04_10_00_world.sql
2016-04-11 01:24:59 +01:00
DDuarte 75ff256cc4 Core/SAI: Typo fix of 77087db79318443fff1b6fe3c91b55a315c5bf92
There's no %b, silly

(cherry picked from commit 7a252fc648168bdcaf55318b8d40c015498e9d0f)
2016-04-02 14:52:27 +02:00
DDuarte 252220ed6e Core/SAI: Code improvements to SMART_ACTION_RANDOM_SOUND
Warning fixes and extra sanity checks

Ref #16376

(cherry picked from commit 77087db79318443fff1b6fe3c91b55a315c5bf92)
2016-04-02 14:52:15 +02:00
DDuarte 0afcefea27 Core/Config: Fix 3 more missing config warnings
Closes #16861

Thanks tkrokli
2016-03-31 03:31:21 +01:00
DDuarte 9431b94bff Core/Config: Error logging for ptree_bad_data
Ref https://github.com/TrinityCore/TrinityCore/commit/6487e2f2d6a1ddbeff77362219658376b8a3f9f0#commitcomment-16888976
2016-03-31 03:19:27 +01:00
DDuarte 7f8cd123c4 Core/PacketIO: Properly send normalized realm names
Ref #14949
2016-03-28 23:10:44 +01:00
DDuarte 13db756f9d Core/Config: Remove references to Arena.QueueAnnouncer.PlayerOnly which hasn't been used since 3dd6fdedf7
Ref #16859

(cherry picked from commit 5f3262ff19e5c92b6ff3f885e38c973ca40dc7bc)

# Conflicts:
#	src/server/game/World/World.cpp
2016-03-28 03:18:42 +01:00
DDuarte b372935ce3 Typo fix 423bded9a6 2016-03-28 03:17:51 +01:00
DDuarte be573a7aa4 Core/AHBot: Add missing AuctionHouseBot.Class.CLASS.Allow.Zero to config
Ref #16859

(cherry picked from commit 92be9ad7ad087328210773bfc24ec99d99cae1fb)
2016-03-28 02:37:08 +01:00
DDuarte 423bded9a6 Core/Network: Change SocketMgr.StartNetwork to take the thread count by arg instead of config
AuthSocketMgr doesn't need "Network.Threads" config

Fixes "Missing name Network.Threads in config file authserver.conf"

Ref #16859

(cherry picked from commit 980f28d2ce099f524abdb6faed3fe59ce4c0963a)

# Conflicts:
#	src/server/authserver/Server/AuthSocketMgr.h
#	src/server/game/Server/WorldSocketMgr.cpp
2016-03-28 02:36:58 +01:00
DDuarte 06b3bca0d2 Core/Startup: Warn when a config key isn't found in the config files
Example: "Missing name Guild.SaveInterval in config file worldserver.conf, add "Guild.SaveInterval = 15" to this file"
2016-03-27 23:48:17 +01:00
DDuarte 0d643fdff2 Build fix 2016-03-23 00:34:47 +00:00
DDuarte 9660848385 Scripts: Add override to CheckInRoom() definitions
Fixes -Winconsistent-missing-override

(cherry picked from commit ac727ab208e592c7a2d01ebe321944402860c3ae)
2016-03-22 23:42:16 +01:00
DDuarte cb7238e983 Core/Instances: Fix build in older VS versions
Relax const uses in BossBoundaryEntry so the compiler can generate proper
copy assignment operator (error C2582: 'operator =' function is unavailable in 'BossBoundaryEntry')

Also renamed its members to match our coding standards
(public members should be UpperCamelCase)

(cherry picked from commit 954323d9cb13d4ab3d478bcb51eeb157009d8853)
2016-03-22 23:41:10 +01:00
Duarte Duarte af0da1dde1 Merge pull request #16101 from NathanHandley/3.3.5
Updated AuctionHouseSeller to have item class stack control
(cherry picked from commit bddf9ec6febc9a77308d074bd10db2ddec4b48d5)
2016-03-21 23:33:00 +01:00
DDuarte 849c906014 CMake/Revision: Use raw strings in path/executable #defines
Fixes some possible warnings (e.g. "warning C4129: 's': unrecognized character escape sequence")
especially on Windows
2016-03-02 02:11:44 +00:00
DDuarte a939a3119f Fix non PCH build after 67b977c86a 2016-03-02 02:03:49 +00:00
DDuarte 43f9fdecff Minor 67b977c86a typo fix 2016-03-02 01:46:37 +00:00
DDuarte 67b977c86a Merge branch 'pets' of https://github.com/myran2/TrinityCore into myran2-pets
# Conflicts:
#	src/server/game/Handlers/PetHandler.cpp
#	src/server/game/Handlers/SpellHandler.cpp
#	src/server/game/Server/Packets/PetPackets.cpp
#	src/server/game/Server/Packets/PetPackets.h
#	src/server/game/Server/Protocol/Opcodes.cpp
#	src/server/game/Server/WorldSession.h
2016-03-02 01:38:39 +00:00
DDuarte 147322b570 Github: Minor updates to issue and PR templates 2016-02-29 16:02:49 +00:00
DDuarte 78f89c51de And a typo fix ☕ 2016-02-29 11:22:10 +00:00
DDuarte de7c3c8e1c Core/Packets: Move flushbits to the correct place in SpellDispellLog 2016-02-29 11:21:25 +00:00
DDuarte 5576f06f20 Fix build and add a missing FlushBits to SpellDispellLog::Write() 2016-02-29 01:59:53 +00:00
DDuarte f76771dca0 Core/Packets: Updated and enabled SMSG_SPELL_DISPELL_LOG 2016-02-29 01:54:18 +00:00
DDuarte ce0deb1013 Core/Packets: Enabled CMSG_REQUEST_VEHICLE_SWITCH_SEAT and CMSG_RIDE_VEHICLE_INTERACT 2016-02-29 00:46:36 +00:00
DDuarte a07337967b Core/Packets: Updated and enabled SMSG_SPELL_DELAYED 2016-02-29 00:23:23 +00:00
DDuarte b6b5665158 Give emphasis to the steps part of issue_template.md 2016-02-17 20:59:05 +00:00
DDuarte 08e6294c80 Also add a template for new Github pull requests
https://github.com/blog/2111-issue-and-pull-request-templates
2016-02-17 20:33:23 +00:00
DDuarte a624b4523f Fix typos and shortify issue template 2016-02-17 20:22:12 +00:00
DDuarte 4944802399 Add a Github issue template
https://github.com/TrinityCore/TrinityCore/issues/new
2016-02-17 19:53:19 +00:00
Duarte Duarte 6b529fcd43 Core/DBUpdater: Fix help text download link
Change from forums to GH Releases
2016-01-04 22:51:48 +00:00
DDuarte ff9c999334 Core/Utilities: Fix build in some versions of Ubuntu / GCC
Closes #16125
2016-01-03 20:39:13 +00:00
Duarte Duarte 7b15207902 Merge pull request #16120 from velinath/patch-1
AHBot item class modifiers
2015-12-29 03:52:07 +00:00
Duarte Duarte a53a8fff98 Merge pull request #15582 from mthsena/3.3.5
Config: Typo/Cosmetic changes
(cherry picked from commit 07204140428886f5071cfe3a14dd5d50988268b2)
2015-09-25 00:21:17 +02:00
Duarte Duarte c65aa4cbbe Merge pull request #15579 from M-Pan/3.3.5
Config ; Minor Typo
(cherry picked from commit 7c4dd4059e69e062b60b34d49e1970e4b0d99cd5)
2015-09-25 00:20:39 +02:00
Duarte Duarte 3b1ae19371 Merge pull request #15577 from M-Pan/3.3.5
Revise MaxPrimaryTradeSkill comment

Closes #15575
(cherry picked from commit f7e9acb6edc5c87c95ab2d4ac30394226fa7d215)
2015-09-25 00:20:12 +02:00
Duarte Duarte eb65c8051c Merge pull request #15452 from Treeston/3.3.5
Core/Unit: Allow mounting for certain transformations
(cherry picked from commit 6cdfe9dc095bd19ea495c22cb41cd82f1212b6cd)
2015-09-25 00:03:23 +02:00
Duarte Duarte cdbed0af4c Merge pull request #15550 from Keldo/6.x
Core/Opcode Changed for Bug Tickets
2015-09-20 07:02:45 -07:00
DDuarte f979b28402 Build fix 2015-08-16 22:51:08 +01:00
DDuarte b9106ee000 Add a missing include of d5cf594bfe
(cherry picked from commit 90c9290761ecb7849a036d82c2b93f64920164c6)
2015-08-16 01:10:01 +01:00
DDuarte 5aaf44fc66 Fix build warnings addded in d5cf594bfe 2015-08-16 00:45:07 +01:00
DDuarte 519ba47429 Build: Add 1.59 Boost version to FindBoost 2015-08-15 17:48:00 +01:00
DDuarte 55acb20f6d Core/Bnetserver: Catch and log an exception that happens when WorldserverListenPort is already used
Closes #15284
2015-08-15 12:36:19 +01:00
Duarte Duarte f7a6a93dfb Merge pull request #15251 from xerkoss/patch-3
[Core\Quests] Add missing learn spell objective check.
2015-08-11 16:08:20 -07:00
Duarte Duarte 8ad51b5a6e Merge pull request #15243 from StormBytePP/6.x
Fixed a warning about override keyword missing
2015-08-09 09:47:18 -07:00
DDuarte 57ced3ccbd Fix SpellAurasEffects build on GCC 5.1
Closes #14655
2015-07-31 16:23:29 +01:00
DDuarte cec583c5e2 DB/Commands: Update .additemset description
On 6.x, this commands adds one item of each level if the itemset has multiple levels.

Closes #15179
2015-07-29 00:59:27 +01:00
Duarte Duarte 21a70dbab0 Merge pull request #15145 from pete318/runeforging6x
[6.x] Core/Spell: Learn DK runeforging skill, when receving the spell book ability.
2015-07-28 11:16:06 -07:00
DDuarte 738289daf7 Rename SQL after merge
Also removed tabs
2015-07-28 18:57:31 +01:00