It is currently 04 May 2025, 17:41
   
Text Size

HQ Card generator 8.x

by Nate and Snacko

Moderators: Snacko, CCGHQ Admins

Re: HQ Card generator 8.x

Postby odino182 » 28 Sep 2010, 11:47

snacko can you explain me how can do myself cards-italian.csv(update or make new one) pls?

is simple to update cards.csv , but really no have idea about language file.

ty :D
odino182
 
Posts: 42
Joined: 25 Jun 2008, 13:11
Has thanked: 3 times
Been thanked: 1 time

Re: HQ Card generator 8.x

Postby Snacko » 28 Sep 2010, 19:52

I have written a couple of scripts to get the data from gatherer, they are really hacky and I don't include them with the generator scripts which are state of the art compared to those. Also thy don't really work too good for split cards due to how gatherer present the data and how simple the script is.
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 times

Re: HQ Card generator 8.x

Postby Daer » 04 Oct 2010, 00:34

Can anyone help with this:

When I drop a deck into the generator I get this:

PHP Warning: Error parsing config.txt on line 65 in C:\Program File (x86)\Magic Workstation\HQCC\scripts\includes\global.php on line 22
PHP Warning: Error parsing config.txt on line 65 in C:\Program File (x86)\Magic Workstation\HQCC\scripts\includes\global.php on line 30
Card Generator v8.2.10 - Generate Decklist Pages

ERROR: Error locating output directory:
Press any key to continue . . .
Daer
 
Posts: 2
Joined: 04 Oct 2010, 00:26
Has thanked: 0 time
Been thanked: 0 time

Re: HQ Card generator 8.x

Postby Snacko » 04 Oct 2010, 11:48

Need to know what you have in config.txt around line 65 and what you set as output directory path.
Also there might be other problems arising such as if you have Vista or W7 you don't have write permission in program files unless you run an elevated process (this means your output directory has to be outside of program files) plus 32bit applications have program files redirected and I'm not sure if it confuses the path location as I remember some applications had a problem with it.
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 times

Re: HQ Card generator 8.x

Postby Daer » 04 Oct 2010, 17:48

Ok moving the output & Pics folders out of Program Files fixed those errors but now I get this error:

Card Generator v8.2.10 - Generate Pages
ERROR: Error parsing "data/sets-pre8th.txt". Unknown set: Promo - Rewards
Press any key to continue . . .
Daer
 
Posts: 2
Joined: 04 Oct 2010, 00:26
Has thanked: 0 time
Been thanked: 0 time

Re: HQ Card generator 8.x

Postby Snacko » 04 Oct 2010, 19:34

This has been reported before, the quick fix is to edit data/sets-pre8th.txt and remove all the promo lines so it looks like this.
Code: Select all
Vanguard
Starter 1999
Oversized
Deckmasters 2001
Beatdown
Anthologies
Time Spiral Timeshifted

Alpha
Beta
Unlimited
Arabian Nights
Antiquities
Revised
Legends
The Dark
Fallen Empires
Fourth Edition
Chronicles
Homelands
Ice Age
Alliances
Portal
Portal Second Age
Portal Three Kingdoms
Mirage
Fifth Edition
Visions
Weatherlight
Tempest
Stronghold
Exodus
Unglued
Urza's Saga
Sixth Edition
Urza's Legacy
Urza's Destiny
Mercadian Masques
Nemesis
Prophecy
Invasion
Planeshift
Apocalypse
Odyssey
Seventh Edition
Torment
Judgment
Onslaught
Legions
Scourge
This will be included in the update I'll post tomorrow or the day after.
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 times

Re: HQ Card generator 8.x

Postby joollim » 02 Nov 2010, 18:41

Hi, Snacko
Have you already done the alteration in code to generate planeswalkers with four abilities, like jace the mind sculptor?
User avatar
joollim
 
Posts: 57
Joined: 21 Jun 2010, 16:29
Location: Sao Paulo - Brazil
Has thanked: 3 times
Been thanked: 24 times

Re: HQ Card generator 8.x

Postby eternaleye » 07 Nov 2010, 06:05

Hi Snacko, I'm trying to run the card generator on Linux and I'm running into a problem. When I run the shell script from the native tarball, it goes straight to 'press any key...'. The PHP script, if run on its own, runs straight through and never prompts for input when it gets to the getInputFiles call. In neither case are there any images in the output/ directory. Any ideas?

EDIT: Hmm.. On second thought, does the generator have any deps beyong PHP and its gd extension? I installed a rather minimal build of php (basically gd, pcre and xml extensions but nothing else).
eternaleye
 
Posts: 8
Joined: 07 Nov 2010, 05:49
Has thanked: 0 time
Been thanked: 4 times

Re: HQ Card generator 8.x

Postby Snacko » 07 Nov 2010, 10:40

Yes it should work with only php+gd plus pcre is used in some places. Make sure you have cli and you run it via this interface. You can try to check it via running a simple scirpt
Code: Select all
<?
echo defined('STDIN')
?>
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 times

Re: HQ Card generator 8.x

Postby eternaleye » 08 Nov 2010, 05:38

Found it! My build of php doesn't recognize <? $CODE ?> - it has to be <?php $CODE ?>
eternaleye
 
Posts: 8
Joined: 07 Nov 2010, 05:49
Has thanked: 0 time
Been thanked: 4 times

Re: HQ Card generator 8.x

Postby Snacko » 08 Nov 2010, 11:33

You can edit your php.ini and set short_open_tag = On
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 times

Re: HQ Card generator 8.x

Postby eternaleye » 09 Nov 2010, 06:38

Cool, thanks Snacko!
eternaleye
 
Posts: 8
Joined: 07 Nov 2010, 05:49
Has thanked: 0 time
Been thanked: 4 times

Re: HQ Card generator 8.x

Postby Mangoon2008 » 16 Nov 2010, 14:17

Hey There

can anybody tell me where / how to get an actuel Version to be able to print even SOM Cards?

Thanks!
Mangoon2008
 
Posts: 1
Joined: 16 Nov 2010, 14:08
Has thanked: 0 time
Been thanked: 0 time

Re: HQ Card generator 8.x

Postby Asmoloff » 23 Nov 2010, 11:31

Hi,
when I select in config file russian language, I get clear proxy, what wrong?
Asmoloff
 
Posts: 1
Joined: 08 May 2010, 20:11
Has thanked: 0 time
Been thanked: 0 time

Re: HQ Card generator 8.x

Postby Snacko » 23 Nov 2010, 19:57

Need a font that supports Russian letters, same for Chinese and Japanese.
you can read more
viewtopic.php?f=30&t=465&p=10420&hilit=russian#p10514
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 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