It is currently 03 Aug 2025, 19:32
   
Text Size

[waitlist]Cinder Elemental AI we don't see value for x

Report wrong Card behavior to get it fixed.
PLEASE ADD SAVEGAMES TO YOUR TOPIC !

Moderators: BAgate, drool66, Aswan jaguar, gmzombie, stassy, CCGHQ Admins

[waitlist]Cinder Elemental AI we don't see value for x

Postby Aswan jaguar » 13 Aug 2016, 07:29

Describe the Bug:
Cinder Elemental when AI pays x we don't get to see what paid for x value.

Which card did behave improperly ?
Cinder Elemental

Which update are you using?(date,name)Which type(Duel,Gauntlet,Sealed Deck)
Manalink 2016/08/07: Eldritch Moon, duel

What exactly should be the correct behavior/interaction ?
When AI activates Cinder Elemental we get to see what value AI picked for x.

Are any other cards possibly affected by this bug ?
-
Attachments
cinder elemental ai shows x=0.rar
(2.55 KiB) Downloaded 183 times
Last edited by BAgate on 12 Sep 2016, 01:25, edited 1 time in total.
Reason: waitlisted
---
Trying to squash some bugs and playtesting.
User avatar
Aswan jaguar
Super Tester Elite
 
Posts: 8130
Joined: 13 May 2010, 12:17
Has thanked: 748 times
Been thanked: 477 times

Re: Cinder Elemental AI we don't see value for x

Postby Korath » 13 Aug 2016, 08:18

If I remember correctly, the AI-pays-|X dialog for activation is the same issue I talk about here. More trouble than it's worth.
User avatar
Korath
DEVELOPER
 
Posts: 3708
Joined: 02 Jun 2013, 05:57
Has thanked: 496 times
Been thanked: 1108 times

Re: Cinder Elemental AI we don't see value for x

Postby Aswan jaguar » 13 Aug 2016, 08:22

If I am not wrong I believe you are confusing it with the random target card that shows when AI casts spells that target.Besides there are cards with X value that show the value for X (I don't remember however if those target or not).
---
Trying to squash some bugs and playtesting.
User avatar
Aswan jaguar
Super Tester Elite
 
Posts: 8130
Joined: 13 May 2010, 12:17
Has thanked: 748 times
Been thanked: 477 times

Re: Cinder Elemental AI we don't see value for x

Postby Korath » 13 Aug 2016, 08:42

Amount chosen for X and which targets are chosen use the same AI stack, and still hardly anything tries to populate it in Manalink during EVENT_SELECTED CARD. I'm only seeing clockwork creatures (Clockwork Horse, Clockwork Swarm, Clockwork Avian, and Clockwork Steed); Candelabra of Tawnos; Helix Pinnacle; and Goblin Polka Band. (And Goblin Polka Band looks like it's probably populating it wrong.) Maybe some of the cards that have wrappers in C just for the sake of having wrappers in C, and call back into the original card in the executable to do the real work, too.
User avatar
Korath
DEVELOPER
 
Posts: 3708
Joined: 02 Jun 2013, 05:57
Has thanked: 496 times
Been thanked: 1108 times

Re: Cinder Elemental AI we don't see value for x

Postby Korath » 11 Sep 2016, 17:13

To get this working as well as it can (short of using the multiplayer version of that popup like in Shandalar), you need to:
  • Make sure the card's flagged EA_ACT_USE_X. This just determines whether an X value is shown at all, not which number is shown for it.
  • Make the card respond to EVENT_SELECTED_CARD by calling dword_60A438 to the proper value.
    • If that proper value is computed in C during activation, then you need to duplicate that calculation (and you won't be able to, if it depends on something chosen by the AI, like a target).
    • If the card just calls charge_mana(player, COLOR_COLORLESS, -1) and that's the very first thing that the EVENT_ACTIVATE handler does, you can peek forward at the number it'll pick by calling EXE_FN(void, 0x499010, int)(0); as in card_candelabra_of_tawnos().
  • Test it for each card you use this with, and for each different ability if it has more than one; at least a third of the time, you'll get the wrong value, it'll display random-looking garbage and maybe also crash if it also tries to display a target, you've just made things much worse instead of very slightly better, and there's nothing you'll be able to do.
User avatar
Korath
DEVELOPER
 
Posts: 3708
Joined: 02 Jun 2013, 05:57
Has thanked: 496 times
Been thanked: 1108 times


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 3 guests

Main Menu

User Menu

Our Partners


Who is online

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

Login Form