So I got a little sidetracked... again.
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
58 posts
• Page 3 of 4 • 1, 2, 3, 4
Re: So I got a little sidetracked... again.
by Hellfish » 12 May 2012, 22:33
Sweet. And you've been hard at work, I see. Thanks!Sloth wrote:I'm currently testing the branch and Necrotic Ooze was working as expected with Brain Weevil.
So the big task to do is adding "References$ XY" to all activated abilities that use SVars with Count. Are there any other unsolved problems we can help with/think about?

Yep, that's the big bit. Ways to make the system more elegant is always nice too, of course. I'd like to make the code in StaticAbilityContinuous more in-line with how the other static ability-granting works.Maybe rework Costs to avoid the wart that is "Cost.setSpellAbility()" but that might be too much work for too little gain.
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: So I got a little sidetracked... again.
by Hellfish » 13 May 2012, 14:50
Abyssal Hunter, Copper-Leaf Angel and Painbringer in the branch were converted for testing purposes.ArsenalNut wrote:I haven't given up on the script idea yet. I don't really understand the changes to the syntax you're making yet. I want to see some examples before I can really decide if a script is worth the effort.
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: So I got a little sidetracked... again.
by Hellfish » 24 May 2012, 06:07
I had a little time yesterday and was going to try to merge in trunk changes but I could not for the life of me commit the changes made.. There were conflicts(not unexpected, especially in AbilityMana) that I managed to resolve but on commit Subclipse complained about conflicts on the res/Images folder that I can't seem to resolve.(There was no mention of this conflict in the merge report,either) Will try again this weekend, if nothing else.
EDIT:Welp,now I know about tree conflicts...Take 2 tonight possibly.
EDIT:Welp,now I know about tree conflicts...Take 2 tonight possibly.
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: So I got a little sidetracked... again.
by ArsenalNut » 24 May 2012, 14:03
I used TortoiseSVN to merge the Trunk changes r15523-r15685 into AbilityWork branch. It's got a nice interface to handle conflicts as they pop up during a merge. I tested Experimental Kraj and it seemed to work.Hellfish wrote:I had a little time yesterday and was going to try to merge in trunk changes but I could not for the life of me commit the changes made.. There were conflicts(not unexpected, especially in AbilityMana) that I managed to resolve but on commit Subclipse complained about conflicts on the res/Images folder that I can't seem to resolve.(There was no mention of this conflict in the merge report,either) Will try again this weekend, if nothing else.
EDIT:Welp,now I know about tree conflicts...Take 2 tonight possibly.
So many cards, so little time
-
ArsenalNut - Posts: 512
- Joined: 08 Jul 2011, 03:49
- Has thanked: 27 times
- Been thanked: 121 times
Re: So I got a little sidetracked... again.
by Hellfish » 24 May 2012, 18:36
Thanks for the assist! I'mma start cleaning up and adding the References parameter.
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: So I got a little sidetracked... again.
by moomarc » 24 May 2012, 19:26
Do you still need to convert hardcoded X svars to fetching arbitrary svars, or did the final system find a way around those issues? I have an idea what I'm doing there now after making the change for ActivationLimit so might be able to help.Hellfish wrote:Thanks for the assist! I'mma start cleaning up and adding the References parameter.
-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: So I got a little sidetracked... again.
by Hellfish » 24 May 2012, 20:11
Not sure what you mean. What's needed for right now is adding the References$ parameter to all card scripts where an ability references an XCount SVar. I just committed all 'A' cards, you can check one of those out to see what I mean.

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: So I got a little sidetracked... again.
by moomarc » 25 May 2012, 05:17
Apologies for my poor explanation, what I was talking about was allowing the various parameters that call xCount (such as NumDmg etc) to use arbitrary names instead of just X (or other hardcoded ones like MaxDmg), so that the svars could all have unique names. I'm guessing its not an issue anymore though seeing as you're adding all the References already.
I'm just finishing up some work then will check out the branch and start at Z.

I'm just finishing up some work then will check out the branch and start at Z.
-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: So I got a little sidetracked... again.
by Hellfish » 25 May 2012, 05:57
Oh,that. 
That shouldn't be an issue since the References parameter causes the svars to be stored and grabbed from the SpellAbility rather than the Card so each copy of an ability with assistant svars carreis those svars on itself rather than copying them to Experiment Kraj or whatever and possibly overwriting similarly named svars.
Thanks (and thanks to Sloth) for the assistance, it is mind-numbing work.

That shouldn't be an issue since the References parameter causes the svars to be stored and grabbed from the SpellAbility rather than the Card so each copy of an ability with assistant svars carreis those svars on itself rather than copying them to Experiment Kraj or whatever and possibly overwriting similarly named svars.
Thanks (and thanks to Sloth) for the assistance, it is mind-numbing work.
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: So I got a little sidetracked... again.
by moomarc » 26 May 2012, 08:32
Seeing as Sloth covered X-Z already I've jumped in at M. Came across a situation I'm not sure how to handle. Do etbCounter:X keywords need a References$X or does it fall outside of the purpose of these?
Edit: Nevermind. I see Balduvian Hydra doesn't have it so I'll do likewise.
Edit: Nevermind. I see Balduvian Hydra doesn't have it so I'll do likewise.
-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: So I got a little sidetracked... again.
by moomarc » 26 May 2012, 09:16
Is there a reason why cards like Avalanche only reference X, not MaxTgts as well? Is it because TargetMax$MaxTgts is hardcoded to grab that specific svar, or was it just an oversight?
-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: So I got a little sidetracked... again.
by Hellfish » 26 May 2012, 11:17
Good catch, that's an oversight.

etbCounter:X is an issue all it's own that I hope to get a handle on before the weekend is out.moomarc wrote:Seeing as Sloth covered X-Z already I've jumped in at M. Came across a situation I'm not sure how to handle. Do etbCounter:X keywords need a References$X or does it fall outside of the purpose of these?
Edit: Nevermind. I see Balduvian Hydra doesn't have it so I'll do likewise.

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: So I got a little sidetracked... again.
by moomarc » 29 May 2012, 06:46
Hellfish, for cards like Minions' Murmurs where X is referenced by the main ability and it's subability, do we need to add the references param to both lines or just the root ability?
-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: So I got a little sidetracked... again.
by Hellfish » 29 May 2012, 07:27
Just the main ability would be logical, but all of the chain would be clearer, maybe? Right now the entire chain needs the parameter,though I'm open to change that.
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: So I got a little sidetracked... again.
by Hellfish » 06 Jun 2012, 10:00
Hey, Marc, I was probably a bit unclear about where References$ is needed, sorry about that
Static abilities and Trigger lines do not need References$ (The ability part of triggers do, though), only AB,SP and DB abilities do, including those inside SVars.
Gonna merge in the trunk changes then keep on trucking.

Static abilities and Trigger lines do not need References$ (The ability part of triggers do, though), only AB,SP and DB abilities do, including those inside SVars.
Gonna merge in the trunk changes then keep on trucking.
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
58 posts
• Page 3 of 4 • 1, 2, 3, 4
Who is online
Users browsing this forum: No registered users and 55 guests