[Addon] oCB3 (Quartzlike castbar)

Re: [Addon] oCB3 (Quartzlike castbar)

by Kezzik » Sun Nov 08, 2015 11:04 pm

Maybe make it max 80-100

love the addon btw looks sexy
Alexensual



Twitch: Alexensual
Twitter: @Alexensual

https://www.youtube.com/c/Alexensual
User avatar
Kezzik
Senior Sergeant
Senior Sergeant
 

Re: [Addon] oCB3 (Quartzlike castbar)

by Kezzik » Sat Nov 28, 2015 11:20 pm

for some reason on my warlock the cast bar will not display channeled spells like drain life and drain soul?
Alexensual



Twitch: Alexensual
Twitter: @Alexensual

https://www.youtube.com/c/Alexensual
User avatar
Kezzik
Senior Sergeant
Senior Sergeant
 

Re: [Addon] oCB3 (Quartzlike castbar)

by Marisi » Sun Nov 29, 2015 10:28 am

I was having an issue with the default blizzard castbar and several castbar-like addons where their animation would appear choppy whenever my system uptime got too high (say I hadn't restarted my PC in a couple weeks, because I just put it to sleep instead). oCB, Abar, and NECB in particular.

I found a solution by looking at what the creator of CBRipoff did to fix the problem in an old wowace forum post. The fix is to instead call SetMinMaxValues with constant values (1,100), and SetValue with the percentage of n or b through the cast time e.g.

Code: Select all
oCB.frames.CastingBar.Bar:SetValue(n)

becomes

Code: Select all
local np = ((n - oCB.startTime) / (oCB.maxValue - oCB.startTime)) * 100
oCB.frames.CastingBar.Bar:SetValue(np)


I applied this to the latest casting.lua from the master branch and everything is smooth again, I hope it's useful to your project.
http://pastebin.com/j3LmqUj9
User avatar
Marisi
Grunt
Grunt
 

Re: [Addon] oCB3 (Quartzlike castbar)

by Flickerlight » Sun Nov 29, 2015 12:14 pm

Marisi wrote:I was having an issue with the default blizzard castbar and several castbar-like addons where their animation would appear choppy whenever my system uptime got too high (say I hadn't restarted my PC in a couple weeks, because I just put it to sleep instead). oCB, Abar, and NECB in particular.

I finally found what looked like the same problem in an old wowace forum post and a solution by looking at what the creator of CBRipoff did to fix the problem. The fix is to call SetMinMaxValues with constant values (1,100), and SetValue with the percentage of n or b through the cast time e.g.

Code: Select all
oCB.frames.CastingBar.Bar:SetValue(n)

becomes

Code: Select all
local np = ((n - oCB.startTime) / (oCB.maxValue - oCB.startTime)) * 100
oCB.frames.CastingBar.Bar:SetValue(np)


I applied this to the latest casting.lua from the master branch and everything is smooth again, I hope it's useful to your project.
http://pastebin.com/j3LmqUj9


I've just attempted to apply this fix, and run into the following issues:
If I copy and replace the line as you mentioned in your post, the castbar texture dissapears.
If I copy the pastebin, oCB stops working entirely.

Shame, really would like this fix to work; the stuttering bar is driving me mad!

Edit: Would also love to see a way to control the alpha and color of the backdrop/black background.
Flickerlight
Private
Private
 

Re: [Addon] oCB3 (Quartzlike castbar)

by Marisi » Mon Nov 30, 2015 5:28 am

That's just an example, you need to edit every line where SetMinMaxValues or SetValue appears.

If I copy the pastebin, oCB stops working entirely.


Are you using the latest zip of oCB3 from the master branch? Not sure what else could be causing your problem.
User avatar
Marisi
Grunt
Grunt
 

Re: [Addon] oCB3 (Quartzlike castbar)

by Athene » Mon Nov 30, 2015 12:37 pm

Hello, thanks for this code snippet I'll test a few things like delayed spells before adding this.

Also, about your timing problem have you tried to change the timingModeOverride ?
/console timingModeOverride x
0=default 1=GetTickCount 2=RDTSC 3=QueryPerformanceCounter 4=timeGetTime

https://docs.google.com/spreadsheets/d/ ... =0&vpid=A5

Just to be sure this fix is the only way around since most people don't seem to have any problem with timings^^
<Genesis>
youtube.com/GenesisGuilde

MSBT [Continued] landed on Nostalrius, check it here: forum.nostalrius.org/viewtopic.php?f=63&t=1721
User avatar
Athene
Senior Sergeant
Senior Sergeant
 

Re: [Addon] oCB3 (Quartzlike castbar)

by Kezzik » Mon Nov 30, 2015 6:01 pm

Kezzik wrote:for some reason on my warlock the cast bar will not display channeled spells like drain life and drain soul?


.
Alexensual



Twitch: Alexensual
Twitter: @Alexensual

https://www.youtube.com/c/Alexensual
User avatar
Kezzik
Senior Sergeant
Senior Sergeant
 

Re: [Addon] oCB3 (Quartzlike castbar)

by Athene » Wed Dec 02, 2015 5:25 pm

@Kezzik : Can you type "/ocb debug" in chat and screenshot the debug info when you cast a spell and there's no cast bar ?
<Genesis>
youtube.com/GenesisGuilde

MSBT [Continued] landed on Nostalrius, check it here: forum.nostalrius.org/viewtopic.php?f=63&t=1721
User avatar
Athene
Senior Sergeant
Senior Sergeant
 

Re: [Addon] oCB3 (Quartzlike castbar)

by bladez » Mon Dec 07, 2015 2:45 pm

The visible 'error' (that prevents the castbar from showing during a channeled spell) is at casting.lua#212, which is in the debugging message.

It should be .. (oCBName or arg2) .. starting @ column 34

This will let you see a channeling bar, but no spell info. The actual cause behind the error I'm not sure of, and I don't have time to investigate it right now. It usually happens after using a single instant cast, and persists until UI reload - normal spell casts still show fine.

But for the time being, what I said above will prevent the error.
bladez
Tester
 

Re: [Addon] oCB3 (Quartzlike castbar)

by lumpY » Fri Dec 11, 2015 2:20 pm

Is there a chance we can have a Global Cooldown Funcion like quartz has? A small bar that shows an indication of you global cooldown!
lumpY
Tester
 

PreviousNext

Return to Addons & macros