_cards.dat

Additional Ressources for WTH : new cards, card images & more
wololo
Site Admin
Posts: 3728
Joined: Wed Oct 15, 2008 12:42 am
Location: Japan

_cards.dat

Post by wololo »

_cards.dat is the database representing the cards of each set directory. This file can be created/edited with a standard text editor, and allows you to add your own cards to Wagic.
As long as they are simple, adding your cards does not require any special knowledge, in particular it doesn't require you to know anything about programming at all.
If you try to add your own cards but they don't work the way you expect them, it is generally not your fault, but the parsing engine that is very limited.
The instructions can be found at http://wololo.net/wagic/create-your-own-cards/ , but honestly the best way to code a card is to find another card that already does something similar, and try to mimic it.

Let's use this thread to discuss issues adding cards in _cards.dat.
wololo
Site Admin
Posts: 3728
Joined: Wed Oct 15, 2008 12:42 am
Location: Japan

Re: _cards.dat

Post by wololo »

One important thing to note: you can get inspiration from the "official" sets, the ones that are included with WTH in the release.
If a card that seems doable to you is in the "todo.dat" rather than the "_card.dat" for one of these sets, this is usually a good sign that something is not doable for this card at the moment...

also, if a card that has special effects has no "auto" line in its _cards.dat description, this card is hardcoded and probably impossible to mimic (unless the effects of the card you are trying to do are the exact same effects as the one you are trying to copy, in that case you can use the alias keyword)
Shishio
Posts: 64
Joined: Fri Dec 12, 2008 6:28 pm
Location: Zanesville, Oh

Re: _cards.dat

Post by Shishio »

wololo wrote:also, if a card that has special effects has no "auto" line in its _cards.dat description, this card is hardcoded and probably impossible to mimic (unless the effects of the card you are trying to do are the exact same effects as the one you are trying to copy, in that case you can use the alias keyword)
This would explain things like the Hypnotic Spector/Mind Twist effects working properly but not hymn to Torach. I wasn't aware some cards were hardcoded ;P
Raziel017
Posts: 132
Joined: Sat Aug 29, 2009 7:05 am

Re: _cards.dat

Post by Raziel017 »

gen question guys about this todo.dat i downloaded this ODY set and it has todo.dat it has inside the cards that is not inside the card.dat what am i supposed to do with the todo.dat do i have to incorporate the codes from todo.dat to the card.dat file??please help...im a noob at this. :mrgreen:

thanks so much in advance guys.
wololo
Site Admin
Posts: 3728
Joined: Wed Oct 15, 2008 12:42 am
Location: Japan

Re: _cards.dat

Post by wololo »

Odyssey is already included in Wagic 0.8.1, you don't need to redownload it.
The todo.dat file is used for card creators to keep track of what cards remain to be added to the game. Usually, when a card is in todo.dat, it mean this card cannot be added to Wagic for the time being.

Again, I am not sure why you would need to download the ODY set while it is already in the default release
Raziel017
Posts: 132
Joined: Sat Aug 29, 2009 7:05 am

Re: _cards.dat

Post by Raziel017 »

thanks for answering my question.i just thought that there's going to be an update on the cards that are available for that set thats why i DL the ODY set from the forum..hehehe...the one's included in the version is good as it is..the one i DL is not updated.

thanks again for the help. :mrgreen:
yeaforme
Posts: 18
Joined: Thu Sep 17, 2009 6:01 pm

Re: _cards.dat

Post by yeaforme »

I'm not seeing any todo.dat's for the officially supported sets, yet I'm pretty sure all of them are missing a fair number of cards. Is there a master todo.dat for the officially supported sets somewhere that I'm just not seeing?
Psyringe
Posts: 1163
Joined: Mon Aug 31, 2009 10:53 am

Re: _cards.dat

Post by Psyringe »

The "todo.dat"s are not included in the latest Wagic release. But you can view them in SVN:

Look here, click on a set name in the left window, and click on the todo.dat in the right window.
dvdira
Posts: 5
Joined: Mon Oct 19, 2009 8:51 am

Re: _cards.dat

Post by dvdira »

Hi. I'm not a programmer and I don't really know computers, but I'd like to help out. To my mind, I'm specifically looking to add some cards here and there based on what I've been seeing in the SVN (how the cards are worded). For the following cards I'm planning to add, I just need help on which cards I should reference for the logic ---

1. Darksteel Colossus -- am I right in assuming I should use the "Beacon" Cards for the "shuffle into library" effect?
2. Venser, Shaper Servant -- this is effectively just a "bounce" card, right?
3. Sower of Temptation -- can I use the "Confiscate" or "Control Magic" wording? Or the "Eternal Witness" wording with the target area as "battlefield".
4. Psychatog and Wild Mongrel -- these are just "pump" effects right? Can I use the "Vampire Hounds" wording?
5. Thoughtseize and Duress -- ???
6. Mana Leak, Force Spike, Spell Snare -- ???
7. Angel of Despair -- same as Sower, but with destroy effect?
8. Arcbound Ravager -- same as Nantuko Husk, but with permanent counters?
9. Goblin Piledriver and Goblin Ringleader --- ???
10. Urza lands --- ???
11. Wildfire and Plow Under -- ??? Can I use the wording of "Fallow Earth" on this? How do I spread it to two lands?
12. Careful Study -- Combining card draw wording and discard?
13. Man-lands (Blinkmoth Nexus, Mutavault, Treetop Village) -- Can I just adjust the "Living Plane" wording?
14. RAV Dual lands (Stomping Ground, Overgrown Tomb, Breeding Pool, etc...) -- Can I use the wordings on "Tropical Island, Taiga, Savannah, etc..."

Thanks in advance for the help.
Psyringe
Posts: 1163
Joined: Mon Aug 31, 2009 10:53 am

Re: _cards.dat

Post by Psyringe »

dvdira wrote:For the following cards I'm planning to add, I just need help on which cards I should reference for the logic
Just a hint, don't assume that all people know the exact effects of all 10,000 cards. You'll probably get more and better answers if you quote both cards' rules texts, and the Wagic card code of the card you want to reference. This way people who have experience with card code can spot problems or solutions. Right now, most people would need to do extensive searching on the Gatherer and in Wagic's _cards.dat files just to determine *if* they can actually help you. Describing any problems you expect more precisely than with "???" might also help. It never hurts to make it easy for others to help you. :)
Locked