It is currently 11 Sep 2025, 19:27
   
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 moomarc » 06 Jun 2012, 15:34

Hellfish wrote: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.
Not a problem. I should have asked about the condition/isPresent/checkSvar stuff. I just figured that if the reference to an svar had to have the Referenced param then they'd need it too 8-[ I'm just glad I could help out with some of the more brain-numbing work. Unfortunately (well fortunately for me I guess) I just landed a massive job that's going to keep me busy for the next few weeks, and that's on top of another potential job that'll keep my pc busy for a week solid doing some intense render work. So I doubt I'll be able to contribute enough to be helpful, but at least my bond repayment won't bounce =D>
-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 » 10 Jun 2012, 07:12

I'll echo that "Not a problem" ;) Also, thanks,every little bit helps :)
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 Sloth » 10 Jun 2012, 09:55

Are we finished? Is it time for a merge?
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

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

Postby Hellfish » 10 Jun 2012, 10:03

Hah, ninja commits. Thanks, Sloth!

I think we're done with adding References$. :D The only question is wether or not to wait until after tomorrows beta to merge. I'm fairly confident the system'll do fine but maybe it's better to keep it limited to snapshot builds before it's big debut.
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 Sloth » 10 Jun 2012, 10:10

Yes, maybe it's better to wait until the next beta. I will search for some missing pieces in the meantime.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

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

Postby Hellfish » 11 Jun 2012, 17:39

Whoop Whoop, merging!
EDIT: Looks like it's gonna take a while #-o
EDIT: Or not. This is hell on a mobile broadband :S Take 2 tomorrow probably.
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 » 12 Jun 2012, 22:50

And things should be good! I'll give it a while to verify everythings green before deleting the branch,though. Had to pull a bit of a stunt to make it, but it seems okay :D
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 » 14 Jun 2012, 23:49

Hellfish wrote:And things should be good! I'll give it a while to verify everythings green before deleting the branch,though. Had to pull a bit of a stunt to make it, but it seems okay :D
I don't see any of the new cards in the Trunk, but I can find them in the branch. Did you do this on purpose?
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 » 15 Jun 2012, 09:14

Oh yeah...Might be a good idea to actually add the cards to the project :oops: Will fix tonight!
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 » 18 Jun 2012, 14:25

I was looking through the code changes for the ability copiers. I noticed that mana abilities are not being copied. The mana abilities are kept in a separate array list from the activated abilities.
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 » 18 Jun 2012, 18:02

Yeah they are, I'm positive. :) They copy all AbilityActivated's of Card.getSpellAbilities() which sums ordinary and mana abilities into a single list.

Also, Fyndhorn Elder was one of my Havengul Lich test cases, so I'm doubly positive. ;)
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 » 18 Jun 2012, 19:09

Hellfish wrote:Yeah they are, I'm positive. :) They copy all AbilityActivated's of Card.getSpellAbilities() which sums ordinary and mana abilities into a single list.

Also, Fyndhorn Elder was one of my Havengul Lich test cases, so I'm doubly positive. ;)
I tested Experiment Kraj and Llanowar Elves. The Experiment Kraj didn't get the mana ability after I put a p1p1 counter on Llanowar Elves. I was working in my CloneFix branch after I merged the lastest Trunk changes though. I'll test again in a clean Trunk workspace.
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 » 18 Jun 2012, 19:30

On second thoughts, there *is* something funky going on... Thanks for bringing it to my attention :shock:

EDIT: Found it. As of r15928, the GainsAbilitiesOf parameter of continuous static abilities gained the ability to affect other cards than the host card via Affected$. So I added Affected$ to the other abilitystealers. "Self" != "Card.Self" though.. They didn't steal anything at all! #-o

Thanks for the report!
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

Previous

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 36 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 36 users online :: 0 registered, 0 hidden and 36 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 36 guests

Login Form