It is currently 11 Sep 2025, 23:16
   
Text Size

Inclusion of card data files

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Inclusion of card data files

Postby Rob Cashwalker » 29 Jun 2011, 16:01

Now that we're primarily hosting the release packages on Google, I was wondering if we should move towards reducing the amount of Magic-specific game data that we release with it. The code will almost certainly always have card names and game-specific terms in it. External files on the other hand, can be distributed outside of the main package, reducing the package size ever so slightly...

Once the card files contain the Oracle text, they would be just as objectionable as the card images. The card files can be hosted at cardforge.org as a separate download, either as a package, or through an in-game update.

I have some work sitting on the side based on reading card and creature type lists from a file into elements in Constants.java. This will be in a specific resource folder, "/res/gamedata/".

Thoughts?
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: Inclusion of card data files

Postby Sloth » 29 Jun 2011, 17:26

Rob Cashwalker wrote:Once the card files contain the Oracle text, they would be just as objectionable as the card images. The card files can be hosted at cardforge.org as a separate download, either as a package, or through an in-game update.
In-game update is not so easy, since new cards shouldn't be downloadable by incompatible old betas.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Inclusion of card data files

Postby Rob Cashwalker » 29 Jun 2011, 18:20

But new cardfiles don't need to be uploaded to the server immediately either, unless they don't require new functions...
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: Inclusion of card data files

Postby Sloth » 29 Jun 2011, 18:52

Rob Cashwalker wrote:But new cardfiles don't need to be uploaded to the server immediately either, unless they don't require new functions...
Yes, there are several solutions to this. It's just something to be aware of.

Rob Cashwalker wrote:I have some work sitting on the side based on reading card and creature type lists from a file into elements in Constants.java. This will be in a specific resource folder, "/res/gamedata/".
This would enable making cards like Conspiracy more user friendly.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Inclusion of card data files

Postby Rob Cashwalker » 29 Jun 2011, 19:01

Files changed since the previous release go into a unique folder (using build number) of the website. The download client would be able to retrieve the build number of whatever version is running, then download files only in the proper folder.
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: Inclusion of card data files

Postby Sloth » 29 Jun 2011, 19:15

Rob Cashwalker wrote:Files changed since the previous release go into a unique folder (using build number) of the website. The download client would be able to retrieve the build number of whatever version is running, then download files only in the proper folder.
Sounds good. Relieving the SVN of the cardsfolder seems to be a good idea now that every commit leads to a (harmless) error. And it can't be bad to further disassociate from copyrighted material.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Inclusion of card data files

Postby Chris H. » 29 Jun 2011, 19:18

Hmm, we have another issue to consider. I think that we would need to keep the working card.txt files located on the SVN. Dave's Maven script would have to be modified to not include these card.txt file ... it may just be a simple edit to the script.
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: Inclusion of card data files

Postby Rob Cashwalker » 29 Jun 2011, 20:22

The cards do need to stay in the SVN...

The subfolders of cardsfolder didn't come up until after I had posted this... I'm sure it can be worked around.
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: Inclusion of card data files

Postby Braids » 01 Jul 2011, 01:24

i rather like the idea of separating the card files out, as it could be another way to ease the burden of making a working copy primarily to edit source code.

i know my current efforts are hampering this. i'd rather be part of the solution than the problem. i'll be watching this thread from now on.
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. ;)
User avatar
Braids
Programmer
 
Posts: 556
Joined: 22 Jun 2011, 00:39
Location: Unknown. Hobby: Driving myself and others to constructive madness.
Has thanked: 1 time
Been thanked: 1 time


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 36 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 36 users online :: 0 registered, 0 hidden and 36 guests (based on users active over the past 10 minutes)
Most users ever online was 7967 on 09 Sep 2025, 23:08

Users browsing this forum: No registered users and 36 guests

Login Form