KageDesu / Alpha-ABS

Alpha ABS plugin for MV
78 stars 18 forks source link

Load Game Issue with Plugin 1128 #24

Closed Yunusdevops closed 4 years ago

Yunusdevops commented 4 years ago

Hello, i can save a game but when i try to load it the game breaks up. typeError: Cannot read property 'forEach' of undefined at Game_Troop.prepareABS (Alpha_ABS_1128_public.js:20707) at Function.BattleManagerABS.updateABSSession (Alpha_ABS_1128_public.js:3436) at Function.BattleManagerABS.onMapLoaded (Alpha_ABS_1128_public.js:3405) at Scene_Map.onMapLoaded (Alpha_ABS_1128_public.js:23229) at Scene_Map.onMapLoaded (Alpha_ABS_1128_public.js:23537) at Scene_Map.isReady (rpg_scenes.js:561) at Function.SceneManager.updateScene (rpg_managers.js:2018) at Function.SceneManager.updateMain (rpg_managers.js:1983) at Function.SceneManager.update (rpg_managers.js:1907)

SMO-Valadorn commented 4 years ago

Hi @Yunusdevops , You can solve that bug on AABS' code itself, that's not difficult:

1° Open AABS' code with a text editor;

2° Find "Game_Troop.prototype.membersABS" (without quotes);

3° Right beneath that you'll see "return this._enemiesABS;", change it to: "return this._enemiesABS || [];" (without quotes);

4° Save and test it, it should be fixed now.

For more help consider joining us on discord: https://discord.gg/8EE6PMv

KageDesu commented 4 years ago

Fixed in 1194