# Handling data in games done in Ruby

**URL:** <https://www.ruby-forum.com/t/handling-data-in-games-done-in-ruby/128126>\
**Category:** Ruby\
**Created:** [February 5, 2008, 7:33am UTC](https://www.ruby-forum.com/t/handling-data-in-games-done-in-ruby/128126 "2008-02-05T07:33:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nefigah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e47774/32.png) [@nefigah](https://www.ruby-forum.com/u/nefigah)\
**Post date:** [February 5, 2008, 7:33am UTC](https://www.ruby-forum.com/t/handling-data-in-games-done-in-ruby/128126/1 "2008-02-05T07:33:00Z")

</div>

For those of you who write games in Ruby, what is your preferred method  
of accessing data? Dialog, monster stats, what have you.

I’m doing a final fantasy clone as a little learning project and I’m  
curious.

I suppose either online or offline methods would work; offhand I’d say  
I’d prefer not having to access a non-local database.

Thanks!

---

<div class="post-metadata">

**Author:** ![nefigah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e47774/32.png) [@nefigah](https://www.ruby-forum.com/u/nefigah)\
**Post date:** [February 5, 2008, 2:56pm UTC](https://www.ruby-forum.com/t/handling-data-in-games-done-in-ruby/128126/2 "2008-02-05T14:56:26Z")

</div>

I’m playing with sqlite3-ruby. Also XML might be good.

---

<div class="post-metadata">

**Author:** ![nefigah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e47774/32.png) [@nefigah](https://www.ruby-forum.com/u/nefigah)\
**Post date:** [February 5, 2008, 3:08pm UTC](https://www.ruby-forum.com/t/handling-data-in-games-done-in-ruby/128126/3 "2008-02-05T15:08:17Z")

</div>

To start, definitely go with YAML. Any actual database really is  
overkill IMO until you’re dealing with multiplayer and lots of  
generated information that needs to be saved.

Jason
