Splitting Chronometer into buffs and debuffs

Splitting Chronometer into buffs and debuffs

by jakeadams » Sun Jan 03, 2016 8:54 pm

Hello!

I was wondering if it was possible to make chronometer have two windows, one showing buffs and one showing debuffs? I hate having to look for my short-time buffs. Having Chronometer show it makes it easier to track, just like my dots, but the way it does it now with both buffs and debuffs is to much and doesn't really look good. If it is not possible to change it like that, could I just edit something so it only shows buffs? Thanks in advance.

Regards,
Jake Adams
User avatar
jakeadams
Sergeant
Sergeant
 

Re: Splitting Chronometer into buffs and debuffs

by Roadblock » Sun Jan 03, 2016 11:19 pm

For the last part, you'd have to go into Chronometer\Data\<your_class>.lua and comment out (put -- at the start) any line for what you don't want to see bars.
Astaldo @ Nostalrius PvE (Alliance)
Addons I've posted on Forum
User avatar
Roadblock
Senior Sergeant
Senior Sergeant
 

Re: Splitting Chronometer into buffs and debuffs

by jakeadams » Mon Jan 04, 2016 9:57 am

Thanks, that helped alot!

I do still want to have another window that then only shows debuffs. Can I somehow make a copy of Chronometer and edit it the same way that I did for buffs and using both at the same time? Maybe somehow change it to Chronometer1.
User avatar
jakeadams
Sergeant
Sergeant
 

Re: Splitting Chronometer into buffs and debuffs

by Roadblock » Mon Jan 04, 2016 11:26 am

It might be possible as long as the author is not using globals but only testing will tell.
The steps to make a second copy that can load along-side the first one is:
  1. Make a copy of Chronometer folder inside Addons.
  2. Rename the new folder to Chronometer1.
  3. Go inside the Chronometer1 folder and rename the .toc file (and only that) to Chronometer1.toc
  4. Open the Chronometer1.toc file in a text editor, look for the line ## SavedVariables: ChronometerDB and make it ## SavedVariables: Chronometer1DB
  5. Restart the game and pray ;)

Edit: You might have to enable them one at a time to place the bars for each before you use both at same time.
Astaldo @ Nostalrius PvE (Alliance)
Addons I've posted on Forum
User avatar
Roadblock
Senior Sergeant
Senior Sergeant
 

Re: Splitting Chronometer into buffs and debuffs

by jakeadams » Mon Jan 04, 2016 11:41 am

Thanks for the reply!
So, it didn't work all the way. I do have 2 seperate files in the WTF folders and 2 different Chronometers shows op in my AddOn list, but I get an error saying:

Count: 1
Error:
...face\AddOns\Chronometer1\Core\Chronometer-
Locale.lua:3 AceLocale(Chronometer): Cannot
provide the same locale more than once. "enUS"
provided twice.

So I am quessing that it can't be done that easy. Another problem is that both would be using the command /chronometer. But thanks for the effort.

Edit: Scratch the part about /chronometer, just saw what you wrote.
User avatar
jakeadams
Sergeant
Sergeant
 

Re: Splitting Chronometer into buffs and debuffs

by Roadblock » Mon Jan 04, 2016 12:03 pm

You might get away with changing just the first line in Core\Chronometer-Locale.lua to
local L = AceLibrary("AceLocale-2.2"):new("Chronometer1")
for your second copy.

But like I said, any more globals will cause the same or other problems (one copy of the addon clobbering the same variable from the other)

Edit: For the command thing, if you open Core\Chronometer.lua in a text editor you can search for:
Chronometer:RegisterChatCommand({'/chron', '/chronometer'}, options)
and edit the second copy as needed.
Astaldo @ Nostalrius PvE (Alliance)
Addons I've posted on Forum
User avatar
Roadblock
Senior Sergeant
Senior Sergeant
 

Re: Splitting Chronometer into buffs and debuffs

by jakeadams » Mon Jan 04, 2016 12:16 pm

Okay I'll try that and if it won't work, then I'll be satisfied with what I have now.

Thanks alot for the help!

Edit: Had to tell you, it worked!! I use /Chron and /chron1 for the two different ones. While I haven't tested it yet, they do have two different anchors and all. You're amazing <3!
User avatar
jakeadams
Sergeant
Sergeant
 


Return to Addons & macros