We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,924 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

[ASK]Which database/saving system should i use in game?

Forgive me if this thread was repost. :(

I am a novice in database system for game development.
Can Mr./Mrs. (Master) in here give me an example of a saving system for game? or it just use a database?(Like SQL?):idea:
Like a feature for "Save the Games" and sometimes the player can "Continue" or "Load games".

I imagine the database will store data for the game like level, exp., skill, coordinates, items, etc. ;)

Thankyou for the reply :) I'm really appreciate it :)
(I'm sorry if my english not good :()

3
Contributors
7
Replies
4 Days
Discussion Span
1 Year Ago
Last Updated
8
Views
Question
Answered
neartoyou
Newbie Poster
12 posts since Feb 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

The answers, as always, is: it depends. Databases are often times best with online/browser based games, but Flash, I believe, can write save files to the computer on which it's being played. I don't work with Flash, so I'm not 100%.

In single-player, offline games a save file would probably be the best, as you don't really want to install a database instance for your game. I can't say I'd be ok with someone installing SQL on my machine just to save a game. Although, you can do a persistent/occasional network connection (which puts it in the online game category) in order to write the data to a database on your end.

Figure out what you want your game to be and how the player should be able to play it and you'll most likely have your answer.

Sodabread
Posting Whiz in Training
290 posts since Nov 2009
Reputation Points: 103
Solved Threads: 42
Skill Endorsements: 0

If you prefer a database, but need an offline save file, and don't want to install a database server, you might look at SQLite.

gusano79
Practically a Master Poster
671 posts since May 2004
Reputation Points: 193
Solved Threads: 107
Skill Endorsements: 6

The answers, as always, is: it depends. Databases are often times best with online/browser based games, but Flash, I believe, can write save files to the computer on which it's being played. I don't work with Flash, so I'm not 100%.

In single-player, offline games a save file would probably be the best, as you don't really want to install a database instance for your game. I can't say I'd be ok with someone installing SQL on my machine just to save a game. Although, you can do a persistent/occasional network connection (which puts it in the online game category) in order to write the data to a database on your end.

Figure out what you want your game to be and how the player should be able to play it and you'll most likely have your answer.

How about if offline games? which database you choose? :)

neartoyou
Newbie Poster
12 posts since Feb 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

If you prefer a database, but need an offline save file, and don't want to install a database server, you might look at SQLite.

May i distribute it? and how it works?

thx :)

neartoyou
Newbie Poster
12 posts since Feb 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

May i distribute it? and how it works?

SQLite is public domain, so do what you want, including distribute it.

It's a C/C++ library, although you can find bindings to other languages if you look for them. There's a C-function API for managing the database files, and you write almost-standard SQL queries for data access.

gusano79
Practically a Master Poster
671 posts since May 2004
Reputation Points: 193
Solved Threads: 107
Skill Endorsements: 6

SQLite is public domain, so do what you want, including distribute it.

It's a C/C++ library, although you can find bindings to other languages if you look for them. There's a C-function API for managing the database files, and you write almost-standard SQL queries for data access.

Thx a lot! :D

neartoyou
Newbie Poster
12 posts since Feb 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

SQLite is public domain, so do what you want, including distribute it.

It's a C/C++ library, although you can find bindings to other languages if you look for them. There's a C-function API for managing the database files, and you write almost-standard SQL queries for data access.

Thx a lot! :D I'm on learning SQLite..

neartoyou
Newbie Poster
12 posts since Feb 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Question Answered as of 1 Year Ago by gusano79 and Sodabread

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0848 seconds using 2.73MB