iDevGames Forums
Game Mechanic Question - Data storage method? - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Game Programming Fundamentals (/forum-7.html)
+--- Thread: Game Mechanic Question - Data storage method? (/thread-9618.html)



Game Mechanic Question - Data storage method? - jdunehew - Dec 13, 2011 02:56 PM

I've never programmed anything big that required any form of storage until now. I'm working on a fairly large RPG that I need to maintain a lot of elements such as class properties, instances etc.

My question to you is:

How would you recommend storing information? Should I go with a database? Is there a better way? I was planning on using a database to store all the game properties.

More info on the game if it helps: It's a pretty large RPG that each class has multiple properties and I want to have the game track things such as properties of rooms, items left in places, amount of money vendors have day to day etc etc.

Any advice would be appreciated.

Thanks


RE: Game Mechanic Question - Data storage method? - OneSadCookie - Dec 13, 2011 03:50 PM

What's your architecture? Is this a single player game? multiplayer online? How much data are you talking about?


RE: Game Mechanic Question - Data storage method? - jdunehew - Dec 13, 2011 06:28 PM

Single player game. Building the game in Obj C for iOS 5 in Xcode.

Amount of data - A couple thousand variables and various data.


RE: Game Mechanic Question - Data storage method? - OneSadCookie - Dec 13, 2011 06:32 PM

Then I wouldn't worry at all about it. Store it however you think is easiest. NSDictionary and plists, potentially.


RE: Game Mechanic Question - Data storage method? - bigtunacan - Dec 30, 2011 01:36 PM

Definitely no database for that level of game. Just store it in xml or csv files if you need static data storage and retrieval