TypeError: Cannot read property 'split' of undefined

Discussion in 'Javascript/Plugin Support' started by Rishi Raj Jain, Mar 14, 2018.

  1. Rishi Raj Jain

    Rishi Raj Jain Pokemon MV Maker Veteran

    Messages:
    204
    Likes Received:
    46
    Location:
    India
    First Language:
    English
    Primarily Uses:
    RMMV
    Getting error
    TypeError: Cannot read property 'split' of undefined
    in Many @Yanfly and @SumRndmDde plugins, I don't know why? undefined give me hint like the code are using some function, etc. which aren't Defined in the Core game file. Maybe!

    Console
    error1.png

    Game Window
    error2.png

    plugins.png
     
    Last edited: Mar 14, 2018
    #1
  2. Andar

    Andar Veteran Veteran

    Messages:
    28,134
    Likes Received:
    6,372
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    Whenever you change something in plugin manager, you'll need to start a new game because all older saves usually become incompatible, resulting in those undefined errors.

    Second possibility is the use of incompatible plugins or wrong plugin order.
     
    #2
  3. Rishi Raj Jain

    Rishi Raj Jain Pokemon MV Maker Veteran

    Messages:
    204
    Likes Received:
    46
    Location:
    India
    First Language:
    English
    Primarily Uses:
    RMMV
    @Andar Plugins order is correct as you can see in the Plugins list

    As well as I'm using only Yanfly and SumRndmDde plugins, as I know they both make Plugins compatible with each others.
     
    #3
  4. Shaz

    Shaz Veteran Veteran

    Messages:
    37,326
    Likes Received:
    11,133
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    You've focused on one error message. I can see half a dozen there. My initial guess would be that your core files are not compatible with the plugins. What version are they?
     
    #4
  5. Rishi Raj Jain

    Rishi Raj Jain Pokemon MV Maker Veteran

    Messages:
    204
    Likes Received:
    46
    Location:
    India
    First Language:
    English
    Primarily Uses:
    RMMV
    #5
  6. Shaz

    Shaz Veteran Veteran

    Messages:
    37,326
    Likes Received:
    11,133
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    Is that the editor or the core files? They are usually not the same version unless you manually update them when an MV update comes out.
     
    #6
  7. Rishi Raj Jain

    Rishi Raj Jain Pokemon MV Maker Veteran

    Messages:
    204
    Likes Received:
    46
    Location:
    India
    First Language:
    English
    Primarily Uses:
    RMMV
    @Shaz I'm telling about the Editor, what I can see from Help -> About
    Where I can check the version of the core files?
     
    #7
  8. Andar

    Andar Veteran Veteran

    Messages:
    28,134
    Likes Received:
    6,372
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    Open rpg_core.js inside a text editor and read the number at the end of the title line.
    No number means 1.0
     
    #8
  9. Shaz

    Shaz Veteran Veteran

    Messages:
    37,326
    Likes Received:
    11,133
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    The reason I ask about your core files is that some of your errors refer to functions that should be in the pixi scripts, but are not.

    This could indicate you started your project in an older version of MV, and have taken one or more MV updates (which update the editor and NEW projects created from that point), but have never gone in and manually updated your existing project.

    So you could be using plugins that are written for 1.5.x which rely on certain functions to be available in the core scripts (including the pixi scripts) but aren't there because you have never updated them.
     
    #9

Share This Page