Token image downloading
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
43 posts
• Page 1 of 3 • 1, 2, 3
Token image downloading
by 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
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
by 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.
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
by slapshot5 » 08 Oct 2011, 23:34
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.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.
-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
by 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.
I like to test with card pictures, but every time I go to commit SVN tries to commit all my pictures

Last edited by Doublestrike on 10 Oct 2011, 06:40, edited 1 time in total.
---
A joke is a very serious thing.
A joke is a very serious thing.
-
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
by friarsol » 10 Oct 2011, 03:37
Why not just add them to your svn:ignore?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 picturesso 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.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Token image downloading
by 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.
A joke is a very serious thing.
-
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
by 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. 

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
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
-
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
by friarsol » 10 Oct 2011, 12:01
Not exactly hacky, considering Forge crashes if those icons don't exist.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.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Token image downloading
by 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.
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.
-
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
by moomarc » 10 Oct 2011, 17:31
I don't mind maintaining it. The if I ever get to finishing the pet tokens I can add it directly.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.
-Marc
-
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
by Doublestrike » 10 Oct 2011, 23:57
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.Rob Cashwalker wrote:I think anything that is not a card pic should just be moved to the images folder.
---
A joke is a very serious thing.
A joke is a very serious thing.
-
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
by moomarc » 11 Oct 2011, 12:55
The tokens still have mostly CR artwork so at this stage I'd say leave them with the pics.Doublestrike wrote: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.Rob Cashwalker wrote:I think anything that is not a card pic should just be moved to the images folder.
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
-
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
by slapshot5 » 11 Oct 2011, 13:01
I can add them when I restore the token download. I just need names and locations.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.
-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
by moomarc » 11 Oct 2011, 13:06
I should be able to host them on my domain. That should make life a bit easier for Rob.slapshot5 wrote:I can add them when I restore the token download. I just need names and locations.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.
-slapshot5
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
-
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
by 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
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
43 posts
• Page 1 of 3 • 1, 2, 3
Who is online
Users browsing this forum: No registered users and 15 guests