It is currently 08 May 2024, 23:58
   
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/30)

Postby satsuki » 02 Feb 2016, 20:24

Cool, gona test it ^^ (there's the same bug with FUT card title and type while you're at it ^^)
By the way, in the text size there's a thing in M15 witch could be optimised.
In the creature the space left from P/T is never user on cards:
Image


And the fut text box seem a little too big (the text is sometime of limit left down
Image
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/30)

Postby satsuki » 02 Feb 2016, 20:48

I'm in special card check and found a bug in the Naughty/Nice card:
Image
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/30)

Postby ahkren » 02 Feb 2016, 23:24

Futureshifted title fix, add
Code: Select all
$costLeft = 688;
after EighthRenderer.php line 205.
I've corrected the dimensions of futureshifted text box.
M15 card text boxes have to be short a bit so it doesn't write on the P/T box. There is no image wrap in PHP that I have found, so the bounding box ends up a bit short. Still looking on better ways to do it.
Promos are a bit of a pain in my ass at the moment. I've got some fixed in titleToAltSet.csv, but I have to find a way to have specific cards with the same set symbol with hit different renderers.
For the holiday cards, add
Code: Select all
Naughty/Nice,HHL,Greg Staples,,MIN,R,HH 2012
Naughty,HHL,Greg Staples,,MIN,R,HH 2012
Nice,HHL,Greg Staples,,MIN,R,HH 2012
Mishra's Toy Workshop,H14,Jung Park,,MIN,M,1\1
Goblin Sleigh Ride,H15,Jung Park,,MIN,M,1\1
Evil Presents,HHL,Paul Bonner,,MIN,R,HH 2008
Fruitcake Elemental,HHL,Darrell Riche,,MIN,U,HH 2006
Gifts Given,HHL,Jason Chan,,MIN,U,HH 2007
Season's Beatings,HHL,Kev Walker,,MIN,R,HH 2009
Snow Mercy,HHL,rk post,,,,HH 2010
Stocking Tiger,HHL,Terese Nielsen,,MIN,R,HH 2013
Yule Ooze,HHL,Steve Prescott,,MIN,R,HH 2011
to titleToAltSet.csv and add
Code: Select all
,HHL,H14,H15
to the end of card.promo.symbols in config.txt. I had to adjust some things in SplitRenderer.php as well, so this isn't a complete fix.
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/30)

Postby satsuki » 03 Feb 2016, 08:02

thanks for your answer, i understand that promo and special card won't be easy to do and it's not that important at time, i'm just reporting to you all the special case a found ^^.
i'm on the way of checking cards to found bug (looong process) and i'll wait your next release to generate all again ^^

by the way have you found why with the same amount of text some card have a différent textsize ? (http://www.slightlymagic.net/forum/viewtopic.php?f=30&t=17795&start=165#p192161)
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/30)

Postby ahkren » 03 Feb 2016, 08:48

Still haven't found the answer to that yet.
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/30)

Postby rodolmedo » 05 Feb 2016, 00:21

hello, how can i add the "dots" on the options of "spanish crux of fate"?
Attachments
generated.jpg
rodolmedo
 
Posts: 7
Joined: 29 Jan 2016, 13:00
Has thanked: 8 times
Been thanked: 1 time

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

Postby satsuki » 05 Feb 2016, 00:43

you need to edit the cards.spanish.csv as follow (french sample):
Code: Select all
"Consuming Sinkhole","Doline dévorante","Éphémère","Carence #(Cette carte n'a pas de couleur.)#
Choisissez l'un —
• Exilez une créature-terrain ciblée.
• La Doline dévorante inflige 4 blessures au joueur ciblé."
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/30)

Postby ahkren » 05 Feb 2016, 04:59

I believe I fixed the issues with Spanish bullet points. See attached.
Attachments
cards-spanish.rar
(411.9 KiB) Downloaded 199 times
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/30)

Postby Tons » 05 Feb 2016, 18:16

Hi again my friends. Until now i was running your (great) card-gen in my old wxp machine. Today i´ve tried to do it in my w7 64b machine, and it´s returned me a CLI error concerning to php.exe (v. 5.2.9.9) and relating to ntdll.dll (v. 6.1.7601.19045):
-Application error path: E:\Magic\cardgen-9.0.12\php\php.exe
-Module error path: C:\Windows\SysWOW64\ntdll.dll
It seems that Jahill got the same or similar problem some moths ago (19 nov 2015) ¿Any idea about it? Thanks in advance.
Tons
 
Posts: 14
Joined: 06 Jan 2016, 20:15
Has thanked: 7 times
Been thanked: 2 times

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

Postby ahkren » 05 Feb 2016, 20:40

From the information that I can gather, it's possible that the cli is hooking to a different bit (32->64 or 64->32) of ntdll.dll. Why this is happening, I couldn't say. You may want to check http://stackoverflow.com/ or https://bugs.php.net/ to see if someone else has a fix.
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/30)

Postby Tons » 05 Feb 2016, 22:23

As always, thank you very much for your information, ahkren.
Tons
 
Posts: 14
Joined: 06 Jan 2016, 20:15
Has thanked: 7 times
Been thanked: 2 times

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

Postby ahkren » 06 Feb 2016, 00:34

I've moved the programming talk to a git repository for easier bug testing, satsuki is helping with the testing. I'll still be posting release versions here.

Feel free to offer enhancement suggestions or problems you encounter here. I will answer when I can.
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/30)

Postby shelldell » 11 Feb 2016, 16:50

Minor correction for v9.0.12:

Cavern of Souls should use a gold border instead of a grey border: in data/titleToLandColors.csv cell B56: "C" --> "A"

---

Additionally, can anyone offer a walkthrough on how to properly generate cards with non-traditional art-crop sizes such as Planeswalkers & Zendikar Expeditions? I'm guessing you need a scan of the full original art?

Cheers
shelldell
 
Posts: 8
Joined: 18 May 2015, 04:13
Has thanked: 11 times
Been thanked: 0 time

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

Postby ahkren » 12 Feb 2016, 02:54

Cavern of Souls is corrected for next version.

Planeswalkers are 2 art pieces, *PWName*.jpg and *PWName*-overlay.png, the overlay gets put on after the border, so it is on top. You'll need the full art files for the large art pieces (Planeswalkers, Expeditions, Game Day, etc.) if you want them to look right.
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/30)

Postby shelldell » 12 Feb 2016, 15:43

Thanks for the clarification on the planeswalkers art.

---

After several confusing trips to the printer trying to figure out why my cards were always too large or too small, I've realized why I'm having so much trouble: there is a sizing discrepancy between pre and post M15 formats.

I've attached a picture of two real land cards, an Island from SOM and a Plains from ORI.
Real Cards (2).jpg


Next, I've generated the same two cards (ignore the missing plains art) at 0 border, 0 offset.
HQCG Generated.jpg


It looks like the post-M15 cards have too much border built into them, squishing the interior. Looking at the real life cards the post-M15 plains actually has a narrower border along the top and sides than the pre-M15 cards. As a result the post-M15 cards come out much smaller once printed and trimmed if I base my sizing configs on pre-M15, and if I try to fit the post-M15 correctly the pre-M15 are too large.

If need be I can work around this by finding appropriate border/offset settings to print each at the correct size, building my lists separated by card format, but if you have time to look into this that would simplify things quite a bit :lol:.

Thanks again, ahkren!
shelldell
 
Posts: 8
Joined: 18 May 2015, 04:13
Has thanked: 11 times
Been thanked: 0 time

PreviousNext

Return to HQ Card Generator

Who is online

Users browsing this forum: No registered users and 4 guests


Who is online

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

Login Form