Cloud

Cloud EventThe Cloud Event is one that is triggered by the call back from one of the cloud_*() functions, like cloud_synchronise(). It actually generates a DS map that is exclusive to this event and is stored in the special variable async_load (please see the individual functions for code examples that explain the use of this event in further detail). This DS map has the following structure:

The exact meaning of the returned "status" map entry is explained in the following table:

 

Status ValueerrorString / resultStringDescription
-1errorString = "Not logged in to <SERVICE>"You have not successfully logged in to the given Cloud Service
0resultString = recovered dataNew game data downloaded from the cloud (following a cloud_synchronise() call)
1resultString = "AlreadySynchronized"No new data since you last called cloud_synchronise
2resultString = "ConflictDeferral"A conflict was encountered, but the gamer chose to ignore it
3resultString = "GameUploadSuccess"data from cloud_string_save() or cloud_file_save() was successfully uploaded to the cloud
-nerrorString = Description of errorAny other negative number means a synchronisation failure