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
by 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.
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
by 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
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]);
- Code: Select all
$card->objectType = null;
Last edited by ahkren on 19 Jul 2017, 19:16, edited 1 time in total.
-
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
by 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:
Temp solution:
scripts/classes/renderers/SplitRenderer.php line 87
replace:
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:
- 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));
- Code: Select all
$strposfavor = strpos($card2->flavor, '//');
if($strposfavor !== false){
$card2->flavor = trim(substr($card2->flavor, $strposfavor + 2));
}else $card2->flavor = "";
- Attachments
-
HOU.zip
- (2.08 KiB) Downloaded 426 times
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/07
by 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.
-
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
by 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:
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\
My bad, didn't saw two side render possibility when update russian translation.
\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'
- Code: Select all
$card->legal = preg_replace("~(−|–)(\d+):~","-$2:",$card->legal);$card->legal = preg_replace('~(−|–)X:~', '-X:', $card->legal);
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.
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/07
by Huggybaby » 22 Jul 2017, 03:26
Thanks guys for keeping this fantastic utility up to date!
-
Huggybaby - Administrator
- Posts: 3207
- Joined: 15 Jan 2006, 19:44
- Location: Finally out of Atlanta
- Has thanked: 701 times
- Been thanked: 594 times
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/07
by 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.
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 429 times
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/07
by 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: 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
by 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?
Can this be tweaked lighter or brighter?
aka ancestral, mproud
MTG.Design
MTG.Design
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/07
by Snoops2 » 17 Oct 2017, 09:49
Could we have an updated version of this to include the latest set data?
Latest snapshot of Forge: https://downloads.cardforge.org/dailysnapshots/
Join our Discord: https://discord.com/invite/BdUCKepYHr
Join our Discord: https://discord.com/invite/BdUCKepYHr
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/11
by 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.
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.
-
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
by 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
https://mega.nz/#!w8sjTQYK!voFRunTMMpVMnFmbm0HfcLH8boM2sKieCmcxvXEfRPw
-
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
by 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.
-
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
by rs800 » 13 Jan 2018, 14:46
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.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.
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/11
by ahkren » 14 Jan 2018, 06:58
ge2lang.bat converts the language information from a Gatherer Extractor database.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.
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.
-
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 26 guests