View Full Version : [SOLVED] [Trinitycore] How to get rid of .pinfo useless text ?

12-18-2014, 07:33 PM
does anny of you know how to get rid of all this useless .pinfo symbols ? http://prntscr.com/5ic3q9 it make it impossible to read the informations ...

12-18-2014, 08:51 PM
Inside of Language.h (https://github.com/TrinityCore/TrinityCore/blob/9c55d9fdebb821ac102a2b7e7a2a1ef0b92ac26c/src/server/game/Miscellaneous/Language.h#L810-L832) file you can find the Ids associated with pinfo. Go into trinity_strings table in your world database and search for the strings via Language pInfo data type values.


LANG_PINFO_PLAYER = 453 (https://github.com/TrinityCore/TrinityCore/blob/9c55d9fdebb821ac102a2b7e7a2a1ef0b92ac26c/src/server/game/Miscellaneous/Language.h#L811)

I will go into trinity_strings table and search for 453:


You can edit the string value to your liking, however, "%s, %u, etc" can't be removed unless you remove the actual argument it is trying to get via pinfo code. You can do this by going into cs_misc.cpp under HandlePInfoCommand and find the correct LANG data type you want to edit. Let's start with LANG_PINFO_PLAYER inside of its PSendSysMessage (https://github.com/TrinityCore/TrinityCore/blob/a1d4c9f9dc14352a108339e006d3f17e88de1672/src/server/scripts/Commands/cs_misc.cpp#L1681). LANG_PINFO_PLAYER has three arguments "√”√∂√©Player %s %s (guid: %u)". If I were to remove the player name string via trinity_strings table I will need to remove it in the code too:

To remove (IN LIME):

handler->PSendSysMessage(LANG_PINFO_PLAYER, target ? "" : handler->GetTrinityString(LANG_OFFLINE), nameLink.c_str(), targetGuid.ToString().c_str());

Should look like this now:

handler->PSendSysMessage(LANG_PINFO_PLAYER, target ? "" : handler->GetTrinityString(LANG_OFFLINE), targetGuid.ToString().c_str());

And the trinity_string LANG_PINFO_PLAYER value should look like:

"√”√∂√©Player %s (guid: %u)"

Hope this helped.

12-20-2014, 06:26 AM
Well it was enough to remove that symbols from trinity strings :) and now it worl like a charm :D thank you