Yanfly's Battle Select Cursor Plugin

Discussion in 'Javascript/Plugin Support' started by Spindaboy, Jun 11, 2016.

  1. Spindaboy

    Spindaboy Veteran Veteran

    Messages:
    116
    Likes Received:
    9
    Location:
    Lexington, Kentucky
    First Language:
    English
    Primarily Uses:
    RMMV
    When I enter a battle I get the error, "Cannot read property 'Width' of undefined." I have tried this with both the default settings and customized settings. I have also turned of all non Yanfly plugins, but still nothing.
     
    #1
  2. ViviCJ

    ViviCJ Prince of Parties Member

    Messages:
    29
    Likes Received:
    2
    Location:
    UK
    First Language:
    English
    Primarily Uses:
    RMMV
    I too have this issue! I tried renaming the file but nothing :(


    Any light shed on the subject would be great!


    Thanks
     
    #2
  3. Rukomura

    Rukomura Lurker Member

    Messages:
    26
    Likes Received:
    7
    Location:
    Nowhere
    First Language:
    Italian
    You should post the error log from the console (press F8) so one can look more specifically at the error.


    From what I can deduce, but I don't assure anything, is that you either haven't specified the right specs of the file image or don't have one at all.
     
    #3
  4. Spindaboy

    Spindaboy Veteran Veteran

    Messages:
    116
    Likes Received:
    9
    Location:
    Lexington, Kentucky
    First Language:
    English
    Primarily Uses:
    RMMV
    TypeError: Cannot read property 'width' of undefined
        at Game_Enemy.Game_Battler.spriteWidth (file:///C:/Users/nberg/OneDrive/Documents/Games/Final%20Fantasy%20ANB/js/plugins/YEP_BattleEngineCore.js:3452:35)
        at Sprite_BattleSelectCursor.updatePosition (file:///C:/Users/nberg/OneDrive/Documents/Games/Final%20Fantasy%20ANB/js/plugins/YEP_BattleSelectCursor.js:378:33)
        at Sprite_BattleSelectCursor.update (file:///C:/Users/nberg/OneDrive/Documents/Games/Final%20Fantasy%20ANB/js/plugins/YEP_BattleSelectCursor.js:366:12)
        at file:///C:/Users/nberg/OneDrive/Documents/Games/Final%20Fantasy%20ANB/js/rpg_core.js:3290:19
        at Array.forEach (native)
        at Sprite_Enemy.Sprite.update (file:///C:/Users/nberg/OneDrive/Documents/Games/Final%20Fantasy%20ANB/js/rpg_core.js:3288:19)
        at Sprite_Enemy.Sprite_Base.update (file:///C:/Users/nberg/OneDrive/Documents/Games/Final%20Fantasy%20ANB/js/rpg_sprites.js:25:29)
        at Sprite_Enemy.Sprite_Battler.update (file:///C:/Users/nberg/OneDrive/Documents/Games/Final%20Fantasy%20ANB/js/rpg_sprites.js:491:34)
        at Sprite_Enemy.Sprite_Battler.update (file:///C:/Users/nberg/OneDrive/Documents/Games/Final%20Fantasy%20ANB/js/plugins/YEP_BattleEngineCore.js:2442:38)
        at Sprite_Enemy.update (file:///C:/Users/nberg/OneDrive/Documents/Games/Final%20Fantasy%20ANB/js/rpg_sprites.js:948:37)
     
    #4
  5. Rukomura

    Rukomura Lurker Member

    Messages:
    26
    Likes Received:
    7
    Location:
    Nowhere
    First Language:
    Italian
    It's really weird.


    Have you tried reproducing the issue on a brand new project with only the two plugins and their default settings? And are you using any particular enemy image? It really seems it can't read the enemy's image width. Does it happen with every battle?
     
    #5
  6. Spindaboy

    Spindaboy Veteran Veteran

    Messages:
    116
    Likes Received:
    9
    Location:
    Lexington, Kentucky
    First Language:
    English
    Primarily Uses:
    RMMV
    I have not tried reproducing the effect. And yes, it occurs at the beginning of every encounter.  
     
    #6
  7. Spindaboy

    Spindaboy Veteran Veteran

    Messages:
    116
    Likes Received:
    9
    Location:
    Lexington, Kentucky
    First Language:
    English
    Primarily Uses:
    RMMV
    bump
     
    #7
  8. ViviCJ

    ViviCJ Prince of Parties Member

    Messages:
    29
    Likes Received:
    2
    Location:
    UK
    First Language:
    English
    Primarily Uses:
    RMMV
    bump
     
    #8
    Spindaboy likes this.
  9. Drako King

    Drako King Villager Member

    Messages:
    5
    Likes Received:
    0
    First Language:
    English
    I found this plugin, downloaded it and installed it from yanfly's website and it worked perfectly for me! I really like this plugin. I couldn't reproduce your error. It looks as though maybe it is the YEP_BattleEngineCore that is causing your problem? It doesn't look like this plugin is dependent on that one though. Also, it says the error comes from line 3452 from YEP_BattleEngineCore, but my version only has 3266 lines. I'm using v1.00 of YEP_BattleEngineCore; could you be using a different version? 
     
    #9
  10. Spindaboy

    Spindaboy Veteran Veteran

    Messages:
    116
    Likes Received:
    9
    Location:
    Lexington, Kentucky
    First Language:
    English
    Primarily Uses:
    RMMV
    I just tried re-downloading it. Still no luck.
     
    #10
  11. Spindaboy

    Spindaboy Veteran Veteran

    Messages:
    116
    Likes Received:
    9
    Location:
    Lexington, Kentucky
    First Language:
    English
    Primarily Uses:
    RMMV
    bump
     
    #11
  12. ViviCJ

    ViviCJ Prince of Parties Member

    Messages:
    29
    Likes Received:
    2
    Location:
    UK
    First Language:
    English
    Primarily Uses:
    RMMV
    bump
     
    #12
  13. Spindaboy

    Spindaboy Veteran Veteran

    Messages:
    116
    Likes Received:
    9
    Location:
    Lexington, Kentucky
    First Language:
    English
    Primarily Uses:
    RMMV
    I just figured out what the problem was. You need to update your RPG Maker to the latest version :)
     
    #13
  14. ViviCJ

    ViviCJ Prince of Parties Member

    Messages:
    29
    Likes Received:
    2
    Location:
    UK
    First Language:
    English
    Primarily Uses:
    RMMV
    Thank you, i'll give it a go!
     
    #14
    Spindaboy likes this.

Share This Page