It is currently 25 Apr 2024, 17:30
   
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 (Updated 2016/01/07)

Postby satsuki » 09 Jan 2016, 23:28

Perfect ^^ you're the boss !
satsuki
 
Posts: 107
Joined: 07 Oct 2012, 08:44
Has thanked: 1 time
Been thanked: 14 times

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

Postby ahkren » 09 Jan 2016, 23:31

Glad I could fix it quick. :)
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 (Updated 2016/01/07)

Postby satsuki » 10 Jan 2016, 09:34

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 ^^
satsuki
 
Posts: 107
Joined: 07 Oct 2012, 08:44
Has thanked: 1 time
Been thanked: 14 times

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

Postby ahkren » 10 Jan 2016, 19:10

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';
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 (Updated 2016/01/07)

Postby satsuki » 10 Jan 2016, 20:07

Once again perfect ^^.
Thanks
satsuki
 
Posts: 107
Joined: 07 Oct 2012, 08:44
Has thanked: 1 time
Been thanked: 14 times

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

Postby satsuki » 10 Jan 2016, 21:26

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
satsuki
 
Posts: 107
Joined: 07 Oct 2012, 08:44
Has thanked: 1 time
Been thanked: 14 times

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

Postby ahkren » 10 Jan 2016, 22:00

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)
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 (Updated 2016/01/07)

Postby satsuki » 11 Jan 2016, 06:33

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
satsuki
 
Posts: 107
Joined: 07 Oct 2012, 08:44
Has thanked: 1 time
Been thanked: 14 times

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

Postby ahkren » 11 Jan 2016, 07:17

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.
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 (Updated 2016/01/07)

Postby satsuki » 11 Jan 2016, 17:07

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 ^^
satsuki
 
Posts: 107
Joined: 07 Oct 2012, 08:44
Has thanked: 1 time
Been thanked: 14 times

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

Postby satsuki » 11 Jan 2016, 18:57

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 ^^
satsuki
 
Posts: 107
Joined: 07 Oct 2012, 08:44
Has thanked: 1 time
Been thanked: 14 times

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

Postby ahkren » 11 Jan 2016, 19:20

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.
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 (Updated 2016/01/07)

Postby satsuki » 11 Jan 2016, 20:44

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
satsuki
 
Posts: 107
Joined: 07 Oct 2012, 08:44
Has thanked: 1 time
Been thanked: 14 times

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

Postby satsuki » 11 Jan 2016, 22:04

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)
satsuki
 
Posts: 107
Joined: 07 Oct 2012, 08:44
Has thanked: 1 time
Been thanked: 14 times

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

Postby ahkren » 11 Jan 2016, 22:16

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?
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 25 guests


Who is online

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

Login Form