save error trying set to a non-blob type

Général

tikkel

il y a 2 ans

I try the API example:

char fox[] = "Fox";
gb.save.set(7, fox);

and become:

save error trying set to a non-blob type

?

Steph

NEW il y a 2 ans

I've never tried this API before, but maybe you need to save your data following a sequence of contiguous blocks, which start at zero? Maybe you can't reach block 7 right now?

tikkel

NEW il y a 2 ans

The file SAVE.SAV in the game folder was corrupt. After I deleted them, everything was ok again.

Sorunome

NEW il y a 2 ans

When saving numbers or strings, it verifies that the thing stored in there before was indeed also a number or string, to prevent accidental variable mixing of things. Deleting the SAVE.SAV works, for this!