Jump to content

[patch] Remove Some Details From String Output.


Guest Visagalis
 Share

Recommended Posts

* What bug does the patch fix? What features does the patch add?

It removes some useless spam from console like:

WORLD: MSG_ADD_DYNAMIC_TARGET_OBSOLETE
WORLD: MSG_ADD_DYNAMIC_TARGET_OBSOLETE
WORLD: MSG_ADD_DYNAMIC_TARGET_OBSOLETE
MSG_TALENT_WIPE_CONFIRM
WORLD: MSG_ADD_DYNAMIC_TARGET_OBSOLETE
WORLD: MSG_ADD_DYNAMIC_TARGET_OBSOLETE
WORLD: MSG_ADD_DYNAMIC_TARGET_OBSOLETE
WORLD: MSG_ADD_DYNAMIC_TARGET_OBSOLETE
MSG_TALENT_WIPE_CONFIRM
WORLD: MSG_ADD_DYNAMIC_TARGET_OBSOLETE
MSG_TALENT_WIPE_CONFIRM
WORLD: MSG_ADD_DYNAMIC_TARGET_OBSOLETE
MSG_TALENT_WIPE_CONFIRM
WORLD: MSG_ADD_DYNAMIC_TARGET_OBSOLETE

i made it only print with detail log level.

* For which SubVersion revision was the patch created? 5653

* Is there a thread in the bug report section? If yes, please add a link to the thread. None, i just found junk in console and find a fix.

* Who has been writing this patch? Please include either forum user names or email addresses. Visagalis

Index: src/game/PetHandler.cpp
===================================================================
--- src/game/PetHandler.cpp        (revision 5653)
+++ src/game/PetHandler.cpp        (working copy)
@@ -428,7 +428,7 @@

{
        CHECK_PACKET_SIZE(recvPacket,8);

-        sLog.outString("CMSG_PET_UNLEARN");
+        sLog.outDetail("CMSG_PET_UNLEARN");
        uint64 guid;
        recvPacket >> guid;

@@ -490,7 +490,7 @@

{
        CHECK_PACKET_SIZE(recvPacket,8+2+2+1);

-        sLog.outString("CMSG_PET_SPELL_AUTOCAST");
+        sLog.outDetail("CMSG_PET_SPELL_AUTOCAST");
        uint64 guid;
        uint16 spellid;
        uint16 spellid2;                                                                                //maybe second spell, automatically toggled off when first toggled on?
@@ -537,7 +537,7 @@


void WorldSession::HandleAddDynamicTargetObsoleteOpcode( WorldPacket& recvPacket )
{
-        sLog.outString("WORLD: MSG_ADD_DYNAMIC_TARGET_OBSOLETE");
+        sLog.outDetail("WORLD: MSG_ADD_DYNAMIC_TARGET_OBSOLETE");

        //CHECK_PACKET_SIZE(recvPacket,8+4+14);
        CHECK_PACKET_SIZE(recvPacket,4);
Index: src/game/SkillHandler.cpp
===================================================================
--- src/game/SkillHandler.cpp        (revision 5653)
+++ src/game/SkillHandler.cpp        (working copy)
@@ -136,7 +136,7 @@

{
        CHECK_PACKET_SIZE(recv_data,8);

-        sLog.outString("MSG_TALENT_WIPE_CONFIRM");
+        sLog.outDetail("MSG_TALENT_WIPE_CONFIRM");
        uint64 guid;
        recv_data >> guid;

Link to comment
Share on other sites

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use