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)
by satsuki » 09 Jan 2016, 23:28
Perfect ^^ you're the boss !
Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/07)
by ahkren » 09 Jan 2016, 23:31
Glad I could fix it quick.
-
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)
by 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 ^^
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)
by 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
Change scripts/misc/generateAll.php line 16 from
- Code: Select all
require_once 'scripts/includes/global.php';
- Code: Select all
require_once 'scripts/includes/global.php';
require_once 'scripts/includes/newfunctions.php';
-
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)
by satsuki » 10 Jan 2016, 20:07
Once again perfect ^^.
Thanks
Thanks
Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/07)
by 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
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)
by ahkren » 10 Jan 2016, 22:00
Change all instances of
- Code: Select all
$card->type
- Code: Select all
$card->englishType
-
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)
by 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
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)
by 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
I'll see what I can do to create the frames for M15.
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
- Code: Select all
Promo - Prerelease Events
I'll see what I can do to create the frames for M15.
-
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)
by 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 ^^
I renamed Kologhan in Kolaghan in eighth\titleToClan.csv and that's ok ^^
Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/07)
by 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 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 ^^
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 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)
by 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
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') {
-
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)
by 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
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)
by 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)
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)
by 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?
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?
-
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 25 guests