Page 6 of 25

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

PostPosted: 09 Jan 2016, 23:28
by satsuki
Perfect ^^ you're the boss !

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

PostPosted: 09 Jan 2016, 23:31
by ahkren
Glad I could fix it quick. :)

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

PostPosted: 10 Jan 2016, 09:34
by satsuki
I'm trying to do a "generate all" but go the following error:

PHP Fatal error: Call to undefined function strpos_arr() in D:\Docs\Magic\Softs
\HD cards generator full new\scripts\classes\Card.php on line 96
PHP Stack trace:
PHP 1. {main}() D:\Docs\Magic\Softs\HD cards generator full new\scripts\misc\g
enerateAll.php:0
PHP 2. ImageWriter->writeCards() D:\Docs\Magic\Softs\HD cards generator full n
ew\scripts\misc\generateAll.php:30
PHP 3. SplitRenderer->render() D:\Docs\Magic\Softs\HD cards generator full new
\scripts\classes\ImageWriter.php:263
PHP 4. Card->isFuse() D:\Docs\Magic\Softs\HD cards generator full new\scripts\
classes\renderers\SplitRenderer.php:44

It seem it's appening with the Assault/Battery card, i've tried to mod it une the cards.csv to use "Assault/Battery" with no luck

Any idéa ?

PS: i'm using the cards.orig.csv

thanks ^^

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

PostPosted: 10 Jan 2016, 19:10
by ahkren
generateAll hasn't been updated with the new functions. Not a difficult fix though.
Change scripts/misc/generateAll.php line 16 from
Code: Select all
require_once 'scripts/includes/global.php';
to
Code: Select all
require_once 'scripts/includes/global.php';
require_once 'scripts/includes/newfunctions.php';

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

PostPosted: 10 Jan 2016, 20:07
by satsuki
Once again perfect ^^.
Thanks

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

PostPosted: 10 Jan 2016, 21:26
by satsuki
Hello again.
There's a bug with somes PC2 card.
"Missing chaos ability from legal text: Interplanar Tunnel"

But they don't have a chaos ability ^^

i think i have the full list :
Interplanar Tunnel
Morphic Tide
Planewide Disaster
Mutual Epiphany
Reality Shaping
Spatial Merging
Time Distortion

thanks

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

PostPosted: 10 Jan 2016, 22:00
by ahkren
Change all instances of
Code: Select all
$card->type
to
Code: Select all
$card->englishType
in PlaneRenderer.php (should be lines 41, 64, and 70)

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

PostPosted: 11 Jan 2016, 06:33
by satsuki
it's working ^^
but a got another bug seem more complex:

Ravenous Demon [PRE]...PHP Notice: Undefined index: fonts - transform-day in D
:\Docs\Magic\Softs\HD cards generator full new\scripts\classes\renderers\M15Rend
erer.php on line 574
PHP Stack trace:
PHP 1. {main}() D:\Docs\Magic\Softs\HD cards generator full new\scripts\misc\g
enerateAll.php:0
PHP 2. ImageWriter->writeCards() D:\Docs\Magic\Softs\HD cards generator full n
ew\scripts\misc\generateAll.php:33
PHP 3. M15Renderer->render() D:\Docs\Magic\Softs\HD cards generator full new\s
cripts\classes\ImageWriter.php:263
PHP 4. M15Renderer->getSettings() D:\Docs\Magic\Softs\HD cards generator full
new\scripts\classes\renderers\M15Renderer.php:36
PHP Warning: array_merge(): Argument #2 is not an array in D:\Docs\Magic\Softs\
HD cards generator full new\scripts\classes\renderers\M15Renderer.php on line 57
4
PHP Stack trace:
PHP 1. {main}() D:\Docs\Magic\Softs\HD cards generator full new\scripts\misc\g
enerateAll.php:0
PHP 2. ImageWriter->writeCards() D:\Docs\Magic\Softs\HD cards generator full n
ew\scripts\misc\generateAll.php:33
PHP 3. M15Renderer->render() D:\Docs\Magic\Softs\HD cards generator full new\s
cripts\classes\ImageWriter.php:263
PHP 4. M15Renderer->getSettings() D:\Docs\Magic\Softs\HD cards generator full
new\scripts\classes\renderers\M15Renderer.php:36
PHP 5. array_merge() D:\Docs\Magic\Softs\HD cards generator full new\scripts\c
lasses\renderers\M15Renderer.php:574
PHP Notice: Undefined index: layout - transform-day in D:\Docs\Magic\Softs\HD
cards generator full new\scripts\classes\renderers\M15Renderer.php on line 575
PHP Stack trace:
PHP 1. {main}() D:\Docs\Magic\Softs\HD cards generator full new\scripts\misc\g
enerateAll.php:0
PHP 2. ImageWriter->writeCards() D:\Docs\Magic\Softs\HD cards generator full n
ew\scripts\misc\generateAll.php:33
PHP 3. M15Renderer->render() D:\Docs\Magic\Softs\HD cards generator full new\s
cripts\classes\ImageWriter.php:263
PHP 4. M15Renderer->getSettings() D:\Docs\Magic\Softs\HD cards generator full
new\scripts\classes\renderers\M15Renderer.php:36
PHP Warning: array_merge(): Argument #1 is not an array in D:\Docs\Magic\Softs\
HD cards generator full new\scripts\classes\renderers\M15Renderer.php on line 57
5
PHP Stack trace:
PHP 1. {main}() D:\Docs\Magic\Softs\HD cards generator full new\scripts\misc\g
enerateAll.php:0
PHP 2. ImageWriter->writeCards() D:\Docs\Magic\Softs\HD cards generator full n
ew\scripts\misc\generateAll.php:33
PHP 3. M15Renderer->render() D:\Docs\Magic\Softs\HD cards generator full new\s
cripts\classes\ImageWriter.php:263
PHP 4. M15Renderer->getSettings() D:\Docs\Magic\Softs\HD cards generator full
new\scripts\classes\renderers\M15Renderer.php:36
PHP 5. array_merge() D:\Docs\Magic\Softs\HD cards generator full new\scripts\c
lasses\renderers\M15Renderer.php:575
PHP Warning: array_merge(): Argument #2 is not an array in D:\Docs\Magic\Softs\
HD cards generator full new\scripts\classes\renderers\M15Renderer.php on line 57
5
PHP Stack trace:
PHP 1. {main}() D:\Docs\Magic\Softs\HD cards generator full new\scripts\misc\g
enerateAll.php:0
PHP 2. ImageWriter->writeCards() D:\Docs\Magic\Softs\HD cards generator full n
ew\scripts\misc\generateAll.php:33
PHP 3. M15Renderer->render() D:\Docs\Magic\Softs\HD cards generator full new\s
cripts\classes\ImageWriter.php:263
PHP 4. M15Renderer->getSettings() D:\Docs\Magic\Softs\HD cards generator full
new\scripts\classes\renderers\M15Renderer.php:36
PHP 5. array_merge() D:\Docs\Magic\Softs\HD cards generator full new\scripts\c
lasses\renderers\M15Renderer.php:575
*art not found*.

ERROR: Background image not found for color "B" in frame dir: transform-day

the DKA version of the card generate fine bug not the PRE version


ps i found a missing land color for Gem Bazaar (it seems it's "C")


Thanks

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

PostPosted: 11 Jan 2016, 07:17
by ahkren
Added Gem Bazaar,C to titleToLandColors.csv
The PRE problem may end up being a bit more complicated as PRE is trying to render as M15 frame and there is no M15 frame for non-planeswalker transform yet. Quick fix would be to remove
Code: Select all
Promo - Prerelease Events
from data/sets-m15.txt and add
Code: Select all
Promo - Prerelease Events
to data/sets-eighth.txt. All PRE would render on 8th edition frames. I've been working on how to split the promo cards by title, but the solution hasn't yet come to me.
I'll see what I can do to create the frames for M15.

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

PostPosted: 11 Jan 2016, 17:07
by satsuki
Working but now for the pre DTK i got the Kologhan bug ^^
I renamed Kologhan in Kolaghan in eighth\titleToClan.csv and that's ok ^^

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

PostPosted: 11 Jan 2016, 18:57
by satsuki
another one ^^ (debuging in progress)

Centaur Omenreader [FUT]......
ERROR: Symbol image not found: Snow

here's the cards.csv line:
Centaur Omenreader,FUT,G,Snow Creature — Centaur Shaman,3\3,The wisdom of the omenreaders is legendary. Creatures travel for miles through icy peril to seek their counsel.,U,{3}{G},"As long as Centaur Omenreader is tapped, creature spells you cast cost {2} less to cast.",,Justin Sweet,143\180,

I don't understund the bug because the card as no "snow" symbol snow is only its type

Thanks ^^

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

PostPosted: 11 Jan 2016, 19:20
by ahkren
I really appreciate all the debugging, I haven't had a ton of time to go over everything.

The symbol it is looking for is the futuresight type symbol, not the snow mana symbol, it should be ignoring supertypes (Legendary, Tribal, Snow) but I missed adding the Snow supertype to the skip list.
For the Snow bug change EighthRenderer.php line 262 and 300 to
Code: Select all
             } else if ($types[0] == 'Legendary' || $types[0] == 'Tribal' || $types[0] == 'Snow') {
That should fix that.

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

PostPosted: 11 Jan 2016, 20:44
by satsuki
ok working once again.

Some more:
land color
missing land color : Dryad Arbor => G

cards.csv
Garruk Relentless : gld (colors missing.... but the card itsef is green and not gld)
and by the way Garruk, the Veil-Cursed (transform of Garruk Relentless) isn't generated at all.

thanks

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

PostPosted: 11 Jan 2016, 22:04
by satsuki
Another one in cards.csv

there is:
Forest ,TPR,Lnd,Basic Land — Forest,,,C,,{G},,Douglas Shuler,269\254,
Forest ,TPR,Lnd,Basic Land — Forest,,,C,,{G},,Douglas Shuler,269\254,
Forest ,TPR,Lnd,Basic Land — Forest,,,C,,{G},,Douglas Shuler,269\254,
Forest ,TPR,Lnd,Basic Land — Forest,,,C,,{G},,Douglas Shuler,269\254,

must be one line and without space after the forest name(i think)
Forest,TPR,Lnd,Basic Land — Forest,,,C,,{G},,Douglas Shuler,269\254,

(seems most of basic land in TPR have the same issue)

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

PostPosted: 11 Jan 2016, 22:16
by ahkren
Corrected the basic lands for TPR, you are correct, there shouldn't be a space after the name.
I'm not able to reproduce the problem you are having with Dryad Arbor. I'll have to dig more and see why that may be.
Garruk Relentless should be fine as is, the color is grabbed from titleToTransform.csv
I'm not sure why Garruk, the Veil-Cursed isn't rendering. I'll have to look more into it. You are rendering in french, yes?