Commit Graph
29917 Commits
Author SHA1 Message Date
Spp 1089102827 Add missing Copyright headers and some clarification to config files... ¬¬ 2012-08-03 17:29:43 +02:00
Shauren dfd7cc38ce Merge pull request #7265 from horn/4.3.4
Core/PacketIO: Enabled CMSG_GUILD_LEAVE, MSG_TABARDVENDOR_ACTIVATE and some petitions releated opcodes
2012-08-03 07:55:11 -07:00
horn b0803d7e37 Core/PacketIO: Enabled CMSG_GUILD_LEAVE, MSG_TABARDVENDOR_ACTIVATE and some petitions releated opcodes 2012-08-03 16:49:27 +02:00
cyberbrest 891a31ef5c [Misc]: Fix loading quest locales. 2012-08-03 17:43:35 +03:00
Spp 634776e0bc Fix compile under windows 2012-08-03 15:54:54 +02:00
Spp 55ce180f28 Core/Logging: Add Asyncronous logging with Loggers ("What to log") and Appenders ("Where to log") system. Will allow to select to full log some parts of core while others are not even logged.
- Logging System is asyncronous to improve performance.
- Each msg and Logger has a Log Type and Log Level assigned. Each msg is assigned the Logger of same Log Type or "root" Logger is selected if there is no Logger configured for the given Log Type
- Loggers have a list of Appenders to send the msg to. The Msg in the Logger is not sent to Appenders if the msg LogLevel is lower than Logger LogLevel.
- There are three (at the moment) types of Appenders: Console, File or DB (this is WIP, not working ATM). Msg is not written to the resource if msg LogLevel is lower than Appender LogLevel.
- Appender and Console Log levels can be changed while server is active with command '.set loglevel (a/l) name level'

Explanation of use with Sample config:

Appender.Console.Type=1       (1 = Console)
Appender.Console.Level=2      (2 = Debug)

Appender.Server.Type=2        (2 = File)
Appender.Server.Level=3       (3 = Info)
Appender.Server.File=Server.log

Appender.SQL.Type=2           (2 = File)
Appender.SQL.Level=1          (1 = Trace)
Appender.SQL.File=sql.log

Appenders=Console Server      (NOTE: SQL has not been included here... that will make core ignore the config for "SQL" as it's not in this list)

Logger.root.Type=0            (0 = Default - if it's not created by config, server will create it with LogLevel = DISABLED)
Logger.root.Level=5           (5 = Error)
Logger.root.Appenders=Console

Logger.SQL.Type=26            (26 = SQL)
Logger.SQL.Level=3            (2 = Debug)
Logger.SQL.Appenders=Console Server SQL

Logger.SomeRandomName.Type=24 (24 = Guild)
Logger.SomeRandomName.Level=5 (5 = Error)
Loggers=root SQL SomeRandomName

* At loading Appender SQL will be ignored, as it's not present on "Appenders"

* sLog->outDebug(LOG_FILTER_GUILD, "Some log msg related to Guilds")
  - Msg is sent to Logger of Type LOG_FILTER_GUILD (24). Logger with name SomeRandomName is found but it's LogLevel = 5 and Msg LogLevel=2... Msg is not logged

* sLog->outError(LOG_FILTER_GUILD, "Some error log msg related to Guilds")
  - Msg is sent to Logger of Type LOG_FILTER_GUILD (24). Logger with name SomeRandomeName is found with proper LogLevel but Logger does not have any Appenders assigned to that logger... Msg is not logged

* sLog->outDebug(LOG_FILTER_SQL, "Some msg related to SQLs")
  - Msg is sent to Logger SQL (matches type), as it matches LogLevel the msg is sent to Appenders Console, Server and SQL
    - Appender Console has lower Log Level: Msg is logged to Console
    - Appender Server has higher Log Level: Msg is not logged to file
    - Appender SQL has lower Log Level: Msg is logged to file sql.log

* sLog->outDebug(LOG_FILTER_BATTLEGROUND, "Some msg related to Battelgrounds")
  - Msg is sent to Logger root (Type 0) as no Logger was found with Type LOG_FILTER_BATTLEGROUND (13). As Logger has higher LogLevel msg is not sent to any appender

* sLog->outError(LOG_FILTER_BATTLEGROUND, "Some error msg related to Battelgrounds")
  - Msg is sent to Logger root (Type 0) as no Logger was found with Type LOG_FILTER_BATTLEGROUND (13). Msg has lower LogLevel and is sent to Appender Console
    - Appender Console has lower LogLevel: Msg is logged to Console
2012-08-03 14:20:18 +02:00
Nay f859088699 Core/Misc: Fix code style and a typo for recently merged in PRs 2012-08-03 00:20:44 +01:00
Nay 2060a2037a Merge pull request #7258 from myran2/DisableCommands
Added disable commands.
2012-08-02 15:33:18 -07:00
kandera 71a872c63d Merge pull request #7260 from Amit86/patch-4
[Paladin/Spells] Fix Improved concentration aura
2012-08-02 15:32:28 -07:00
Amit 8e35762b35 Add missing change in SpellEffects.cpp 2012-08-03 01:27:39 +03:00
Amit 02a4501034 Fix Improved concentration aura
Fix Improved concentration aura 30% reduce of silence/interrupt
2012-08-03 01:24:22 +03:00
Shauren 0344aa2cb3 Merge pull request #7245 from cyberbrest/pull3
Core/PacketIO: Fixed mistake in object create guid.
2012-08-02 15:12:55 -07:00
Nay 8f07d0cc52 Core/Loading: Fix some wrong sql types in ObjectMgr loading code 2012-08-02 23:02:41 +01:00
Vincent-Michael bf6e334c5f Core/Spells: Fix some summon vehicle spells with basepoint 1
ty zwerg
2012-08-02 23:49:11 +02:00
Kandera 1bad9d1f15 Core/PacketIO: enable cmsg_whois and smsg_whois 2012-08-02 17:29:47 -04:00
Kandera f6f16d243c enable smsg_who 2012-08-02 17:22:51 -04:00
Kandera 048cfd754e Enable who opcode 2012-08-02 17:20:44 -04:00
Alternative dc7030ced6 Some codestyle changes. 2012-08-02 16:47:28 -04:00
Alternative f303782de4 Added disable commands. 2012-08-02 16:33:35 -04:00
Nay 6b666d77d9 Core/PacketIO: Update and enable handler for CMSG_GROUP_INVITE 2012-08-02 18:18:32 +01:00
Nay 2070039638 Core/DataStores: Add missing LoadDBCs
Thanks to Venugh for noticing
2012-08-02 12:40:59 +01:00
kaelima e72f01650c Core/Misc: Minor update to SMSG_GUILD_QUERY_RESPONSE, added a value to enum MailStationery, some comments to a few dbcs.
DB: Renamed merged sql files
2012-08-02 08:04:12 +02:00
Kaelima 6ae147aa80 Merge pull request #7065 from Vincent-Michael/PainAndSuffering
Core/Spells: Fix Pain and Suffering reduces damage
2012-08-01 22:56:51 -07:00
Kaelima 99d3918d34 Merge pull request #6800 from Vincent-Michael/cod
Core/Spells: Fix Curse of Doom (thx to Warpten / joschiwald for helping)
2012-08-01 22:56:30 -07:00
Nay 23ccadbe2a Remove a wrong copy paste comment (related to prev commit) 2012-08-02 01:20:36 +01:00
Nay edee3732c5 Core/Transmog: Charge money for transmogrification 2012-08-02 01:16:45 +01:00
Nay e909fd036b One last missed change to fix non PCH build 2012-08-02 00:30:22 +01:00
Nay 0b0501173f Core/Build: Fix non pch build (MSVC) 2012-08-01 23:37:51 +01:00
Nay f5231929e0 Scripts/Build: Fix non PCH build 2012-08-01 23:57:36 +02:00
Shauren b90bc1960f Core/PacketIO: Send better values for SMSG_FEATURE_SYSTEM_STATUS 2012-08-01 21:58:28 +02:00
Exodius e655bf6e1d DB/Loot: Add missing loot item, fixes quest zeth'gor must burn
Closes #7237

Signed-off-by: Nay <dnpd.dd@gmail.com>
2012-08-01 18:38:43 +01:00
Nay a14b89c0f3 DB/Creature: Re-guid 3 npc spawns added in previous commit
Thanks to Aokromes for noticing the high guids
2012-08-01 18:24:36 +01:00
Trista 6f332385e2 DB/SAI: Fix quests Words of Power
Ref #79
Ref #2259
Closes #4638
Closes #7249

Signed-off-by: Nay <dnpd.dd@gmail.com>
2012-08-01 18:01:11 +01:00
Shauren 69bbe1fded Core/Items: Added loading and saving transmogrification. 2012-08-01 14:31:09 +02:00
cyberbrest 5f22d081aa [PacketIO] mistake in transport guid. 2012-08-01 12:04:16 +03:00
Nay cecde87c32 Core/Misc: Basic implemention of Transmogrification
TODO: charge money and fix some quirks and bugs
Thanks to Shauren for finding item flags and proper validation
2012-08-01 02:46:32 +01:00
Nay ac252899de Core/PacketIO:: Change status of CMSG_VIOLENCE_LEVEL to STATUS_AUTHED since it's now sent at the loading screen
We still don't do anything with that packet...
2012-08-01 02:43:47 +01:00
Nay 53ba7b8b14 Core/ByteBuffer: Fix a subscript out of range exception (in debug mode) when ReadString is used with length 0 2012-08-01 02:42:33 +01:00
Subv 6c7a911cac Merge pull request #7239 from Venugh/master
Remove useless commands includes.
2012-07-31 17:45:59 -07:00
Venugh 3f97ca1fab Core/Misc: Removed useless include from commands. 2012-07-31 16:02:54 +02:00
Nay ce1391840f Core/VS: Finally fix item swapping, correct a file name 2012-07-30 21:51:21 +01:00
Nay 940f655a3c Core/VS: Allow to store/retrive random stats items in void storage
Also set items to soulbound on withdraw
2012-07-30 18:34:39 +01:00
Nay 3df10d8273 Core/DBLayer: Fix a typo in void_storage table name 2012-07-30 16:41:48 +01:00
Nay c24de2c6d8 Core: Implement Void Storage 2012-07-30 16:39:46 +01:00
Spp 5a99dfad14 Warning fixes + compile fix after the merge 2012-07-30 10:07:26 +02:00
Jorge b460c496e2 Merge pull request #7227 from Vincent-Michael/PCH
Core/Misc: Use proper headers to optimize compile
2012-07-30 00:02:03 -07:00
Vincent-Michael 634b3645d5 Core/Misc: Use proper headers to optimize compile 2012-07-30 05:38:40 +02:00
Nay 195e0369cf Core/PacketIO: Fix structure of CMSG_SET_TRADE_ITEM
Thanks Subv and Shauren
2012-07-30 01:15:41 +01:00
Shauren 42ad1b8334 Core/Objects: Added missed changes, thanks cyberbrest for noticing
Closes #7224
2012-07-29 23:44:30 +02:00
Nay c2501fa04a Merge pull request #7210 from Chipsi/master
Core/Spells: Spells with SPELL_EFFECT_KNOCK_BACK(like Thunderstorm) can't knoback target if target has ROOT/STUN
2012-07-29 09:11:15 -07:00