Page 21 of 25

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

PostPosted: 19 Jul 2017, 04:22
by Tidro
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.

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

PostPosted: 19 Jul 2017, 09:04
by ahkren
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.

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

PostPosted: 19 Jul 2017, 15:09
by Tidro
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.

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

PostPosted: 20 Jul 2017, 23:52
by ahkren
I've made the correction that you suggested. I'll look into getting the non-English files more accurate.

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

PostPosted: 21 Jul 2017, 08:01
by Tidro
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.

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

PostPosted: 22 Jul 2017, 03:26
by Huggybaby
Thanks guys for keeping this fantastic utility up to date!

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

PostPosted: 25 Jul 2017, 02:35
by Tidro
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.

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

PostPosted: 27 Jul 2017, 13:09
by austinio7116
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.

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

PostPosted: 13 Sep 2017, 01:46
by proud
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?

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

PostPosted: 17 Oct 2017, 09:49
by Snoops2
Could we have an updated version of this to include the latest set data?

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

PostPosted: 06 Nov 2017, 21:24
by ahkren
9.1.02 update in OP.

Apologies for the tardiness of the update, life has thrown some unexpected problems of late. I haven't had as much time as I would like to devote to this project. Likely my last version for a while due to said problems.

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

PostPosted: 09 Nov 2017, 22:23
by ahkren
Quick DB update with DDT and IMA. DDT doesn't have rarity icons yet in the main program.

https://mega.nz/#!w8sjTQYK!voFRunTMMpVMnFmbm0HfcLH8boM2sKieCmcxvXEfRPw

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

PostPosted: 06 Jan 2018, 09:14
by ahkren
Have had some time after moving to work more on this, some examples are attached. Still needs more work, but I thought you all may be interested in upcoming things.

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

PostPosted: 13 Jan 2018, 14:46
by rs800
ahkren wrote:Have had some time after moving to work more on this, some examples are attached. Still needs more work, but I thought you all may be interested in upcoming things.
Greetings. I tried to translate databases into Russian. With ge2lang, no cards were processed. When using mws2lang I got ... This. If possible, I would like to ask you to write in Readme a detailed analysis of the creation of the translation of the database, or even better, a video tutorial. If possible, please respond. I used the latest version of the HQ card generator. Thank you in advance.

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

PostPosted: 14 Jan 2018, 06:58
by ahkren
rs800 wrote:Greetings. I tried to translate databases into Russian. With ge2lang, no cards were processed. When using mws2lang I got ... This. If possible, I would like to ask you to write in Readme a detailed analysis of the creation of the translation of the database, or even better, a video tutorial. If possible, please respond. I used the latest version of the HQ card generator. Thank you in advance.
ge2lang.bat converts the language information from a Gatherer Extractor database.
mws2lang.bat converts the language information from a Magic Workstation database.

You need one of those complete database with the full translation information to extract the information from.