Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Getting an error

A topic by james5272 created 15 days ago Views: 21 Replies: 1
Viewing posts 1 to 2

Hey there,

I had tried following the help file to get the plugin to work, and it kept giving me an error. So I just loaded the plugin up in your sample project, and it works there, so I copied the plugin entry, pasted it into my project, and it isn't working there. I do have Eli Book enabled and above this plugin in the list. I have also disabled all plugins but these two and still get the error.

Here is the error from the debug log:


rmmz_managers.js:2080 TypeError: Cannot read property 'BattleResults' of undefined

    at Function.BattleManager.replayBgmAndBgs (EliMZ_BattleResults.js:1987)

    at Function.BattleManager.processVictory (rmmz_managers.js:2925)

    at Function.BattleManager.processVictory (EliMZ_BattleResults.js:1935)

    at Function.BattleManager.checkBattleEnd (rmmz_managers.js:2906)

    at Function.BattleManager.updateEventMain (rmmz_managers.js:2431)

    at Function.BattleManager.updateEvent (rmmz_managers.js:2422)

    at Function.BattleManager.update (rmmz_managers.js:2385)

    at Function.BattleManager.update (EliMZ_BattleResults.js:1948)

    at Scene_Battle.updateBattleProcess (rmmz_scenes.js:3090)

    at Scene_Battle.update (rmmz_scenes.js:3077)

When I have my VisuStella plugins enabled, it looks like I get a couple errors related to the BattleCore. I am not sure if this will still be a problem if the issue I am having using just Book and Battle Results plugin are resolved. If you want I can post that error message here. In case you are curious, here is what that message looks like:

rmmz_managers.js:2080 TypeError: Cannot read property 'BattleResults' of undefined

    at Function.BattleManager.replayBgmAndBgs (EliMZ_BattleResults.js:1987)

    at Function.BattleManager.processVictory (rmmz_managers.js:2925)

    at Function.BattleManager.<computed> (VisuMZ_1_BattleCore.js:24861)

    at Function.BattleManager.processVictory (EliMZ_BattleResults.js:1935)

    at Function.BattleManager.checkBattleEnd (rmmz_managers.js:2906)

    at Function.BattleManager.<computed> [as checkBattleEnd] (VisuMZ_1_BattleCore.js:24861)

    at Function.BattleManager.updateEventMain (rmmz_managers.js:2431)

    at Function.BattleManager.updateEvent (rmmz_managers.js:2422)

    at Function.BattleManager.update (rmmz_managers.js:2385)

    at Function.BattleManager.<computed> (VisuMZ_0_CoreEngine.js:9423)

If it is expected that this plugin just won't work with VisuStella BattleCore, let me know and I just won't use your Battle Results. Since I need VisuStella for some other features I like.

Developer

Hi there!

thanks for the detailed explanation!

I believe the problem is the same with or without visustella: After you insert my plugin into your project, you need to start a new game. If you try to continue a previous game, where this plugin did not exist, it will throw an error. Since my plugin stores information on the save file, if you choose to continue a previous save file where it did not exist, when you load that save file it will try to look at the information that would be stored, and it will not find it.

Try starting a new game after you put that plugin and let me know if any other error will arise.