It is currently 24 Sep 2017, 19:29
   
Text Size

HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/07/11)

by Nate and Snacko

Moderators: Snacko, CCGHQ Admins

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/07

Postby Tidro » 19 Jul 2017, 04:22

Flood notice:
PHP Notice: Undefined property: Card::$objectType in *\scripts\classes\renderers\M15Renderer.php on line 602

Same error, with render card as token:
Champion of Wits
Dreamstealer
Earthshaker Khenra
Resilient Khenra
Steadfast Sentinel

All cards from HOU

And little suggestion: Possibility change country code on bottom of card.
Tidro
 
Posts: 5
Joined: 14 Jul 2017, 23:10
Has thanked: 4 times
Been thanked: 2 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/07

Postby ahkren » 19 Jul 2017, 09:04

Country code is editable in config.txt line 26 card.lang
I haven't run across that problem yet. What language are you rendering in? Best I can think of off the top of my head is add new line after 454
Code: Select all
$card->collectorNumber = (string)str_replace('\\', '/', @$row[11]);
in CardDB.php with
Code: Select all
$card->objectType = null;
Edit: Found why the problem is happening and adding that line fixes it.
Last edited by ahkren on 19 Jul 2017, 19:16, edited 1 time in total.
User avatar
ahkren
Programmer
 
Posts: 292
Joined: 18 Jan 2012, 20:43
Has thanked: 42 times
Been thanked: 151 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/07

Postby Tidro » 19 Jul 2017, 15:09

I attach my csv table, which i use for card deck list.
I render in russian, but same error if i will render in english.

I added $card->objectType = null; and its fixed flood.

output.card.full.border = 1 with split cards working bad.

If i render split card in russian i got --- displayed on split card:
AliveWell.jpg

Table description | Open
Положите на поле битвы одну фишку существа 3/3 зеленый Кентавр.
-----
Вы получаете 2 жизни за каждое существо под вашим контролем.
-----
Слияние#(Вы можете разыграть одну или обе половины этой карты из вашей руки.)#

Temp solution:
scripts/classes/renderers/SplitRenderer.php line 87
replace:
Code: Select all
$card2->flavor = trim(substr($card2->flavor, strpos($card2->flavor, '//') + 2));
with:
Code: Select all
$strposfavor = strpos($card2->flavor, '//');
if($strposfavor !== false){
$card2->flavor = trim(substr($card2->flavor, $strposfavor + 2));
}else $card2->flavor = "";
And almost all russian translation for split card is incorrect.
Attachments
HOU.zip
(2.08 KiB) Downloaded 9 times
Tidro
 
Posts: 5
Joined: 14 Jul 2017, 23:10
Has thanked: 4 times
Been thanked: 2 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/07

Postby ahkren » 20 Jul 2017, 23:52

I've made the correction that you suggested. I'll look into getting the non-English files more accurate.
User avatar
ahkren
Programmer
 
Posts: 292
Joined: 18 Jan 2012, 20:43
Has thanked: 42 times
Been thanked: 151 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/07

Postby Tidro » 21 Jul 2017, 08:01

Fix for some planeworkers description, replace – with - (example: Nissa, Nature's Artisan in Russian)
\scripts\classes\renderers\
PlanesWalkerRenderer.php
PlanesWalker4Renderer.php
M15PlanesWalker2Renderer.php
M15PlanesWalker4Renderer.php
M15PlanesWalkerRenderer.php

Before:
Code: Select all
if (!preg_match_all('/((\+|-|-|+|-)?([0-90-9XXYZ]+): )?(.*?)(?=$|[\+|-|-|+|-]?[0-90-9XXYZ]+:)/su'
Paste this:
Code: Select all
$card->legal = preg_replace("~(−|–)(\d+):~","-$2:",$card->legal);$card->legal = preg_replace('~(−|–)X:~', '-X:', $card->legal);
UPDATE:
Fix regexp after some testing

UPDATE2:
Add additional checks

If render Shadows over Innistrad cards will be error about frame Gld in transform-day
copy
\images\m15\transform-day\cards\Old\Gld_H.png
\images\m15\transform-day\cards\Old\Gld.png
to
\images\m15\transform-day\cards\
NOT ACTUAL | Open
Delete favor, all cards from [SOI]:
Archangel Avacyn
Autumnal Gloom
Lambholt Pacifist
Skin Invasion
Startled Awake

No info about second side of cards:
Line 6: Card not found: Avacyn, the Purifier [SOI]
Line 8: Card not found: Lunarch Inquisitors [SOI]
Line 24: Card not found: Westvale Cult Leader [SOI]
Line 38: Card not found: Wayward Disciple [SOI]
Line 51: Card not found: Incited Rabble [SOI]
Line 55: Card not found: Perfected Form [SOI]
Line 61: Card not found: Bearer of Overwhelming Truths [SOI]
Line 96: Card not found: Persistent Nightmare [SOI]
Line 101: Card not found: Awoken Horror [SOI]
Line 104: Card not found: Unimpeded Trespasser [SOI]
Line 108: Card not found: Infectious Curse [SOI]
Line 120: Card not found: Insidious Mist [SOI]
Line 129: Card not found: Heir to the Night [SOI]
Line 133: Card not found: Demon-Possessed Witch [SOI]
Line 162: Card not found: Neck Breaker [SOI]
Line 165: Card not found: Branded Howler [SOI]
Line 175: Card not found: Gatstaf Ravagers [SOI]
Line 177: Card not found: Vildin-Pack Alpha [SOI]
Line 188: Card not found: Flameheart Werewolf [SOI]
Line 202: Card not found: Skin Shedder [SOI]
Line 211: Card not found: Moonrise Intruder [SOI]
Line 216: Card not found: Ancient of the Equinox [SOI]
Line 226: Card not found: Krallenhorde Howler [SOI]
Line 233: Card not found: Lone Wolf of the Natterknolls [SOI]
Line 235: Card not found: Timber Shredder [SOI]
Line 241: Card not found: Lambholt Butcher [SOI]
Line 252: Card not found: Werewolf of Ancient Hunger [SOI]
Line 257: Card not found: One of the Pack [SOI]
Line 272: Card not found: Arlinn, Embraced by the Moon [SOI]
Line 286: Card not found: Scrounged Scythe [SOI]
Line 291: Card not found: Ashmouth Blade [SOI]
Line 303: Card not found: Stonewing Antagonizer [SOI]
Line 319: Card not found: Ormendahl, Profane Prince [SOI]

My bad, didn't saw two side render possibility when update russian translation.
Last edited by Tidro on 23 Jul 2017, 11:05, edited 11 times in total.
Tidro
 
Posts: 5
Joined: 14 Jul 2017, 23:10
Has thanked: 4 times
Been thanked: 2 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/07

Postby Huggybaby » 22 Jul 2017, 03:26

Thanks guys for keeping this fantastic utility up to date!
User avatar
Huggybaby
Administrator
 
Posts: 3051
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 562 times
Been thanked: 565 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/07

Postby Tidro » 25 Jul 2017, 02:35

In cards.csv correct frame for Midnight Scavengers to B
Add descr and favor for second side of Ulvenwald Captive in cards.csv

Here was no card list for EMN, so... i created it.
And also i create frame for half-side cards, from transform-eldrazi.

UPDATE:
Reuploaded with fixed frame.
Attachments
EMN.zip
(190.14 KiB) Downloaded 14 times
Tidro
 
Posts: 5
Joined: 14 Jul 2017, 23:10
Has thanked: 4 times
Been thanked: 2 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/07

Postby austinio7116 » 27 Jul 2017, 13:09

I think in the latest version 9.1.01 the AftermathSplitCardRenderer.php is missing the closing bracket on the final function. This seemed to cause an error on windows for me. Worked beautifully once I added the bracket though - thanks.
austinio7116
 
Posts: 163
Joined: 10 Mar 2017, 11:59
Has thanked: 15 times
Been thanked: 46 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/07

Postby proud » 13 Sep 2017, 01:46

The invention card frame is much too dark. When I cast black type on top, it is much harder to read than the real thing. When I look at the frame in general, it looks like the whole thing is a bit dark. In real life, it is more gold in color.

Can this be tweaked lighter or brighter?
aka ancestral, mproud
mtg.design
proud
 
Posts: 40
Joined: 21 Apr 2010, 10:50
Has thanked: 6 times
Been thanked: 10 times

Previous

Return to HQ Card Generator

Who is online

Users browsing this forum: No registered users and 2 guests


Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: No registered users and 2 guests

Login Form