It is currently 10 Sep 2025, 23:23
   
Text Size

Token image downloading

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Re: Token image downloading

Postby slapshot5 » 22 Oct 2011, 12:46

The token code auto-generates an image name based on color, P/T, and cardname.

Generally, anything like "creates a green 3/3 Beast token" will work fine with no ImageName$ param. The param is just an override for what is auto-generated.

-slapshot5

Edit: spelling
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

Re: Token image downloading

Postby slapshot5 » 25 Oct 2011, 05:35

Status update:
Everything that I know about is checked in. Please report any bugs here.

-slapshot5

Gui_DownloadPictures_LQ downloads:
1. token images
2. SVar:Picture

Gui_DownloadSetPictures_LQ downloads:
1. token images
2. SetInfo pictures

GuiDownloadQuestImages downloads:
1. Quest opponent icons
2. pet shop icons
3. pet shop token images
4. booster images
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

Re: Token image downloading

Postby Chris H. » 25 Oct 2011, 12:07

Reporting a minor bug.

The following three files were downloaded to my /res/pics/icons/ folder:

w_0_1_bird_pet._smalljpg
w_1_1_bird_pet._smalljpg
w_2_1_bird_pet._smalljpg

The string "_small" was apparently added after the period rather than before the period. A minor misspelling. :)
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: Token image downloading

Postby slapshot5 » 25 Oct 2011, 12:14

Chris H. wrote:Reporting a minor bug.

The following three files were downloaded to my /res/pics/icons/ folder:

w_0_1_bird_pet._smalljpg
w_1_1_bird_pet._smalljpg
w_2_1_bird_pet._smalljpg

The string "_small" was apparently added after the period rather than before the period. A minor misspelling. :)
fixed. Thanks Chris.

-slapshot5
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

Re: Token image downloading

Postby Chris H. » 25 Oct 2011, 12:17

The deck "Chief Clancy Wiggum 1.dck" does not assign an icon name. I would suggest that we:

1] Rename the "Chief_Wiggum.jpg" icon to "Chief Clancy Wiggum.jpg"

2] Assign the icon to the "Chief Clancy Wiggum 1.dck" file. The icon line should state "Icon=Chief Clancy Wiggum.jpg"

I think that my suggestion is consistent with the current system of matching deck files to icons. :)
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: Token image downloading

Postby Chris H. » 25 Oct 2011, 12:23

Sloth renamed the deck Wally 2 back to Walle 2. The deck file now has "Icon=Walle.jpg" so I guess that the icon file itself should be renamed to match.
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: Token image downloading

Postby moomarc » 25 Oct 2011, 12:56

Chris H. wrote:Sloth renamed the deck Wally 2 back to Walle 2. The deck file now has "Icon=Walle.jpg" so I guess that the icon file itself should be renamed to match.
The server already has both walle.jpg and wally.jpg so there should be no need to change anything (I checked the download links too and both are present there).

One problem I've come across is that the pet shop and nursery items are expected to be square. I think this is from a while back when I had more time to work on the pet artwork, but I didn't think it was committed to the main build. So I'll create new icons as soon as possible.
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Token image downloading

Postby Chris H. » 25 Oct 2011, 14:08

moomarc wrote:One problem I've come across is that the pet shop and nursery items are expected to be square. I think this is from a while back when I had more time to work on the pet artwork, but I didn't think it was committed to the main build. So I'll create new icons as soon as possible.
`
I think that the square sized icons was part of Fnoed's work on the quest mode. I think that I increased the size from 40 x 40 to 80 x 80 to give you a few more pixels to work with. :-k

Take your time, no need to rush. :)
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: Token image downloading

Postby moomarc » 25 Oct 2011, 14:51

I remember that now. Well I've done the birds (shop icons at least). You'll only ever see the 1st three levels though because at the moment no icon is shown until you've bought the first level, then the icon is shown for the level you own, then no icons are shown once you've upgraded to the maximum level. If anyone has time and knows where to look, would it be possible to instead have the icons indicating what is 'for sale' instead. That way there's no blank icons when you open the pet store or nursery.

Bird-pet-icon.gif
Bird icon levels
Bird-pet-icon.gif (18.21 KiB) Viewed 3946 times
So here it is (in case anyone wanted to know what they'd be getting from the server. Should be on the server shortly.
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Token image downloading

Postby moomarc » 26 Oct 2011, 13:14

The token images in-game are broken all of a sudden. I've tested both automatically created tokens and ones where the token name is stated implicitly in the card script (eg Devastating Summons). Issue 494
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Token image downloading

Postby Hellfish » 26 Oct 2011, 13:38

I'm looking into it, since it's probably the multistate work that broke em.
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
User avatar
Hellfish
Programmer
 
Posts: 1297
Joined: 07 Jun 2009, 10:41
Location: South of the Pumphouse
Has thanked: 110 times
Been thanked: 169 times

Re: Token image downloading

Postby Sloth » 30 Oct 2011, 20:26

I used the "Download Quest Image" button and even though he tells me "all card pictures have been downloaded", I'm missing Wonder Woman.jpg, Wyatt Earp.jpg and Zombie Attack.jpg.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Token image downloading

Postby slapshot5 » 30 Oct 2011, 22:09

Sloth wrote:I used the "Download Quest Image" button and even though he tells me "all card pictures have been downloaded", I'm missing Wonder Woman.jpg, Wyatt Earp.jpg and Zombie Attack.jpg.
That's because I'm bad at copy and paste apparently. Fixed now.

-slapshot5
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

Previous

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 48 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 48 users online :: 0 registered, 0 hidden and 48 guests (based on users active over the past 10 minutes)
Most users ever online was 7967 on 09 Sep 2025, 23:08

Users browsing this forum: No registered users and 48 guests

Login Form