Did a little reading in the forum about converting to raw bytes when saving to the cloud, but I'm still having problems. Specifically i'm using Prime31's GPGS Cloud Saving interface, which means i can only pass/receive strings. Here's what I'm doing:
On Save:
Code: Select all
var saveGameByteArray : byte[] = ES2.LoadRaw( "UserEasySave.txt" );
var byteStringArray : String = System.Text.Encoding.UTF8.GetString(saveGameByteArray);
PlayGameServices.setStateData( byteStringArray, 0 );
Code: Select all
PlayGameServices.loadCloudDataForKey( 0, true );
void loadCloudDataForKeySucceededEvent( int key, string data )
{
Debug.Log( "loadCloudDataForKeySucceededEvent:" + data );
var byteArray = System.Text.Encoding.UTF8.GetBytes(data);
ES2.SaveRaw( byteArray, "UserEasySave.txt");
}
I've also tried converting the streams to "ToBase64", same results.
thoughts?