Yanfly Bug (not sure which version)[Solved on its own]

Discussion in 'Javascript/Plugin Support' started by Arrogant McElfpants, Aug 19, 2018.

  1. Arrogant McElfpants

    Arrogant McElfpants Villager Member

    Messages:
    17
    Likes Received:
    3
    First Language:
    English
    Edit: I had somehow left StateId in the add.state() function while defining it. It's such a simple mistake that I can't believe I made it.

    While attempting to make a Dualcast/Triplecast replacement for my game using Action Begin/End effects, Buff/State Core's Lunatic Mode and Instant Casts, I noticed a bizarre bug. When I attempted the Dualcast, I received this strange error:

    TypeError: require(...).Window.get(...).isDevToolsOpen is not a function at Object.Yanfly.Util.displayError (YEP_CommonEventMenu.js:1290) at Game_Actor.Game_Battler.customEffectEval (YEP_BuffsStatesCore.js:1376) at Game_Actor.Game_Battler.removeStateEffects (YEP_BuffsStatesCore.js:1407) at Game_Actor.Game_Battler.removeState (YEP_BuffsStatesCore.js:1401) at Game_Actor.Game_Battler.removeState (YEP_X_VisualStateFX.js:308) at Game_Actor.Game_Battler.removeState (YEP_AutoPassiveStates.js:551) at Game_Actor.removeState (YEP_EquipBattleSkills.js:756) at eval (eval at Game_Action.processLunaticBeginEndActionEval (YEP_Z_ActionBeginEnd.js:500), <anonymous>:83:10) at Game_Action.processLunaticBeginEndActionEval (YEP_Z_ActionBeginEnd.js:500) at Game_Action.processLunaticBeginEndActions (YEP_Z_ActionBeginEnd.js:468) Yanfly.Util.displayError @ YEP_CommonEventMenu.js:1288 rpg_managers.js:1949 TypeError: require(...).Window.get(...).isDevToolsOpen is not a function at Object.Yanfly.Util.displayError (YEP_CommonEventMenu.js:1290) at Game_Action.processLunaticBeginEndActionEval (YEP_Z_ActionBeginEnd.js:502) at Game_Action.processLunaticBeginEndActions (YEP_Z_ActionBeginEnd.js:468) at Game_Actor.Game_Battler.processLunaticBeginEndAction (YEP_Z_ActionBeginEnd.js:413) at Game_Actor.Game_Battler.performActionEnd (YEP_Z_ActionBeginEnd.js:401) at Game_Actor.Game_Battler.performActionEnd (YEP_DamageCore.js:1223) at Game_Actor.performActionEnd (rpg_objects.js:4024) at Window_BattleLog.performActionEnd (rpg_windows.js:4913) at Function.BattleManager.actionPerformFinish (YEP_BattleEngineCore.js:2833) at Function.BattleManager.actionPerformFinish (YEP_X_ActSeqPack3.js:482)</anonymous>



    This is the notetags for the states (for the Tricast, which would transform into Dualcast and then a cancel state):


    <Custom Remove Effect>

    target.addState(state12);

    </Custom Remove Effect>

    <Instant Skill: 8 to 10>

    And these are for the Skills to remove the effects:

    <End Action: Remove State 11>

    <End Action: Remove State 12>

    <End Action: Remove State 13>
     
    Last edited: Aug 19, 2018
    #1

Share This Page