Skip to main content

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

When I updated my gamemaker from 2024.8.1 tot 2024.13.1 I got a buffer error in my game and everything was not saved anymore and corrupted. So I downgraded it again, but is there a way to upgrade my gamemaker without this error happening? You can try for youself make a file in 2024.8.1, use the extension and then update to 2024.13.1
this was my error:

inflate failed with error:-3 invalid code lengths set

########## SSave: error loading file "0save.ssave" | buffer_read argument 1 invalid reference to (buffer) - requested -1 max is 32

inflate failed with error:-3 invalid code lengths set

########## SSave: error loading file "0save.ssave" | buffer_read argument 1 invalid reference to (buffer) - requested -1 max is 32

########## SSave: saved file to: 0save.ssave

########## SSave: loaded file : 0save.ssave


(1 edit)

Try out the latest version, there's a chance that v1.4.0 was too old for the newer version of GameMaker and was causing corruption. If you still have issues, let me know. Thanks!

how can I update the version? I dont know much about github and extensions

Delete the existing SSave folder in your project, then do "Import Local Package" again

I have updated everything and now I got this error (I will send in in next message becuase this message is to big for itch) it is the same but I have more info and I will also send message a picture with how I use this extension, because it worked for me like that for a year:

this is the error:

inflate failed with error:-3 invalid code lengths set

########## SSave: error loading file "0save.ssave" | error: { message : "buffer_read argument 1 invalid reference to (buffer) - requested -1 max is 32", longMessage : "ERROR in action number 1

of Create Event for object obj_game:

buffer_read argument 1 invalid reference to (buffer) - requested -1 max is 32

 at gml_Script___ssave_decrypt (line 68) - var _json = buffer_read(_decrypted, buffer_text);

", script : "gml_Script___ssave_decrypt", line : 68, stacktrace : [ "gml_Script___ssave_decrypt (line 68)","gml_Script___load_from_file@anon@6058@SSave@scr_ssave (line 247) - _json = __ssave_decrypt(_data);

","gml_Script_load@anon@3270@SSave@scr_ssave (line 111) - return __load_from_file(_filename);

","gml_Object_obj_game_Create_0 (line 330) - global.opslaanfile.load("0")

" ] }

0

inflate failed with error:-3 invalid code lengths set

########## SSave: error loading file "0save.ssave" | error: { message : "buffer_read argument 1 invalid reference to (buffer) - requested -1 max is 32", longMessage : "ERROR in action number 1

of Create Event for object obj_game:

buffer_read argument 1 invalid reference to (buffer) - requested -1 max is 32

 at gml_Script___ssave_decrypt (line 68) - var _json = buffer_read(_decrypted, buffer_text);

", script : "gml_Script___ssave_decrypt", line : 68, stacktrace : [ "gml_Script___ssave_decrypt (line 68)","gml_Script___load_from_file@anon@6058@SSave@scr_ssave (line 247) - _json = __ssave_decrypt(_data);

","gml_Script_load@anon@3270@SSave@scr_ssave (line 111) - return __load_from_file(_filename);

","gml_Object_obj_game_Create_0 (line 866) - global.opslaanfile.load("0");

" ] }

0

########## SSave: saved file to: 0save.ssave

(1 edit)

and this is how I use the extension:
in obj_game everything is in create event and global.opslaanfile = new savefile(); thing (so the second picture) is at the top of the create event: