It is currently 07 Jul 2021, 23:42
   
Text Size

Images by Set

Post MTG Forge Related Programming Questions Here

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

Re: Images by Set

Postby friarsol » 22 Nov 2010, 20:50

Alright updated the Script and pushing the 75 timeshifted cards with updated SetInfo now. Should have just done that before you started updating all the cards.
friarsol
Global Moderator
 
Posts: 7575
Joined: 15 May 2010, 04:20
Has thanked: 242 times
Been thanked: 956 times

Re: Images by Set

Postby Chris H. » 22 Nov 2010, 23:48

I attempted to update my local copy but at modem dial up speed .... ouch, it was going to take me far too long. So I am re-downloading the entire project and that appears to be much faster.
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: Images by Set

Postby Rob Cashwalker » 23 Nov 2010, 02:39

LOL... Sorry...
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: Images by Set

Postby slapshot5 » 23 Nov 2010, 04:37

I wasn't going to wait for that either. I've got DSL, but I ended up just nuking cardsfolder and re-syncing it.
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

Re: Images by Set

Postby Rob Cashwalker » 23 Nov 2010, 04:40

It took me almost 10 minutes to sync up my laptop at home.
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: Images by Set

Postby friarsol » 23 Nov 2010, 21:00

I just noticed an issue where cards from Scars of Mirrodin were also being marked as being from Mirrodin. I thought this bug wasn't around when Rob was uploading but apparently it was. I just fixed all those cards and the few that were in both should now have fixed images.
friarsol
Global Moderator
 
Posts: 7575
Joined: 15 May 2010, 04:20
Has thanked: 242 times
Been thanked: 956 times

Re: Images by Set

Postby slapshot5 » 23 Nov 2010, 21:19

I just noticed nothing got marked as being in Alpha. Is that expected since Alpha and Beta were largely the same? Or not?

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

Re: Images by Set

Postby PhoenixAvenger » 23 Nov 2010, 21:23

Just so I know what's going on, how should my res/pics/ folder look like from now on? From how I think Rob set it up, the card images should now be in set-specific folders by 3-character set code. If this is in error, please tell me how it should be set up. (I didn't bother using the auto-download with the latest revision since I have all the HQ picture zips on my computer already.)

Furthermore, if I want to include a picture that isn't part of the sets auto-recognized by Forge (say, the Garruk v. Liliana duel deck for Rancor), could I set up a res/pics/GVL folder and include the appropriate line in rancor.txt and have that pic show up? Or does the python script need to be updated for something like that?
User avatar
PhoenixAvenger
 
Posts: 62
Joined: 31 Aug 2010, 23:34
Location: NorCal
Has thanked: 0 time
Been thanked: 0 time

Re: Images by Set

Postby Chris H. » 23 Nov 2010, 21:46

I guess that we should consider releasing another beta sometime in the near future. I understand that Rob is busy, but I am hoping that he could put together a short explanation on how to use the new sets feature. I will include it in the change list for the next beta.
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: Images by Set

Postby Rob Cashwalker » 23 Nov 2010, 21:55

There's a Image Base folder, by default {ForgeFolder}/res/pics, but you can change that in the forge.properties file. Under that, the three-letter set code as a folder, then the card_name.jpg. I'm giving some thought to also try the alternate mostly 2-letter code that the HQ archives use, if the other doesn't exist..

In either case, if the set picture can't be found, it also tries in the image base folder, as if LQ.

Right now, there's no support for promo sets or duel decks. The primary impetus is to enhance the booster pack generation, (for draft and quest) with pictures being a somewhat secondary benefit.
At the moment, it randomly assigns a set membership when launching a new game. I'll have to find a way to persist that sort of information in deck files, so that it would be worth it to be able to specify the set yourself.
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: Images by Set

Postby friarsol » 23 Nov 2010, 22:01

slapshot5 wrote:I just noticed nothing got marked as being in Alpha. Is that expected since Alpha and Beta were largely the same? Or not?

-slapshot5
Yep, mostly that they are both "Limited/1st edition" and that Beta fixed a handful of issues that Alpha had including missing cards and rounded corners. It wouldn't be horrendous to add Alpha, but there isn't really anything gained by doing so.
friarsol
Global Moderator
 
Posts: 7575
Joined: 15 May 2010, 04:20
Has thanked: 242 times
Been thanked: 956 times

Re: Images by Set

Postby PhoenixAvenger » 23 Nov 2010, 22:41

Rob Cashwalker wrote:There's a Image Base folder, by default {ForgeFolder}/res/pics, but you can change that in the forge.properties file. Under that, the three-letter set code as a folder, then the card_name.jpg.
Okay, that's how I thought it worked. Thanks for clarifying, Rob.

Also, that's interesting about the folder assignment (I assume you meant main.properties, though, as that one contains the image folder key). Say I have my unofficial beta version in C:\Games\MTGForge\ and the auto-build SVN version in C:\Games\MTGForge\forge\. How would I write the key so that the SVN version grabs the requisite card pics from the beta version's res\pics\ folder?

EDIT: Never mind that question, I figured it out. (../../res/pics, btw.) Go CECS 174...

Rob Cashwalker wrote:Right now, there's no support for promo sets or duel decks. The primary impetus is to enhance the booster pack generation, (for draft and quest) with pictures being a somewhat secondary benefit.
At the moment, it randomly assigns a set membership when launching a new game. I'll have to find a way to persist that sort of information in deck files, so that it would be worth it to be able to specify the set yourself.
All right, that's what I feared. So the solution for the time being would then have to be setting the alternate pics as rancor1.jpg, rancor2.jpg, etc. in the pics\ULG\ folder, and similar for other cards. Thanks for the heads-up, and keep us posted for when that support does come.
Last edited by PhoenixAvenger on 24 Nov 2010, 04:22, edited 1 time in total.
User avatar
PhoenixAvenger
 
Posts: 62
Joined: 31 Aug 2010, 23:34
Location: NorCal
Has thanked: 0 time
Been thanked: 0 time

Re: Images by Set

Postby Chris H. » 23 Nov 2010, 22:54

Thank you Rob. I pasted your comments into the change file for the next beta. This should help the user base in using this new feature.

Should we merge into the /res/pics/ folder in the SVN a number of empty folders that are properly named for each of the sets? This might help to limit the amount of assistance that we have to give to get people up to date.
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: Images by Set

Postby zerker2000 » 23 Nov 2010, 22:58

Chris H. wrote:I guess that we should consider releasing another beta sometime in the near future. I understand that Rob is busy, but I am hoping that he could put together a short explanation on how to use the new sets feature. I will include it in the change list for the next beta.
I'm pretty sure the beta should be released on the 30th/31st, so that everything coded by then is usable for the ODBC.
O forest, hold thy wand'ring son
Though fears assail the door.
O foliage, cloak thy ravaged one
In vestments cut for war.


--Eladamri, the Seed of Freyalise
zerker2000
Programmer
 
Posts: 569
Joined: 09 May 2009, 21:40
Location: South Pasadena, CA
Has thanked: 0 time
Been thanked: 0 time

Re: Images by Set

Postby Chris H. » 24 Nov 2010, 02:06

zerker2000 wrote:I'm pretty sure the beta should be released on the 30th/31st, so that everything coded by then is usable for the ODBC.
`
Thank you Zerker. I had forgotten about the cut off date for the deck contest. I hope that they will enjoy the next beta release. :D
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

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 8 guests


Who is online

In total there are 8 users online :: 0 registered, 0 hidden and 8 guests (based on users active over the past 10 minutes)
Most users ever online was 1922 on 07 Jun 2021, 06:01

Users browsing this forum: No registered users and 8 guests

Login Form