Game databases
Moderator: Moderators
Game databases
What kind of databases there are in [TA]Spring? How they have been implemented?
-
- Posts: 57
- Joined: 01 May 2005, 03:18
It's Total Annihilation data formats.
If you need info on those formats: http://visualta.tauniverse.com
If you need info on those formats: http://visualta.tauniverse.com
-
- Posts: 57
- Joined: 01 May 2005, 03:18
Why don't they use free databases like sqlite3? I'm just wondering. They would be easier to modify and update. Also you could tumble all the data into one database(one file).
I don't see it as such a easy thing to make databases yourself. Especially when they are pure textual information like the weapons in tank or the health of it.
I don't see it as such a easy thing to make databases yourself. Especially when they are pure textual information like the weapons in tank or the health of it.
-
- Posts: 6
- Joined: 27 May 2005, 01:22
-
- Posts: 57
- Joined: 01 May 2005, 03:18
What's the point in using a new file format, if you already have a (group of) much more popular one(s) that is better known and more widely used for TA stuff?Cheery wrote:Why don't they use free databases like sqlite3? I'm just wondering. They would be easier to modify and update. Also you could tumble all the data into one database(one file).
It makes TA stuff compatible with Spring, and means modders don't have to worry about releasing different formats of something, and also means the players don't have to faff about converting their existing custom units to work with Spring, thereby making them useless in vanilla "top down" TA.
Guys, to me it looks like you are talking about different things. Cheery asked about databases, not different formats for units etc.
As for databases, Spring have no use for a traditional database, such as SQLite3. The multiplayer server, however, uses a database to keep track of all registered users etc.
Regarding the formats, they were picked simply because all existing content were using these formats. (SJ, correct me if I'm wrong). Nothing says it isn't possible to create new formats, better suited for Spring, when developing new units and when the requirements are better known.
As for databases, Spring have no use for a traditional database, such as SQLite3. The multiplayer server, however, uses a database to keep track of all registered users etc.
Regarding the formats, they were picked simply because all existing content were using these formats. (SJ, correct me if I'm wrong). Nothing says it isn't possible to create new formats, better suited for Spring, when developing new units and when the requirements are better known.
I just wonder because I found sqlite database really efficient when it comes to storing object information. If somebody doesn't know what sqlite is. It's much like MySQL but it saves the complete database into one file, is super small and simple, but it's also fast to read and write, even faster if you don't care if the target file may corrupt when system crashes...
So instead of loading every unit at once, the program could just load up the necessary parts like commanders, making game start much faster.(if it doesn't already load up only necessarities) When people would make units, it would load them while the game is going.
Then you could use simple file formats like 3DS or wav to store models and sounds.
Another remarkable pros is that sql databases are extremely easy to modify and extend, you would get a big THANKS! from guys who are modding TASpring.
So instead of loading every unit at once, the program could just load up the necessary parts like commanders, making game start much faster.(if it doesn't already load up only necessarities) When people would make units, it would load them while the game is going.
Then you could use simple file formats like 3DS or wav to store models and sounds.
Another remarkable pros is that sql databases are extremely easy to modify and extend, you would get a big THANKS! from guys who are modding TASpring.
- PauloMorfeo
- Posts: 2004
- Joined: 15 Dec 2004, 20:53
The unit packs are just like a database. And a relational one. We have fields like the unit's name, it's description, it's texture, etc, etc. And we have at least one relation inside. Units have a field that is it's weapon that must be searched in another independant list, the list of weapons.JeeZ wrote:... Spring have no use for a traditional database, such as SQLite3. ...
This is just what an SQL database is all about.
Much of my programming course has been SQL and the final project has already started and i've been working on it's basis, that is, it's SQL database.
-
- Posts: 704
- Joined: 30 Oct 2004, 14:14
Relational databases are a good choice for storing...ehm...relational data in table/column format. In most cases it is best to keep the database normalized and relations are described through foreign keys etc.
I can't see why Spring would need all the power (and overhead) of a RDB to load unit descriptions and that kind of stuff.
Same goes for deletion/remove and add operations. "Search" is handled simply by quickly scanning the file structure at startup (or when needed) to locate game content.
To summarize: do you have any clue what you are talking about?
I can't see why Spring would need all the power (and overhead) of a RDB to load unit descriptions and that kind of stuff.
Ehm...we don't need fast insertion? Are you planning to add game content while playing a game?Well, if you get fast insertion&deletion&add&remove&search with some other way, you better not to use SQLite, but otherways, you would be better to try it.

To summarize: do you have any clue what you are talking about?

But is the search faster than with sqlite?
We need all the power to modify the database, not to load it. What do you mean with 'are you going to add game content when you play?'. What else I'm doing when I put up a base and add everything in? But maybe that's not a work for a file database.
I think you lose nothing when doing things more standardised.
Edit: And btw. I read that overhead with SQLite is very small.
We need all the power to modify the database, not to load it. What do you mean with 'are you going to add game content when you play?'. What else I'm doing when I put up a base and add everything in? But maybe that's not a work for a file database.
I think you lose nothing when doing things more standardised.

Edit: And btw. I read that overhead with SQLite is very small.