Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

After updating to version 1.6.2, a recursive error occurred in MYTH_CGC_CoreEngine, causing an infinite loop. I was able to fix it by modifying the Scene_Map processing as shown below, so if anyone else is experiencing the same issue, please refer to this.

[Original Code]

Scene_Map.prototype.stop = function ()

{

var interpreter = Myth.Util.getInterpreter();

if (interpreter)

interpreter.hideAllCards();

Myth.CGC.showCard_Scene_Base_stop.call(this);

}


[Modified Code]

Scene_Map.prototype.stop = function() {

    if (this._stopped) return;  // Prevent recursive call

    this._stopped = true;       // Set stop state flag

    Scene_Base.prototype.stop.call(this);

}

Hey Sol,

It seems you are still using the Show Card plugin after it has been incorporated into Core Engine. Please turn off Show Card or remove it from the Plugin Manager and see if the error still persists.

When I checked the 1.6.2 sample, I saw that the show card plug-in was removed and confirmed that there was no problem. Thank you for your reply.

Thanks for checking! We have incorporated the fix you have suggested in an upcoming hotfix to the Core Engine we will be deploying soon. Appreciate your initiative to help out other developers in the community :)