It is currently 16 Apr 2024, 04:22
   
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/Eighth/PreEighth (Updated 10/17/2015)

Postby ggwithrow » 25 Oct 2015, 19:56

xenagos.JPG


Xenagos, the Reveler seems to end up with an incorrect text box also.
ggwithrow
 
Posts: 25
Joined: 12 Mar 2014, 04:35
Has thanked: 1 time
Been thanked: 2 times

Re: HQ Cardgen M15/Eighth/PreEighth (Updated 10/17/2015)

Postby ahkren » 25 Oct 2015, 22:12

ggwithrow wrote:Getting an error


ERROR: Land color missing for card: Mana Confluence
Fixed, thanks.

Extract to data/titleToLandColors.csv
Attachments
titleToLandColors.rar
(4.59 KiB) Downloaded 340 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/Eighth/PreEighth (Updated 10/17/2015)

Postby ahkren » 26 Oct 2015, 01:45

Uploaded new version with fixes to eighth edition planeswalker renderer and added missing land colors
User avatar
ahkren
Programmer
 
Posts: 316
Joined: 18 Jan 2012, 20:43
Has thanked: 50 times
Been thanked: 201 times

Re: HQ Cardgen M15/Eighth/PreEighth (Updated 10/25/2015)

Postby Gahedros » 27 Oct 2015, 15:29

Any chance it would be possible to update the .csv files for other languages to support newer sets?
Gahedros
 
Posts: 10
Joined: 06 Sep 2015, 06:45
Has thanked: 30 times
Been thanked: 1 time

Re: HQ Cardgen M15/Eighth/PreEighth (Updated 10/25/2015)

Postby ahkren » 28 Oct 2015, 07:22

It is possible if I could find updated MWS foreign translation files. I have had no luck finding any that are updated that I can parse.
The longer way would be for me to write a parser for Gatherer Extractor, which has the upside of not needing MWS as a middleman, the downside would be that it will take a while as I will have to figure out exactly how to do 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/Eighth/PreEighth (Updated 10/25/2015)

Postby ahkren » 30 Oct 2015, 09:31

I've worked out parsing a complete dump of a Gatherer Extractor file. Hopefully someone can test this out, I have some familiarity with the languages, but am certainly not fluent. I have no idea if Traditional Chinese, Simplified Chinese, Japanese or Korean work as I don't have the proper font to render them.
I hope I got the parsing on the Gatherer Extractor csv correct. It looks decent from a cursory examination.

JaceBeleren-Bold.ttf or BelerenB.ttf both work, JaceBeleren-Bold.otf does not.

Feedback is most welcome.
Attachments
languages.rar
Extract into the data folder
(7.22 MiB) Downloaded 362 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/Eighth/PreEighth (Updated 10/25/2015)

Postby Gahedros » 30 Oct 2015, 14:46

ahkren wrote:I've worked out parsing a complete dump of a Gatherer Extractor file. Hopefully someone can test this out, I have some familiarity with the languages, but am certainly not fluent. I have no idea if Traditional Chinese, Simplified Chinese, Japanese or Korean work as I don't have the proper font to render them.
I hope I got the parsing on the Gatherer Extractor csv correct. It looks decent from a cursory examination.

JaceBeleren-Bold.ttf or BelerenB.ttf both work, JaceBeleren-Bold.otf does not.

Feedback is most welcome.
Thank you very much!

I have been doing some testing and I have noticed some problems while trying to generate the full Innistrad set in spanish:
  • Double sided cards such as Cloistered Youth are being generated as only one card (I have tested that the english version is correctly generated as two separate sides).
    Cloistered Youth.jpg
  • Before the generation starts, I am getting a lot of "Error matching card flavor for card:" for many different cards (before the decklist is even parsed).
  • While generating "Garruk Relentless" the generation crashes with error "ERROR: Background image not found for color "Gld"".


On the other hand, all text (including written accents and ñ) seems flawless.
Gahedros
 
Posts: 10
Joined: 06 Sep 2015, 06:45
Has thanked: 30 times
Been thanked: 1 time

Re: HQ Cardgen M15/Eighth/PreEighth (Updated 10/25/2015)

Postby ahkren » 30 Oct 2015, 16:32

Good to know that the text is right. I'll have to mess around with the parser. I don't think it's combining double faced cards, I'll have to see what I can do to correct 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/Eighth/PreEighth/Tokens (Updated 2015/11/

Postby ahkren » 08 Nov 2015, 05:51

Fixed a couple errors I found in the language files with the Origins spark walkers.
Attachments
languages.rar
Put in the data folder
(6.62 MiB) Downloaded 343 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 2015/11/07)

Postby Randomage » 12 Nov 2015, 19:03

When it comes to centering the text, can you bump the check from < 40 to < 44?

Just so the reminder for original duals can be centered.

Also, when checking whether to add the bottom hologram, I added "B" and "S" rarities, based on the name of the Vintage Masters rarity symbols.
Randomage
 
Posts: 16
Joined: 19 Apr 2010, 18:08
Has thanked: 1 time
Been thanked: 5 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2015/11/07)

Postby ahkren » 13 Nov 2015, 02:58

@Randomage
Can do for next upload. Just packaged one for release today.
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 2015/11/12)

Postby Randomage » 15 Nov 2015, 02:57

More feedback for next release:

cards.csv
| Open
A lot of small mistakes for VMA cards, there's no reminder text for the duals, for instance
Code: Select all
Bayou,VMA,Lnd,Land — Swamp Forest,,,R,,,,Karl Kopinski,293\325,
should be
Code: Select all
Bayou,VMA,Lnd,Land — Swamp Forest,,,R,,#({T}: Add {B} or {G} to your mana pool.)#,,Karl Kopinski,293\325,
Counterspell has no flavor text.
Code: Select all
Counterspell,VMA,U,Instant,,,C,{U}{U},Counter target spell.,,Jason Chan,64\325,
should be
Code: Select all
Counterspell,VMA,U,Instant,,"The pyromancer summoned up her mightiest onslaught of fire and rage. Jace feigned interest.",C,{U}{U},Counter target spell.,,Jason Chan,64\325,
Flavor text removal feature
| Open
Add the following line in config.txt
Code: Select all
card.flavor.disable = 0
in CardDB.php, fucntion configureCard, replace
Code: Select all
      if ($config["card.flavor.random"]) {
with
Code: Select all
      if ($config["card.flavor.disable"]) {
         $card->flavor = '';
      } elseif ($config["card.flavor.random"]) {
I also suggested to increase the check for characters from 40 to 44 so the dual reminder text would end up being centered, but it ended up wrecking something else, bottom line, it's not an amazing system, a better option should be investigated.

In various renderers, I'm not sure what is the point of this check
Code: Select all
if ($card->isBasicLand() || ($card->isLand() && $card->legal == '' && $card->flavor == '') ) {
over this check
Code: Select all
if ($card->isBasicLand()) {
but it broke my ability to have dual lands without the mixed mana symbol (they are lands with no text and no flavor at times)

Lastly, the theros gods stars check should include C15.

I'm half of the mindset to help completely rewrite the watermark/alternate frame systems.
Randomage
 
Posts: 16
Joined: 19 Apr 2010, 18:08
Has thanked: 1 time
Been thanked: 5 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2015/11/12)

Postby Jahill » 19 Nov 2015, 11:59

Is it possible to create Planeswalker cards using createCard.bat?
Also, createCard.bat returns an error after completion in version 9.0.05.
Image
Jahill
 
Posts: 17
Joined: 03 Nov 2015, 18:05
Has thanked: 0 time
Been thanked: 2 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2015/11/12)

Postby ahkren » 19 Nov 2015, 20:11

@Jahil at the moment, no, it is not. I have not worked on getting the createCard functions kept up with the rest of the program yet. It is on the to do list. I've been trying to get the main renderers working and all sets functioning with all versions of cards. I've been working on a new release with futureshifted cards, which should be ready in another week or so. I'm going to be at OryCon this weekend and Thanksgiving in the US next week, so I won't have much time to work on this until after then.
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 2015/11/12)

Postby Jahill » 20 Nov 2015, 07:54

Fair enough. Have a good one.
Jahill
 
Posts: 17
Joined: 03 Nov 2015, 18:05
Has thanked: 0 time
Been thanked: 2 times

PreviousNext

Return to HQ Card Generator

Who is online

Users browsing this forum: No registered users and 10 guests


Who is online

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

Login Form