It is currently 17 Oct 2017, 15:09
   
Text Size

HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/07/11)

by Nate and Snacko

Moderators: Snacko, CCGHQ Admins

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03

Postby ahkren » 19 May 2017, 19:35

@skibulk I would love to see something like that. I wish I had the skill to implement it. As it is I feel over my head most of the time just working on this project. I'm learning as I go.
User avatar
ahkren
Programmer
 
Posts: 292
Joined: 18 Jan 2012, 20:43
Has thanked: 42 times
Been thanked: 151 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03

Postby MarkBetaOne » 24 May 2017, 20:08

@ahkren : Loving your work, a huge thumbs up for this. It's made my proxys significantly nicer.

I've branched a version of this onto BitBucket with a couple of changes specific to what I'm after, but give me a shout if you would like a look. I'm not a php guy either (C# by day) but figured enough to tweak here and there to suit my needs.

I want to ask how you go about populating the cards.csv file. I was going to update it and was wondering if you had a smart tool to pull it from gatherer or if its lifted from something other's db (magic album ?)

Is this something I could even help with ?
MarkBetaOne
 
Posts: 2
Joined: 24 May 2017, 19:59
Has thanked: 0 time
Been thanked: 0 time

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03

Postby ahkren » 24 May 2017, 22:16

I use Gatherer Extractor to for most of my MTG DB needs. There is a parser in the misc/import folder, ge2cards.bat (there are some issues with the parser I haven't quite figured out yet, but it works mostly)

I'd love to see what you have done.
User avatar
ahkren
Programmer
 
Posts: 292
Joined: 18 Jan 2012, 20:43
Has thanked: 42 times
Been thanked: 151 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03

Postby MarkBetaOne » 25 May 2017, 20:47

Not a problem. You'll need a BitBucket account - bitbucket(dot)org/account/signup/

Once you've signed up PM me your username and i'll get you in.

The master branch is your 9.1.00, and there's a MarkBetaOne branch with my changes

* A quick build script to robocopy the files from my git folder to my games/magic folder

* I'm only using full card scans so planeswalkers came out weird with their partially transparent lower halves, I've stuck a sold background behind these

* A little commenting on the variables in config.txt

* If art.use.xlhq.full.card = 1 then it assumed the filename would be <something>."art.xlhq.extension"."art.extension" E.G. "Doom Blade.xhlq.jpg". My art.xlhq.extension was blank but with xlhq.full.card on it ended up looking for "Doom Blade..jpg" (note the two dots). It now doesn't assume that dot is there so if you do have one - make sure you include it in art.xlhq.extension

* The renderers would ignore art.use.xlhq.full.card = 1 if it didn't have "xlhq" somewhere in the filename - removed that requirement

I'm only using modern edition card frames (except for planeswalkers), love how black lotus looks (sorry !) - so this certainly isn't for everyone.
MarkBetaOne
 
Posts: 2
Joined: 24 May 2017, 19:59
Has thanked: 0 time
Been thanked: 0 time

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03

Postby ahkren » 29 Jun 2017, 19:41

First good looking aftermath card from the renderer. Need to adjust font sizes, but that's the easy part.
Image
Hopefully should have a new version up by next week.
User avatar
ahkren
Programmer
 
Posts: 292
Joined: 18 Jan 2012, 20:43
Has thanked: 42 times
Been thanked: 151 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03

Postby ahkren » 07 Jul 2017, 23:18

Ran into some annoying errors generating certain frames. Slight delay on release. Hopefully Sunday.
User avatar
ahkren
Programmer
 
Posts: 292
Joined: 18 Jan 2012, 20:43
Has thanked: 42 times
Been thanked: 151 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03

Postby ahkren » 11 Jul 2017, 17:46

9.1.01 is up for download.
User avatar
ahkren
Programmer
 
Posts: 292
Joined: 18 Jan 2012, 20:43
Has thanked: 42 times
Been thanked: 151 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/07

Postby Tidro » 14 Jul 2017, 23:12

Found little bug:
Giant Adephage generate as token from B182 - Gatecrash.mwDeck
Tidro
 
Posts: 5
Joined: 14 Jul 2017, 23:10
Has thanked: 4 times
Been thanked: 2 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/07

Postby ahkren » 14 Jul 2017, 23:31

Thanks, I'll look into it and see what I can do.
User avatar
ahkren
Programmer
 
Posts: 292
Joined: 18 Jan 2012, 20:43
Has thanked: 42 times
Been thanked: 151 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/07

Postby ahkren » 14 Jul 2017, 23:52

quick fix: replace Decklist.php line 57 with
Code: Select all
      if (!$config['decklist.ignore.sets'] && !$config['decklist.ignore.picture.numbers'] && preg_match('/ \((\d{1,4}|\d{4}(a|b)|APAC[abc]|Euro[abc]|Guru|Left|Right|token|[EJU])\)/', $name, $matches))
User avatar
ahkren
Programmer
 
Posts: 292
Joined: 18 Jan 2012, 20:43
Has thanked: 42 times
Been thanked: 151 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/07

Postby ahkren » 18 Jul 2017, 01:24

I apparently forgot a closing bracket in AftermathSplitRenderer.php line 331 should have
Code: Select all
}
right before ?>
User avatar
ahkren
Programmer
 
Posts: 292
Joined: 18 Jan 2012, 20:43
Has thanked: 42 times
Been thanked: 151 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/07

Postby ahkren » 18 Jul 2017, 02:04

Running into some more errors with decklists that have the card names that are both cards and tokens. Working on the problem now and will have an update when I fix it.
User avatar
ahkren
Programmer
 
Posts: 292
Joined: 18 Jan 2012, 20:43
Has thanked: 42 times
Been thanked: 151 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/07

Postby nesci » 18 Jul 2017, 02:47

Thanks for your work! It works perfectly, the image created by your generator are very high quality.
I have 2 questions if you dont mind.
Is it possible to create planewalkers images? If so, how?
Is it possible to make the black border larger and add the rounded corners of the cards?
nesci
 
Posts: 5
Joined: 18 Jul 2017, 02:41
Has thanked: 1 time
Been thanked: 0 time

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/07

Postby ahkren » 18 Jul 2017, 18:14

@nesci for full border in config.txt change output.card.full.border = 0 to output.card.full.border = 1
What problems are you having with planeswalker images? I have a collection of full arts in another thread it has all the planeswalker images I have found so far.
User avatar
ahkren
Programmer
 
Posts: 292
Joined: 18 Jan 2012, 20:43
Has thanked: 42 times
Been thanked: 151 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/07

Postby nesci » 18 Jul 2017, 20:12

Excellent, it works, thank you very much!
nesci
 
Posts: 5
Joined: 18 Jul 2017, 02:41
Has thanked: 1 time
Been thanked: 0 time

PreviousNext

Return to HQ Card Generator

Who is online

Users browsing this forum: No registered users and 1 guest


Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: No registered users and 1 guest

Login Form