gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > New to DS developement. Couple questions

#137035 - Lord_Simon3 - Tue Aug 07, 2007 4:07 pm

I'm new to the DS homebrew scene. I've got a few questions. Not sure if this is the right forum or not. For my first project, I'm going to be designing a simple fantasy card game (ala Magic).

My question is this: Whats the best way to store a database of card data? (Type, Cost, Color, etc.) Since I'm fairly new to C++ programming, I think I'd probably do better using PA_Lib initially. Is there some type of database format thats readable by/on the DS? Or how would you have to store a big list of card data in a txt (or custom made) type file for example?

Thanks,

#137039 - Lick - Tue Aug 07, 2007 4:16 pm

SQLite?
_________________
http://licklick.wordpress.com

#137055 - tepples - Tue Aug 07, 2007 5:59 pm

How are you currently storing it?

If you haven't built the database yet, you can start by mapping it out in a spreadsheet program and exporting it as comma- or tab-separated values. Then make a parser that runs on the DS. But this won't work that well if the database is bigger than about 2 MiB (half the size of DS EWRAM).
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#137066 - Lord_Simon3 - Tue Aug 07, 2007 7:02 pm

Thanks! I thought about doing it as a comma-delimited spreadsheet, so I suppose thats the easiest way as I haven't started yet.