Implementing variants
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Implementing variants
by moomarc » 26 Nov 2012, 12:42
These should be fixed. Please let me know if there's still an issue or if you come across any other problem images. Generally it's caused by capitalization problems in the decrypted filenames (in this case capitalised Of in the circles and Ae instead of AE).Hellfish wrote:Also, unrelated, while you're working with the pic downloads, could you take a look at a few? They don't seem to want to download.
AEthertow [SHM - Shadowmoor]
Circle of Protection: Black [9ED - Core Set - Ninth Edition]
Circle of Protection: Red [9ED - Core Set - Ninth Edition]
-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: Implementing variants
by Max mtg » 26 Nov 2012, 12:57
I have also changed deck for commander. Hope it does not break your concepts
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: Implementing variants
by ZzzzSleep » 26 Nov 2012, 13:02
Wouldn't this code also catch Planeswalkers, as their card type contains the string "Plane"?Max mtg wrote:There's another source of problems:
- Code: Select all
public boolean isTraditional() {
return !(getType().contains("Vanguard") || getType().contains("Scheme") || getType().contains("Plane"));
}
Re: Implementing variants
by moomarc » 27 Nov 2012, 11:31
Thanks for those fixes Sloth. Everything seems to be in working order for Vanguard now. I propose that, if we want to include it in Friday's beta, we need to merge tonight so that there's at least two daily builds that see a wider test group. I don't see any major issues other than the occasional parameter on an effect that Hellfish missed so that they work from the command zone. There are also probably a few new ones in trunk that need the activation/trigger/effectZone changed to Command.
-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: Implementing variants
by Hellfish » 27 Nov 2012, 12:43
Agreed, feel free to merge (You can do it!
) .Otherwise I'll do it after work in ~4 hrs.

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: Implementing variants
by moomarc » 27 Nov 2012, 12:48
I'm afraid I'm going to duck my head shamefully and wait until you can do it. Just two conflicts when I merged the trunk in last time was enough to get me on edge. Then the debacle that followed... no-sir-ee. I'll stick to the bit's I'm more comfortable with and slowly work up to project-wide merges.Hellfish wrote:Agreed, feel free to merge (You can do it!) .Otherwise I'll do it after work in ~4 hrs.


-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: Implementing variants
by moomarc » 27 Nov 2012, 13:28
Just spotted one small oversight. Any affect that exiled itself (generally for 'next time' events) the Origing needed to be changed to Command instead of Battlefield. Made life easier with all scripts using that action using the same svar name.
(I checked for the same pattern anyway but nothing came up).
Busy committing... [DONE]
No more commits to that branch from me until after the merge.

Busy committing... [DONE]
No more commits to that branch from me until after the merge.
-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: Implementing variants
by moomarc » 27 Nov 2012, 15:39
Here's a mockup script for Planechase. I'm not sure how much will be handled by standard code, so I just put everything in the script:
I'd recommend looking through the Phenomenon cards from PC2 because some of them seem likely to cause trouble if not taken into account early in the variant's development.
- Academy at Tolaria West | Open
- Code: Select all
Name:Academy at Tolaria West
ManaCost:no cost
Types:Plane Dominaria
Text:no text
T:Mode$ Phase | Phase$ End of Turn | ValidPlayer$ You | TriggerZones$ Command | IsPresent$ Card.YouCtrl | PresentZone$ Hand | PresentCompare$ EQ0 | Execute$ AcademicDraw | TriggerDescription$ At the beginning of your end step, if you have no cards in hand, draw seven cards.
SVar:AcademicDraw:AB$ Draw | Cost$ 0 | Defined$ You | NumCards$ 7
T:Mode$ PlanarDice | Result$ Chaos | ValidPlayer$ You | TriggerZones$ Command | Execute$ RolledChaos | TriggerDescription$ Whenever you roll Chaos, discard your hand.
SVar:RolledChaos:AB$ Discard | Cost$ 0 | Mode$ Hand | Defined$ You
T:Mode$ PlanarDice | Result$ Planeswalk | ValidPlayer$ You | TriggerZones$ Command | Execute$ RolledChaos | Secondary$ True | TriggerDescription$ Whenever you roll Planeswalk, put this card on the bottom of its owner's planar deck face down, then move the top card of your planar deck off that planar deck and turn it face up
SVar:RolledWalk:AB$ Planeswalk | Cost$ 0 | Defined$ You
A:AB$ RollPlanarDice | Cost$ RolledThisTurn | SorcerySpeed$ True | ActivationZone$ Command | SpellDescription$ Roll the planar dice.
SVar:RolledThisTurn:Count$RolledThisTurn
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/academy_at_tolaria_west.jpg
SetInfo:HOP|Common|http://magiccards.info/extras/plane/planechase/academy-at-tolaria-west.jpg
End
I'd recommend looking through the Phenomenon cards from PC2 because some of them seem likely to cause trouble if not taken into account early in the variant's development.
-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: Implementing variants
by Hellfish » 27 Nov 2012, 21:36
4 hrs my foot, real life,slow broadband and file conflicts up the wazoo saw to that
But I'm on it now.
Thanks for the pointers, Marc. We'll see if I go for the schemes or planes next.

Thanks for the pointers, Marc. We'll see if I go for the schemes or planes next.

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: Implementing variants
by Hellfish » 27 Nov 2012, 21:41
Almost missed this,sorryMax mtg wrote:I have also changed deck for commander. Hope it does not break your concepts

No no, that's fine. I have nothing set in stone for Commander yet.
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: Implementing variants
by friarsol » 28 Nov 2012, 01:03
Thoughts on Vanguard (since it's my first play through):
Vanguards should be written in the Log
Sisay should not appear for AI.
(Will edit if I get some more)
We really should have a Quest Challenge use Vanguard
Edit: This isn't really Vanguard specific, but is more noticeable with Vanguard, maybe Hovering on the Hand icon should list a Player's Max Hand Size.
The tabs should be renamed. Player 1 should be Human, Players 2-8 Should say Computer(X-1)
Vanguards should be written in the Log
Sisay should not appear for AI.
(Will edit if I get some more)
We really should have a Quest Challenge use Vanguard

Edit: This isn't really Vanguard specific, but is more noticeable with Vanguard, maybe Hovering on the Hand icon should list a Player's Max Hand Size.
The tabs should be renamed. Player 1 should be Human, Players 2-8 Should say Computer(X-1)
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Implementing variants
by moomarc » 28 Nov 2012, 07:45
I've adjusted the tab labels so that they read Human, Opponent 1, Opponent 2...friarsol wrote:Thoughts on Vanguard (since it's my first play through):
Vanguards should be written in the Log
Sisay should not appear for AI.
(Will edit if I get some more)
We really should have a Quest Challenge use Vanguard
Edit: This isn't really Vanguard specific, but is more noticeable with Vanguard, maybe Hovering on the Hand icon should list a Player's Max Hand Size.
The tabs should be renamed. Player 1 should be Human, Players 2-8 Should say Computer(X-1)
I figured opponent was more flexible for later network play (although I suppose it'll probably have to change a bunch anyway)
-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: Implementing variants
by Hellfish » 28 Nov 2012, 08:17
Thanks, Marc, but the changeTabs method will need the same tweak otherwise the tabs will change name when they are readded.
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: Implementing variants
by moomarc » 28 Nov 2012, 08:20
Thanks for pointing it out. Will change that and commit with the updated tooltip for the Hand icon.Hellfish wrote:Thanks, Marc, but the changeTabs method will need the same tweak otherwise the tabs will change name when they are readded.
EDIT: Both done! The tooltip doesn't seem to update straight away, but that should be fine.
-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: Implementing variants
by Chris H. » 28 Nov 2012, 18:17
I have a local copy of the CCGH HQ avatar pics on my hd. I removed the border and then scaled the pics down to the LQ size of 200 x 285 pixels and saved them at 100%.
Marc, can you take a look at these as they may be better than a few of the pics located at cardforge and you may want to use mine instead:
Marc, can you take a look at these as they may be better than a few of the pics located at cardforge and you may want to use mine instead:
- Attachments
-
vanguard_avatars.zip
- (1.11 MiB) Downloaded 418 times
-
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
Who is online
Users browsing this forum: No registered users and 54 guests