Skip to main content

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

Do you know why I am getting this error..?

Can you show the dev tools console with the full error trace?

Wiat, i just noticed my Toast script is 1.40  and you've got 1.50 now, i'll install that, there's more options now so maybe its something there. I'll get back to you on this.

Hi, the issue is the option plugin you are using seems to be trying to change switch values as soon as it gets loaded which is happening even before CGMZ objects are initialized. You could try moving the order of [CGMZ] up or down (however it is not currently positioned) from the options plugin in the plugin manager.

Otherwise, you can add this code to the bottom of achievements:

Game_Switches.prototype.onChange = function() {
alias_CGMZ_Achievements_GameSwitches_onChange.call(this);
$cgmz?.checkAchievementSwitchesCriteria();
};

This will check if CGMZ is initialized first before trying to pay attention to switch changes.

nope, the upgrade to 1.50 didnt fix anything. Still getting the same issue.