It is currently 10 Sep 2025, 03:27
   
Text Size

Token image downloading

Post MTG Forge Related Programming Questions Here

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

Token image downloading

Postby slapshot5 » 08 Oct 2011, 19:45

Is there a reason that the downloading of token images with Download Card LQ Pictures and Download Card Set LQ Pictures is disabled?

Was this just part of the lightweight CardFactory changes?

I'd like to re-enable it.

-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 Max mtg » 08 Oct 2011, 23:25

When I changed the getNeededCards() functions - there was no tokes download, or it was commented out. So I'm absolutelly sure that I didn't break it.

Given a list of all tokens, the download can be restored very easily.
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Re: Token image downloading

Postby slapshot5 » 08 Oct 2011, 23:34

Max mtg wrote:When I changed the getNeededCards() functions - there was no tokes download, or it was commented out. So I'm absolutelly sure that I didn't break it.

Given a list of all tokens, the download can be restored very easily.
Yeah, I've got the code working. Just didn't want to check it in yet in case there was a reason for the removal.

-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 Doublestrike » 10 Oct 2011, 03:20

Since we're on this topic, sort of, what's the general feeling about removing the "pics" directory from version control? (I'll update the code to work correctly).

I like to test with card pictures, but every time I go to commit SVN tries to commit all my pictures :( so I have to cut and paste all over the place. So, if there's no Howl from Beyond, I'd like to remove pics from the control.
Last edited by Doublestrike on 10 Oct 2011, 06:40, edited 1 time in total.
---
A joke is a very serious thing.
User avatar
Doublestrike
UI Programmer
 
Posts: 715
Joined: 08 Aug 2011, 09:07
Location: Bali
Has thanked: 183 times
Been thanked: 161 times

Re: Token image downloading

Postby friarsol » 10 Oct 2011, 03:37

Doublestrike wrote:Since we're on this topic, sort of, what's the general feeling about removing the "pics" directory from version control? (I'll update the code to work correctly).

I like to test with card pictures, but every time I go to commit SVN tries to commit all my pictures :( so I have to cut and paste all over the place. So, if there's no Howl From Beyond, I'd like to remove pics from the control.
Why not just add them to your svn:ignore?
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Token image downloading

Postby Doublestrike » 10 Oct 2011, 06:46

Could do, but seemed like sort of a hack-y solution. Seems the whole folder is there just to support a few icons used in Quest mode.
---
A joke is a very serious thing.
User avatar
Doublestrike
UI Programmer
 
Posts: 715
Joined: 08 Aug 2011, 09:07
Location: Bali
Has thanked: 183 times
Been thanked: 161 times

Re: Token image downloading

Postby Hellfish » 10 Oct 2011, 07:36

You could do like I do and keep a pics folder away from actual Forge installations and just change your main.properties file to point there.Nice when you have multiple Forges going(Latest beta,latest svn checkout, own experimental). Just don't do like I do and accidentally commit your main.properties from time to time. :oops:
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 friarsol » 10 Oct 2011, 12:01

Doublestrike wrote:Could do, but seemed like sort of a hack-y solution. Seems the whole folder is there just to support a few icons used in Quest mode.
Not exactly hacky, considering Forge crashes if those icons don't exist.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Token image downloading

Postby Rob Cashwalker » 10 Oct 2011, 13:51

I think anything that is not a card pic should just be moved to the images folder.

I just made a http://cardforge.org/fpics/tokens it contains the tokens.zip (extracted) that moomarc posted recently. If anyone would like to maintain the tokens folder, I will make ftp access.
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: Token image downloading

Postby moomarc » 10 Oct 2011, 17:31

Rob Cashwalker wrote:I think anything that is not a card pic should just be moved to the images folder.

I just made a http://cardforge.org/fpics/tokens it contains the tokens.zip (extracted) that moomarc posted recently. If anyone would like to maintain the tokens folder, I will make ftp access.
I don't mind maintaining it. The if I ever get to finishing the pet tokens I can add it directly.
-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 Doublestrike » 10 Oct 2011, 23:57

Rob Cashwalker wrote:I think anything that is not a card pic should just be moved to the images folder.
This is more of what I was saying...since pics aren't SVN controlled, but icons are, perhaps there's a better place for icons (and tokens?) and pics should be removed from SVN control.
---
A joke is a very serious thing.
User avatar
Doublestrike
UI Programmer
 
Posts: 715
Joined: 08 Aug 2011, 09:07
Location: Bali
Has thanked: 183 times
Been thanked: 161 times

Re: Token image downloading

Postby moomarc » 11 Oct 2011, 12:55

Doublestrike wrote:
Rob Cashwalker wrote:I think anything that is not a card pic should just be moved to the images folder.
This is more of what I was saying...since pics aren't SVN controlled, but icons are, perhaps there's a better place for icons (and tokens?) and pics should be removed from SVN control.
The tokens still have mostly CR artwork so at this stage I'd say leave them with the pics.

On another point, is there any reason why we don't have the quest opponent icons included in the pics download launched from in-game? It would make things so much easier for users if all they had to download from the forum was the actual beta build.
-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 slapshot5 » 11 Oct 2011, 13:01

moomarc wrote:On another point, is there any reason why we don't have the quest opponent icons included in the pics download launched from in-game? It would make things so much easier for users if all they had to download from the forum was the actual beta build.
I can add them when I restore the token download. I just need names and locations.

-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 moomarc » 11 Oct 2011, 13:06

slapshot5 wrote:
moomarc wrote:On another point, is there any reason why we don't have the quest opponent icons included in the pics download launched from in-game? It would make things so much easier for users if all they had to download from the forum was the actual beta build.
I can add them when I restore the token download. I just need names and locations.

-slapshot5
I should be able to host them on my domain. That should make life a bit easier for Rob.

Edit: Argh! Can't access the downloads for the opponent icons, the boosters or any of the mediafire downloads in fact, so I can't get the images. Keeps giving a connection error although mediafire itself is fine. So as soon as I manage to get the images I'll host them for you to link to.
-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 slapshot5 » 19 Oct 2011, 12:48

What do people think for an implementation? I'm hesitant to put the quest opponent icons and booster images in the "Download Set LQ Pics" and "Download LQ Pics" options. Since those are only in quest (right?), I feel there should be some kind of in-game downloading within quest mode for those. Personally, I never use Quest, so I don't really need these.

Or, they can be added to the normal LQ downloaders, and I can change the name to "Download In-Game Images" or something like that.

Thoughts?

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

Next

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 15 guests

Main Menu

User Menu

Our Partners


Who is online

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

Login Form