havent tested the new revision yet, but im hopin for some help with the code.
where do i stick my if...else loop for right-aligned timestamps on 1 window?
or rather, how should it be formatted?
it should obviously replace
text = string.format('%s %s', date(self.db.Format), text)
but im not sure where to pull the frame name from =\
Didnt get a chance to get the error message , ill try an find it , since I know without it probably wont help. But I got a timestamp error , when I touch the CTMOD choice for timer for buffs fading , from 15 secs , 1 min , off, or even mouse over it. It crashed my to desktop in BWL , just FYI to make get a head start while I get the exact error message. Other then that , love Idchat addons :) awesome work.
Yep, something certainly going on with timestamps on today's bits. I get this trace from BugSack:
[2006/09/08 21:53:37-261]: idChat2_Timestamps\idChat2_Timestamps.lua:125: bad argument #3 to `format' (string expected, got nil)
<in C code>: in function `format'
idChat2_Timestamps\idChat2_Timestamps.lua:125: in function <...ace\AddOns\idChat2_Timestamps\idChat2_Timestamps.lua:124>
<unknown>:
SheepWatch\SheepWatch.lua:606: in function `SheepWatch_SetTimerLength'
SheepWatch\SheepWatch.lua:668: in function `SheepWatch_LoadVariables'
SheepWatch\SheepWatch.lua:167: in function `?'
SheepWatch\SheepWatch.lua:156: in function `SheepWatch_OnEvent'
<string>:"SheepWatch:OnEvent":2: in main chunk
---
If I get a chance I will look for it, but since it doesn't seem to crash anything, I'm just ignoring it for now.
Didnt get a chance to get the error message , ill try an find it , since I know without it probably wont help. But I got a timestamp error , when I touch the CTMOD choice for timer for buffs fading , from 15 secs , 1 min , off, or even mouse over it. It crashed my to desktop in BWL , just FYI to make get a head start while I get the exact error message. Other then that , love Idchat addons :) awesome work.
Id, don't know if I have asked it already, but how about a module for player levels? I was previously using eloquence, and it had an option to put a lvl before the player. It would look like this:
This might be 'duh' information, but Chat Frame Extender has the "Scroll Down" notification already, and ChatAssist has the URL window. Would they be helpful in taking a peak at for developing the idChat2 modules?
Just a thought.
Just one thing i dont like, with StickyChannels:
If you send a whisper, the player will be made default by the addon
Is this still happening, or is it disablable?
I think I am just going to have to take the plunge and see what this is like. I have been nervous as I like the chat mods I have now, but given Ace's rep when it comes to memory... I am admittingly anxious to try.
ok Id, you totally stumped me this time with getting right-aligned timestamps for a specific chat window.
heres the code im using, its not producing any bugs or errors in bugsack, but its also not doing what i want lol
granted, most of this is mostly guess-work based on previous edits to the timestamps code, i think what im missing is the "proper" way to reference the chatframe itself
anyways, heres the code (full AddMessage function as ive edited it)
function idChat2_Timestamps:AddMessage(frame, text, red, green, blue, id)
if self.db.profile[frame:GetName()] then
if self.db.profile.Color.On then
local color = string.format("%02x%02x%02x", self.db.profile.Color.r*255, self.db.profile.Color.g*255, self.db.profile.Color.b*255)
if self.db.profile[ChatFrame2] then
text = string.format('|cff'..color..'%s|r %s', text, date(self.db.profile.Format))
else
text = string.format('|cff'..color..'%s|r %s', date(self.db.profile.Format), text)
end
else
if self.db.profile[ChatFrame2] then
text = string.format('%s %s', text, date(self.db.profile.Format))
else
text = string.format('%s %s', date(self.db.profile.Format), text)
end
end
end
self.hooks[frame].AddMessage.orig(frame, text, red, green, blue, id)
end
anyone have any ideas or suggesstions? cuz this ones got me stumped good lol
thanks for giving it a shot, but that code fix doesnt work, also, it would only take into account the "colors enabled" option (im personally not using colors so the timestamps are colored by the text lines they come in on)
thanks anyways for trying to help
yep, that did it, for some reason i was convinced i had to use Id's db code somehow but that worked
for those that want it, heres the full function
function idChat2_Timestamps:AddMessage(frame, text, red, green, blue, id)
if self.db.profile[frame:GetName()] then
if self.db.profile.Color.On then
local color = string.format("%02x%02x%02x", self.db.profile.Color.r*255, self.db.profile.Color.g*255, self.db.profile.Color.b*255)
if frame:GetName() == "ChatFrame2" then
text = string.format('|cff'..color..'%s|r %s', text, date(self.db.profile.Format))
else
text = string.format('|cff'..color..'%s|r %s', date(self.db.profile.Format), text)
end
else
if frame:GetName() == "ChatFrame2" then
text = string.format('%s %s', text, date(self.db.profile.Format))
else
text = string.format('%s %s', date(self.db.profile.Format), text)
end
end
end
self.hooks[frame].AddMessage.orig(frame, text, red, green, blue, id)
end
i left out adding in [timestamp] or <timestamp> as this can be configured via / commands now (ty Id)
If you send a whisper, the player will be made default by the addon
(I really hope someone will understand what i mean ... cant find good words to say it sorry :/)
Was thinking of an option for Scroll: configure the number of lines scrolled, please ^^
remove the loops entirely.
using the latests svn version
edit: hopefully fixed it with r10541
where do i stick my if...else loop for right-aligned timestamps on 1 window?
or rather, how should it be formatted?
it should obviously replace
but im not sure where to pull the frame name from =\
-DR
If I get a chance I will look for it, but since it doesn't seem to crash anything, I'm just ignoring it for now.
thats because ct_mastermod sucks nuts mmuahahah
Id, don't know if I have asked it already, but how about a module for player levels? I was previously using eloquence, and it had an option to put a lvl before the player. It would look like this:
[(59)playername]LFG UBRS
wouldbe nice :)
This might be 'duh' information, but Chat Frame Extender has the "Scroll Down" notification already, and ChatAssist has the URL window. Would they be helpful in taking a peak at for developing the idChat2 modules?
Just a thought.
Is this still happening, or is it disablable?
I think I am just going to have to take the plunge and see what this is like. I have been nervous as I like the chat mods I have now, but given Ace's rep when it comes to memory... I am admittingly anxious to try.
-DR
heres the code im using, its not producing any bugs or errors in bugsack, but its also not doing what i want lol
granted, most of this is mostly guess-work based on previous edits to the timestamps code, i think what im missing is the "proper" way to reference the chatframe itself
anyways, heres the code (full AddMessage function as ive edited it)
anyone have any ideas or suggesstions? cuz this ones got me stumped good lol
to
thanks anyways for trying to help
Perhaps this?
Replace "MyRightJustifiedChatWindow" with the actual name, of course.
for those that want it, heres the full function
i left out adding in [timestamp] or <timestamp> as this can be configured via / commands now (ty Id)
"Addons\IdChat2Timestamps\idChat2Timestamps
.lua:154: bad argument #3 to format' (string
expected, got nil)"