Page 1 of 2

Forge version 1.1.7

PostPosted: 30 Oct 2011, 22:23
by Chris H.
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?

Re: Forge version 1.1.7

PostPosted: 30 Oct 2011, 22:35
by friarsol
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.

Re: Forge version 1.1.7

PostPosted: 31 Oct 2011, 02:11
by Chris H.
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.

Re: Forge version 1.1.7

PostPosted: 31 Oct 2011, 03:30
by Rob Cashwalker
I just checked the archives from the Pictures team. The flipped cards are present, following the flipped name.

Re: Forge version 1.1.7

PostPosted: 31 Oct 2011, 13:21
by Chris H.
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.

Re: Forge version 1.1.7

PostPosted: 31 Oct 2011, 17:43
by Rob Cashwalker
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.

Re: Forge version 1.1.7

PostPosted: 31 Oct 2011, 17:53
by Chris H.
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

Re: Forge version 1.1.7

PostPosted: 31 Oct 2011, 20:18
by Hellfish
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.

Re: Forge version 1.1.7

PostPosted: 02 Nov 2011, 19:18
by Sloth
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.

Re: Forge version 1.1.7

PostPosted: 02 Nov 2011, 21:13
by Chris H.
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.

Re: Forge version 1.1.7

PostPosted: 02 Nov 2011, 21:56
by Sloth
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.

Re: Forge version 1.1.7

PostPosted: 04 Nov 2011, 11:22
by Chris H.
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.

Re: Forge version 1.1.7

PostPosted: 04 Nov 2011, 11:38
by Sloth
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?

Re: Forge version 1.1.7

PostPosted: 04 Nov 2011, 12:06
by friarsol
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.

Re: Forge version 1.1.7

PostPosted: 04 Nov 2011, 12:50
by Chris H.
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.