Skip to main content

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

Markieboyyy

8
Posts
2
Following
A member registered Dec 25, 2023

Recent community posts

(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:

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

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:

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

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


thank you I forgot to delet my message because I figured it out later, but I am still going to join the discord

did you find out how it works?

Can you help me? I am trying to save the highscore of the player.

I have created a persistent obj_manager and in the create event I had this:

new SaveFile();

file = ssave_get(SaveFile, ''save'');

Highscore = file.get("highscore");

file.set_protection(SSAVE_PROTECTION.ENCRYPT);



and in another object I pasted this code:

if (global.points > Highscore) {

file.set("highscore", global.points);

Highscore = global.points;

}


in the script I had this:


function SaveFile() : SSave("save") constructor

{

add_value("highscore", SSAVE_TYPE.REAL, 0);

}


this doesn't work and I don't understand why.