Skip to main content

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

Hey, is there any way to test global data without exporting the game out?

Hi, I am not exactly sure what you mean by exporting the game, you can test it in playtest same as you would any other plugin, there is no need to export the game. Are you getting some error in playtest?

The global data is not persisting. Currently I'm testing it out in a simple loop: I open the game, add 1 to the variable I am testing, save global data, then exit to menu. I start a new game, and the variable has been reset despite it being marked as global data in the plugin. 

Could you show your event, and your plugin parameters? Also, could you try turning off all non-CGMZ plugins and seeing if you are still encountering the issue? You can also download and open the demo up in editor from my website, so you can see how the demo accomplished global data.

This plugin does create another save file in your project folder, so it is possible you do not have write access which could cause the creation of this file to fail.

That might be the problem. Do you know how to enable write access?

You should be able to follow a tutorial for changing folder/file permissions depending on your OS. If you can save normally then you should have write access.