It is currently 24 Jun 2025, 20:26
   
Text Size

SVN Bug Reports

Post MTG Forge Related Programming Questions Here

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

r10643: Master Apothecary: Split length of Cost$ Cost$ tapXT

Postby Braids » 11 Jul 2011, 22:59

Code: Select all
AbilityFactory Parsing Error in getAbility() : Split length of Cost$ Cost$ tapXType<1/Cleric> in Master Apothecary is not 2.

Version:
Forge -- official beta: $Date: 2011-07-02 00:20:39 -0400 (Sat, 02 Jul 2011) $, SVN revision: $Revision: 10300 $

OS: Windows XP Version: 5.1 Architecture: x86

Java Version: 1.6.0_21 Vendor: Sun Microsystems Inc.

Detailed error trace:
java.lang.RuntimeException: AbilityFactory Parsing Error in getAbility() : Split length of Cost$ Cost$ tapXType<1/Cleric> in Master Apothecary is not 2.
   at forge.card.abilityFactory.AbilityFactory.getMapParams(AbilityFactory.java:188)
   at forge.card.abilityFactory.AbilityFactory.getAbility(AbilityFactory.java:210)
   at forge.card.cardFactory.CardFactory.getCard2(CardFactory.java:823)
   at forge.card.cardFactory.CardFactory.getCard(CardFactory.java:373)
   at forge.card.cardFactory.CardFactory.<init>(CardFactory.java:105)
...
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. ;)
User avatar
Braids
Programmer
 
Posts: 556
Joined: 22 Jun 2011, 00:39
Location: Unknown. Hobby: Driving myself and others to constructive madness.
Has thanked: 1 time
Been thanked: 1 time

Re: r10643: Master Apothecary: Split length of Cost$ Cost$ t

Postby Chris H. » 11 Jul 2011, 23:09

Braids wrote:
Code: Select all
AbilityFactory Parsing Error in getAbility() : Split length of Cost$ Cost$ tapXType<1/Cleric> in Master Apothecary is not 2.

Version:
Forge -- official beta: $Date: 2011-07-02 00:20:39 -0400 (Sat, 02 Jul 2011) $, SVN revision: $Revision: 10300 $

OS: Windows XP Version: 5.1 Architecture: x86

Java Version: 1.6.0_21 Vendor: Sun Microsystems Inc.

Detailed error trace:
java.lang.RuntimeException: AbilityFactory Parsing Error in getAbility() : Split length of Cost$ Cost$ tapXType<1/Cleric> in Master Apothecary is not 2.
   at forge.card.abilityFactory.AbilityFactory.getMapParams(AbilityFactory.java:188)
   at forge.card.abilityFactory.AbilityFactory.getAbility(AbilityFactory.java:210)
   at forge.card.cardFactory.CardFactory.getCard2(CardFactory.java:823)
   at forge.card.cardFactory.CardFactory.getCard(CardFactory.java:373)
   at forge.card.cardFactory.CardFactory.<init>(CardFactory.java:105)
...
`
Fixed.

At times a simple scripting error will slip thorough the cracks. They are farily easy to find and to fix. And it helps to fill out the change file with lots of bug fixes. :wink:
User avatar
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

Re: r10643: Master Apothecary: Split length of Cost$ Cost$ t

Postby Braids » 11 Jul 2011, 23:12

Chris H. wrote:At times a simple scripting error will slip thorough the cracks. They are farily easy to find and to fix. And it helps to fill out the change file with lots of bug fixes. :wink:
:roll: :) i ran into another one last night, too. it was fixed pretty fast. it's nice that forge graciously works around the problem. it's also nice that people are monitoring the board to fix these things. thank you.
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. ;)
User avatar
Braids
Programmer
 
Posts: 556
Joined: 22 Jun 2011, 00:39
Location: Unknown. Hobby: Driving myself and others to constructive madness.
Has thanked: 1 time
Been thanked: 1 time

Re: SVN Bug Reports

Postby Chris H. » 11 Jul 2011, 23:19

jeffwadsworth wrote:Would someone mind testing Festival from version 10637? The effect token is there, but the keyword does not get placed on any creatures. Just want to verify it.
`
I tested it and it is working for me. The keyword was added as a non ability to the detail panel and the creatures did not attack. Looks good from my end.
User avatar
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

Re: SVN Bug Reports

Postby jeffwadsworth » 11 Jul 2011, 23:55

Thanks. That is the second card in two days that misbehaved for me but turned out to be fine. #-o
jeffwadsworth
Super Tester Elite
 
Posts: 1172
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 287 times
Been thanked: 70 times

Re: SVN Bug Reports

Postby timmermac » 12 Jul 2011, 00:02

R10627: Computer dropped 2x Painter's Servant early thanks to an Aluren that I cast. Later in the game, with those Servants still out, he put a Red Ward on a Galina's Knight. This shouldn't be possible, as the Red Ward is a red card, thanks to the Servants, and the Knight already had protection from red.
"I just woke up, haven't had coffee, let alone a pee in 7 days, and I find out you stole my ass and made a ...mini-me! Carter, I should be irked currently, yes?" - Jack O'Neill
User avatar
timmermac
Tester
 
Posts: 1512
Joined: 17 May 2010, 20:36
Has thanked: 18 times
Been thanked: 95 times

Re: SVN Bug Reports

Postby Braids » 12 Jul 2011, 00:15

timmermac wrote:R10627: Computer dropped 2x Painter's Servant early thanks to an Aluren that I cast. Later in the game, with those Servants still out, he put a Red Ward on a Galina's Knight. This shouldn't be possible, as the Red Ward is a red card, thanks to the Servants, and the Knight already had protection from red.
are wards exempt from targeting prevention? i know white ward doesn't dispel itself.
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. ;)
User avatar
Braids
Programmer
 
Posts: 556
Joined: 22 Jun 2011, 00:39
Location: Unknown. Hobby: Driving myself and others to constructive madness.
Has thanked: 1 time
Been thanked: 1 time

Re: SVN Bug Reports

Postby Chris H. » 12 Jul 2011, 01:59

Braids wrote:
timmermac wrote:R10627: Computer dropped 2x Painter's Servant early thanks to an Aluren that I cast. Later in the game, with those Servants still out, he put a Red Ward on a Galina's Knight. This shouldn't be possible, as the Red Ward is a red card, thanks to the Servants, and the Knight already had protection from red.
are wards exempt from targeting prevention? i know white ward doesn't dispel itself.
`
The problem may be with Painter's Servant. I remember testing a code change to get the White Ward to not detach from the enchanted creature a long time ago.
User avatar
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

Re: SVN Bug Reports

Postby friarsol » 12 Jul 2011, 02:15

Braids wrote:are wards exempt from targeting prevention? i know white ward doesn't dispel itself.
So the Ward won't remove itself from its own granted ability, but the Knight wasn't a legal target in the first place due to protection on the creature. I'll debug this scenario a bit and see if Painter's Servant is the main issue, or just the sheer targeting.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: SVN Bug Reports

Postby friarsol » 12 Jul 2011, 02:43

friarsol wrote:So the Ward won't remove itself from its own granted ability, but the Knight wasn't a legal target in the first place due to protection on the creature. I'll debug this scenario a bit and see if Painter's Servant is the main issue, or just the sheer targeting.
Ok. This issue is definitely because of Painter's Servant. It seems like it doesn't follow the Color granting rules quite right, and so while the card seems like it's the right color most of the time, it's not the right color when the spell is being cast. I believe we should be able to convert Painters Servant to Static once AddColor is implemented, which might alleviate this scenario.

The Wards are even a bit trickier (and I'm not sure we handle this situation) but if I cast a White Ward on a creature, and then later give it Protection from White by outside means, the White Ward would fall off (it only stays on from the Protection from White it's granting).
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: SVN Bug Reports

Postby jeffwadsworth » 12 Jul 2011, 02:53

friarsol wrote:
friarsol wrote:So the Ward won't remove itself from its own granted ability, but the Knight wasn't a legal target in the first place due to protection on the creature. I'll debug this scenario a bit and see if Painter's Servant is the main issue, or just the sheer targeting.
Ok. This issue is definitely because of Painter's Servant. It seems like it doesn't follow the Color granting rules quite right, and so while the card seems like it's the right color most of the time, it's not the right color when the spell is being cast. I believe we should be able to convert Painters Servant to Static once AddColor is implemented, which might alleviate this scenario.

The Wards are even a bit trickier (and I'm not sure we handle this situation) but if I cast a White Ward on a creature, and then later give it Protection from White by outside means, the White Ward would fall off (it only stays on from the Protection from White it's granting).
AddColor is implemented. I will look at Painter's Servant right now.
jeffwadsworth
Super Tester Elite
 
Posts: 1172
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 287 times
Been thanked: 70 times

Re: SVN Bug Reports

Postby friarsol » 12 Jul 2011, 02:56

jeffwadsworth wrote:AddColor is implemented. I will look at Painter's Servant right now.
You sure? I swore I just looked and didn't see it in Continuous.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: SVN Bug Reports

Postby jeffwadsworth » 12 Jul 2011, 03:01

friarsol wrote:
jeffwadsworth wrote:AddColor is implemented. I will look at Painter's Servant right now.
You sure? I swore I just looked and didn't see it in Continuous.
I "thought" I saw it in the SVN...turns out it was in StaticAbility. Oh well.
jeffwadsworth
Super Tester Elite
 
Posts: 1172
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 287 times
Been thanked: 70 times

Re: SVN Bug Reports

Postby SoulStorm » 12 Jul 2011, 10:26

jendave wrote:I'll take a look at which ones are still maintained and include the latest versions back. Some of the ones we were using were quite old/unmaintained.
Thanks Dave!
SoulStorm
 
Posts: 423
Joined: 24 Jun 2010, 22:48
Has thanked: 16 times
Been thanked: 11 times

Re: SVN Bug Reports

Postby jendave » 12 Jul 2011, 14:40

SoulStorm wrote:
jendave wrote:I'll take a look at which ones are still maintained and include the latest versions back. Some of the ones we were using were quite old/unmaintained.
Thanks Dave!
Well I added back an old version of substance.jar. The process highlighted a problem in the current Eclipse build - the lack of dependency management. The reason I did not add a current version of substance.jar is that substance has several transitive deps. I did not want to create a large manually maintained set of deps in Eclipse. The older jar rolled up the deps but the new ones do not.

On the Maven side, it would have been simple few lines of xml to add substance. Maven would then pick up the transitive deps automatically. I use the Maven plugin for IntelliJ and never have to worry about the transitive deps. There is a Maven plugin for Eclipse at: http://download.eclipse.org/technology/m2e/releases I use it as well and it makes updating deps much easier without affecting the day-to-day development process. It would be great to use it for dep management and so all builds whether by command line or IDE would be consistent.
jendave
 
Posts: 307
Joined: 01 Jun 2008, 07:19
Has thanked: 8 times
Been thanked: 21 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 25 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 25 users online :: 0 registered, 0 hidden and 25 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 25 guests

Login Form