Sudden game crash during battles due to Yanfly plugin?

Discussion in 'Javascript/Plugin Support' started by Tuomo L, Sep 8, 2019.

    Tags:
  1. Tuomo L

    Tuomo L Oldbie Veteran

    Messages:
    2,291
    Likes Received:
    1,263
    Location:
    Finland!
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    When loading the battle during the black screen, this error suddenly showed up.


    Game has encountered a bug. Please report it.

    TypeError: Cannot read properly 'isActor' of undefined
    at Game_Action.selectConditionFrontRow (YEP_X_SelectionControl.js:1394:44
    at Game_Action.meetSelectionCondition (YEP_X_SelectionControl.js:1317:19)
    at Game_Action.checkAllSelectionConditions (YEP_X_SelectionControl.js:1294:17)
    at Game_Troop.Game_Unit.filterSelection (YEP_X_SelectionControl.js:1056:16)
    at Game_Troop.Game_Unit.aliveMembers (YEP_X_SelectionControl.js:1023.47)
    at Game_Troop.Game_Unit.aliveMembers (YEP_Taunt.js:407:48)
    at Game_Enemy.Game_BattlerBase.hasValidTargets (Yep_X_SelectionControl.js:823:51)
    at Game_Enemy.Game_BattlerBase.canUse (YEP_X_SelectionControl.js:812:17)
    at Game_Enemy.isActionValid (rpg_objects.js:4524:48)
    at Game_Enemy. (rpg_objects.js:4562:25)

    Press F5 to restart the game.
     
    #1
  2. Shaz

    Shaz Veteran Veteran

    Messages:
    37,718
    Likes Received:
    11,429
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    Are you doing a play test or a battle test? A lot of plugins won't work during battle (or event) test as the database is loaded differently.

    If you are doing a play test, is it starting a new game, or loading a previously saved game? If a previously saved game, did you add any plugins since the game was started?
     
    #2
  3. Tuomo L

    Tuomo L Oldbie Veteran

    Messages:
    2,291
    Likes Received:
    1,263
    Location:
    Finland!
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    It's actual exported and no, nothing new has been added.
     
    #3
  4. Tuomo L

    Tuomo L Oldbie Veteran

    Messages:
    2,291
    Likes Received:
    1,263
    Location:
    Finland!
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    Bump
     
    #4
  5. Andar

    Andar Veteran Veteran

    Messages:
    28,448
    Likes Received:
    6,493
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    even if you don't remember adding something new, you should make sure to test with a new game if at all possible.

    There are basically three ways that can create such an error:
    1) an old savefile contains data from a different plugin set than the one active in the game - and as soon as the game needs data that was not present on the old savefile (due to it being from a different plugin configuration) the "undefined" errors pop up.
    2) incompatibility between two or more plugins, sometimes caused by wrong order of the plugins or wrong configurations inside the plugins.
    3) a plugin requires a different core engine version than the one used by the game (for example the classic error of "height undefined" if yanfly's animated sideview battlers are used with a core older than 1.4.0 where that property was first defined)
     
    #5
  6. Aloe Guvner

    Aloe Guvner Walrus Veteran

    Messages:
    1,601
    Likes Received:
    1,007
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMMV
    You say it's on an exported game, can you reproduce the error in a playtest?

    You'll want to show the configuration of the troop that caused the error especially any notetags, etc. Looking at the code through the stacktrace of the error, it's caused by somehow a member of the troop being "undefined".
     
    #6

Share This Page