<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Blizzard To Wowhead Talent converter</title>
	<atom:link href="http://justgizzmo.com/2009/05/01/blizzard-to-wowhead-talent-converter/feed/" rel="self" type="application/rss+xml" />
	<link>http://justgizzmo.com/2009/05/01/blizzard-to-wowhead-talent-converter/</link>
	<description>Know about, What i tell you about, My life</description>
	<lastBuildDate>Thu, 29 Mar 2012 14:10:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Kender</title>
		<link>http://justgizzmo.com/2009/05/01/blizzard-to-wowhead-talent-converter/comment-page-1/#comment-438</link>
		<dc:creator>Kender</dc:creator>
		<pubDate>Wed, 06 Jul 2011 10:59:57 +0000</pubDate>
		<guid isPermaLink="false">http://justgizzmo.com/?p=380#comment-438</guid>
		<description>is there a way to include the encryption for glyphs if we know the spell id for the glyph?  according to the wowhead page its after the build info separated by a :

also, shaman build (at least, haven&#039;t checked others) added a point is now 19,19,20</description>
		<content:encoded><![CDATA[<p>is there a way to include the encryption for glyphs if we know the spell id for the glyph?  according to the wowhead page its after the build info separated by a :</p>
<p>also, shaman build (at least, haven&#8217;t checked others) added a point is now 19,19,20</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gizzmo</title>
		<link>http://justgizzmo.com/2009/05/01/blizzard-to-wowhead-talent-converter/comment-page-1/#comment-251</link>
		<dc:creator>Gizzmo</dc:creator>
		<pubDate>Fri, 29 Oct 2010 19:12:01 +0000</pubDate>
		<guid isPermaLink="false">http://justgizzmo.com/?p=380#comment-251</guid>
		<description>Awesome thanks, ill update the Gist.</description>
		<content:encoded><![CDATA[<p>Awesome thanks, ill update the Gist.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lockslap</title>
		<link>http://justgizzmo.com/2009/05/01/blizzard-to-wowhead-talent-converter/comment-page-1/#comment-250</link>
		<dc:creator>Lockslap</dc:creator>
		<pubDate>Fri, 29 Oct 2010 19:08:39 +0000</pubDate>
		<guid isPermaLink="false">http://justgizzmo.com/?p=380#comment-250</guid>
		<description>Here&#039;s the updated talent tree counts for 4.0.1.  The function still works to perfection.

&lt;code&gt;	// tree count order by wowhead order
	$tree_counts = array(
		array(20, 22, 21),	// druid
		array(19, 19, 20),	// hunter
		array(21, 21, 19),	// mage
		array(20, 20, 20),	// paladin
		array(21, 20, 21),	// priest
		array(19, 19, 19),	// rogue
		array(19, 19, 19),	// shaman
		array(18, 19, 19),	// warlock
		array(20, 21, 20),	// warrior
		array(20, 20, 19)	// death knight
	);
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Here&#8217;s the updated talent tree counts for 4.0.1.  The function still works to perfection.</p>
<p><code>	// tree count order by wowhead order<br />
	$tree_counts = array(<br />
		array(20, 22, 21),	// druid<br />
		array(19, 19, 20),	// hunter<br />
		array(21, 21, 19),	// mage<br />
		array(20, 20, 20),	// paladin<br />
		array(21, 20, 21),	// priest<br />
		array(19, 19, 19),	// rogue<br />
		array(19, 19, 19),	// shaman<br />
		array(18, 19, 19),	// warlock<br />
		array(20, 21, 20),	// warrior<br />
		array(20, 20, 19)	// death knight<br />
	);<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lockslap</title>
		<link>http://justgizzmo.com/2009/05/01/blizzard-to-wowhead-talent-converter/comment-page-1/#comment-238</link>
		<dc:creator>Lockslap</dc:creator>
		<pubDate>Mon, 04 Oct 2010 02:51:20 +0000</pubDate>
		<guid isPermaLink="false">http://justgizzmo.com/?p=380#comment-238</guid>
		<description>While attempting to use this code in my Wowhead Tooltips script, it seems that the function seems to fail in the third talent tree, was just wondering if there was an update for this?  This is something my users have been asking for, for quite a while.

Regards,
Lockslap</description>
		<content:encoded><![CDATA[<p>While attempting to use this code in my Wowhead Tooltips script, it seems that the function seems to fail in the third talent tree, was just wondering if there was an update for this?  This is something my users have been asking for, for quite a while.</p>
<p>Regards,<br />
Lockslap</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gizzmo</title>
		<link>http://justgizzmo.com/2009/05/01/blizzard-to-wowhead-talent-converter/comment-page-1/#comment-200</link>
		<dc:creator>Gizzmo</dc:creator>
		<pubDate>Fri, 05 Mar 2010 02:01:13 +0000</pubDate>
		<guid isPermaLink="false">http://justgizzmo.com/?p=380#comment-200</guid>
		<description>If i read you correctly when you removed the one point from arcane barrage you made the string shorter, in turn making the string invalid. Blizzard build strings will always be the same length. In this instance (mage tree) it will always be 30+28+28 characters long, no matter how many talents you&#039;ve spent. Let me know if im wrong.

In the new version of the function ill add a check to make sure the provided string is the correct length for that character</description>
		<content:encoded><![CDATA[<p>If i read you correctly when you removed the one point from arcane barrage you made the string shorter, in turn making the string invalid. Blizzard build strings will always be the same length. In this instance (mage tree) it will always be 30+28+28 characters long, no matter how many talents you&#8217;ve spent. Let me know if im wrong.</p>
<p>In the new version of the function ill add a check to make sure the provided string is the correct length for that character</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vontre</title>
		<link>http://justgizzmo.com/2009/05/01/blizzard-to-wowhead-talent-converter/comment-page-1/#comment-198</link>
		<dc:creator>Vontre</dc:creator>
		<pubDate>Thu, 04 Mar 2010 16:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://justgizzmo.com/?p=380#comment-198</guid>
		<description>Hi, thanks for the code here. I was working on reversing the algorithm so I could de-encode these as well, and I think I found a bug with your encoding algorithm. Specifically I tried encoding a cookie-cutter mage arcane build, but I removed the point from arcane barrage for testing. When I did that the encoded build no longer loaded into wowhead correctly. I believe the problem is in this line:

$return .= (strlen($b)==strlen($cur_tree))? $pre_return: $pre_return.$none;

The problem here is that the wowhead links encode 1 character for every 2 lines, so if the blizzard string uses 29 of the 30 allotted characters it will fill the full 15 lines of the wowhead string and not require a Z terminator. However because your check for the Z terminator uses the blizzard string, it will incorrectly use a Z terminator whenever the only right-trimmed zero is in the last space. I have a correction here:

$return .= (strlen($pre_return) == ceil($trees[$class][$tree_index] / 2)) ? $pre_return : $pre_return . $none;


This checks the length of the wowhead encoded string for the Z terminator, which fixed my issue and should work correctly. I haven&#039;t tested this against a tree with an odd number of characters in the blizzard string since all mage trees contain an even number, but I&#039;m pretty sure ceil() will come up with the correct result for odd-numbered trees. Let me know if that works!</description>
		<content:encoded><![CDATA[<p>Hi, thanks for the code here. I was working on reversing the algorithm so I could de-encode these as well, and I think I found a bug with your encoding algorithm. Specifically I tried encoding a cookie-cutter mage arcane build, but I removed the point from arcane barrage for testing. When I did that the encoded build no longer loaded into wowhead correctly. I believe the problem is in this line:</p>
<p>$return .= (strlen($b)==strlen($cur_tree))? $pre_return: $pre_return.$none;</p>
<p>The problem here is that the wowhead links encode 1 character for every 2 lines, so if the blizzard string uses 29 of the 30 allotted characters it will fill the full 15 lines of the wowhead string and not require a Z terminator. However because your check for the Z terminator uses the blizzard string, it will incorrectly use a Z terminator whenever the only right-trimmed zero is in the last space. I have a correction here:</p>
<p>$return .= (strlen($pre_return) == ceil($trees[$class][$tree_index] / 2)) ? $pre_return : $pre_return . $none;</p>
<p>This checks the length of the wowhead encoded string for the Z terminator, which fixed my issue and should work correctly. I haven&#8217;t tested this against a tree with an odd number of characters in the blizzard string since all mage trees contain an even number, but I&#8217;m pretty sure ceil() will come up with the correct result for odd-numbered trees. Let me know if that works!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ~chron &#187; Wowhead Talent Calculator URL Codegolf</title>
		<link>http://justgizzmo.com/2009/05/01/blizzard-to-wowhead-talent-converter/comment-page-1/#comment-99</link>
		<dc:creator>~chron &#187; Wowhead Talent Calculator URL Codegolf</dc:creator>
		<pubDate>Fri, 31 Jul 2009 04:23:16 +0000</pubDate>
		<guid isPermaLink="false">http://justgizzmo.com/?p=380#comment-99</guid>
		<description>[...] been ages since I&#8217;ve done any codegolf, so when I stumbled across Gizzmo&#8217;s blog post about the Wowhead talent calculator URL algorithm, I figured it might be fun to dust off the old &#8220;text editor&#8221; and see how it [...]</description>
		<content:encoded><![CDATA[<p>[...] been ages since I&#8217;ve done any codegolf, so when I stumbled across Gizzmo&#8217;s blog post about the Wowhead talent calculator URL algorithm, I figured it might be fun to dust off the old &#8220;text editor&#8221; and see how it [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gizzmo</title>
		<link>http://justgizzmo.com/2009/05/01/blizzard-to-wowhead-talent-converter/comment-page-1/#comment-88</link>
		<dc:creator>Gizzmo</dc:creator>
		<pubDate>Fri, 10 Jul 2009 07:58:21 +0000</pubDate>
		<guid isPermaLink="false">http://justgizzmo.com/?p=380#comment-88</guid>
		<description>I&#039;ll go and see what i can come up with. Shouldn&#039;t be that much different. It never dawned on me to take a look at the pet talents. Thanx</description>
		<content:encoded><![CDATA[<p>I&#8217;ll go and see what i can come up with. Shouldn&#8217;t be that much different. It never dawned on me to take a look at the pet talents. Thanx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zardoz</title>
		<link>http://justgizzmo.com/2009/05/01/blizzard-to-wowhead-talent-converter/comment-page-1/#comment-87</link>
		<dc:creator>Zardoz</dc:creator>
		<pubDate>Fri, 10 Jul 2009 06:11:49 +0000</pubDate>
		<guid isPermaLink="false">http://justgizzmo.com/?p=380#comment-87</guid>
		<description>Do you know if there is anything documented for their hunter pet talent calculator? I can see that they are encoding something along with the talent points - I&#039;m guessing it&#039;s the pet family since that would be the equivalent of the $classes encoding.

I might have a bit of a poke around and see if I can see what they are doing. I can&#039;t imagine they&#039;ve moved far away from the algorithm you present here.</description>
		<content:encoded><![CDATA[<p>Do you know if there is anything documented for their hunter pet talent calculator? I can see that they are encoding something along with the talent points &#8211; I&#8217;m guessing it&#8217;s the pet family since that would be the equivalent of the $classes encoding.</p>
<p>I might have a bit of a poke around and see if I can see what they are doing. I can&#8217;t imagine they&#8217;ve moved far away from the algorithm you present here.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

