Commit Graph

1237 Commits

Author SHA1 Message Date
jackpoz 22d655451c Shared/Logs: Add support to .server set loglevel command after 003d67708b
Update the lowest log level when using ".server set loglevel" command.

(cherry picked from commit 43f74fd8cf)
2015-03-18 00:10:19 +00:00
jackpoz 064b6a4c84 Shared/Logs: Improve log performances
Improve Log::ShouldLog() performances by saving the lowest log level across all loggers and discarding any log with lower level than that.

(cherry picked from commit 003d67708b)
2015-03-18 00:10:02 +00:00
jackpoz 1a583703c5 Core/CrashHandler: Fix char[] without '\0' handling
Fix char[] without a NULL character '\0' in the array reading over the char[] bounds

(cherry picked from commit fd844e3d7e)
2015-03-18 00:08:49 +00:00
Naios 8882a6ca78 Core/Log: Fix some issues detected by static analysis.
* Either inefficient or wrong usage of string::find(). string::compare() will
  be faster if string::find's result is compared with 0, because it will not scan the whole string.
  If your intention is to check that there are no findings in the string,
  you should compare with std::string::npos.

* C-style pointer casting detected. C++ offers four different kinds of casts as replacements:
  static_cast, const_cast, dynamic_cast and reinterpret_cast.
2015-03-11 08:20:12 +01:00
Carbenium 37a14bc2d5 Core/Support: Update the support/ticket system to 6.x
Core/Mail: fix a logic error introduced in 829e11b662
2015-03-10 21:09:21 +01:00
leak c61548a17b CMake: Remove unused source reference 2015-03-09 14:55:20 +01:00
Shauren e15ba34444 Core/Misc: Cleaned up data truncation warnings 2015-03-08 22:04:34 +01:00
Shauren 0ba2e0d5ee Core/Spells: Implemented multiple spell power costs 2015-03-08 13:31:57 +01:00
Shauren 854917a31a Core/DataStores: Added an extra safeguard for loading db2 hotfix locale tables - invalid row will no longer cause crashes 2015-03-06 18:52:58 +01:00
joschiwald 2955a1f595 Core/Player: fixed some leftovers in db after player delete
* character_arena_stats
* character_battleground_random
* character_cuf_profiles
* character_currency
* character_stats
* character_void_storage
2015-03-06 03:52:05 +01:00
Shauren 5e860daa22 Core/Crypto: Fixed output of BigNumber::AsByteArray when generated array is shorter than requested size
(cherry picked from commit e52b46abba)
2015-03-04 12:22:10 +01:00
Shauren e63872e1ee Core/DataStores: Updated dbc structures to 6.1 2015-03-04 12:17:06 +01:00
Shauren 0652b1072a Core/DataStores: Made prepared statement index argument for DB2Storage constructor required 2015-03-04 12:15:38 +01:00
Shauren 4282ec57f3 Core/DataStores: Fixed out of bounds array access in DBStorageIterator 2015-02-25 16:13:58 +01:00
Shauren aa3b05c312 Core/PacketIO: Removed timezone adjustments from ReadPackedTime - player's session timezone offset should be used there, not server offset 2015-02-24 01:14:23 +01:00
Shauren 9fa57479ca DB: Dropped unused tables 2015-02-22 12:44:44 +01:00
Shauren 40b6736f69 Core/DataStores: Added iterator class for DBCStorage and DB2Storage 2015-02-22 12:44:24 +01:00
Shauren 5c4fd7ac4f Core/DataStores: Added tables for all loaded DB2 stores 2015-02-22 10:29:12 +01:00
jackpoz e36fb12359 Shared/Database: Improve dead-lock error handling
Improve dead-lock error handling by making sure only 1 thread at time retries to execute a transaction so they don't keep dead-locking each other.

(cherry picked from commit 62001360dd)
2015-02-22 06:21:13 +00:00
Shauren 56186319bd Core/Spells: Cooldown updates
* Refactored cooldown handling to separate class shared by creatures and players
* Updated and enabled cooldown packets
* Implemented creature school lockouts
* Implemented spell charges
* Fixed AuraUpdate structure
* Fixed aura flag AFLAG_NOCASTER handling
* Implemented spell charge related auras
2015-02-17 01:01:44 +01:00
Mogadischu bc0c0ae2a3 Core/Guild: Updated and enabled most previously implemented guild and petition related packets
Merged from https://github.com/Mogadischu/TrinityCore/commits/guild

Signed-off-by: Duarte Duarte <dnpd.dd@gmail.com>
2015-02-13 18:32:36 +00:00
joschiwald bbce7d0342 Core/Items: fixed AuctionHouse and GuildBank items from DB 2015-02-08 20:02:04 +01:00
joschiwald e01bb91887 Core/Packets: updated some contactlist packets 2015-02-08 02:51:49 +01:00
Carbenium 829e11b662 Core/Packets: Implement all mail system relevant packets
Thanks @joschiwald, @DDuarte and @Warpten
2015-02-07 12:43:25 +01:00
Noffearr 1d894f1b9d Core/Misc: Update outdated license header files
Ref #14028
2015-02-04 21:02:54 +00:00
Nayd 19a09c2763 Fix build
(cherry picked from commit c66bd709f1)
2015-02-04 19:44:56 +00:00
jackpoz 7c3a2e163a Shared/Database: Fix transactions not being recommitted on dead-lock error
Fix transactions not being recommitted on dead-lock error (error code 1213) because of calling http://dev.mysql.com/doc/refman/5.0/en/mysql-errno.html after sending the ROLLBACK command. This way the returned error code was related to the ROLLBACK command, not the failed transaction.

(cherry picked from commit d4db0c15c7)
2015-02-04 19:20:39 +00:00
Shauren dd4973ab23 Core/PacketIO: Fixed SMSG_DB_REPLY structure 2015-02-02 19:50:27 +01:00
jackpoz 95b1204798 Core/Misc: Properly sanitize ReputationSpillover data
Fix an issue added in 024b57bb74 that didn't properly skip ReputationSpillover rows with invalid data.
Fix also a static analysis issue reported by Coverity.
2015-01-31 22:59:21 +01:00
jackpoz 89c535cf2a Core/Misc: Fix static analysis issues
Fix some static analysis issues reported by Coverity
2015-01-30 22:32:26 +01:00
jackpoz 0edc35b921 Core/Misc: Fix static analysis issues
Fix some static analysis issues reported by Coverity
2015-01-20 22:55:06 +01:00
jackpoz 1a4b1beb14 Core/Misc: Fix static analysis issues
Fix some static analysis issues reported by Coverity
2015-01-18 21:53:04 +01:00
jackpoz 5dfd07fa4f Core/Misc: Fix static analysis issues
Fix some static analysis issues reported by Coverity
2015-01-18 18:30:34 +01:00
Shauren 58d75eda3a Core/Commands: Added "createGameAccount" argument to .bnetaccount create command (default true) to opt out of creating the initial game account 2015-01-17 20:03:39 +01:00
Shauren e07054ff2d Build fix 2015-01-17 18:31:09 +01:00
Shauren 8a30b70a20 Core/DataStores: Optimized memory usage for DB2Storage 2015-01-17 17:59:13 +01:00
Shauren 469b836114 Core/Auras: Fixed saving all aura effect values to database 2015-01-16 23:32:41 +01:00
Shauren faa583c784 Core/Maps: Updated map difficulties 2015-01-10 01:35:47 +01:00
joschiwald 3e9d7e83eb Merge pull request #13809 from AriDEV/6.x
Server/PacketIO: Currency Updates
2015-01-02 03:46:32 +01:00
AriDEV 895e50be7a Server/PacketIO: Currency Updates
* Update SMSG_SET_CURRENCY & SMSG_SETUP_CURRENCY Packets.
* Update of Database Structure and SQLStatements for Currencies.

Signed-off-by: AriDEV <aridev666@gmail.com>
2015-01-02 03:05:58 +01:00
Shauren ccc293931d Core/PacketIO: Removed SMSG_DESTROY_OBJECT from opcodes enum 2015-01-01 20:38:19 +01:00
Vincent-Michael ab90f74486 Update copyright note for 2015
Happy new year
2015-01-01 00:28:09 +01:00
joschiwald 9ecc578cb1 Core/Scripts: multiple changes
- fixed non pch build
- fixed some warnings
- fixed some coverity issues
- some random things here and there
2014-12-29 01:00:16 +01:00
Intel a782515246 Core/Quests: Updated Quest System to new Format
All quest requirements are now in quest_objectives table
quest_template table contains _ONLY_ WDB data and must not be modified
Currently supported objectives are MONSTER, GAMEOBJECT, ITEM, TALKTO, CURRENCY, REPUTATION, MONEY, PLAYERKILLS, AREATRIGGER
2014-12-28 22:55:53 +02:00
jackpoz 3cdc66bec6 Shared/Networking: Fix buffer overflow in Socket handling
Fix a buffer overflow caused by Boost trying to store too much data in a buffer too small.

(cherry picked from commit cdf6c88462)
2014-12-28 15:56:55 +00:00
Gacko cf89335177 Fix non pch build 2014-12-27 13:57:36 +01:00
Shauren 3c3b42362f Core/DataStores: Added DB2Manager
* Moved DB2 helpers to new class
* Moved hotfix data to hotfixes database and core management functions to DB2Manager class
* Updated HotfixNotifyBlob packet
2014-12-26 01:38:40 +01:00
Shauren 9eb70940bd Core/DataStores: Moved broadcast_text handling to DB2Storage 2014-12-25 22:20:16 +01:00
Shauren 3393934045 Core/DataStores: Implemented loading locale strings from database to DB2Storage 2014-12-25 12:43:59 +01:00
Shauren ae8814772f Core/DataStores: Implemented loading hotfixes database into DB2Storage 2014-12-24 22:24:32 +01:00