I think even Windows' Notepad didn't even work for me. In any case, I've used Notepad Plus, and determined that it works if you replace the fairly obvious-looking block (the only one that looks similar) in CooldownCount.lua with this:
function CooldownCount:GetFormattedTime(secs, useSmallFontSize)
-- always perform small font size
local size1, size2, size3, size4
if useSmallFontSize then
size1 = size2
size2 = size3
size3 = size4
size4 = CooldownCount.db.profile.size[1]
else
size1 = CooldownCount.db.profile.size[1]
size2 = CooldownCount.db.profile.size[2]
size3 = CooldownCount.db.profile.size[3]
size4 = CooldownCount.db.profile.size[4]
end
-- return cc now value, next update value, font size, toggle two color
if secs >= 86400 then
return ceil(secs / 86400) .. L["d"], mod(secs, 86400), size1
elseif secs >= 3600 then
return ceil(secs / 3600) .. L["h"], mod(secs, 3600), size1
elseif secs >= 600 then
return ceil(secs / 60) .. L["m"], mod(secs, 60), size1
elseif secs >= 360 then
return ceil(secs / 60) .. L["m"], mod(secs, 60), size2
elseif secs >= 60 then
return string.format("%d:%02d", floor(secs / 60), secs % 60), 2, size1
elseif secs >= 10 then
return floor(secs + 0.5), secs - floor(secs), size3
else
return floor(secs + 0.5), 0.5, size4, true
end
end
I tabbed out each argument so it'd be easier to read, but it's not necessary to do really. Anyways, basically note the last two non-end lines that say "else / return..." I would think that this is the best way to render it, not with an "end / return".
The main difference, though, is "elseif secs >= 360" and "elseif secs >= 60". It'll work to show minutes and seconds for cooldowns that are currently lower than 6 minutes. This could be modified, and probably should. Me, I'd recommend less than 2 minutes to be shown this way (change the "360" to "120" or maybe "150" for two and a half minutes. Three minutes is fine, but more than that is kinda pointless. Anyways, I did notice that the font was big, at least on my screen, and bled into the next icon which wouldn't be too bad but I had two cooldowns next to each other.
1st. Major problem. If I am mounted and get dismounted in battle my pet bars never show up. (I have thourghly tested this and it works fine with CC off.)
2nd. If I have ignoretargetframe set to off then I get an error everytime I iniate any kind of cooldown on my target. It appears to be something with the fonts but I am not sure.
As for right now I have CC off and I miss it horribly already, but can't use it do to the 1st problem I am having.
I am using the most current revision of CC from the Aceupdater and update 2 daily.
Any ideas on how to fix atleast the 1st problem would be greatly appreciated.
I'm also having problems with it tainting the petpar. Every time I get in to combat while mounted I don't get a petbar when dismounting.
Also on my priest mind controlling more often then not results in a missing petbar where this does not appear if i don't load CooldownCount.
Does anybody have a sollution to this or even a replacment for CooldownCount?
Just disabled PetActionBar cooldown count display.
Hi,
it would be cool if that'd be an option in the settings. In the latest version I removed the code to disable the petbar cooldowns (to enable them again). Being a hunter, I just want to know when the pet cooldowns are ready. Hardcoding them to not being shown isn't nice. ;)
It would be too wide if your chosen font is too big. That's the only reason. However, instead of 09:35, it could say 9:35. Anyways, see my post above on this same page. I posted a way you can modify this. One thing to note is that it is set up to start at a lower time than that (not beyond 6 minutes, but I can't remember). You can easily modify the code to make it 10 minutes.
I tabbed out each argument so it'd be easier to read, but it's not necessary to do really. Anyways, basically note the last two non-end lines that say "else / return..." I would think that this is the best way to render it, not with an "end / return".
The main difference, though, is "elseif secs >= 360" and "elseif secs >= 60". It'll work to show minutes and seconds for cooldowns that are currently lower than 6 minutes. This could be modified, and probably should. Me, I'd recommend less than 2 minutes to be shown this way (change the "360" to "120" or maybe "150" for two and a half minutes. Three minutes is fine, but more than that is kinda pointless. Anyways, I did notice that the font was big, at least on my screen, and bled into the next icon which wouldn't be too bad but I had two cooldowns next to each other.
Personally I swear by NotePadPlus. I used to use Crimson Editor but it hasnt been updated in a long time.
regular old Windows Notepad... Never again.
1st. Major problem. If I am mounted and get dismounted in battle my pet bars never show up. (I have thourghly tested this and it works fine with CC off.)
2nd. If I have ignoretargetframe set to off then I get an error everytime I iniate any kind of cooldown on my target. It appears to be something with the fonts but I am not sure.
As for right now I have CC off and I miss it horribly already, but can't use it do to the 1st problem I am having.
I am using the most current revision of CC from the Aceupdater and update 2 daily.
Any ideas on how to fix atleast the 1st problem would be greatly appreciated.
http://img251.imageshack.us/img251/8862/errortq1.jpg
-
Vin
I had the same error and while I'm no coder I quickfixed it by adding a simple validity check around line 153 where the error was happening.
153: local pos1,pos2 = strfind(frameName, "TargetFrame")
became
153: if frameName then
154: local pos1,pos2 = strfind(frameName, "TargetFrame")
155: end
I figure this will work for me until someone that actually knows what they're doing can take a look.
Also on my priest mind controlling more often then not results in a missing petbar where this does not appear if i don't load CooldownCount.
Does anybody have a sollution to this or even a replacment for CooldownCount?
Is there:
1)A fix or plans for a fix?
2)A way to disable the cooldown numbers on the petbar? I have a hunch that would fix it.
3)A single-purpose alternative with identical functionality?
Kudos on an amazing mod; this is essential on all my characters!
Nope, it would'nt.
Use OmniCC, which does not taint your UI.
Font may be too width?
Hi,
it would be cool if that'd be an option in the settings. In the latest version I removed the code to disable the petbar cooldowns (to enable them again). Being a hunter, I just want to know when the pet cooldowns are ready. Hardcoding them to not being shown isn't nice. ;)
Rgds
Boergen
Can you please add an option for that?
Because CooldownCount is very helpfull at Shartuul's Transporter Event.
It would be too wide if your chosen font is too big. That's the only reason. However, instead of 09:35, it could say 9:35. Anyways, see my post above on this same page. I posted a way you can modify this. One thing to note is that it is set up to start at a lower time than that (not beyond 6 minutes, but I can't remember). You can easily modify the code to make it 10 minutes.
peace~
I second this, i really miss CD on pet action bar and really, i have no clue why they have been removed :/