oh ive managed to do it now i just have to uninstall the old version :D
Are you using the store() method?
Yes! Of course!
She is always used, when anything was changed in the PlayerData class.
(I point to the Save() method in the 'world'- class.)
Ah, ok!
Good to know that! :D
That don't make it easier, but it's understandable! x)
I even tried to store up to 120 characters. x)
But now it works! :D
Thank you guys! :D
K_O_P told, since level 20 (include) are no more levels saved...
I tried it, but it saves all my scores of every level...
He reopened his browser and now it works...
So I think, there's maybe a problem with the PlayerData-class...
I think it would be very useful for creators to be able to view the database dump for their scenario, both for bug testing, and also to gather statistics if they so chose.
Ah, this is great! I've just started work on multiplayer capabilities and it's going pretty well :)
Also, maybe a PlayerData.get(String username) could be useful. A simple method that gets a given user off of the stored data for the scenario for specific work.
DonaldDuck: Thanks for the suggestion. So that we can better consider whether it's worth adding, can you explain exactly how you would use it -- in what circumstances would you know a username and want to get the data? Would one user's string data reference another?
In API style:
PlayerData get(string username)
Get the PlayerData for a specific user.
Returns:
The equivalent of PlayerData.getMyData() for the given username.
Throws:
Exception ex if the user could not be found.
Also, while I remember, a PlayerData.getPosition(int position) could be useful, where the method returns the PlayerData of the user at the given place (sorted by the users score) or throws an exception if there's no user at that position. Enough complaining though, PlayerData was an awesome addition, thanks for your hard work!