It is currently 29 Oct 2025, 12:27
   
Text Size

Forge version 1.1.7

Post MTG Forge Related Programming Questions Here

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

Forge version 1.1.7

Postby Chris H. » 30 Oct 2011, 22:23

I was considering releasing a new beta this upcoming Friday as it will then be almost three weeks since the last beta.

Is there anything that we need to finish before we release the next beta? Has anyone come up with a good idea on how to handle the Flipped LQ pics since they appear not to be available on the normal site that we use?
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: Forge version 1.1.7

Postby friarsol » 30 Oct 2011, 22:35

The Flipped LQ pics don't exist because it's just the same card rotated 180 degrees. Shouldn't we just be able to use the same one and just rotate it.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Forge version 1.1.7

Postby Chris H. » 31 Oct 2011, 02:11

friarsol wrote:The Flipped LQ pics don't exist because it's just the same card rotated 180 degrees. Shouldn't we just be able to use the same one and just rotate it.
`
The easiest solution might be to just copy the URL that appears in the set info line and then paste it into the SVar:Picture line. :mrgreen:

Unfortunately, the pics on magiccards.info are 312 x 445 pixels and are therefore larger.

I think that the HQ archives include both the flipped and the un-flipped versions of these cards. There may already be a copy on the cardforge server. And these cards are closer to the 200 x 285 pixel size.
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: Forge version 1.1.7

Postby Rob Cashwalker » 31 Oct 2011, 03:30

I just checked the archives from the Pictures team. The flipped cards are present, following the flipped name.
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: Forge version 1.1.7

Postby Chris H. » 31 Oct 2011, 13:21

Rob Cashwalker wrote:I just checked the archives from the Pictures team. The flipped cards are present, following the flipped name.
`
Yep, I checked the BOK folder that was downloaded from cardforge. The flipped version of Budoka Pupil is available but the pic is named "Ichiga, Who Topples Oaks.full.jpg".

How does the forge app handle downloading individual LQ card pics? Does the code create the correct file name or does it just use the name found at the end of the SVar:Picture: line in the card file.

I'm wondering if something like this could be used in the "budoka_pupil_ichiga_who_topples_oaks.txt" card txt file:

"SVar:Picture:" + cardforge dir path + "Ichiga, Who Topples Oaks.full.jpg"

Would the resulting jpg file in our res folder be named:

"ichiga_who_topples_oaks.jpg" ?

I suspect that this would work. The card txt file for Anaconda has the following:

SVar:Picture:http://resources.wizards.com/magic/cards/9ed/en-us/card83276.jpg

and this results in a pic file that is properly named.
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: Forge version 1.1.7

Postby Rob Cashwalker » 31 Oct 2011, 17:43

The SVar's are (last I knew) stored as a hashmap, where "SVar:MyName:Val" would use MyName as the key. The second instance of the SVar:Picture in the card file would overwrite the previous.

The download code would need to be altered to expect multiple pictures.
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: Forge version 1.1.7

Postby Chris H. » 31 Oct 2011, 17:53

Rob Cashwalker wrote:The SVar's are (last I knew) stored as a hashmap, where "SVar:MyName:Val" would use MyName as the key. The second instance of the SVar:Picture in the card file would overwrite the previous.

The download code would need to be altered to expect multiple pictures.
`
Hellfish must have done some work in this area as the transform cards are downloading both pics OK. :) The example below is the "bloodline_keeper_lord_of_lineage.txt" file.

bloodline_keeper_lord_of_lineage.txt | Open
Name:Bloodline Keeper
ManaCost:2 B B
Types:Creature Vampire
Text:no text
PT:3/3
K:Flying
A:AB$Token | Cost$ T | TokenAmount$ 1 | TokenOwner$ You | TokenName$ Vampire | TokenColors$ Black | TokenTypes$ Creature,Vampire | TokenPower$ 2 | TokenToughness$ 2 | TokenKeywords$ Flying | SpellDescription$ Put a 2/2 black Vampire creature token with flying onto the battlefield.
A:AB$ChangeState | Cost$ B | Defined$ Self | CheckSVar$ X | SVarCompare$ GE5 | SpellDescription$ Transform CARDNAME.Activate this ability only if you control five or more Vampires.
SVar:X:Count$Valid Card.Vampire+YouCtrl
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/bloodline_keeper.jpg
AlternateMode:DoubleFaced
SetInfo:ISD|Rare|http://magiccards.info/scans/en/isd/90a.jpg
Oracle:Flying\n{T}: Put a 2/2 black Vampire creature token with flying onto the battlefield.\n{B}: Transform Bloodline Keeper. Activate this ability only if you control five or more Vampires.

ALTERNATE

Name:Lord of Lineage
ManaCost:no cost
Colors:black
Types:Creature Vampire
Text:no text
PT:5/5
K:Flying
S:Mode$ Continuous | Affected$ Creature.Vampire+Other+YouCtrl | AddPower$ 2 | AddToughness$ 2 | Description$ Other Vampire creatures you control get +2/+2.
A:AB$Token | Cost$ T | TokenAmount$ 1 | TokenOwner$ You | TokenName$ Vampire | TokenColors$ Black | TokenTypes$ Creature,Vampire | TokenPower$ 2 | TokenToughness$ 2 | TokenKeywords$ Flying | SpellDescription$ Put a 2/2 black Vampire creature token with flying onto the battlefield.
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/lord_of_lineage.jpg
SetInfo:ISD|Rare|http://magiccards.info/scans/en/isd/90b.jpg
Oracle:Other Vampire creatures you control get +2/+2.\n{T}: Put a 2/2 black Vampire creature token with flying onto the battlefield.

End
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: Forge version 1.1.7

Postby Hellfish » 31 Oct 2011, 20:18

The thing about multistate cards is, when the script parser hits the "ALTERNATE" line it gives a second CardCharacteristics object to the card in question. Each CardCharacteristics object has it's own SVar hashmap, that's how multistate cards can have two Picture SVars without any being overwritten.
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: Forge version 1.1.7

Postby Sloth » 02 Nov 2011, 19:18

Chris can you change the default size of the cards to small? There is still the issue with the multi block window that does not resize.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Forge version 1.1.7

Postby Chris H. » 02 Nov 2011, 21:13

Sloth wrote:Chris can you change the default size of the cards to small? There is still the issue with the multi block window that does not resize.
`
Just checked and the Mavin build and release script does not include my "forge.preferences" file as part of the archive.
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: Forge version 1.1.7

Postby Sloth » 02 Nov 2011, 21:56

Chris H. wrote:
Sloth wrote:Chris can you change the default size of the cards to small? There is still the issue with the multi block window that does not resize.
`
Just checked and the Mavin build and release script does not include my "forge.preferences" file as part of the archive.
Ok, I found out, how the default preferences are generated. Should be set now.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Forge version 1.1.7

Postby Chris H. » 04 Nov 2011, 11:22

A few issues came up and it looks like I will not be able to do a beta release until next week, Monday through Friday timeframe. As a compromise I did a daily build instead today.

Worst case scenario I will be able to do a beta release with a link in the beta message pointing to the archive with the new flipped card pics.

Best case scenario and I will be able to figure out how to move these pics to cardforge and make them available to download via the forge menu command.
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: Forge version 1.1.7

Postby Sloth » 04 Nov 2011, 11:38

Chris H. wrote:A few issues came up and it looks like I will not be able to do a beta release until next week, Monday through Friday timeframe. As a compromise I did a daily build instead today.

Worst case scenario I will be able to do a beta release with a link in the beta message pointing to the archive with the new flipped card pics.

Best case scenario and I will be able to figure out how to move these pics to cardforge and make them available to download via the forge menu command.
It works for the Innistrad cards, why is there a problem with the flip cards?
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Forge version 1.1.7

Postby friarsol » 04 Nov 2011, 12:06

Sloth wrote:
Chris H. wrote:A few issues came up and it looks like I will not be able to do a beta release until next week, Monday through Friday timeframe. As a compromise I did a daily build instead today.

Worst case scenario I will be able to do a beta release with a link in the beta message pointing to the archive with the new flipped card pics.

Best case scenario and I will be able to figure out how to move these pics to cardforge and make them available to download via the forge menu command.
It works for the Innistrad cards, why is there a problem with the flip cards?
I think there's an issue with the non-Set LQ Pics since there isn't any "flipped Url" that exists. We could just find out what the flipped URL is on cardforge and use that instead of the normal URL we would use.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Forge version 1.1.7

Postby Chris H. » 04 Nov 2011, 12:50

Sloth wrote:It works for the Innistrad cards, why is there a problem with the flip cards?
`
The flipped card variants from the Kamigawa sets are not available at the URL form:

Code: Select all
http://www.wizards.com/global/images/magic/general/
`
Why? I don't know. The Portal set pics are also missing from this URL. Some manager (point haired boss) made a decision I guess.
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

Next

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 13 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 13 users online :: 0 registered, 0 hidden and 13 guests (based on users active over the past 10 minutes)
Most users ever online was 9298 on 10 Oct 2025, 12:54

Users browsing this forum: No registered users and 13 guests

Login Form