Skip to main content

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

Does this still work with current versions of GM?

A topic by pandateam created Jan 05, 2024 Views: 112 Replies: 2
Viewing posts 1 to 2
(1 edit)

I really only need the encrypted ini save function, but I've imported it and can't get it to work - error message is: 

############################################################################################

ERROR in

action number 1

of  Step Event0

for object obj_save_button:

Variable <unknown_object>.file_ini_create(100334, -2147483648) not set before reading it.

 at gml_Script_scr_save (line 10) -        if !file_exists(_which_ini) {file_ini_create(_which_ini)}

############################################################################################

gml_Script_scr_save (line 10)

gml_Object_obj_save_button_Step_0 (line 18) -               scr_save();

Developer

It should, but there’s this bug:

https://github.com/YoYoGames/GameMaker-Bugs/issues/2649

Also note that secure save is not encryption, per manual - you’d want to use file_ini_parse / file_ini_print and pre/post-process the string (e.g. use HMAC)

Ah, okay - thanks