It is currently 24 Jun 2025, 22:11
   
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/13)

Postby ahkren » 19 Jan 2016, 03:24

Rerendered the token font, here's what I have now.
Spark Elemental Token.full.jpg


@satsuki Curious. Are OGW_M.png, OGW_R.png, and OGW_U.png in "images/rarity"? If not it's possible that I rendered them after the last version. They are attached.
Attachments
OGW_U.png
OGW_R.png
OGW_M.png
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/13)

Postby satsuki » 19 Jan 2016, 09:18

The token font render is great in this version ! Only the title underlay to autosize left ^^ (if it's possible)

I've probably done a mistake for the rarity symbol because there's present in the original release archive

By the way how do you render the french tokens ? i alway got an error message (have you modded the scripts to convert the title to capital letters if it's a token ?)

Thanks for your works, it's realy great to have a constant update of the software !
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/19)

Postby ahkren » 19 Jan 2016, 10:23

New version (9.0.11) uploaded
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/19)

Postby satsuki » 19 Jan 2016, 20:01

thanks for the update.
have some issues with tokens.

if i use card.text.token.beveling = 1 then i alway got the error symbol image not found:
Metallic Sliver [FUT]...*art not found*..
ERROR: Symbol image not found: tokenfont/ï
I don't understand why i can't generate properly the accent characters (i can't reproduce your token)

The token title are not well centered in height (card.text.token.beveling = 1 or 0)
Image
Image

The text zone seems also a bit too width
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/19)

Postby ahkren » 19 Jan 2016, 20:12

Only thing I can think of at the moment for the symbols is that your custom translation file is encoded in ANSI or something other than UTF-8 (some programs don't default to UTF-8 encoding)
I'll look into the centering.

If you attach your custom translation file I can take a look at it.
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/19)

Postby satsuki » 19 Jan 2016, 21:57

My database is make with notepad++ in UTF-8 encoding

If i take the release out of box (and use french language as output) and use the generateAllTokens.bat (so with your database) i got the same error "ERROR: Symbol image not found: tokenfont/ï" but the title are well centerer with card.text.token.beveling = 0 (but not with card.text.token.beveling = 1)

thanks

edit: If you need it here's my database (not fully finalised-tested yet but no generation error with generate.all.bat if i use an empty token file) http://yatoshi.com/cards-french.7z
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/19)

Postby ahkren » 20 Jan 2016, 00:51

Do you know what character it was trying to render or at least what the title of the card was that it stopped on? (I really hate that php echos all characters as ANSI)
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/19)

Postby ahkren » 20 Jan 2016, 01:01

Forgot 2 frames for MGD

put in \images\m15\mgdpromo\cards
Attachments
BR_H.png
GW_H.png
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/19)

Postby satsuki » 20 Jan 2016, 07:44

In fact it's working if i use a classic card list (for exemple 1,"Metallic Sliver") but don't if i use the generate all or generate all tokens bat files (it's bugging on ALL non english symbols with the generate all scripts)

I'm generating tokens by hand in a list txt file but found a bug with some emblem (with is not translated in my file at time):

Emblem: Dack Fayden [CNS]...*art not found*..
ERROR: Symbol image not found: Img:

or the same with
Emblem: Domri Rade
Emblem: Elspeth, Knight-Errant
Emblem: Elspeth, Sun's Champion

always the same error : "ERROR: Symbol image not found: Img:" (it seems it's planewalker name's emblem witch bugs)

thanks

edit:
i've generated all the token with a card list and the only bug i found are:
planeswalkers token name, i can't generate
the Sand Warrior Token witch generated with bug:
Image

the pre-eight token generated as height token:
Image
instead of:
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/19)

Postby ahkren » 20 Jan 2016, 09:01

I've moved the emblems to their own file "emblems.csv" for the time being
I don't have a pre-8th token frame generated yet, it's on the list to find and create
Sand Warrior should be "Gld" instead of RGW in tokens.csv

I think I figured out the problem with the capitalization
I forgot to add
Code: Select all
mb_internal_encoding("UTF-8");
mb_regex_encoding("UTF-8");
to generateAll.php and generateAllTokens.php after
Code: Select all
require_once 'scripts/includes/newfunctions.php';
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/19)

Postby ahkren » 20 Jan 2016, 09:28

I missed the : image when rendering the new token font.
Add
Code: Select all
$titleCharacters = str_replace(':', 'colon', $titleCharacters);
after
Code: Select all
$titleCharacters = str_replace("’", 'apostrophe', $titleCharacters);
in TokenRenderer.php and place this image
colon.png
colon.png (3.23 KiB) Viewed 5192 times
in images/symbols/tokenfont
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/19)

Postby satsuki » 20 Jan 2016, 12:39

thanks, i'll test as soon as possible (not a home for some days)
here's preheight tokens frames : http://yatoshi.com/token.7z
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/19)

Postby ahkren » 20 Jan 2016, 21:07

Thanks for the frames. I'll get those worked in.
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/19)

Postby satsuki » 22 Jan 2016, 13:53

I've done a full "generate all.bat"

I got only one bug witch stop the card generation with garruk relentess, it's "Gld" in cards.csv instead of "G"

I'm im cards verification now ^^ (looong process because of my custom csv) but foun a bug with generated emblems, the tittle size isn't width ajusted:
Image

thanks
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/19)

Postby ahkren » 22 Jan 2016, 23:07

@satsuki I'll look into the Garruk thing

I'm looking into some way to either shrink the text or make the title on 2 lines (which 8th emblems are)

I'm also looking into a different way to doing the token translations. If you could take a look at the attached file and fix any translation errors, I would appreciate it.
Attachments
tokens-french.rar
(7 KiB) Downloaded 386 times
Last edited by ahkren on 23 Jan 2016, 07:11, edited 1 time in total.
User avatar
ahkren
Programmer
 
Posts: 316
Joined: 18 Jan 2012, 20:43
Has thanked: 50 times
Been thanked: 201 times

PreviousNext

Return to HQ Card Generator

Who is online

Users browsing this forum: No registered users and 0 guests

Main Menu

User Menu

Our Partners


Who is online

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

Login Form