It is currently 11 Sep 2025, 16:29
   
Text Size

So I got a little sidetracked... again.

Post MTG Forge Related Programming Questions Here

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

Re: So I got a little sidetracked... again.

Postby Hellfish » 12 May 2012, 22:33

Sloth wrote:I'm currently testing the branch and Necrotic Ooze was working as expected with Brain Weevil. =D>

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?
Sweet. And you've been hard at work, I see. Thanks! :D

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
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: So I got a little sidetracked... again.

Postby Hellfish » 13 May 2012, 14:50

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.
Abyssal Hunter, Copper-Leaf Angel and Painbringer in the branch were converted for testing purposes.
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: So I got a little sidetracked... again.

Postby 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.
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: So I got a little sidetracked... again.

Postby ArsenalNut » 24 May 2012, 14:03

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.
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.
So many cards, so little time
User avatar
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.

Postby 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
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: So I got a little sidetracked... again.

Postby moomarc » 24 May 2012, 19:26

Hellfish wrote:Thanks for the assist! I'mma start cleaning up and adding the References parameter.
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.
-Marc
User avatar
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.

Postby 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
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: So I got a little sidetracked... again.

Postby 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. =D>

I'm just finishing up some work then will check out the branch and start at Z.
-Marc
User avatar
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.

Postby 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.
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: So I got a little sidetracked... again.

Postby 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.
-Marc
User avatar
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.

Postby 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
User avatar
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.

Postby Hellfish » 26 May 2012, 11:17

moomarc wrote: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?
Good catch, that's an oversight. :oops:

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.
etbCounter:X is an issue all it's own that I hope to get a handle on before the weekend is out. :)
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: So I got a little sidetracked... again.

Postby 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
User avatar
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.

Postby 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
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: So I got a little sidetracked... again.

Postby Hellfish » 06 Jun 2012, 10:00

Hey, Marc, I was probably a bit unclear about where References$ is needed, sorry about that :oops:

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
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

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 34 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 34 users online :: 0 registered, 0 hidden and 34 guests (based on users active over the past 10 minutes)
Most users ever online was 7967 on 09 Sep 2025, 23:08

Users browsing this forum: No registered users and 34 guests

Login Form