Skill Trees System

● ARCHIVED · READ-ONLY
Started by SomeFire 312 posts Page 12 of 16 View original ↗
  1. This plugin seems like the best non-convoluted skill tree system for MV so far, thank you so much for your work I will be giving it a try very soon! :kaojoy:
  2. I noticed that the demo has a bunch if YEP scripts. Are they necessary to use your Skill Tree System scripts?
  3. No, they are not necessary. I made some changes in my plugin to work properly with some of YEP scripts, so, people can use YEP and my plugin together.
  4. SomeFire said:
    No, they are not necessary. I made some changes in my plugin to work properly with some of YEP scripts, so, people can use YEP and my plugin together.
    Ah, I see. Thanks for the rapid response.
  5. I keep running into this error, and can't figure out why. Anyone have any clues? I'm probably missing something simple.

    rpg_managers.js:1949 TypeError: Cannot read property 'trees' of undefined
    at Game_Actor.setup (SkillTreesSystem.js:1326)
    at Game_Actor.initialize (rpg_objects.js:3408)
    at new Game_Actor (rpg_objects.js:3393)
    at Game_Actors.actor (rpg_objects.js:4587)
    at Game_Party.<anonymous> (rpg_objects.js:4871)
    at Array.forEach (<anonymous>)
    at Game_Party.setupStartingMembers (rpg_objects.js:4870)
    at Function.DataManager.setupNewGame (rpg_managers.js:219)
    at Scene_Boot.start (rpg_scenes.js:402)

    Line 1326 code is as follows: this.skillTrees.trees.forEach(tree => tree.visibility = true)
  6. Looks like actor have no skill trees. Same issue appeared a few pages ago. I fixed this bug, fix will be in next plugin update later this month.
  7. SomeFire said:
    Looks like actor have no skill trees. Same issue appeared a few pages ago. I fixed this bug, fix will be in next plugin update later this month.
    Oh, so the issue is caused because not all actors don't have a skill tree?
  8. Yep.
  9. SomeFire said:
    Yep.
    I see. Can I remedy the issue by giving every actor (I only use 3 actors) a skill tree?
  10. Yes, give them something in actor2trees or class2trees.
  11. SomeFire said:
    Yes, give them something in actor2trees or class2trees.
    Okay, I got past that issue. Now I get this issue:

    rpg_managers.js:1949 TypeError: Cannot read property 'iconIndex' of undefined

    at Skill.iconId (SkillTreesConfig.js:204)
    at Skills_Window.drawItem (SkillTreesSystem.js:698)
    at Skills_Window.<anonymous> (SkillTreesSystem.js:735)
    at Array.forEach (<anonymous>)
    at Skills_Window.drawAllItems (SkillTreesSystem.js:733)
    at Skills_Window.refresh (SkillTreesSystem.js:742)
    at Skills_Window.setSkillTree (SkillTreesSystem.js:666)
    at Trees_Window.makeCommandList (SkillTreesSystem.js:540)
    at Trees_Window.Window_Command.refresh (rpg_windows.js:1436)
    at Scene_SkillTrees.refresh (SkillTreesSystem.js:414)
    SceneManager.catchException @ rpg_managers.js:1949
  12. Looks like there is a js-skill without skill in RPGMV database. For example, you copy-pasted code for berserker skills, but not copy-pasted skills in database.
  13. i was writing a variant of this myself, but yours is a lot cleaner! awesome job :thumbsup-left::D
  14. Version 1.10:
    - Added actor and tree to OnLearnAction.act() method.
    - Added text command to show unspent skills.
    - Added script calls to reset skills.
    - Fixed possible bug with big skill cursor when Window_Selectable spacing was overwritten.
    - Fixed bug when skill cooldown wasn't shown without MP/TP.
    - Fixed game crashes when actor have no trees.
    - Improved font size for long skill descriptions. Font will be lowered for long description.
    - Text for maxed skill level can be changed as plugin parameter.
    - Reworked example skills and demo.

    Attention! Arrow example objects were renamed from "arrowRight" to "arrowDownRight" and "arrowLeft" to "arrowDownLeft". "arrowRight" and "arrowLeft" still exist, but have another direction - directly to the right and left, not to the bottom skills.
  15. SomeFire said:
    Version 1.10:
    - Added actor and tree to OnLearnAction.act() method.
    - Added text command to show unspent skills.
    - Added script calls to reset skills.
    - Fixed possible bug with big skill cursor when Window_Selectable spacing was overwritten.
    - Fixed bug when skill cooldown wasn't shown without MP/TP.
    - Fixed game crashes when actor have no trees.
    - Improved font size for long skill descriptions. Font will be lowered for long description.
    - Text for maxed skill level can be changed as plugin parameter.
    - Reworked example skills and demo.

    Attention! Arrow example objects were renamed from "arrowRight" to "arrowDownRight" and "arrowLeft" to "arrowDownLeft". "arrowRight" and "arrowLeft" still exist, but have another direction - directly to the right and left, not to the bottom skills.
    Hello SomeFire!
    I felt super excited with the update and tried to add it on my project, but when i try importing the skills and the trees that i already have configured on my game, the plugin returned me an error and crashed the game test...

    There is a way to update the plugin and preserve the skills and trees that i have already configured previously?

    Thank you for the attention :)

    1616653877310.png
  16. Thanks for report! As I see there is a bug, when I try to change class from class with no trees. I'l fix it soon.

    Try to use actors and classes with skilltrees to check that plugin update works.

    UPD:
    Fix is ready. Let me know, if you find another bug or your update is successfull.
  17. Hey SomeFire, I do love your plugin. It is working quite well.

    To have a better integration of other UI's and so on, I decided to use JP Points only.

    My big problem is now, that the Job Points are not reduced on the actor, when I learn a skill.

    I still use cost() as parameter. Instead of jp(). Because otherwise is crashes, is this correct?

    Is this a known problem?

    regards Afaryz
  18. Afaryz said:
    Hey SomeFire, I do love your plugin. It is working quite well.

    To have a better integration of other UI's and so on, I decided to use JP Points only.

    My big problem is now, that the Job Points are not reduced on the actor, when I learn a skill.

    I still use cost() as parameter. Instead of jp(). Because otherwise is crashes, is this correct?

    Is this a known problem?

    regards Afaryz
    No, cost() is for my skill points, jp() is for Yanfly's job points. What plugin parameters do you use when game crashes? And what error message? What stacktrace in console?
  19. SomeFire said:
    No, cost() is for my skill points, jp() is for Yanfly's job points. What plugin parameters do you use when game crashes? And what error message? What stacktrace in console?
    Thanks for the fast answer.

    Here are the screenshots:

    Screenshot
    2021-05-03 14_10_13-The Solemn Promise.png

    2021-05-03 14_10_39-C__Users_Kevin_OneDrive - Berufliche Schule ITECH Elbinsel Wilhelmsburg_RP...png

    I only have the problem with jp. All other requierments work flawlessly. The interesting part is:

    with only JB points == true

    I can use cost(1).

    It just does not reduce the job points. :D

    Hope that helps. If you need further infos just tell me.

    EDIT:

    seems to be this statement:

    Code:
    meets(actor, tree) {
            if (tree._classId > 0)
                return actor.jp(tree._classId) >= this.price;
            else
                throw new ReferenceError("Expected class tree. Tree name = " + tree.name);

    regards Afaryz
  20. Do you use JP for a tree in 'SkillTreesSystem.class2trees'? Because job points belong to a specific class, which means tree must belong to the same class too. Actor tree can't have class because it belongs to an actor, not to a class.