Page 5 of 25

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2015/12/22)

PostPosted: 02 Jan 2016, 21:25
by ahkren
@PolytechnicM I thought that might be the case. I'm looking into how to get both working at the same time.

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2015/12/22)

PostPosted: 03 Jan 2016, 00:07
by ahkren
Ok, I think I got the fix in.

Replace ArtDB.php line 107 with " $tokenAndCard = array('Kobolds of Kher Keep', 'Festering Goblin', 'Goldmeadow Harrier', 'Llanowar Elves', 'Metallic Sliver', 'Spark Elemental', 'Cloud Sprite', 'Illusion');
"
and replace ArtDB.php line 110 with " if ((array_key_exists(strtolower($name), $titleToToken) && in_array($name, $tokenAndCard) == FALSE) || (in_array($name, $tokenAndCard) && ($set == 'FUT'||$set == 'C13'||$set == 'TSP'||$set != 'APC'))) {
"

I'll have a new version posted with updates after OGW is fully spoiled.

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2015/12/22)

PostPosted: 06 Jan 2016, 20:27
by Tons
Hi ahkren. First of all, thanks so much for your great work, and happy new year.
Second, i've got several issues with futureshifted cards (FUT).

*English (and spanish):
-ERROR: Power/toughness image not found for color: W (rendering white creatures, as
"Aven Mindcensor"; same with other colors)
-ERROR: Symbol image not found: Tribal (with "Bound in Silence")

*Spanish (only):
-ERROR: Symbol image not found: Conjuro (conjuro = sorcery)
-ERROR: Symbol image not found: Encantamiento (encantamiento = enchantment)
-ERROR: Symbol image not found: Instant├íneo (instantáneo = instant)
-ERROR: Symbol image not found: Tierra (tierra = land)
-ERROR: Symbol image not found: Artefacto (artefacto = artifact)

By the way, i've corrected the Pre8th.ttf font so to include some missing accents
and the (spanish) "ñ".

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2015/12/22)

PostPosted: 06 Jan 2016, 20:48
by satsuki
thanks for updating the soft.
anyway there's a bug in M15Renderer.php
the line :
$bgImage = @imagecreatefrompng("images/m15/$frameDir/cards/Devoid_" . $costColors . '$holofoil.png');
must be:
$bgImage = @imagecreatefrompng("images/m15/$frameDir/cards/Devoid_" . $costColors . "$holofoil.png");
if not the devoid cards are buggued.

edit:also if i generate french proxy le devoid card ("carence" in french) the cards are not generated as devoid ones.

Thanks again

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2015/12/22)

PostPosted: 07 Jan 2016, 07:15
by TheRealMaN
Hi, great app for mtg, thanks)!. I would like to know, how to change the config file to generate the russian language cards and where I can download the russian fonts, link to google drive in the readme file doesnt work, it asks for permission.

I changed russian in config.txt and get card images like that, there is some kind of a problem with fonts/charset...

example | Open
Image


Can someone help me?

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2015/12/22)

PostPosted: 07 Jan 2016, 20:11
by ahkren
@Tons I believe I have corrected the problems with futureshifted, a couple of creatures got mislabeled as futureshifted instead futureshiftedcreature in data\eighth\titleToAlternateFrame.csv. Also I have changed the way that it looks for card type from $card->type to $card->englishType which should alleviate any non-English rendering problems.
Example | Open
Image
Image


@satsuki Made the change on that line, also changed isDevoid to look for the various language versions.
Example | Open
Image


@TheReamMaN Under config-eighth.txt you'll need to change the fonts for Russian. Look for font.title and font.type and change the values from MatrixB.ttf to MinionPro-BoldCn.ttf, for font.text change MPlantin.ttf/MPlantinI.ttf to MinionPro-Cn.ttf/MinionPro-CnItalic.ttf. I'll see what I can do about making that less manual in the future. I looked at the fonts that are in the current package and it seems that they were renamed OpenType files which won't work with this program. I've gotten the TrueType versions and will include them in the next release.
Example | Open
Image


I'll upload a new version later today with the fixes hopefully.

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2015/12/22)

PostPosted: 07 Jan 2016, 20:38
by satsuki
thanks a lot ^^

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2015/12/22)

PostPosted: 07 Jan 2016, 22:11
by ahkren
9.0.09 is uploaded and posted on OP

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2015/12/22)

PostPosted: 08 Jan 2016, 07:05
by TheRealMaN
ahkren wrote:
@TheReamMaN Under config-eighth.txt you'll need to change the fonts for Russian. Look for font.title and font.type and change the values from MatrixB.ttf to MinionPro-BoldCn.ttf, for font.text change MPlantin.ttf/MPlantinI.ttf to MinionPro-Cn.ttf/MinionPro-CnItalic.ttf. I'll see what I can do about making that less manual in the future. I looked at the fonts that are in the current package and it seems that they were renamed OpenType files which won't work with this program. I've gotten the TrueType versions and will include them in the next release.
It works now for russian language, thank you)

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/07)

PostPosted: 08 Jan 2016, 16:29
by Tons
Thank you very much for your quick answer!

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/07)

PostPosted: 09 Jan 2016, 18:03
by satsuki
Thanks for the corrections.
I'm no trying to generate the DTK cards bug i got a missing file error "Clan image not found for: DTK_Kologhan_B"
Do you have the clan symbols ?

Thanks again

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/07)

PostPosted: 09 Jan 2016, 18:15
by ahkren
@satsuki Looks like I misspelled that at some point, it should be looking for DTK_Kolaghan_B not DTK_Kologhan_B. I've attached the revised titleToClan.csv, extract to /data/m15/

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/07)

PostPosted: 09 Jan 2016, 18:59
by satsuki
thanks for your fast answer, it's working great now ^^

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/07)

PostPosted: 09 Jan 2016, 22:40
by satsuki
New bug spoted when i generate ORI cards.
The gold card have gold border and not colored borders

Generated:
Image

Original
Image


AM i doing something wrong ?

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/07)

PostPosted: 09 Jan 2016, 23:16
by ahkren
@satsuki Looks like I put single quotes around a $holofoil when I shouldn't have.
Change M15Renderer.php line 158 from
Code: Select all
$costColorsTemp = $costColors . '$holofoil';
to
Code: Select all
$costColorsTemp = $costColors . $holofoil;
and it should work.