It is currently 08 Sep 2025, 08:37
   
Text Size

Removing some erroneous cards

Post MTG Forge Related Programming Questions Here

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

Removing some erroneous cards

Postby Sloth » 08 Sep 2010, 06:38

There are some cards with the whenever keyword that have some serious bugs that got reported more than once in the forum. Since the whenever keyword was coded by Beached As in a very independent way and me beeing incapable of seeing through this massive batch of code (which is scattered over a lot of files), I would suggest to remove the following cards until someone fixes these bugs of the whenever keyword:

Admonition Angel
Petravark
Ajani's Pridemate
Ageless Entity

I suggest to not completely remove them (not to break saved decks), but to remove them from random AI decks (with SVar:RemAIDeck:True) and giving them the Rarity "None", so they will no longer appear in quest mode.

I feel a little responsible since I added Petravark.

Are there more cards with serious bugs that should also get this treadment (maybe Ancestral Vision?)

Any other suggestions to fix this problem are welcome.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Removing some erroneous cards

Postby Chris H. » 08 Sep 2010, 12:19

We have 22 cards which currently have a note as part of their spellText. Some of these notes refer to problems that are serious and these cards tend to get reported on the bug list.

The Spectral Searchlight NOTE refers to a fairly minor problem. Resuscitate is non-functional and this creates a bigger problem. Other cards with notes fall somewhere in between.

We can also add a note to the spellText to the 4 cards that you list. The notes help to warn users while creating constructed decks.

Giving cards a rarity of "SVar:Rarity:None" did not cause any problems in the brief test that I ran. But there may be unforeseen consequences.
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: Removing some erroneous cards

Postby Rob Cashwalker » 08 Sep 2010, 14:13

I purposely wrote the Rarity parser to allow for Rarity:None or essentially Rarity:{Anything other than Mythic, Rare, Uncommon, Common}. This will remove it from sealed, random deck and quest cardpools.
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: Removing some erroneous cards

Postby Sloth » 08 Sep 2010, 14:22

Chris H. wrote:We can also add a note to the spellText to the 4 cards that you list. The notes help to warn users while creating constructed decks.

Giving cards a rarity of "SVar:Rarity:None" did not cause any problems in the brief test that I ran. But there may be unforeseen consequences.
Adding a note is a good idea!

Unless someone has any concerns, I will give this treatment to the following cards:

User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Removing some erroneous cards

Postby Chris H. » 08 Sep 2010, 14:57

Rob Cashwalker wrote:I purposely wrote the Rarity parser to allow for Rarity:None or essentially Rarity:{Anything other than Mythic, Rare, Uncommon, Common}. This will remove it from sealed, random deck and quest cardpools.
`
Thank you Rob. I see that you were looking ahead. :D
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: Removing some erroneous cards

Postby Chris H. » 08 Sep 2010, 15:01

Sloth wrote:Adding a note is a good idea!

Unless someone has any concerns, I will give this treatment to the following cards:

`
I think that I added a NOTE to Ancestral Vision and Resuscitate at some point in the past. I also recently modified Card.getText() and a "\r\n" will now get inserted into the StringBuilder string sb just before the NOTE. This helps to separate the NOTE from the rest of the spellText description and makes it stand out. :mrgreen:
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: Removing some erroneous cards

Postby Chris H. » 08 Sep 2010, 20:28

I added a NOTE, "SVar:RemAIDeck:True" and a "SVar:Rarity:None" to Admonition Angel; Ageless Entity; Ajani's Pridemate and Petravark.
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: Removing some erroneous cards

Postby AnonAT » 15 Sep 2010, 05:41

Wouldn't it be easier to just parse "NOTE" as "don't use anywhere without user's explicit request"?
AnonAT
 
Posts: 1
Joined: 15 Sep 2010, 05:13
Has thanked: 0 time
Been thanked: 0 time


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 60 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 60 users online :: 0 registered, 0 hidden and 60 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 60 guests

Login Form