Skip to main content

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

Try the following script call

$cgmz.initializeQuestData(true);
$cgmzTemp.initializeQuestAutoTracking();

Thanks. I wanted to test this but the code I got from you for the menu (calling a common event in the menu) crashes the game so I can't.


Hi, could you open up the dev tools console and show the full error trace once the crash happens?

Hi,

no, because it all shuts down. There is no error, it is a full on closing all windows!

Odd, that does not happen in my test project with the same JS command. Could you reproduce the issue in a blank project with only CGMZ Core and CGMZ Menu Command Window and zip it up and send that to me so I can see what might be going wrong?

(1 edit)

Hi,

sure, here ya go: GO to the Menu and Activate New Game+ :)

https://www.dropbox.com/scl/fi/91j9wqlnqb9bukno7ekek/MenuFail.zip?rlkey=r25ep7fx...

The issue sees to be that both your command "Ancient Cave Challenge" and "New Game +" have the same command symbol "newgameplus". You cannot have the same command symbol for multiple commands. When I change "Ancient Cave Challenge" command symbol to "newgameplus2" the New Game + option begins working as expected.

Usually this setup error would not close the game window itself, but since both of the commands with the same symbol have "this.popScene()" in their JS Command, it is trying to pop the scene twice - first the Menu Scene and then the Map Scene. This closes the game because there is no scene on the stack below the Map Scene so when the Map Scene is "popped" it exits the game.

You are the goatest of all GOATs you know that? :)