07-30-2014, 09:36 AM
I found a problem when use skill tree build with character class.
When I change SKILLS_ROWS[2] to SKILLS_ROWS[8], and set Basil class to class 8 (mage), when call script skilltree, error pop up, it say there was a nil:nil class.
But when I not change SKILLS_ROWS[2] , and I create a new SKILLS_ROWS[8], it work fine.
Edit: hmm, I think I found the reason.
I think because it was a mess between actor id and class id, even if you set CLASS_TREE_START = true (skill tree by class id) , when you call script skilltree, it still check actor id first, Basil id is 2, so you must have SKILLS_ROWS[2] in script whether you need it or not, and then the script check actor class id , class 8 => SKILLS_ROWS[8].
Edit 2: ow, I found more annoy problem cause by actor id and class id, I create SKILLS_ROWS[10]
If I set Basil to class 10, I get error.
but then I create an actor 10 in database and set that actor to class 10 ,too , it work fine.
Same that , I create SKILLS_ROWS[30] and set Basil to class 30,, then I also must create actor 30 for not getting error.
Gosh, my game have 50 classes, then I must create more 50 clone-actors to avoid error @@!
I think this skill tree system still not compatible with class id. So, DerVVulfman, Would you mind contact with MicKo about this problem, hope he will fix this soon.
When I change SKILLS_ROWS[2] to SKILLS_ROWS[8], and set Basil class to class 8 (mage), when call script skilltree, error pop up, it say there was a nil:nil class.
But when I not change SKILLS_ROWS[2] , and I create a new SKILLS_ROWS[8], it work fine.
Edit: hmm, I think I found the reason.
I think because it was a mess between actor id and class id, even if you set CLASS_TREE_START = true (skill tree by class id) , when you call script skilltree, it still check actor id first, Basil id is 2, so you must have SKILLS_ROWS[2] in script whether you need it or not, and then the script check actor class id , class 8 => SKILLS_ROWS[8].
Edit 2: ow, I found more annoy problem cause by actor id and class id, I create SKILLS_ROWS[10]
If I set Basil to class 10, I get error.
but then I create an actor 10 in database and set that actor to class 10 ,too , it work fine.
Same that , I create SKILLS_ROWS[30] and set Basil to class 30,, then I also must create actor 30 for not getting error.
Gosh, my game have 50 classes, then I must create more 50 clone-actors to avoid error @@!
I think this skill tree system still not compatible with class id. So, DerVVulfman, Would you mind contact with MicKo about this problem, hope he will fix this soon.