Download
(113 Kb)
Download
Updated: 07-10-09 06:31 PM
Updated:07-10-09 06:31 PM
Created:04-24-09 12:49 AM
Downloads:7,975
Favorites:137
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 05-17-09, 12:41 PM  
forty2j
A Cobalt Mageweaver

Forum posts: 232
File comments: 260
Uploads: 0
Re: Updated...

Originally posted by Stabler
Please let me know if this fixes this issue or not... thanks!
Looks like it works, with 2 very minor annoyances:
- If I reset the "default" profile, I would have liked that to clear the profile assignments on my characters, so that from that point forward the new defaults would work. No matter, I already fixed up my 2 dual-spec characters on Terenas and my non-dual-spec character on Illidan that I had logged in with while running this mod.
- In order to get the spec's icon to display, I have to click "Get Talent Info". So, for example, on my druid I click that button, it gives me the leaf and moonfire icons plus "Restoration xx/xx/xx" and "Balance xx/xx/xx". Then I clear box 1 and type "Tree" and clear box 2 and type "Moonkin". Would be nice to get the icons without loading in new text that I have to delete. Currently if I don't follow these steps, I get the target icon that Blizzard shows when you haven't spent your points.

But in response to the fix of the original problem, yes, my 3 characters across 2 servers now have independent profiles, and changing one does nothing to other. I haven't tried on a new char yet to make sure he defaults to his own profile.
Last edited by forty2j : 05-17-09 at 12:42 PM.
forty2j is offline Report comment to moderator  
Reply With Quote
Unread 05-16-09, 09:23 AM  
pexcer
A Kobold Labourer

Forum posts: 0
File comments: 14
Uploads: 0
Feature request:

I'd like to be able to launch the talent window with this. Handy addon
pexcer is offline Report comment to moderator  
Reply With Quote
Unread 05-16-09, 12:11 AM  
Tymesink
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 21
File comments: 67
Uploads: 6
Updated...

SO here's whats going on with the profile issue...

I think the confusion on this profile issue begins when the addon first loads, it defaults to a shared "Default" profile. So when you customize the broker for a toon and then switch to another toon... the second toons picks up the "Default" profile by default. (No pun intended).

It should now default to a per character profile rather than a shared "Default" for a new character that has not loaded/used the addon before.

If you've ran the addon already on a toon, go to the config area for TalentSwitch and click on the "profiles" config and select the character name and realm for your toon.

I only have 2 characters on one server that I have dual specs. I was able to switch between both toons with out having any cross profile data issues. I was not however able to test across realms.

Please let me know if this fixes this issue or not... thanks!
Last edited by Tymesink : 05-17-09 at 11:07 PM.
Tymesink is offline Report comment to moderator  
Reply With Quote
Unread 05-15-09, 01:57 PM  
ArtureLeCoiffeur
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 38
Uploads: 3
Re: Re: Re: Fun with multiple realms and mixed dual-spec/not

Originally posted by forty2j
Thanks. As an update, I'm seeing similar behavior even for multiple dual-spec enabled characters on the same realm.
You probably mean what I just saw - the talent alias are not set per character. Investigating the saved variables it looks like they are set per profile. Why?
ArtureLeCoiffeur is offline Report comment to moderator  
Reply With Quote
Unread 05-14-09, 12:34 PM  
forty2j
A Cobalt Mageweaver

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

Originally posted by Stabler
Thanks for the bug report.. I will get working on this soon.
Thanks. As an update, I'm seeing similar behavior even for multiple dual-spec enabled characters on the same realm.
forty2j is offline Report comment to moderator  
Reply With Quote
Unread 05-12-09, 10:15 PM  
Tymesink
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 21
File comments: 67
Uploads: 6
Re: Fun with multiple realms and mixed dual-spec/not

Originally posted by forty2j
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.
Thanks for the bug report.. I will get working on this soon.
Tymesink is offline 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.
forty2j is offline 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: 21
File comments: 67
Uploads: 6
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...
Tymesink is offline 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: 190
File comments: 206
Uploads: 5
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.
VincentSDSH is offline 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: 200
Uploads: 0
Misspost
Last edited by Kerecha : 05-04-09 at 06:47 AM.
Kerecha is offline 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: 21
File comments: 67
Uploads: 6
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.
Tymesink is offline Report comment to moderator  
Reply With Quote
Unread 05-02-09, 09:36 AM  
PatoDaia
A Defias Bandit

Forum posts: 2
File comments: 43
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
PatoDaia is offline 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: 21
File comments: 67
Uploads: 6
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.
Tymesink is offline 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: 21
File comments: 67
Uploads: 6
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.
Tymesink is offline 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.
WereBear is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: