@Yanfly: Got it. If we installed them, then we have to reset them, so that way we would remember the changes. Makes sense to me. Still, just trying to think ahead here, for once in my life!
[YEP] Yanfly Engine Plugins
JS Plugin Releases (RMMV)So, I don't get what's wrong here. I'm trying to make an item that increases battle skill slots by 1 by teaching this skill with this notetag, increasing the limit and then removing the dummy skill
<Learn Cost Eval>
user.increaseBattleSkillSlots(1)
user.forgetSkill(skill.id);
user.refresh();
</Learn Cost Eval>
But it just doesn't work, I tried to change it to actor instead but that didn't work either. How do I fix it to do what I want?
<Learn Cost Eval>
user.increaseBattleSkillSlots(1)
user.forgetSkill(skill.id);
user.refresh();
</Learn Cost Eval>
But it just doesn't work, I tried to change it to actor instead but that didn't work either. How do I fix it to do what I want?
Did you put a number instead of the skill.id? or are you using it like you showed us?
Try putting the skill number, maybe that gave an error and may have canceled the whole thing?
Try putting the skill number, maybe that gave an error and may have canceled the whole thing?
No, the skill is removed like it should. Changing it to number of the skill doesn't help.
I'm a little confused by your using a "dummy skill" here. If your goal is simply to increase an actor's number of battle skill slots. I would just use the increaseBattleSkillSlots command in a script call.
Also, are your plug-in parameters set correctly to allow the adding of more equip slots?
(From the plug-in help)
I can see two reasons to use a skill like this...
1) following the stat-buy tips and tricks
2) wants the skill slots to increase automatically when leveling up to a certain level
1) following the stat-buy tips and tricks
2) wants the skill slots to increase automatically when leveling up to a certain level
I don't think you can use that script call via items, unless you mean something like calling for common events and script calls but then I'd have to figure out how to tell the game who used the item in the first place.The item teaches the dummy skill to the person using it, where the code is supposed to increase their battle skill slots and then erase the skill, however it doesn't work. Basically I wanted to award players with items every now and then that they could use to increase their battle skill slot ammount, giving a better sense of character progression and to help get more of those skills they learn while leveling and such.
Yes, for the test character had 4 skill slots and the maximum slots was 8. After using the item, she still only had 4.
Do it, instead, using a state.
I just tested this myself, and it works.
State Notetag (change '11' to whatever your state ID number is) :
Code:
<Custom Apply Effect>
a.increaseBattleSkillSlots(1);
a.removeState(11);
a.refresh();
</Custom Apply Effect>
Plugin Name: YEP_CoreEngine.js (v1.22)
Plugin Parameter Changes: Screenwidth to 1280, Screenheight to 720.
Bug Explanation: When entering combat, there is a white bar at the bottom of the screen. It is not always there.
Error Report: N/A
Exact Steps on How to Replicate Bug: It is not always there. I am able to sometimes fix it by modifying the parameters and then saving the project but after one battle in-game, it comes back in the next battle.
Sample Project (REQUIRED): https://drive.google.com/open?id=0B51K6MYj7mEKWkRackNmd3lZUjQ

Plugin Parameter Changes: Screenwidth to 1280, Screenheight to 720.
Bug Explanation: When entering combat, there is a white bar at the bottom of the screen. It is not always there.
Error Report: N/A
Exact Steps on How to Replicate Bug: It is not always there. I am able to sometimes fix it by modifying the parameters and then saving the project but after one battle in-game, it comes back in the next battle.
Sample Project (REQUIRED): https://drive.google.com/open?id=0B51K6MYj7mEKWkRackNmd3lZUjQ

@Piratepoots
I already reported this to Yanfly,
Yanfly said:
"This is an issue with RPG Maker MV 1.3.2 and above. It's something I've been trying to fix for a while, but the core of it is simply the problems made with the Pixi engine. To which, I'm going to suggest that you either scale the battle backs for your individually or revert back to 1.3.1 Simply put, I'm not going to deal with this issue yet for MV 1.3.2 and 1.3.3 because of the huge mess found inside the Pixi engine."
I already reported this to Yanfly,
Yanfly said:
"This is an issue with RPG Maker MV 1.3.2 and above. It's something I've been trying to fix for a while, but the core of it is simply the problems made with the Pixi engine. To which, I'm going to suggest that you either scale the battle backs for your individually or revert back to 1.3.1 Simply put, I'm not going to deal with this issue yet for MV 1.3.2 and 1.3.3 because of the huge mess found inside the Pixi engine."
The 'Change Battle Equip' plugin definitely has an issue under the new 1.3.4. Whenever I go into it, do anything at all, then try to exit, it crashes with "undefined is not a function". It worked flawlessly previously, I should point out. I haven't added any Equip or Battle Menu related plugins, and I have the new versions of all the other stuff. Can someone confirm if i'm crazy? 🙂
Never mind. MOG's Battle Transitions was the issue. Ugh. Apparently I am crazy. lol
Never mind. MOG's Battle Transitions was the issue. Ugh. Apparently I am crazy. lol
I have this issue too, but I've been playing around with resolutions and it seems like 1280x720 is the problem child here. 1280x800, 1600x900, even 1920x1080 work perfectly, but 1280x720 doesn't. Makes no sense, but it's progress for now. I'm using 1280x800 to get around the bar issue.
Yeah, I just opted to modifying the background images at this point. I've tried a number of 16:9 resolutions and it did the same thing on those, so I'm not gonna sweat it too much. It's really just a convenience feature anyway.
Hi Yanfly, I notice a minor display issue in the visual HP gauge.
The y axis seems to be off for sideview enemies near the bottom edge of the window.
I swapped the two lines in the function below to fix it. Not sure if I got the latest version v1.06 but just want to let you know. Thanks for making all the plugins.
Window_VisualHPGauge.prototype.updateWindowPosition = function() {
if (!this._battler) return;
var battler = this._battler;
this.x = battler.spritePosX();
this.x -= Math.ceil(this.width / 2);
this.x = this.x.clamp(this._minX, this._maxX);
this.y = battler.spritePosY();
if (Yanfly.Param.VHGGaugePos) {
this.y -= battler.spriteHeight();
} else {
this.y -= this.standardPadding();
}
this.y += Yanfly.Param.VHGBufferY; //moved up one line
this.y = this.y.clamp(this._minY, this._maxY); //moved down one line
};
Another issue I have noticed is for damage display for LifeSteal + Element reflection
condition 1: the target is reflecting element X and at the same time the attacker can do lifesteal (same for MP looks like)
condition 2: the attacker attacks target with element X
what happens: target reflect the damage to attacker (the hp gauge updates)
the issue: the damage popup shows the amount for lifesteal, not the reflected damage, even with the healing sound effect. Even if I force the target to <Guard Life Steal>
I guess it is more of a display issue in the damage popup?
The y axis seems to be off for sideview enemies near the bottom edge of the window.
I swapped the two lines in the function below to fix it. Not sure if I got the latest version v1.06 but just want to let you know. Thanks for making all the plugins.
Window_VisualHPGauge.prototype.updateWindowPosition = function() {
if (!this._battler) return;
var battler = this._battler;
this.x = battler.spritePosX();
this.x -= Math.ceil(this.width / 2);
this.x = this.x.clamp(this._minX, this._maxX);
this.y = battler.spritePosY();
if (Yanfly.Param.VHGGaugePos) {
this.y -= battler.spriteHeight();
} else {
this.y -= this.standardPadding();
}
this.y += Yanfly.Param.VHGBufferY; //moved up one line
this.y = this.y.clamp(this._minY, this._maxY); //moved down one line
};
Another issue I have noticed is for damage display for LifeSteal + Element reflection
condition 1: the target is reflecting element X and at the same time the attacker can do lifesteal (same for MP looks like)
condition 2: the attacker attacks target with element X
what happens: target reflect the damage to attacker (the hp gauge updates)
the issue: the damage popup shows the amount for lifesteal, not the reflected damage, even with the healing sound effect. Even if I force the target to <Guard Life Steal>
I guess it is more of a display issue in the damage popup?
Using the latest plugin versions with the error catching around script blocks, I'm noticing I can't tell which line of the script is causing an error anymore, or the details of the scripts. I've got a 10-line block handling something, but the error message just spits back the entire script along with the error code ('undefined is not a function' as usual for javascript). Is it just not made for dealing with long scripts?
I don't know that I've seen that before (you are using the console, right?). Even so, a nice, simple (albeit lengthy) way to find where bugs are happening, is to print to console a specific line just before doing anything that you think may cause a crash.
Exempli Gratia:
Code:
print("Using crazy function (you can even put in a line number if you want)")
stuff = things
CrazyFunction(stuff)
(Don't copy-paste that though, it's in Lua.)
Now, when I execute that block, the console should appear like:
Console.log
"Using crazy function"
ERROR: Undefined is not a function!
(More or less)
Now I know that it crashed after my printed line. For added pin-pointing, you can even put another print after so you can tell if it passed the function okay.
@Hikitsune-Red It's through the normal debugging console, yes. The "undefined is not a function" was the actual error I was getting, but if it had actually crashed it would tell me the line number within the eval that was causing the problem.
I guess it's back to print-statement debugging, then. Gotten spoiled on debugging utilities at work.
I guess it's back to print-statement debugging, then. Gotten spoiled on debugging utilities at work.
...really?
I must have been doing something wrong. When I caused an error through the noteboxes before I don't remember noticing it telling me the line of the error.
I must have been doing something wrong. When I caused an error through the noteboxes before I don't remember noticing it telling me the line of the error.
@Waterguy It's definitely not very good at telling you, but it does have a ###:### block among the errors list indicating which line of the anonymous function (your script) it broke on. Then you have to count out the lines yourself.
I was using it to hunt a bug just before I did the plugin updates, anyway, I don't know how reliably it appears in other cases.
I was using it to hunt a bug just before I did the plugin updates, anyway, I don't know how reliably it appears in other cases.
Original thread: https://forums.rpgmakerweb.com/threads/yep-yanfly-engine-plugins.48860/