HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2018/01/29)
by Nate and Snacko
Moderators: Snacko, CCGHQ Admins
Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2015/12/22)
by ahkren » 02 Jan 2016, 21:25
@PolytechnicM I thought that might be the case. I'm looking into how to get both working at the same time.
-
ahkren - Programmer
- Posts: 316
- Joined: 18 Jan 2012, 20:43
- Has thanked: 50 times
- Been thanked: 201 times
Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2015/12/22)
by ahkren » 03 Jan 2016, 00:07
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.
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.
-
ahkren - Programmer
- Posts: 316
- Joined: 18 Jan 2012, 20:43
- Has thanked: 50 times
- Been thanked: 201 times
Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2015/12/22)
by Tons » 06 Jan 2016, 20:27
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) "ñ".
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) "ñ".
- Attachments
-
- Pre8th.rar
- (17.13 KiB) Downloaded 309 times
Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2015/12/22)
by satsuki » 06 Jan 2016, 20:48
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
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)
by TheRealMaN » 07 Jan 2016, 07:15
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...
Can someone help me?
I changed russian in config.txt and get card images like that, there is some kind of a problem with fonts/charset...
- example | Open
Can someone help me?
- TheRealMaN
- Posts: 10
- Joined: 23 Oct 2013, 05:07
- Has thanked: 76 times
- Been thanked: 0 time
Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2015/12/22)
by ahkren » 07 Jan 2016, 20:11
@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.
@satsuki Made the change on that line, also changed isDevoid to look for the various language versions.
@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.
I'll upload a new version later today with the fixes hopefully.
- Example | Open
@satsuki Made the change on that line, also changed isDevoid to look for the various language versions.
- Example | Open
@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
I'll upload a new version later today with the fixes hopefully.
-
ahkren - Programmer
- Posts: 316
- Joined: 18 Jan 2012, 20:43
- Has thanked: 50 times
- Been thanked: 201 times
Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2015/12/22)
by satsuki » 07 Jan 2016, 20:38
thanks a lot ^^
Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2015/12/22)
by ahkren » 07 Jan 2016, 22:11
9.0.09 is uploaded and posted on OP
-
ahkren - Programmer
- Posts: 316
- Joined: 18 Jan 2012, 20:43
- Has thanked: 50 times
- Been thanked: 201 times
Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2015/12/22)
by TheRealMaN » 08 Jan 2016, 07:05
It works now for russian language, thank you)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.
- TheRealMaN
- Posts: 10
- Joined: 23 Oct 2013, 05:07
- Has thanked: 76 times
- Been thanked: 0 time
Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/07)
by Tons » 08 Jan 2016, 16:29
Thank you very much for your quick answer!
Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/07)
by satsuki » 09 Jan 2016, 18:03
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
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)
by ahkren » 09 Jan 2016, 18:15
@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/
- Attachments
-
- titleToClan.rar
- (4.19 KiB) Downloaded 258 times
-
ahkren - Programmer
- Posts: 316
- Joined: 18 Jan 2012, 20:43
- Has thanked: 50 times
- Been thanked: 201 times
Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/07)
by satsuki » 09 Jan 2016, 18:59
thanks for your fast answer, it's working great now ^^
Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/07)
by satsuki » 09 Jan 2016, 22:40
New bug spoted when i generate ORI cards.
The gold card have gold border and not colored borders
Generated:
Original
AM i doing something wrong ?
The gold card have gold border and not colored borders
Generated:
Original
AM i doing something wrong ?
Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/07)
by ahkren » 09 Jan 2016, 23:16
@satsuki Looks like I put single quotes around a $holofoil when I shouldn't have.
Change M15Renderer.php line 158 from
Change M15Renderer.php line 158 from
- Code: Select all
$costColorsTemp = $costColors . '$holofoil';
- Code: Select all
$costColorsTemp = $costColors . $holofoil;
-
ahkren - Programmer
- Posts: 316
- Joined: 18 Jan 2012, 20:43
- Has thanked: 50 times
- Been thanked: 201 times
Who is online
Users browsing this forum: No registered users and 20 guests