It is currently 16 Apr 2024, 18:46
   
Text Size

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)

Postby 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.
User avatar
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)

Postby 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.
User avatar
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)

Postby 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) "ñ".
Attachments
Pre8th.rar
(17.13 KiB) Downloaded 306 times
Tons
 
Posts: 14
Joined: 06 Jan 2016, 20:15
Has thanked: 7 times
Been thanked: 2 times

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

Postby 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
satsuki
 
Posts: 107
Joined: 07 Oct 2012, 08:44
Has thanked: 1 time
Been thanked: 14 times

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

Postby 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...

example | Open
Image


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)

Postby 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.
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.
User avatar
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)

Postby satsuki » 07 Jan 2016, 20:38

thanks a lot ^^
satsuki
 
Posts: 107
Joined: 07 Oct 2012, 08:44
Has thanked: 1 time
Been thanked: 14 times

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

Postby ahkren » 07 Jan 2016, 22:11

9.0.09 is uploaded and posted on OP
User avatar
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)

Postby TheRealMaN » 08 Jan 2016, 07:05

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)
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)

Postby Tons » 08 Jan 2016, 16:29

Thank you very much for your quick answer!
Tons
 
Posts: 14
Joined: 06 Jan 2016, 20:15
Has thanked: 7 times
Been thanked: 2 times

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

Postby 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
satsuki
 
Posts: 107
Joined: 07 Oct 2012, 08:44
Has thanked: 1 time
Been thanked: 14 times

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

Postby 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 255 times
User avatar
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)

Postby satsuki » 09 Jan 2016, 18:59

thanks for your fast answer, it's working great now ^^
satsuki
 
Posts: 107
Joined: 07 Oct 2012, 08:44
Has thanked: 1 time
Been thanked: 14 times

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

Postby 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:
Image

Original
Image


AM i doing something wrong ?
satsuki
 
Posts: 107
Joined: 07 Oct 2012, 08:44
Has thanked: 1 time
Been thanked: 14 times

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

Postby 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
Code: Select all
$costColorsTemp = $costColors . '$holofoil';
to
Code: Select all
$costColorsTemp = $costColors . $holofoil;
and it should work.
User avatar
ahkren
Programmer
 
Posts: 316
Joined: 18 Jan 2012, 20:43
Has thanked: 50 times
Been thanked: 201 times

PreviousNext

Return to HQ Card Generator

Who is online

Users browsing this forum: No registered users and 18 guests


Who is online

In total there are 18 users online :: 0 registered, 0 hidden and 18 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 18 guests

Login Form