raffle

Veteran
Veteran
Joined
Oct 25, 2020
Messages
77
Reaction score
16
First Language
English
Primarily Uses
RMMV
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:
 

zombiefy

Veteran
Veteran
Joined
Jan 16, 2014
Messages
22
Reaction score
1
First Language
English
Primarily Uses
I noticed that the demo has a bunch if YEP scripts. Are they necessary to use your Skill Tree System scripts?
 

SomeFire

Veteran
Veteran
Joined
May 27, 2016
Messages
128
Reaction score
137
First Language
Russian
Primarily Uses
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.
 

zombiefy

Veteran
Veteran
Joined
Jan 16, 2014
Messages
22
Reaction score
1
First Language
English
Primarily Uses
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.
 

zombiefy

Veteran
Veteran
Joined
Jan 16, 2014
Messages
22
Reaction score
1
First Language
English
Primarily Uses
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)
 

SomeFire

Veteran
Veteran
Joined
May 27, 2016
Messages
128
Reaction score
137
First Language
Russian
Primarily Uses
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.
 

zombiefy

Veteran
Veteran
Joined
Jan 16, 2014
Messages
22
Reaction score
1
First Language
English
Primarily Uses
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?
 

SomeFire

Veteran
Veteran
Joined
May 27, 2016
Messages
128
Reaction score
137
First Language
Russian
Primarily Uses
Yes, give them something in actor2trees or class2trees.
 

zombiefy

Veteran
Veteran
Joined
Jan 16, 2014
Messages
22
Reaction score
1
First Language
English
Primarily Uses
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
 

SomeFire

Veteran
Veteran
Joined
May 27, 2016
Messages
128
Reaction score
137
First Language
Russian
Primarily Uses
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.
 

kaukusaki

Awesome Programmer Extraordinaire
Veteran
Joined
Jun 27, 2013
Messages
732
Reaction score
590
First Language
English
Primarily Uses
RMVXA
i was writing a variant of this myself, but yours is a lot cleaner! awesome job :thumbsup-left::D
 

SomeFire

Veteran
Veteran
Joined
May 27, 2016
Messages
128
Reaction score
137
First Language
Russian
Primarily Uses
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.
 

Seykken

Pixel Artist & Absurdist
Member
Joined
Nov 4, 2015
Messages
7
Reaction score
1
First Language
Portuguese
Primarily Uses
RMMV
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
 

SomeFire

Veteran
Veteran
Joined
May 27, 2016
Messages
128
Reaction score
137
First Language
Russian
Primarily Uses
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.
 
Last edited:

Afaryz

Veteran
Veteran
Joined
Jun 29, 2018
Messages
71
Reaction score
16
First Language
German
Primarily Uses
RMMV
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
 
Last edited:

SomeFire

Veteran
Veteran
Joined
May 27, 2016
Messages
128
Reaction score
137
First Language
Russian
Primarily Uses
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?
 

Afaryz

Veteran
Veteran
Joined
Jun 29, 2018
Messages
71
Reaction score
16
First Language
German
Primarily Uses
RMMV
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:

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
 

SomeFire

Veteran
Veteran
Joined
May 27, 2016
Messages
128
Reaction score
137
First Language
Russian
Primarily Uses
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.
 

Latest Threads

Latest Posts

Latest Profile Posts

Question for the Mods: What am I supposed to do when I can't make a synopsis 350 words long? (for project recruitment thread) @Shaz @mlogan
The game is meant to be more on the simple side in order to be achievable so I'm a bit stuck...
Had a nice visit with our family. Dad grilled some burgers and mom made baked beans and fudge. We also watched Foul Play. Chevy Chase and Goldie Hawn make an awesome duo. I am surprised how much of the movie I forgot LOL. How did everyone else's holidays go?
Got a windowskin working nicely to go with Mog's menu plugins.
p8BE5bj.png

tsD4gZS.png

nwpeK84.png
Just getting started on RPG maker and having a blast!
I am once again escalating in the kitchen. I might or might not be 4 types of cookies into baking and not finished...

Forum statistics

Threads
117,039
Messages
1,104,034
Members
152,972
Latest member
J_Heider
Top