Thread Tools Display Modes
10-22-12, 03:08 PM   #1
Moxie
A Cobalt Mageweaver
 
Moxie's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 206
Hiding Time Played

I'm looking for a way to hide the time played message every time that I log in, as Altoholic already keeps track of that for me and doesn't find it necessary to print to chat.

I've searched for TIME_PLAYED_TOTAL to see if I have a mod that is doing it and came up empty, but I'm unsure as to how to go about hiding the message entirely using that same string.

Any help would be super.
__________________
"Someday we'll look back on this, laugh nervously and quickly change the subject."

"The truth is like sunlight: people used to think it was good for you."
  Reply With Quote
10-22-12, 03:12 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
It must be a mod that is doing it... I don't ever recall seeing that message without having to type /played.

You may need to do a binary search.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
10-22-12, 03:31 PM   #3
lerb
A Frostmaul Preserver
 
lerb's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 264
Notepad++ has a search function built in that lets you search multiple files, or even folders iirc. Just open it up, press ctrl+f, hit the "search in files" tab and enter search criteria.
  Reply With Quote
10-22-12, 03:37 PM   #4
Moxie
A Cobalt Mageweaver
 
Moxie's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 206
I've disabled and re-enabled mod by mod and searched using Notepad++ before posting, but it's still happening. Not sure where it's coming from, but it's annoying and I'd like to hide it permanently.
__________________
"Someday we'll look back on this, laugh nervously and quickly change the subject."

"The truth is like sunlight: people used to think it was good for you."
  Reply With Quote
10-22-12, 05:11 PM   #5
Moxie
A Cobalt Mageweaver
 
Moxie's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 206
Figured out how to hide it, since I couldn't find which mod was doing it.
__________________
"Someday we'll look back on this, laugh nervously and quickly change the subject."

"The truth is like sunlight: people used to think it was good for you."
  Reply With Quote
10-22-12, 05:32 PM   #6
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,313
It's Altoholic doing it to update its records of how long you've played on a character.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote
10-22-12, 05:37 PM   #7
Moxie
A Cobalt Mageweaver
 
Moxie's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 206
It never did it before (unless I can't remember changing the code myself) and I checked the code to see where it says to print, but it's hidden now anyway.
__________________
"Someday we'll look back on this, laugh nervously and quickly change the subject."

"The truth is like sunlight: people used to think it was good for you."
  Reply With Quote
10-22-12, 06:51 PM   #8
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Search your addon files for "RequestTimePlayed", which is the function that gets that information. Any addon calling that function to update its records should also hide it when it wasn't requested by the user. Here are the relevant bits from Broker_PlayedTime; feel free to point the author of Altoholic at this thread for copypasta.

Code:
local requesting

local o = ChatFrame_DisplayTimePlayed
ChatFrame_DisplayTimePlayed = function(...)
	if requesting then
		requesting = false
		return
	end
	return o(...)
end

function addon:RequestTimePlayed()
	requesting = true
	RequestTimePlayed()
end

function addon:TIME_PLAYED_MSG(timePlayed)
	-- do something with the timePlayed here
end
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
10-22-12, 07:58 PM   #9
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,313
Originally Posted by Decabah View Post
It never did it before (unless I can't remember changing the code myself) and I checked the code to see where it says to print, but it's hidden now anyway.
When you open the interface options, go to the AddOns tab, open the DataStore category and select DataStore_Characters. In there is the option, "Request play time at login." This is the option that is producing the messages and is required for Altoholic to keep track of your character's play time.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Hiding Time Played

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off