Forums » API Tips and Tricks »
Make skills tree like ingame
Added by ulukyn over 9 years ago
Convert skills <sfm1b>101</sfm1b> to human readable version like ig
Replies (6)
RE: Make skills tree like ingame - Added by nimetu over 9 years ago
not exactly like ingame, but this will give simple nested <ul>..</ul> tree. hopefully in correct order.
skilltree.php (3 kB)
RE: Make skills tree like ingame - Added by Hekla about 9 years ago
Sorry for the bump on an old thread.
The code posted fails because there isn't a translate() method in the PHP API or code provided (called from the global $api variable in display_tree()). Was it part of a custom class you wrote? Or was it in the API at one stage, then deprecated?
Decrypting all the one-letter declensions (like "scjdaem") isn't quite straightforward. As a time-saver, I think it would be good if the API were to provide a translation utility for all skill branches. If it does exist already, please let us know where it's located.
RE: Make skills tree like ingame - Added by nimetu about 9 years ago
Hekla wrote:
The code posted fails because there isn't a translate() method in the PHP API or code provided (called from the global $api variable in display_tree()). Was it part of a custom class you wrote? Or was it in the API at one stage, then deprecated?
it was supposed to be example, not a working code ;-) and so $api (my own class) was not included.
Riped the translation logic out and put it to a function. 2.3MB in size, ~22MB unpacked. tools included.
http://bmsite.net/temp/ryzom_translate.zip
Decrypting all the one-letter declensions (like "scjdaem") isn't quite straightforward.
but it's easy.... Skill Craft Jewel Diadem Advanced Expert Master ;-)
RE: Make skills tree like ingame - Added by Hekla about 9 years ago
nimetu wrote:
it was supposed to be example, not a working code ;-) and so $api (my own class) was not included.
I understand that.
Riped the translation logic out and put it to a function. 2.3MB in size, ~22MB unpacked. tools included.
http://bmsite.net/temp/ryzom_translate.zipDecrypting all the one-letter declensions (like "scjdaem") isn't quite straightforward.
but it's easy.... Skill Craft Jewel Diadem Advanced Expert Master ;-)
Yes, it's easy. I have the skills all mapped now, but it's retro-engineering, and is time-consuming.
The code you just submitted should be part of the API, IMO. Thanks for posting it.
RE: Make skills tree like ingame - Added by Aeness about 9 years ago
ninetu, if you do not mind, I use your zip file pour generated an information file here (it is not use in my own project)
RE: Make skills tree like ingame - Added by nimetu about 9 years ago
Aeness wrote:
ninetu, if you do not mind, I use your zip file pour generated an information file here (it is not use in my own project)
Dont mind at all.
You (all of you;-) can also use it/link it/distribute it in/with your project(s) as long as you dont 're-license' it ;-)
(1-6/6)