Page 20 of 25

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

PostPosted: 19 May 2017, 19:35
by ahkren
@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.

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

PostPosted: 24 May 2017, 20:08
by MarkBetaOne
@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 ?

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

PostPosted: 24 May 2017, 22:16
by ahkren
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.

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

PostPosted: 25 May 2017, 20:47
by MarkBetaOne
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.

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

PostPosted: 29 Jun 2017, 19:41
by ahkren
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.

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

PostPosted: 07 Jul 2017, 23:18
by ahkren
Ran into some annoying errors generating certain frames. Slight delay on release. Hopefully Sunday.

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

PostPosted: 11 Jul 2017, 17:46
by ahkren
9.1.01 is up for download.

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

PostPosted: 14 Jul 2017, 23:12
by Tidro
Found little bug:
Giant Adephage generate as token from B182 - Gatecrash.mwDeck

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

PostPosted: 14 Jul 2017, 23:31
by ahkren
Thanks, I'll look into it and see what I can do.

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

PostPosted: 14 Jul 2017, 23:52
by ahkren
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))

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

PostPosted: 18 Jul 2017, 01:24
by ahkren
I apparently forgot a closing bracket in AftermathSplitRenderer.php line 331 should have
Code: Select all
}
right before ?>

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

PostPosted: 18 Jul 2017, 02:04
by ahkren
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.

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

PostPosted: 18 Jul 2017, 02:47
by nesci
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?

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

PostPosted: 18 Jul 2017, 18:14
by ahkren
@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.

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

PostPosted: 18 Jul 2017, 20:12
by nesci
Excellent, it works, thank you very much!