Commit Graph
883 Commits
Author SHA1 Message Date
Subv c9fc56364b Merge branch '4.3.4' of github.com:TrinityCore/TrinityCore into 4.3.4 2012-08-07 14:16:59 -05:00
Subv d82266bc0e Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
Conflicts:
	src/server/authserver/Server/AuthSocket.cpp
	src/server/game/Achievements/AchievementMgr.cpp
	src/server/game/Chat/Chat.h
	src/server/game/Chat/Commands/Level1.cpp
	src/server/game/Chat/Commands/Level2.cpp
	src/server/game/Chat/Commands/Level3.cpp
	src/server/game/DataStores/DBCStores.cpp
	src/server/game/DataStores/DBCStructure.h
	src/server/game/Entities/Object/Object.cpp
	src/server/game/Entities/Object/Updates/UpdateData.cpp
	src/server/game/Entities/Player/Player.cpp
	src/server/game/Globals/ObjectMgr.cpp
	src/server/game/Guilds/Guild.cpp
	src/server/game/Guilds/GuildMgr.cpp
	src/server/game/Handlers/AuctionHouseHandler.cpp
	src/server/game/Handlers/CharacterHandler.cpp
	src/server/game/Handlers/ChatHandler.cpp
	src/server/game/Handlers/GroupHandler.cpp
	src/server/game/Handlers/ItemHandler.cpp
	src/server/game/Handlers/MailHandler.cpp
	src/server/game/Handlers/MiscHandler.cpp
	src/server/game/Handlers/MovementHandler.cpp
	src/server/game/Handlers/PetHandler.cpp
	src/server/game/Handlers/QuestHandler.cpp
	src/server/game/Handlers/VehicleHandler.cpp
	src/server/game/Server/WorldSession.cpp
	src/server/game/Server/WorldSocket.cpp
	src/server/game/Spells/Auras/SpellAuraEffects.cpp
	src/server/game/Spells/SpellEffects.cpp
	src/server/game/Spells/SpellMgr.cpp
	src/server/game/World/World.cpp
	src/server/scripts/Commands/cs_debug.cpp
	src/server/scripts/Commands/cs_modify.cpp
	src/server/scripts/Commands/cs_reload.cpp
	src/server/scripts/Kalimdor/azuremyst_isle.cpp
	src/server/shared/Logging/Log.cpp
	src/server/shared/Logging/Log.h
	src/server/worldserver/worldserver.conf.dist
2012-08-07 13:44:22 -05:00
Nay 44557b57ff Core/PacketIO: Enable few more opcode handlers... 2012-08-07 19:41:36 +01:00
Nay f79a6fc009 Core/PacketIO: Enable spelllog related opcodes; missing interruptlog because that wasn't used in 335 2012-08-07 18:35:59 +01:00
Nay 16035a9eff Core/PacketIO: Enable many verified opcode handlers 2012-08-07 17:10:13 +01:00
Subv bffb35c54a Core/PacketIO: Fixed some channel packet structures and enabled more opcodes 2012-08-07 10:59:36 -05:00
Nay 7944a7e095 Core/PacketIO: Enable 3 loot related opcodes (fix structure of one) 2012-08-07 14:23:56 +01:00
Subv 488fdadbed Core/PacketIO: Enabled more opcodes 2012-08-07 07:44:16 -05:00
Nay 170f1471af Core/Groups: Implement CMSG_GROUP_INVITE_RESPONSE (old CMSG_GROUP_DECLINE and CMSG_GROUP_ACCEPT)
Closes #7313 (thanks to Kaldorei for the idea..)
2012-08-07 03:35:52 +01:00
Nay f9d25b3a25 Core/PacketIO: Fix and enable some loot related opcodes 2012-08-07 01:06:01 +01:00
horn 32e0c36112 Cleanup, remove whitespace and move placeholders for opcodes that are not in WPP (not found) 2012-08-07 01:03:37 +01:00
Nay 638dc3ddbe Core/Opcodes: Fix some wrong handler assigments/dupes 2012-08-06 23:27:29 +01:00
horn bd36843a4c Core/Opcodes: Sync opcodes with WPP, add handlers placeholders for new opcs
Signed-off-by: Nay <dnpd.dd@gmail.com>
2012-08-06 22:33:48 +01:00
Nay 7637481909 Core/PacketIO: Enable duel related opcodes 2012-08-06 19:50:29 +01:00
Kandera eb0d8f2854 Protocol/PacketIO: enable more opcodes and add one opcode number 2012-08-06 14:30:25 -04:00
Kandera 0411ba31e0 Core/NetworkIO: enable more opcodes 2012-08-06 11:26:18 -04:00
Subv ad571835b1 Merge branch '4.3.4' of github.com:TrinityCore/TrinityCore into 4.3.4 2012-08-06 10:09:24 -05:00
Subv 89482323b7 Protocol/PacketIO: Enabled more opcodes 2012-08-06 10:03:01 -05:00
Nay f7d83c1ead Core/PacketIO: Enable some gameobject related opcodes 2012-08-06 15:51:57 +01:00
Subv 25e7e6dddd Protocol/PacketIO: Enabled more opcodes. 2012-08-06 09:47:39 -05:00
Spp 97c4b92eb0 Core/Logging: Try to simplify configuration of loggers and appenders
Changed multiple lines to a simple format:
- Logger.name=Type,LogLevel,Flags,AppenderList
- Appender.name=Type,LogLevel,Flags,optional1,optional2
  * Type = File: optional1 = File name, optiona2 = Mode
  * Type = Console: optional1 = Colors

Created a default set of loggers and appenders.
- Root logger defaults to Error, that means you will see nothing on console by default (not even loading)
- You need to add the loggers to Loggers options if you want to enable them, otherwise Root logger will be used for all types

Restored outSQLDriver (LOG_FILTER_SQL_DRIVER), outSQLDev (LOG_FILTER_SQL_DEV), outArena (LOG_FILTER_ARENA) and outChar (LOG_FILTER_CHARACTER) functionality by creating new types (LOG_FILTER_CHARACTER is a rename of LOG_FILTER_DELETE.

Note: You need to update your config file... again (yeah sorry... trying to make it simpler)
2012-08-06 12:10:33 +02:00
Subv 8b8fa24fec Core/PacketIO: Enabled another bunch of opcodes and made some misc fixes here and there 2012-08-05 21:52:36 -05:00
cyberbrest 4c81231816 [PacketIO] structure CMSG_MOVE_CHNG_TRANSPORT. 2012-08-06 04:15:42 +03:00
Subv 1928964443 Core/Items: Implemented SOCKET_COLOR_COGWHEEL.
Codestyle/Misc: Renamed recv_data to recvData
2012-08-05 19:40:30 -05:00
Subv 74fe587b49 Protocol/PacketIO: Enabled a few more opcodes 2012-08-05 16:15:38 -05:00
Subv 5921f463ef Protocol/PacketIO: Enabled more opcodes 2012-08-05 15:21:52 -05:00
Nay c96df75900 Core/Items: Remove a few missing things 2012-08-05 19:38:24 +01:00
Subv 2c20cc98c9 Core/Protocol: Removed SMSG_ITEM_NAME_QUERY_RESPONSE, it no longer exists 2012-08-05 10:13:48 -05:00
Subv 0e581b7991 Core/Items: Removed no longer needed code for item set names and item set names locales 2012-08-05 10:09:56 -05:00
Spp 3f42094b9c Core/Logging: Add option to remove timestamp, Log Level and Log Filter Type from logged msgs
- Appender config option .Timestamp and .Backup became obsolete
- New Appender config option .Flags added

Appender Console prefixes Log Level and Log Filter Type to the logged text as default
Appender File prefixes Timestamp, Log Level and Log Filter Type to the logged text as default
2012-08-05 15:38:25 +02:00
Subv 297aed81e2 Core/PacketIO: Enabled some more opcodes 2012-08-04 13:19:06 -05:00
Nay da2db28cab Core/PacketIO: Add some (possible) missing FlushBits 2012-08-04 19:11:13 +01:00
Subv fc318a2da7 Core/Protocol: Enabled CMSG_BUY_ITEM 2012-08-04 13:01:29 -05:00
kaelima f5d19939bf Core/Guilds: Implemented some guild packets, some basic guild functions is working, though most are still WIP/TODO 2012-08-04 18:41:18 +02:00
Subv 17e852d9b3 Items/Reforge: Partially implemented reforge, still ToDo: Apply real stat modifiers to the player 2012-08-03 20:48:47 -05:00
Nay 48db4b2b7d Core/PacketIO: Fix and enable SMSG_MESSAGECHAT
TODO: 	- Send addon prefix in this packet when language is Addon
	- Cleanup uses of SMSG_MESSAGECHAT (17 different "handlers" for it is not okay) (long term)
	- Missing a CMSG_MESSAGECHAT_ADDON_x or two
2012-08-04 01:39:18 +01:00
Nay 12307c7d06 Whitespace is the root of all evil 2012-08-03 22:39:34 +01:00
Nay 3577afcfaf Core/WorldSession: Bypass assigned handler restriction if .debug send opcode command is used 2012-08-03 22:39:34 +01: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
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
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
Nay 6b666d77d9 Core/PacketIO: Update and enable handler for CMSG_GROUP_INVITE 2012-08-02 18:18:32 +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 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 c24de2c6d8 Core: Implement Void Storage 2012-07-30 16:39:46 +01:00
Shauren 868c6e853b Core/PacketIO: Fixed CMSG_PING (and pong) 2012-07-26 18:36:26 +02:00