Jump to content
  • Advertisement
Sign in to follow this  
DeLukse

Database for persistent characters

This topic is 4076 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello DeLukse here (newbie game developer) I am in need of a database that i can easily handle all sorts of character information with, such as level, exp, name, equipment and more. HELP

Share this post


Link to post
Share on other sites
Advertisement
Try googling your programming language of followed by a space then the name of the database you're interested in working with.

Share this post


Link to post
Share on other sites
would the name of the database i'm interested in working with be game stats or something like that?

Share this post


Link to post
Share on other sites
Yes, MySQL is capable of storing all those things.

As you state that you are a newbie, a tip would be to just start with plain text files for storing character data.
Search these forums for "ini files" or "xml files", and check out some simple file i/o functions.

A simple example file could look like this;
name="Lord DeLukSe"
Level=1337
Exp=1559
Helmet="Iron Helmet"
Weapon="Ultra Laser Sword"



or
<player name="Lord DeLukSe">
<stats>
<level>1337</level>
<exp value="1559"/>
</stats>
<equipment>
<equip type="helmet" name="Iron Helmet"/>
<equip type="weapon" name="Ultra Laser Sword"/>
</equipment>
</player>



Share this post


Link to post
Share on other sites
Quote:
Original post by blueapple
As you state that you are a newbie, a tip would be to just start with plain text files for storing character data.


I don't think accessing databases is any more complicated then XML parsers. INI files on the other hand could be quite a bit easier.

Share this post


Link to post
Share on other sites
So how would i make dynamic changes to an INI file and what editor do i use for those?? (I'm sorry and please tell me if my questions are stupid)

Share this post


Link to post
Share on other sites
Sorry if I misled you. An INI file really isn't the way to go with that sort of data. An XML file or relational database would work much better. What language are you trying to implement this in?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!