Network Save Card

I can’t understand how to use this OpenFeint feature. I know that if don’t upload this “blob data” users can’t have highscores and achievements on other devices or in other circumstances. BUT, OpenFeint docs aren’t that clear: what exactly should I upload? What is this blob data they are talking about?

Can anyone write 5 lines of code to explain me how it works?
Many thanks. [import]uid: 7022 topic_id: 1752 reply_id: 301752[/import]

The “blob data” isn’t related to achievements or the other OpenFeint features, it’s literally just any custom data you want to store for the player, and retrieve later from their OpenFeint account. The idea is that they could log into OpenFeint while running your game on a different device, and get the same data back.

The 6 lines of sample code from the page below should literally work, and should upload and then download some data. In this example the data is simply the string “some blob data”:

https://developer.anscamobile.com/content/game-edition-openfeint#Network_Save_Card

local downloadListener = function( event )   
 print( event.name .. " =\> '" .. event.blob .. "' downloaded" )   
 return true   
end  
   
openfeint.uploadBlob( blobKey, "some blob data" )  
openfeint.downloadBlob( blobKey, downloadListener )  

This is similar to saving a local textfile and loading it in again, except that it’s stored in the cloud for that user. OpenFeint calls this a Network Save Card since the most likely use is saving your current user’s game progress or game state. [import]uid: 3007 topic_id: 1752 reply_id: 5174[/import]

Oh, okay! Thanks for this fantastic explanation evank. :wink: [import]uid: 7022 topic_id: 1752 reply_id: 5177[/import]

I can’t get this to work. Anything else I should know? I don’t get anything out of the above code.

It’d be useful to know what happens when there’s no login to OpenFeint at all. Or, if offline, the blob upload it’s locally saved and then uploaded when online by OF like the Leaderboards. Thanks

[import]uid: 10426 topic_id: 1752 reply_id: 36694[/import]

This is all I get in Xcode when I execute the example code :
May 15 21:02:19 unknown FastCatch[224] : *** Firewall: Hsterror [Unknown host]

Anyone? [import]uid: 10426 topic_id: 1752 reply_id: 36721[/import]