Download
(113Kb)
Download
Updated: 07-10-09 06:31 PM
Updated:07-10-09 06:31 PM
Created:04-24-09 12:49 AM
Downloads:8,858
Favorites:127
MD5:

Broker: TalentSwitch - No longer supported  Popular! (More than 5000 hits)

Version: No Longer supported
by: Tymesink [More]

This addon is no longer supported. I would suggest using the following addon as a replacement:

Ara Broker SpecSwitcher





Broker: TalentSwitch is a LibDataBroker based info addon. This is a very simple addon which provides a simple and easy way
to switch between Primary and Secondary Talent specs.

Data Broker Display
This plugin does not provide a display of its own, you will need to install display plugin such as Fortress, Carousel or Docking Station, amongst others.







Extended thanks to
- PatoDaia for the esES language file
- mrgyver for the koKR language file
- fuyuri for the zhTW language.

1.9.6
-- Fixed a file name issue with the koKR.lua language file

1.9.5
-- Added esES language file
-- Another bug reported.. added additional logic to check for "nil".

1.9.4
-- Added zhTW language file

1.9.3
-- Fixed another event bug.

1.9.2
-- Fixed bugs using different events

1.9
-- Bug Fix with tooltip

1.8
-- Added Korea language file
-- the icon shown in the broker frame no longer requires a user to "Get Talent Info" first. The icon reflects the primary talent tree for the current talent specialization that is active.

1.7
-- Fixed a bug with profile/saved data issue

1.6
-- Found a late night/early morning typo bug cause errors to happen.

1.5
-- Fixed a bug where the path to the ace libs weren't correct.
-- Added a hook SetActiveTalentGroup to optimize CPU consumption, avoid looking for every spell cast. ** Thank you Aranarth for the suggestion.

1.4
-- Removed profile management using SavedVariablesPerCharacter and implement profile managment using AceDBOptions-3.0.

1.3
-- Added more info in the tooltip about the active and inactive talents

1.2
-- Added Hide Spam feature
-- Added Custom Message when talent switch is complete. Shows only when hide spam is enabled. Can leave the custom message blank if no message is desired.

1.1
- Added Primary and Secondary custom aliases
- Added Get Talent Info feature for custom aliases

1.0
- Initial release.
Post A Reply Comment Options
Unread 04-28-09, 11:51 PM  
Tymesink
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 67
Uploads: 3
Re: 1.3

Originally posted by Normi01
Version 1.3 doesnt load anymore for me, i switched back to 1.2.

So long Normi.
Please check your LBD display mod settings... I'm using fortress and the broker display is showing just fine.
Report comment to moderator  
Reply With Quote
Unread 04-29-09, 03:20 AM  
Normi01
A Kobold Labourer

Forum posts: 0
File comments: 18
Uploads: 0
I am using DockingStation, i can see the addon
in the User Interface and change the settings, but dockingstation
says its offline, the older versions all work fine tho.

I got it to work now, you have to delete the old settings file
for every character.
Last edited by Normi01 : 04-29-09 at 03:26 AM.
Report comment to moderator  
Reply With Quote
Unread 04-29-09, 08:24 AM  
Tymesink
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 67
Uploads: 3
Originally posted by Normi01
I am using DockingStation, i can see the addon
in the User Interface and change the settings, but dockingstation
says its offline, the older versions all work fine tho.

I got it to work now, you have to delete the old settings file
for every character.
Ok.. I will work on that tonight. Thank you for reporting this.
Report comment to moderator  
Reply With Quote
Unread 04-30-09, 09:25 PM  
kxuhx
A Kobold Labourer

Forum posts: 0
File comments: 83
Uploads: 0
Same problem with Docking Station, cant get it to show
Report comment to moderator  
Reply With Quote
Unread 05-01-09, 01:41 AM  
Tymesink
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 67
Uploads: 3
Originally posted by kxuhx
Same problem with Docking Station, cant get it to show

I tested with Docking Station and the addon does work with Docking Station.

You may have to delete the old settings file (<World of Warcraft Directory>\WTF\Account\<ACCOUNTNAME>\SavedVariabled)
for every character (World of Warcraft Directory>\WTF\Account\<ACCOUNTNAME>\<REALM>\<CHARACTER>\SavedVariables\).

Deleted any file that contains the name "Broker_TalentSwitch".

Please let me know if that fixes the problem or if you continue to have problems with Docking Station.
Report comment to moderator  
Reply With Quote
Unread 05-01-09, 08:17 PM  
Aranarth
A Deviate Faerie Dragon
 
Aranarth's Avatar
AddOn Author - Click to view AddOns

Forum posts: 14
File comments: 394
Uploads: 9
Optimization

To optimize CPU consumption, avoid looking for every spell cast. Hook SetActiveTalentGroup. Here is a code sample:
Code:
local orgSetActiveTalentGroup = _G.SetActiveTalentGroup

function SetActiveTalentGroup(...)
	f:RegisterEvent"UNIT_SPELLCAST_SUCCEEDED"
	f:RegisterEvent"UNIT_SPELLCAST_STOP"
	ChatFrame_AddMessageEventFilter("CHAT_MSG_SYSTEM", SpamFilter)
	return orgSetActiveTalentGroup(...)
end

function f:UNIT_SPELLCAST_STOP(event, unit, spell)
	if unit ~= "player" then return end
	self:UnregisterEvent"UNIT_SPELLCAST_SUCCEEDED"
	self:UnregisterEvent"UNIT_SPELLCAST_STOP"
	ChatFrame_RemoveMessageEventFilter("CHAT_MSG_SYSTEM", SpamFilter)
end
f.UNIT_SPELLCAST_SUCCEEDED = f.UNIT_SPELLCAST_STOP
Cheers
Report comment to moderator  
Reply With Quote
Unread 05-02-09, 02:01 AM  
WereBear
A Kobold Labourer

Forum posts: 0
File comments: 23
Uploads: 0
Anyone else having errors with the new version. 1.2 worked fine with no errors. now get a error using it and trying to right click on the icon in titan panel and when I log on. Already tried deleting the folder and the wtf files for it. any ideas. everything is updated.

Error occured in: Global
Count: 1
Message: ..\FrameXML\UIOptionsFrame.lua line 436:
Usage: InterfaceOptionsFrame_OpenToCategory("categoryName" or panel)
Debug:
(tail call): ?
[C]: ?
[C]: assert()
..\FrameXML\UIOptionsFrame.lua:436: InterfaceOptionsFrame_OpenToCategory()
Broker_TalentSwitch\ldb.lua:42:
Broker_TalentSwitch\ldb.lua:38
Titan\LDBToTitan.lua:212:
Titan\LDBToTitan.lua:210

Then there is this error when i log on

ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\Broker_TalentSwitch\core.lua line 193:
Cannot find a library instance of "AceDBOptions-3.0".
Debug:
(tail call): ?
[C]: error()
!Swatter\Support\LibRevision.lua:47: LibStub()
Broker_TalentSwitch\core.lua:193: SetupOptions()
Broker_TalentSwitch\core.lua:171:
Broker_TalentSwitch\core.lua:163
(tail call): ?
[C]: ?
[string "safecall Dispatcher[1]"]:9:
[string "safecall Dispatcher[1]"]:5
(tail call): ?
...\AddOns\AtlasLoot\Libs\AceAddon-3.0\AceAddon-3.0.lua:502: InitializeAddon()
...\AddOns\AtlasLoot\Libs\AceAddon-3.0\AceAddon-3.0.lua:614:
...\AddOns\AtlasLoot\Libs\AceAddon-3.0\AceAddon-3.0.lua:607
Last edited by WereBear : 05-02-09 at 02:03 AM.
Report comment to moderator  
Reply With Quote
Unread 05-02-09, 06:43 AM  
Tymesink
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 67
Uploads: 3
Re: Optimization

Originally posted by Aranarth
To optimize CPU consumption, avoid looking for every spell cast. Hook SetActiveTalentGroup. Here is a code sample:
Code:
local orgSetActiveTalentGroup = _G.SetActiveTalentGroup

function SetActiveTalentGroup(...)
	f:RegisterEvent"UNIT_SPELLCAST_SUCCEEDED"
	f:RegisterEvent"UNIT_SPELLCAST_STOP"
	ChatFrame_AddMessageEventFilter("CHAT_MSG_SYSTEM", SpamFilter)
	return orgSetActiveTalentGroup(...)
end

function f:UNIT_SPELLCAST_STOP(event, unit, spell)
	if unit ~= "player" then return end
	self:UnregisterEvent"UNIT_SPELLCAST_SUCCEEDED"
	self:UnregisterEvent"UNIT_SPELLCAST_STOP"
	ChatFrame_RemoveMessageEventFilter("CHAT_MSG_SYSTEM", SpamFilter)
end
f.UNIT_SPELLCAST_SUCCEEDED = f.UNIT_SPELLCAST_STOP
Cheers
Thank you sir for the suggestion. I implemented this into v1.5.
Report comment to moderator  
Reply With Quote
Unread 05-02-09, 06:47 AM  
Tymesink
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 67
Uploads: 3
Originally posted by WereBear
Anyone else having errors with the new version. 1.2 worked fine with no errors. now get a error using it and trying to right click on the icon in titan panel and when I log on. Already tried deleting the folder and the wtf files for it. any ideas. everything is updated.

Error occured in: Global
Count: 1
Message: ..\FrameXML\UIOptionsFrame.lua line 436:
Usage: InterfaceOptionsFrame_OpenToCategory("categoryName" or panel)
Debug:
(tail call): ?
[C]: ?
[C]: assert()
..\FrameXML\UIOptionsFrame.lua:436: InterfaceOptionsFrame_OpenToCategory()
Broker_TalentSwitch\ldb.lua:42:
Broker_TalentSwitch\ldb.lua:38
Titan\LDBToTitan.lua:212:
Titan\LDBToTitan.lua:210

Then there is this error when i log on

ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\Broker_TalentSwitch\core.lua line 193:
Cannot find a library instance of "AceDBOptions-3.0".
Debug:
(tail call): ?
[C]: error()
!Swatter\Support\LibRevision.lua:47: LibStub()
Broker_TalentSwitch\core.lua:193: SetupOptions()
Broker_TalentSwitch\core.lua:171:
Broker_TalentSwitch\core.lua:163
(tail call): ?
[C]: ?
[string "safecall Dispatcher[1]"]:9:
[string "safecall Dispatcher[1]"]:5
(tail call): ?
...\AddOns\AtlasLoot\Libs\AceAddon-3.0\AceAddon-3.0.lua:502: InitializeAddon()
...\AddOns\AtlasLoot\Libs\AceAddon-3.0\AceAddon-3.0.lua:614:
...\AddOns\AtlasLoot\Libs\AceAddon-3.0\AceAddon-3.0.lua:607
The issues where the library instance could not be found has been fixed in v1.5. However, to test the fix with Titan Panel, I removed all my addons and only had Titan Panel (and the other core addons with Titan Panel) and TalentSwitch. I did not get any errors and I could see the addon from the options menu but I was unable to get it to display in the bar.

So then I loaded about 25 other Broker addons... and none of them displayed in the titan panel but was seen by titan in the option menu.

So the pathing is fixed, you shouldn't get those errors. But I am unsure about how to get the any broker addon to display in Titan Panel.
Report comment to moderator  
Reply With Quote
Unread 05-02-09, 09:36 AM  
PatoDaia
A Defias Bandit

Forum posts: 2
File comments: 36
Uploads: 0
Hi Stabler.

With the new version 1.5 I get this error at startup:

Code:
Date: 2009-05-02 17:31:52
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\Broker_TalentSwitch\ldb.lua line 99:
   attempt to index global 'dataobbj' (a nil value)
Debug:
   (tail call): ?
   (tail call): ?
   Broker_TalentSwitch\ldb.lua:99: UpdateDisplay()
   Broker_TalentSwitch\core.lua:176:
      Broker_TalentSwitch\core.lua:174
   (tail call): ?
   [C]: ?
   [string "safecall Dispatcher[1]"]:9:
      [string "safecall Dispatcher[1]"]:5
   (tail call): ?
   ...s\AckisRecipeList\libs\AceAddon-3.0\AceAddon-3.0.lua:531: EnableAddon()
   ...s\AckisRecipeList\libs\AceAddon-3.0\AceAddon-3.0.lua:621:
      ...s\AckisRecipeList\libs\AceAddon-3.0\AceAddon-3.0.lua:607
   [C]: LoadAddOn()
   ..\FrameXML\UIParent.lua:229: UIParentLoadAddOn()
   ..\FrameXML\UIParent.lua:252: CombatLog_LoadUI()
   ..\FrameXML\UIParent.lua:497:
      ..\FrameXML\UIParent.lua:469
Besides this error, the addon works ok... It shows as expected at the Titan Bar and its functionality remains intact.

Thanks for your work
Report comment to moderator  
Reply With Quote
Unread 05-02-09, 12:57 PM  
Tymesink
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 67
Uploads: 3
Thanks for the post.. the error on line 99 was a late night/early morning typo not paying enough attention to detail problem.

Fixed it in 1.6.

Thanks for sticking with me on this.
Report comment to moderator  
Reply With Quote
Unread 05-04-09, 06:46 AM  
Kerecha
A Deviate Faerie Dragon
 
Kerecha's Avatar

Forum posts: 10
File comments: 196
Uploads: 0
Misspost
Last edited by Kerecha : 05-04-09 at 06:47 AM.
Report comment to moderator  
Reply With Quote
Unread 05-04-09, 01:10 PM  
VincentSDSH
Non-Canadian Luzer!
 
VincentSDSH's Avatar
AddOn Author - Click to view AddOns

Forum posts: 350
File comments: 257
Uploads: 12
Interface\AddOns\MrDamage\Classes\MrDamage_Druid.lua:988: attempt to perform arithmetic on local 'highDamage' (a nil value)
Count: 99

Call Stack:
[C]: ?
Interface\AddOns\MrDamage\Classes\MrDamage_Druid.lua:988: in function `UpdateRankValues'
Interface\AddOns\MrDamage\Classes\MrDamage_Druid.lua:15: in function <Interface\AddOns\MrDamage\Classes\MrDamage_Druid.lua:6>
I tinkered with the code and found that it's occurring when it processes "Causes you to charge an enemy, immobilizing and interrupting any spell being cast for 4 sec."

Dual-spec druid, obviously.
Report comment to moderator  
Reply With Quote
Unread 05-04-09, 07:53 PM  
Tymesink
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 67
Uploads: 3
Originally posted by VincentSDSH
I tinkered with the code and found that it's occurring when it processes "Causes you to charge an enemy, immobilizing and interrupting any spell being cast for 4 sec."

Dual-spec druid, obviously.
I'm a little confused here...
Report comment to moderator  
Reply With Quote
Unread 05-11-09, 10:45 AM  
forty2j
A Cobalt Mageweaver

Forum posts: 232
File comments: 260
Uploads: 0
Cool Fun with multiple realms and mixed dual-spec/not

Noticed something last night:

It doesn't seem to be playing well with characters across multiple servers.

For example, on Terenas, I have a Druid in the first slot of my char select screen. I configured TalentSwitch to report "Tree" for Primary and "Moonkin" for Secondary specs.

On Illidan, I have a lowbie shaman in the first slot of my char select screen. This character is not yet dual-spec enabled.

If I log on the shaman, then log out and log on the druid, my druid's settings are cleared (the mod reports "Pirmary" and "Secondary" as the spec names).

If I fix the druid, then log out and log in as the shaman, it reports "Tree" as the shaman's spec!

Ok, granted, this mod doesn't really do anything if you aren't dual-spec, and in theory I should turn it off.. but I wouldn't expect it to cause harm by leaving it on.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: