Forum Settings
       
Reply To Thread

How to parse Soul Tree BuilderFollow

#1 Nov 28 2011 at 9:40 PM Rating: Decent
Dear Zam,

I looked but didn't find this question asked before. Not sure if this is the proper place for it, but here goes.

I'm trying to build a tool that models Rift mechanics and combat (similar to SimulationCraft) for Rift. I need a way for users to choose talents, and would really rather accept your URL strings as input than have to program my own talent tree system.

Would you mind explaining how you work out the URL, so I can have my users go to your site to build their talents?
I know on say, WoWHead, when you select Death Knight, for example, the URL is "/talent#j" then you select the first point in Butchery, it becomes "/talent#jo" and your second point is "/talent#jb"; the Rift talent calculator works similarly. However, the confusion comes from selecting Butchery and Blade Barrier- instead of "/talent#joz" as one might expect, it is instead "/talent#jk".

If I could have a little light shed on how you get these numbers, it'd be nice. You don't have to reply here of course; you've got my email. I'm not trying to build another fansite to take you down (and even if I did, it'd be copyright violations all over the place!) instead I'm just trying to use the best site on the net for a Rift talent calc.

Thanks in advance.
#2 Nov 28 2011 at 10:30 PM Rating: Excellent
$title{308642}
*****
0X317B posts
Look at the js; it's all done there. I don't remember how I did it off-hand, and it's pretty particular. It does do things pretty much like WoWHead does (where I got the basics of it from). It divides every tree into pairs of traits and assigns that pair a value based on how many points are in the two. Obviously, this breaks old builds everytime they change the trees, but that was a loss we were OK taking rather than keeping multiple other databases around and making URLs much longer. Also, IIRC, pairs are actually backwards of how you might expect. I can't remember if I ever changed them to be in the order you think. Just look for var _encoding and play with the bottom pair in a tree with just two bottom talents and you should see how it works.
____________________________
Since 1 March 2004

[riftsig]308642[/riftsig]
Reply To Thread

Colors Smileys Quote OriginalQuote Checked Help

 

Recent Visitors: 217 All times are in CST
Anonymous Guests (217)