Board index
Programs with AI or Rules Enforcement
Magic: The Gathering - Duels of the Planeswalkers
New MTG Cards and Decks (2010, 2012, 2013, 2014, 2015, Magic Duels)
2014




Formal Request Thread
Moderator: CCGHQ Admins
Re: Formal Request Thread
by RiiakShiNal » 25 Jan 2014, 16:38
I remember this problem was reported on Taunting Elf as well which leads me to believe that this is a bug in the engine that the developers never really fixed.thefiremind wrote:This is the same thing that happens with my transform cards. I always thought that the bug was connected to the clone effect, but your bestow code doesn't use clone effects so I have no clue. The real question is: why do official cards work when using block restrictions against the AI? Where is the difference?NeoAnderson wrote:The weird thing is that when i attack with enchanted creature or the main one, all the opponent creature at a first approach are declared as blockers, but then after a while he remove all the creatures or some of them from blocking!!!
Just getting started: Xander9009's DotP 2014 Community Wad
Need a deck builder: DotP 2014 Deck Builder
Problems Modding: DotP 2014 Frequent Modding Mistakes
Need a deck builder: DotP 2014 Deck Builder
Problems Modding: DotP 2014 Frequent Modding Mistakes
- RiiakShiNal
- Programmer
- Posts: 2188
- Joined: 16 May 2011, 21:37
- Has thanked: 75 times
- Been thanked: 497 times
Re: Formal Request Thread
by NeoAnderson » 25 Jan 2014, 17:52
I know i also have tested it, i am not a programmer, but i have a lot of fantasy!sumomole wrote:EDIT: I'm curious about how could encounter such bug, I tested your code but it seems to run fine.

If you use my solution the bug is fixed.RiiakShiNal wrote:I remember this problem was reported on Taunting Elf as well which leads me to believe that this is a bug in the engine that the developers never really fixed.
Fire you could adapt my code for your trasform cards.
- NeoAnderson
- Posts: 914
- Joined: 10 Sep 2013, 07:49
- Has thanked: 18 times
- Been thanked: 139 times
Re: Formal Request Thread
by thefiremind » 26 Jan 2014, 09:41
I would be glad to do that, but the bug on my transform cards isn't about a Lure effect. How could I adapt your code in order to enforce a CHARACTERISTIC_MUST_ATTACK_EACH_TURN restriction, for example? It affects only the creature itself.NeoAnderson wrote:If you use my solution the bug is fixed.
Fire you could adapt my code for your trasform cards.
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
Currently busy with life...
-
thefiremind - Programmer
- Posts: 3515
- Joined: 07 Nov 2011, 10:55
- Has thanked: 118 times
- Been thanked: 722 times
Re: Formal Request Thread
by NEMESiS » 26 Jan 2014, 09:48
Hello, I would like to request Jeleva, Nephalia's Scourge please.
-
NEMESiS - Posts: 460
- Joined: 03 Jan 2013, 04:02
- Location: Pools of Becoming
- Has thanked: 70 times
- Been thanked: 21 times
Re: Formal Request Thread
by NeoAnderson » 26 Jan 2014, 12:25
I am sorry but haven't followed the discussion about your trasforming cards, so the problem is the opposite? I mean Creature A should ATTACK_EACH_TURN but it is declared as attacker then removed from attack???thefiremind wrote:I would be glad to do that, but the bug on my transform cards isn't about a Lure effect. How could I adapt your code in order to enforce a CHARACTERISTIC_MUST_ATTACK_EACH_TURN restriction, for example? It affects only the creature itself.NeoAnderson wrote:If you use my solution the bug is fixed.
Fire you could adapt my code for your trasform cards.
- NeoAnderson
- Posts: 914
- Joined: 10 Sep 2013, 07:49
- Has thanked: 18 times
- Been thanked: 139 times
Re: Formal Request Thread
by thefiremind » 26 Jan 2014, 14:53
Yes. Same goes for CHARACTERISTIC_CANT_BE_BLOCKED_EXCEPT_BY_TWO_OR_MORE_CREATURES: two creatures are automatically assigned, but then the AI can remove one or all of them from blocking.NeoAnderson wrote:Creature A should ATTACK_EACH_TURN but it is declared as attacker then removed from attack???
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
Currently busy with life...
-
thefiremind - Programmer
- Posts: 3515
- Joined: 07 Nov 2011, 10:55
- Has thanked: 118 times
- Been thanked: 722 times
Re: Formal Request Thread
by NeoAnderson » 26 Jan 2014, 15:03
About the second problem "CANT_BE_BLOCKED_EXCEPT_BY_TWO_OR_MORE_CREATURES" i think you should try the code i already posted, i think it should work, because when the AI first declare the 2 blockers, they will fire the trigger "BLOCKING" so they will be pushed to block with the characteristic "MUST_BLOCK". Just try.thefiremind wrote:Yes. Same goes for CHARACTERISTIC_CANT_BE_BLOCKED_EXCEPT_BY_TWO_OR_MORE_CREATURES: two creatures are automatically assigned, but then the AI can remove one or all of them from blocking.NeoAnderson wrote:Creature A should ATTACK_EACH_TURN but it is declared as attacker then removed from attack???
About the first one i think the code can be adapted, turning the "BLOCKING" trigger into "ATTACKING" then granting to the creature the ability "MUST_ATTACK".
- NeoAnderson
- Posts: 914
- Joined: 10 Sep 2013, 07:49
- Has thanked: 18 times
- Been thanked: 139 times
Re: Formal Request Thread
by thefiremind » 26 Jan 2014, 17:22
This would be a bad fix because the 2 blocking creatures are picked randomly, but if the AI has more than just those 2 creatures it might want to block with a different couple.NeoAnderson wrote:About the second problem "CANT_BE_BLOCKED_EXCEPT_BY_TWO_OR_MORE_CREATURES" i think you should try the code i already posted, i think it should work, because when the AI first declare the 2 blockers, they will fire the trigger "BLOCKING" so they will be pushed to block with the characteristic "MUST_BLOCK". Just try.
You would basically grant an additional CHARACTERISTIC_MUST_ATTACK on top of the already existing CHARACTERISTIC_MUST_ATTACK_EACH_TURN: I already tried to use CHARACTERISTIC_MUST_ATTACK and manage the "each turn" manually, but the bug persists.NeoAnderson wrote:About the first one i think the code can be adapted, turning the "BLOCKING" trigger into "ATTACKING" then granting to the creature the ability "MUST_ATTACK".
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
Currently busy with life...
-
thefiremind - Programmer
- Posts: 3515
- Joined: 07 Nov 2011, 10:55
- Has thanked: 118 times
- Been thanked: 722 times
Re: Formal Request Thread
by NeoAnderson » 26 Jan 2014, 17:56
This should be still possible because that code should ensure just that the creatures first declared as blockers cannot be removed, so i think that if the AI would add other creature to the blocker it still can do it.thefiremind wrote:This would be a bad fix because the 2 blocking creatures are picked randomly, but if the AI has more than just those 2 creatures it might want to block with a different couple.NeoAnderson wrote:About the second problem "CANT_BE_BLOCKED_EXCEPT_BY_TWO_OR_MORE_CREATURES" i think you should try the code i already posted, i think it should work, because when the AI first declare the 2 blockers, they will fire the trigger "BLOCKING" so they will be pushed to block with the characteristic "MUST_BLOCK". Just try.
Could you post a code of a card of yours that have this issue? I want to make some tests.thefiremind wrote:You would basically grant an additional CHARACTERISTIC_MUST_ATTACK on top of the already existing CHARACTERISTIC_MUST_ATTACK_EACH_TURN: I already tried to use CHARACTERISTIC_MUST_ATTACK and manage the "each turn" manually, but the bug persists.NeoAnderson wrote:About the first one i think the code can be adapted, turning the "BLOCKING" trigger into "ATTACKING" then granting to the creature the ability "MUST_ATTACK".
- NeoAnderson
- Posts: 914
- Joined: 10 Sep 2013, 07:49
- Has thanked: 18 times
- Been thanked: 139 times
Re: Formal Request Thread
by thefiremind » 26 Jan 2014, 18:59
It's still wrong: if AI has creatures A, B, C and D, and A+B are automatically assigned, assigning only C+D could still be the best move and the AI should be able to do that.NeoAnderson wrote:This should be still possible because that code should ensure just that the creatures first declared as blockers cannot be removed, so i think that if the AI would add other creature to the blocker it still can do it.
The code is in my mod: at first I thought that CHARACTERISTIC_MUST_ATTACK_EACH_TURN wasn't bugged, so I left Hanweir Watchkeep / Bane of Hanweir in the Werewolves deck. Then I discovered it was bugged, but I had no idea what to switch them with, so I still left them in.thefiremind wrote:Could you post a code of a card of yours that have this issue? I want to make some tests.
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
Currently busy with life...
-
thefiremind - Programmer
- Posts: 3515
- Joined: 07 Nov 2011, 10:55
- Has thanked: 118 times
- Been thanked: 722 times
Re: Formal Request Thread
by NeoAnderson » 26 Jan 2014, 23:29
Ok Fire i will check tomorrow, now i am going to finish the Born of the gods set.thefiremind wrote:It's still wrong: if AI has creatures A, B, C and D, and A+B are automatically assigned, assigning only C+D could still be the best move and the AI should be able to do that.NeoAnderson wrote:This should be still possible because that code should ensure just that the creatures first declared as blockers cannot be removed, so i think that if the AI would add other creature to the blocker it still can do it.The code is in my mod: at first I thought that CHARACTERISTIC_MUST_ATTACK_EACH_TURN wasn't bugged, so I left Hanweir Watchkeep / Bane of Hanweir in the Werewolves deck. Then I discovered it was bugged, but I had no idea what to switch them with, so I still left them in.thefiremind wrote:Could you post a code of a card of yours that have this issue? I want to make some tests.
- NeoAnderson
- Posts: 914
- Joined: 10 Sep 2013, 07:49
- Has thanked: 18 times
- Been thanked: 139 times
Re: Formal Request Thread
by Necropotence » 29 Jan 2014, 03:10
hello! someone has these decks: sneak and tell deck, dredge, and ad nauseam. for dopt2014 or dopt2013. from already thank you =)
sorry if this does not go here
sorry if this does not go here
- Necropotence
- Posts: 24
- Joined: 05 May 2013, 05:30
- Has thanked: 10 times
- Been thanked: 0 time
Re: Formal Request Thread
by AndreasD » 29 Jan 2014, 09:20
Hi all,
i´m new here and i going to rebuild my deck into the PC-game.
I nearly found all needed cards. I created some i needed but i couldn´t find this one:
Hired Torturer
Could anyone please help me?
Thanks,
Andi
i´m new here and i going to rebuild my deck into the PC-game.
I nearly found all needed cards. I created some i needed but i couldn´t find this one:
Hired Torturer
Could anyone please help me?
Thanks,
Andi
- AndreasD
- Posts: 4
- Joined: 29 Jan 2014, 09:17
- Has thanked: 0 time
- Been thanked: 0 time
Re: Formal Request Thread
by sumomole » 29 Jan 2014, 12:00
AndreasD wrote:Hi all,
i´m new here and i going to rebuild my deck into the PC-game.
I nearly found all needed cards. I created some i needed but i couldn´t find this one:
Hired Torturer
Could anyone please help me?
Thanks,
Andi
Hired Torturer.zip
- (93.06 KiB) Downloaded 268 times
-
sumomole - Programmer
- Posts: 611
- Joined: 07 Jun 2011, 08:34
- Has thanked: 51 times
- Been thanked: 234 times
Re: Formal Request Thread
by drleg3nd » 30 Jan 2014, 06:04
well I would like to request a Certain planeswalker that is on gatherer from a modder that has a nivmizzet picture 

Who is online
Users browsing this forum: No registered users and 3 guests