Sign in

Forgot your
password?

Developer Forums / Nonoba API

Data Storage - Can't figure it out


mikomi2 months ago | Post #1
0 points
Hi all

Apologies for the noobish first questions but I am struggling with implementing the data storage from the API. I have added the example code into my game and everything appears to integrate fine but when I compile the game it tells me an error has occured. I found some tutorials for other parts of the API and this appears ti be normal but even when the game is put online, nothing appears to happen, even with the code inserted. Presumably, users would need to register an account to save the data, etc, etc? Sorry about this, am just lost at the moment!

Any help would be gratefully recieved
Chris (online)2 months ago | Post #2, in reply to #1
0 points
Can you give a bit more info on this? What error do you get, what happens when you put it online etc etc?
deleted comment
mikomi2 months ago | Post #4, in reply to #2
0 points
OK, I think I am starting to understand this but I am still a bit lost. Before, I didn't really understand how the API actually worked but I followed one of the achievement tutorials and understand now - even though it may not look like anything is happeneing, in the case of an achievement, something is added to your nonoba account. Ok, so I have successfully implemented both a log in screen and an achievement into my game but I am still a little stuck on datastorage. I have inputed the code into their own frames (correctly, with the import command, etc) and to test the data storage I attempted to display the data I had stored as "somedata" - in this case I hoped to store a variable. Looking at the code you posted, Chris, for the score submit and the datastorage I placed this into my program:

"NonobaAPI.SetUserData("somedata", 10, function(response:String){
"

Unfortunately, this generates an error - is it not possible to store (numeric) variables? I also tried just using the example code you gave and attempted to display "somedata" in a text field but again, nothing appeared.

Again, many thanks for the help and advice - if nothing else I've figured out most of the other funtions...I think!
Chris (online)2 months ago | Post #5, in reply to #4
0 points
What error do you got?

Reply to thread

Sign up now to reply to threads.

 
NONOBA-WEB2