It is currently 16 Apr 2024, 06:07
   
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/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: 316
Joined: 18 Jan 2012, 20:43
Has thanked: 50 times
Been thanked: 201 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 401 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: 316
Joined: 18 Jan 2012, 20:43
Has thanked: 50 times
Been thanked: 201 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: 3205
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 696 times
Been thanked: 594 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 408 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.
User avatar
austinio7116
 
Posts: 451
Joined: 10 Mar 2017, 11:59
Has thanked: 47 times
Been thanked: 169 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: 68
Joined: 21 Apr 2010, 10:50
Has thanked: 6 times
Been thanked: 23 times

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

Postby Snoops2 » 17 Oct 2017, 09:49

Could we have an updated version of this to include the latest set data?
Snoops2
 
Posts: 50
Joined: 08 Feb 2015, 09:58
Has thanked: 80 times
Been thanked: 5 times

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

Postby ahkren » 06 Nov 2017, 21:24

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.
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/Emblem (Updated 2017/11

Postby ahkren » 09 Nov 2017, 22:23

Quick DB update with DDT and IMA. DDT doesn't have rarity icons yet in the main program.

https://mega.nz/#!w8sjTQYK!voFRunTMMpVMnFmbm0HfcLH8boM2sKieCmcxvXEfRPw
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/Emblem (Updated 2017/11

Postby ahkren » 06 Jan 2018, 09:14

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.
Attachments
Bontu the Glorified.full.jpg
Half-Kitten, Half-.full.jpg
Adorable Kitten.full.jpg
Accessories to Murder.full.jpg
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/Emblem (Updated 2017/11

Postby rs800 » 13 Jan 2018, 14:46

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.
Attachments
Новый Холст.jpg
rs800
 
Posts: 10
Joined: 13 Jan 2018, 14:36
Has thanked: 4 times
Been thanked: 0 time

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

Postby ahkren » 14 Jan 2018, 06:58

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.
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 8 guests


Who is online

In total there are 8 users online :: 0 registered, 0 hidden and 8 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 8 guests

Login Form