It is currently 18 Jul 2025, 17:16
   
Text Size

Bug reports

Moderators: ubeefx, beholder, melvin, ShawnieBoy, Lodici, CCGHQ Admins

Re: Bug reports

Postby melvin » 19 Jan 2014, 11:29

Hourly build #658 includes the rollback on the icons, https://buildhive.cloudbees.com/job/mel ... arena/658/
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

Re: Bug reports

Postby muaddib » 20 Jan 2014, 11:46

Attachments
scr3.png
User avatar
muaddib
Tester
 
Posts: 118
Joined: 03 Mar 2011, 08:37
Location: Russia
Has thanked: 0 time
Been thanked: 5 times

Re: Bug reports

Postby muaddib » 20 Jan 2014, 11:56

Absent text
Attachments
scr4.png
User avatar
muaddib
Tester
 
Posts: 118
Joined: 03 Mar 2011, 08:37
Location: Russia
Has thanked: 0 time
Been thanked: 5 times

Re: Bug reports

Postby muaddib » 20 Jan 2014, 12:17

Can't cast Wildslayer Elves and then use Forbidden Lore enchanted first land.
While cast Wildslayer Elves Magarena automatically tap first land and can't do tap land manually.
Attachments
scr5.png
User avatar
muaddib
Tester
 
Posts: 118
Joined: 03 Mar 2011, 08:37
Location: Russia
Has thanked: 0 time
Been thanked: 5 times

Re: Bug reports

Postby ShawnieBoy » 20 Jan 2014, 13:00

Fixed Cinder Pyromancer, The land tapping priority is an ongoing issue and will have a look at the ability choice when I get back from work :)
User avatar
ShawnieBoy
Programmer
 
Posts: 601
Joined: 02 Apr 2012, 22:42
Location: UK
Has thanked: 80 times
Been thanked: 50 times

Re: Bug reports

Postby melvin » 20 Jan 2014, 13:32

muaddib wrote:Absent text
Thanks for the report! Fixed in https://code.google.com/p/magarena/sour ... 633df5f8a3
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

Re: Bug reports

Postby jerichopumpkin » 20 Jan 2014, 17:42

melvin wrote:
muaddib wrote:Absent text
Thanks for the report! Fixed in https://code.google.com/p/magarena/sour ... 633df5f8a3
I've noticed that this happens with other cards too, i.e. Vizkopa Guildmage does not display any text for lifelink ability
jerichopumpkin
 
Posts: 212
Joined: 12 Sep 2013, 11:21
Has thanked: 19 times
Been thanked: 13 times

Re: Bug reports

Postby melvin » 21 Jan 2014, 02:35

jerichopumpkin wrote:I've noticed that this happens with other cards too, i.e. Vizkopa Guildmage does not display any text for lifelink ability
Yup, all cards using the ability "pay <cost>: <chosen> gain <ability>" template are affected.
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

Re: Bug reports

Postby jerichopumpkin » 25 Jan 2014, 12:30

Found a mistype in Alpha Kavu, it gives +1/+1 instead of -1/+1
Alpha_Kavu.txt
Code: Select all
name=Alpha Kavu
url=http://magiccards.info/ps/en/77.html
image=http://mtgimage.com/card/alpha%20kavu.jpg
value=2.338
rarity=U
type=Creature
subtype=Kavu
cost={2}{G}
pt=2/2
ability=pay {1}{G}:Target Kavu creature gets -1/+1 until end of turn.
timing=main
jerichopumpkin
 
Posts: 212
Joined: 12 Sep 2013, 11:21
Has thanked: 19 times
Been thanked: 13 times

Re: Bug reports

Postby melvin » 25 Jan 2014, 12:38

User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

Re: Bug reports

Postby jerichopumpkin » 25 Jan 2014, 13:08

This one's mine: I've scripted Idyllic Tutor as Enlightened Tutor, so the enchantment is put on top of deck instead in hand.
Here is the right version:
Idyllic_Tutor.groovy
Code: Select all
def ENCHANTMENT_CARD_FROM_LIBRARY = new MagicCardFilterImpl() {
    public boolean accept(final MagicGame game,final MagicPlayer player,final MagicCard target) {
        return target.hasType(MagicType.Enchantment);
    }
    public boolean acceptType(final MagicTargetType targetType) {
        return targetType == MagicTargetType.Library;
    }
};

def AN_ENCHANTMENT_CARD_FROM_LIBRARY = new MagicTargetChoice(
    ENCHANTMENT_CARD_FROM_LIBRARY,
    "an enchantment card"
);

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                this,
                "PN may search his or her library for an enchantment card, reveals it, put it into his or her hand, and shuffle his or her library."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.addEvent(new MagicSearchIntoHandEvent(
                event,
                AN_ENCHANTMENT_CARD_FROM_LIBRARY
            ));
        }
    }
]
jerichopumpkin
 
Posts: 212
Joined: 12 Sep 2013, 11:21
Has thanked: 19 times
Been thanked: 13 times

Re: Bug reports

Postby melvin » 26 Jan 2014, 01:56

jerichopumpkin wrote:This one's mine: I've scripted Idyllic Tutor as Enlightened Tutor, so the enchantment is put on top of deck instead in hand.
Thanks for the fix, applied in https://code.google.com/p/magarena/sour ... 9dee7ecc37
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

Re: Bug reports

Postby jerichopumpkin » 31 Jan 2014, 11:13

Wingrattle Scarecrow is broken, persist does not trigger, although you control a black creature
jerichopumpkin
 
Posts: 212
Joined: 12 Sep 2013, 11:21
Has thanked: 19 times
Been thanked: 13 times

Re: Bug reports

Postby ShawnieBoy » 31 Jan 2014, 14:51

Thanks for that find - (A testament to always playtest everything :))

I know the code should work, and it does (in a way) - The bug is due to the peculiar timing involved. Here's the strange bit:

The persist ability is only present while Wingrattle Scarecrow is in play.

Due to cards in the graveyard not being able to have abilities, as soon as Wingrattle Scarecrow leaves play, the MagicStatic(MagicLayer.Ability) stops checking to see what abilities it should have. In a similar way Undying Evil also doesn't work for a similar reason.

Creatures gaining Undying or Persist looks like a problem :(

Affected cards: Antler Skulkin, Rattleblaze Scarecrow, Undying Evil, Wingrattle Scarecrow,
User avatar
ShawnieBoy
Programmer
 
Posts: 601
Joined: 02 Apr 2012, 22:42
Location: UK
Has thanked: 80 times
Been thanked: 50 times

Re: Bug reports

Postby melvin » 01 Feb 2014, 04:10

The bug with Wingrattle Scarecrow is related to certain types of triggers which cannot be added to permanents, one such class of triggers are those that extend MagicWhenPutIntoGraveyardTrigger, of which MagicWhenDiesTrigger is a member. The fix is to move MagicWhenDiesTrigger to a different type, implemented in https://code.google.com/p/magarena/sour ... 055fb9fffe

The issue with Antler Skulkin and Undying Evil is another problem to do with the fact that MagicGainAbilityAction only handles abilities without implementation (flying, first strike, lifelink, etc). Fixed in https://code.google.com/p/magarena/sour ... 9170f9190e to handle abilities with implementation (persist, undying, exalted, etc)

PS: Originally Magarena only had abilities without implementation, abilities with implementation (has addAbilityImpl method in MagicAbility) were added later. Abilities without implementation were implemented directly in the engine elsewhere in the program, this is discouraged for new abilities. Abilities with implementation is the preferred method going forward for new abilities.
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

PreviousNext

Return to Magarena

Who is online

Users browsing this forum: No registered users and 4 guests

Main Menu

User Menu

Our Partners


Who is online

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

Login Form