Is there an easy way to add alternative art for a card?
Continuing Development of MicroProse's Magic: The Gathering!
Moderators: BAgate, drool66, Aswan jaguar, gmzombie, stassy, CCGHQ Admins
Is there an easy way to add alternative art for a card?
by luckylavs » 01 Aug 2013, 15:17
I apologize if this question has already been asked before, but I couldn't find it in my search...
In the folder CardArtManaLink, you can see cards with multiple versions -- for example,three versions of the Serra Angel.
Serra Angel.jpg, Serra Angel (1).jpg, and Serra Angel (2).jpg.
Now let's suppose I want to make another version of Serra Angel, and call it Serra Angel (3).jpg. I already know how to resize the image to 288 x 232 pixels.
But how do I tell the game to consider using the fourth version? Is this process relatively easy? Or would it involve recompiling the whole game?
Thanks in advance.
In the folder CardArtManaLink, you can see cards with multiple versions -- for example,three versions of the Serra Angel.
Serra Angel.jpg, Serra Angel (1).jpg, and Serra Angel (2).jpg.
Now let's suppose I want to make another version of Serra Angel, and call it Serra Angel (3).jpg. I already know how to resize the image to 288 x 232 pixels.
But how do I tell the game to consider using the fourth version? Is this process relatively easy? Or would it involve recompiling the whole game?
Thanks in advance.
- luckylavs
- Posts: 25
- Joined: 10 Jun 2013, 19:08
- Has thanked: 0 time
- Been thanked: 0 time
Re: Is there an easy way to add alternative art for a card?
by Aswan jaguar » 01 Aug 2013, 16:38
The game loads all Serra.jpg randomly (or so) so it will upload your artwork as long as you name it correctly Serra Angel (3).jpg.
If you want to make certain that the game uploads your cardart you will have to erase (or better rename the other so it doesn't read them) and name it accordingly.
If you want to make certain that the game uploads your cardart you will have to erase (or better rename the other so it doesn't read them) and name it accordingly.
---
Trying to squash some bugs and playtesting.
Trying to squash some bugs and playtesting.
-
Aswan jaguar - Super Tester Elite
- Posts: 8080
- Joined: 13 May 2010, 12:17
- Has thanked: 731 times
- Been thanked: 458 times
Re: Is there an easy way to add alternative art for a card?
by Korath » 01 Aug 2013, 23:07
You don't have to recompile, but you do need to regenerate some .dat files.
- In Manalink.csv in the magic_updater directory, there's column labeled "Num Pics". Make a backup of that, in case whatever you're about to use to edit it mangles it (which is common enough that I don't even try to use Excel or Openoffice anymore; I just use a text editor).
- Find the row for your card, increase the value in the Num Pics column to the new number of pictures, and save it.
- Run the csv2dat program in the same directory; it'll give you a bunch of warnings, but should make new card_id.h, Cards.dat, Rarity.dat, and DBinfo.dat files. (The value in question isn't in Rarity.dat, but I'm not sure offhand which of the other two dat files it ends up in.)
- Copy those three dat files into your main manalink dir (with magic.exe in it), again backing up the previous versions just in case.
-
Korath - DEVELOPER
- Posts: 3707
- Joined: 02 Jun 2013, 05:57
- Has thanked: 496 times
- Been thanked: 1106 times
Re: Is there an easy way to add alternative art for a card?
by Aswan jaguar » 02 Aug 2013, 10:42
If you want to add it to the existing ones do as Korath said above,and it is going to be selected almost "randomly" (you will have though more chances to see your cardart in game if you have all 4 Serra Angels in the deck as from my experience the first 2 jpgs are loaded more times than the 3nd.)
---
Trying to squash some bugs and playtesting.
Trying to squash some bugs and playtesting.
-
Aswan jaguar - Super Tester Elite
- Posts: 8080
- Joined: 13 May 2010, 12:17
- Has thanked: 731 times
- Been thanked: 458 times
Re: Is there an easy way to add alternative art for a card?
by luckylavs » 02 Aug 2013, 15:19
It worked!!
For other people reading this, "Num Pics" is the 16th column of a given card, where each column is separated by semi-colons.
Thanks guys.
For other people reading this, "Num Pics" is the 16th column of a given card, where each column is separated by semi-colons.
Thanks guys.
- luckylavs
- Posts: 25
- Joined: 10 Jun 2013, 19:08
- Has thanked: 0 time
- Been thanked: 0 time
Re: Is there an easy way to add alternative art for a card?
by Sonic » 04 Aug 2013, 21:15
Working On: Life, the Universe, and Everything.
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests