It is currently 11 Sep 2025, 14:22
   
Text Size

About sealed magic products images

Post MTG Forge Related Programming Questions Here

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

About sealed magic products images

Postby Max mtg » 16 Mar 2012, 07:23

I've gathered all sealed products images in a single directory /res/pics_product.
I think these images should not be there in SVN and should be kept as downloadable content.

What is needed to set up that downloadable resource? As I can guess, there should be a folder on cardforge.org to download from, and there should be a menu item to initiate the download, and there should be code to perform the download, and there should be a lsit of pictures along with their URLS.

What do we have of these?
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: About sealed magic products images

Postby moomarc » 16 Mar 2012, 08:06

I'll handle the upload to cardforge.org and a list of the dl urls. I'll handle it like the quest avatar list (where it just hast the url) as opposed to the token list which lists url and a name for the downloaded file. That way whatever the file is named on the server is what it'll download as.

Then it'll probably be easier to link it to the button that's already there for downloading quest content.
-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: About sealed magic products images

Postby moomarc » 17 Mar 2012, 12:22

I've uploaded the images from pics_product and put product-images.txt (the url links list) in /res folder. Move it wherever it would be most suitable. I only included precons,tournamentpacks and fatpacks in the url list because boosters already have a separate list (/quest/booster-images.txt), so if all the sealed products are to be handled from one list, copy the contents of that file first. I have a feeling though that the others will have to be split into separate files instead so that they will be downloaded to their respective folders.

I'll hand over now to whoever wants to finalize the download setup. (I stay away from the bits of code that actually write files to disk)
-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: About sealed magic products images

Postby Chris H. » 17 Mar 2012, 12:44

Hey Marc, can I ask for a favor? :)

Can you check out the archives include with these messages and merge in any better or missing pics into the product images folder?

It might be nice to get a full set of pics together before these pics are moved out of the SVN and into cardforge.

http://www.slightlymagic.net/forum/viewtopic.php?f=52&t=6565&view=unread#p84181

http://www.slightlymagic.net/forum/viewtopic.php?f=52&t=6565&view=unread#p84236

http://www.slightlymagic.net/forum/viewtopic.php?f=26&t=6577&p=84468&hilit=booster.7z#p84369
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: About sealed magic products images

Postby moomarc » 17 Mar 2012, 13:50

Can't guarantee that I'll get to it during the rest of the weekend, but otherwise not a problem. I'll post a note here when its done.
-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: About sealed magic products images

Postby Xitax » 17 Mar 2012, 18:26

I'd like to throw my tournament packs into the running - I've found semi-isometric pictures for all of them and I personally prefer that.

MMQ is still ugly, but I can't find any better!
Attachments
tournamentpacks_3.zip
(515.69 KiB) Downloaded 196 times
Xitax
 
Posts: 918
Joined: 16 May 2010, 17:19
Has thanked: 183 times
Been thanked: 133 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 26 guests

Main Menu

User Menu

Our Partners


Who is online

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

Login Form