Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Hey there Ramza. I have been having an issue that I have not been able to find a solution to and I was hoping you could maybe take a look. What is happening is whenever I use a skill that has a weapon requirement and is being used by a dual wield class. If one of the hands is unarmed I get a crash.

I have tried adding the various skill tags but none have helped keep it from crashing. I have also tried setting the barehanded attack parameter to true and false and neither changed anything. 

Here's the crash notes:

YEP_CoreEngine.js:1098 TypeError: Cannot read property 'wtypeId' of null
    at Game_Action.applyDWAddEffect (Ramza_DualWield.js:598)
    at Game_Action.apply (Ramza_DualWield.js:553)
    at Game_Action.apply (Ramza_DualWield.js:1110)
    at Function.BattleManager.invokeNormalAction (rpg_managers.js:2549)
    at Function.BattleManager.invokeAction (YEP_BattleEngineCore.js:2095)
    at Function.<anonymous> (YEP_BattleEngineCore.js:2707)
    at Array.forEach (<anonymous>)
    at Function.BattleManager.actionActionEffect (YEP_BattleEngineCore.js:2704)
    at Function.BattleManager.processActionSequence (YEP_BattleEngineCore.js:2300)
    at Function.BattleManager.processActionSequence (YEP_X_ActSeqPack1.js:886)

Sorry to bug you with another issue but I have been hitting a wall trying to fix this myself. Thanks for taking a look if you do.

(+1)

Greetings. Don't ever feel like you're bugging me by reporting an issue like this, it's no trouble at all. It's my fault, really, as this is definitely a bug I introduced in the last update. 


I'm not at a computer right now, but when I get home in a few hours, I'll look into it. Given the error message, I forgot to account for an empty hand when an actor was dual wielding, something which I thought I'd accounted for, but I must've missed a check.

Like I said, I'll look into it when I get home in a few hours and post an update.

(+1)

Greetings again. I have corrected the problem.


I had thought that I had tested the logic quite thoroughly on my own, but it turns out I must've skipped the checks to see if having no weapons in either hand would cause a problem. I have added the required checks, and the project should no longer crash when either of the actor's hands are empty, when using a skill that requires a specific weapon type. Please download the updated plugin file at your earliest convenience.

You're the best. I tested out the new plugin and no more  crashes. A huge thanks from me. And you got that fix out so fast, you're a magician. This has become my favorite and most needed plugin by far. Keep up the great work. Thank you so much.=)