save_content
The save_content response is requested by the load action and contains information about the action’s load request along with the requested save data.
responding action
properties
-
error(boolean)
Whether the action encountered an error. -
message(string?)
Present whenerroris true, tells the reason why the action encountered an error. Valid values are:"no_account": The player was logged out."empty_slot": The save slot is empty."invalid_slot": Theslotvalue was invalid."server_error": The game couldn’t connect to Galaxy’s servers.
-
slot(number)
The save slot number. -
label(string?)
The save’s label, ornulliferroristrue. -
content(string?)
The save’s actual data, ornulliferroristrue.
examples
If the save was found:
{
type: "save_content",
error: false,
slot: 0,
label: "1,000 points",
content: "{\"points\": 1000, \"options\": {}}",
}
If there was an error:
{
type: "save_content",
error: true,
message: "no_account",
slot: 0,
content: null,
label: null,
}