Cards descriptions database
by BetaSteward
Moderators: North, BetaSteward, noxx, jeffwadsworth, JayDi, TheElk801, LevelX, CCGHQ Admins
Cards descriptions database
by Paralon » 20 Jan 2013, 06:34
Hello there, everybody.
I've got a question about cards descriptions. As far as I understand they are stored in a 'cards.db' file. Right now I'm trying to make an automated localization tool and having the descriptions in the required language I have to somehow put them into the client's db. So is there any documentation of the file format to ease my task?
I've got a question about cards descriptions. As far as I understand they are stored in a 'cards.db' file. Right now I'm trying to make an automated localization tool and having the descriptions in the required language I have to somehow put them into the client's db. So is there any documentation of the file format to ease my task?
- Paralon
- Posts: 3
- Joined: 23 Jan 2012, 16:36
- Has thanked: 0 time
- Been thanked: 0 time
Re: Cards descriptions database
by LevelX » 20 Jan 2013, 07:41
It's a sqlite DB that you can easily maintain with e.g. SQLite Manger Add-On for firefox.Paralon wrote:Hello there, everybody.
I've got a question about cards descriptions. As far as I understand they are stored in a 'cards.db' file. Right now I'm trying to make an automated localization tool and having the descriptions in the required language I have to somehow put them into the client's db. So is there any documentation of the file format to ease my task?
But the descriptions there won't be used in the game. So don't waste your time.
-
LevelX - DEVELOPER
- Posts: 1677
- Joined: 08 Dec 2011, 15:08
- Has thanked: 174 times
- Been thanked: 374 times
Re: Cards descriptions database
by North » 20 Jan 2013, 09:30
Don't bother doing it. That db is also updated with each new release. This update might result in creating the database from scratch in some cases.
Also, that database is only used for searching cards only (when loading and in the deck editor).
Also, that database is only used for searching cards only (when loading and in the deck editor).
Re: Cards descriptions database
by Paralon » 25 Jan 2013, 17:58
Thanks for the advices. Still I'm wondering where are text descriptions stored.
Also, I'm having problems displaying images from my localized archives (user see gray rectangles instead of images). Probably zip-archive parameters are wrong. Other than that - all's fine
Also, I'm having problems displaying images from my localized archives (user see gray rectangles instead of images). Probably zip-archive parameters are wrong. Other than that - all's fine
- Paralon
- Posts: 3
- Joined: 23 Jan 2012, 16:36
- Has thanked: 0 time
- Been thanked: 0 time
Re: Cards descriptions database
by LevelX » 26 Jan 2013, 13:53
The texts are defined/stored in the different classes like common effects, common abilities or individual card classes. Not very handy for translation, we know.Paralon wrote:Thanks for the advices. Still I'm wondering where are text descriptions stored.
But when you download the images with MAGE, the images are shown correct?Paralon wrote:Also, I'm having problems displaying images from my localized archives (user see gray rectangles instead of images). Probably zip-archive parameters are wrong. Other than that - all's fine
-
LevelX - DEVELOPER
- Posts: 1677
- Joined: 08 Dec 2011, 15:08
- Has thanked: 174 times
- Been thanked: 374 times
Re: Cards descriptions database
by Paralon » 26 Jan 2013, 16:12
Of course. So it's 100% my mad coding skillz that failLevelX wrote:But when you download the images with MAGE, the images are shown correct?
- Paralon
- Posts: 3
- Joined: 23 Jan 2012, 16:36
- Has thanked: 0 time
- Been thanked: 0 time
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: Google [Bot] and 75 guests