I’ve been using EZ Game Saver but it seems to have some stability issues, so I am wondering how else would I go about saving an int array of 100+ values. Obviously i’m not going to write 100+ PlayerPrefs.SetInt… So how do I manage this?
Why not? I don’t find 100 a particularly large number ;).
You could concatenate all the numbers into a single string if you wish to save some player pref space, but 100 ints should fit fine as separate entries as well.
100 should work but only with reasonable key names and if you don’t use strings otherwise you will hit the playerpref max size on many platforms and on the iphone, you must keep in mind that the method used under the hood ends on NSUserDefaults which are loaded on app start and are kept in ram all the time so pushing in more than a handfull of PREF values is a rather bad idea especially on pre 3GS
So how would you handle an ‘rpg’ type game where the player could have any number of inventory items 100-1000 to whatever and you need to save those values? Surely any iphone/ipad game should be able to handle such things?
http://www.unifycommunity.com/wiki/index.php?title=ArrayPrefs But for large amounts of data you’d probably prefer to use file I/O.
–Eric
that or if there are npcs for which this also holds etc, then if you have standalone for desktop or an iphone game, you would potentially approach SQLLite instead