It is currently 04 Sep 2025, 16:54
   
Text Size

MTG: Duels of the Planeswalkers 2014 (XMAS 2024 EDITION)

Moderator: CCGHQ Admins

Re: MTG: Duels of the Planeswalkers 2014 (XMAS 2024 EDITION)

Postby Drachou » 01 Jul 2025, 20:35

Can you explain more precisely how i can import Forge format to the deck builder?
For instance, i don't seem to be able to do "File/Open Deck" and then select one of the ".deck" files in your python deck generator folder.

If i have a MTGA or MTGO deck txt file, how can i import it to the deck builder?

And for some reasons, i managed to export a deck once, but now the button to export a deck is greyed out and i don't manage to make it clickable again...

Ty,
:)
Drachou
 
Posts: 23
Joined: 25 Jun 2025, 07:50
Has thanked: 0 time
Been thanked: 3 times

Re: MTG: Duels of the Planeswalkers 2014 (XMAS 2024 EDITION)

Postby etphonehome » 01 Jul 2025, 21:10

If you want to import a Forge deck, check here in Deck Builder...

2025-07-01_22-13-20.jpg
etphonehome
 
Posts: 327
Joined: 21 May 2020, 12:50
Has thanked: 285 times
Been thanked: 46 times

Re: MTG: Duels of the Planeswalkers 2014 (XMAS 2024 EDITION)

Postby Drachou » 02 Jul 2025, 06:26

Oh nice, didn't see that (since i am also using another version of the deck builder, i checked this button on this older version, and it doesn't give the option like your version of the deck builder).

Do you know if there is a way to create an AI for each deck i make? I mean to set up a personnality for my deck, and this personnality/AI would behave like i told it to behave so it plays the deck the best? Is there a tool to mod how AI plays the game? Because if it plays a vehicle for instance, it crews it immediatly even if the vehicle can't attack this turn because it has just been played.

Ty,
:)
Drachou
 
Posts: 23
Joined: 25 Jun 2025, 07:50
Has thanked: 0 time
Been thanked: 3 times

Re: MTG: Duels of the Planeswalkers 2014 (XMAS 2024 EDITION)

Postby etphonehome » 02 Jul 2025, 16:42

1ST, Make sure you chose Planeswalker difficulty in options.

There are ways to keep the AI to play the way "YOU WANT", but you have to edit the card you want to change its behavior.

For ex:

MY TURN
<AI_AVAILABILITY window_step="main_1" window_turn="my_turn" type="window" />
<AI_AVAILABILITY window_step="begin_combat" window_turn="my_turn" type="window" />
<AI_AVAILABILITY window_step="declare_attackers" window_turn="my_turn" type="window" />
<AI_AVAILABILITY window_step="declare_blockers" window_turn="my_turn" type="window" />
<AI_AVAILABILITY window_step="main_2" window_turn="my_turn" type="window" />
<AI_AVAILABILITY window_step="end_of_turn" window_turn="my_turn" type="window" />
<AI_AVAILABILITY window_step="declare_blockers" window_turn="my_turn" type="window" window_in_combat="1" />

OPPONENT'S TURN
<AI_AVAILABILITY window_step="main_1" window_turn="their_turn" type="window" />
<AI_AVAILABILITY window_step="begin_combat" window_turn="their_turn" type="window" />
<AI_AVAILABILITY window_step="declare_attackers" window_turn="their_turn" type="window" />
<AI_AVAILABILITY window_step="declare_blockers" window_turn="their_turn" type="window" />
<AI_AVAILABILITY window_step="main_2" window_turn="their_turn" type="window" />
<AI_AVAILABILITY window_step="end_of_turn" window_turn="their_turn" type="window" />

<AI_AVAILABILITY window_step="declare_blockers" window_turn="their_turn" type="window" window_in_combat="1" />


WINDOW
<AI_AVAILABILITY window_step="main_1" type="window" />
<AI_AVAILABILITY window_step="main_2" type="window" />

<AI_AVAILABILITY window_step="begin_combat" />
<AI_AVAILABILITY window_step="declare_attackers" type="window" />
<AI_AVAILABILITY window_step="declare_blockers" type="window" />
<AI_AVAILABILITY window_step="declare_blockers" type="window" window_in_combat="1" />
<AI_AVAILABILITY window_step="end_of_turn" type="window" />
<AI_AVAILABILITY window_step="declare_blockers" type="window" />

If you put any of these lines in a card, the card ONLY plays during the AI_AVAILABILITY you declared.

I removed all these timings from cards in XMAS version. AI is free to choose when to play cards and effects.

I think this way primarily used to reduce CPU usage.

Another ex (AI only draws a cards if its library as more than or equal to 10 cards:

<MAY tag="CARD_QUERY_DRAW_A_CARD" always_prompt="1">
-- AI behaviour
if EffectController():Library_Count() &lt; 10 then
return false
else
return true
end
</MAY>

Or you even can create a custom Availability for an effect to activate or a spell to be played.

<AVAILABILITY>
return EffectController():IsAI() == false and EffectSource():IsTapped() == false
</AVAILABILITY>

You can modify the cards behavior to your liking, but you must understand the coding of the cards.
etphonehome
 
Posts: 327
Joined: 21 May 2020, 12:50
Has thanked: 285 times
Been thanked: 46 times

Re: MTG: Duels of the Planeswalkers 2014 (XMAS 2024 EDITION)

Postby Drachou » 02 Jul 2025, 20:17

ok ty for the explanation. Maybe i will not modify all this :)
Drachou
 
Posts: 23
Joined: 25 Jun 2025, 07:50
Has thanked: 0 time
Been thanked: 3 times

Re: MTG: Duels of the Planeswalkers 2014 (XMAS 2024 EDITION)

Postby Drachou » 03 Jul 2025, 08:18

Ty for the tip, but man i'm blind again, where is that "AI-OK" filter?

Another question :
- Would you say the Xmas version makes AI play faster compared to the regular version?

Ty,
:)
Drachou
 
Posts: 23
Joined: 25 Jun 2025, 07:50
Has thanked: 0 time
Been thanked: 3 times

Re: MTG: Duels of the Planeswalkers 2014 (XMAS 2024 EDITION)

Postby etphonehome » 03 Jul 2025, 17:31

ALL Xmas version cards are AI friendly. I removed MM mana and recoded 2 and three color land cards.

You can edit DIFFICLUTY_SETTINGS.XML file:

<Row ss:AutoFitHeight="0" ss:StyleID="s63">
<Cell ss:StyleID="s64"><Data ss:Type="String">Level</Data></Cell>
<Cell ss:StyleID="s65"><Data ss:Type="String">Card Level</Data></Cell>
<Cell ss:StyleID="s65"><Data ss:Type="String">Thinking Time</Data></Cell>
<Cell ss:StyleID="s65"><Data ss:Type="String">Query Time</Data></Cell>
<Cell ss:StyleID="s65"><Data ss:Type="String">Full Thinking Time Multiplier</Data></Cell>
<Cell ss:StyleID="s65"><Data ss:Type="String">Full Thinking Time Interrupt Multiplier</Data></Cell>
<Cell ss:StyleID="s65"><Data ss:Type="String">Max Tree Depth</Data></Cell>
<Cell ss:StyleID="s65"><Data ss:Type="String">Life Score Multiplier</Data></Cell>
<Cell ss:StyleID="s65"><Data ss:Type="String">Ability Score Multiplier</Data></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">Hand Score Multiplier</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0">
<Cell ss:StyleID="s67"><Data ss:Type="String">Mage</Data></Cell>
<Cell ss:StyleID="s68"><Data ss:Type="Number">0</Data></Cell>
<Cell ss:StyleID="s68"><Data ss:Type="Number">3</Data></Cell>
<Cell ss:StyleID="s68"><Data ss:Type="Number">2</Data></Cell>
<Cell ss:StyleID="s68"><Data ss:Type="Number">2</Data></Cell>
<Cell ss:StyleID="s68"><Data ss:Type="Number">2</Data></Cell>
<Cell ss:StyleID="s69"><Data ss:Type="Number">3</Data></Cell>
<Cell ss:StyleID="s70"><Data ss:Type="Number">3</Data></Cell>
<Cell ss:StyleID="s70"><Data ss:Type="Number">0.25</Data></Cell>
<Cell ss:StyleID="s71"><Data ss:Type="Number">0.25</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0">
<Cell ss:StyleID="s72"><Data ss:Type="String">Archmage</Data></Cell>
<Cell ss:StyleID="s68"><Data ss:Type="Number">1</Data></Cell>
<Cell ss:StyleID="s68"><Data ss:Type="Number">7</Data></Cell>
<Cell ss:StyleID="s68"><Data ss:Type="Number">4</Data></Cell>
<Cell ss:StyleID="s68"><Data ss:Type="Number">2</Data></Cell>
<Cell ss:StyleID="s68"><Data ss:Type="Number">2</Data></Cell>
<Cell ss:StyleID="s69"><Data ss:Type="Number">5</Data></Cell>
<Cell ss:StyleID="s70"><Data ss:Type="Number">1.5</Data></Cell>
<Cell ss:StyleID="s70"><Data ss:Type="Number">0.75</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="Number">0.75</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0">
<Cell ss:StyleID="s74"><Data ss:Type="String">Planeswalker</Data></Cell>
<Cell ss:StyleID="s75"><Data ss:Type="Number">2</Data></Cell>
<Cell ss:StyleID="s68"><Data ss:Type="Number">4</Data></Cell>
<Cell ss:StyleID="s68"><Data ss:Type="Number">3</Data></Cell>

<Cell ss:StyleID="s68"><Data ss:Type="Number">2</Data></Cell>
<Cell ss:StyleID="s68"><Data ss:Type="Number">2</Data></Cell>
<Cell ss:StyleID="s69"><Data ss:Type="Number">6</Data></Cell>
<Cell ss:StyleID="s70"><Data ss:Type="Number">1</Data></Cell>
<Cell ss:StyleID="s70"><Data ss:Type="Number">1</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="Number">1</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0">
<Cell ss:StyleID="s76"><Data ss:Type="String">CSolve</Data></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="Number">2</Data></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="Number">10</Data></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="Number">10</Data></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="Number">10</Data></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="Number">10</Data></Cell>
<Cell ss:StyleID="s78"><Data ss:Type="Number">10</Data></Cell>
<Cell ss:StyleID="s79"><Data ss:Type="Number">1</Data></Cell>
<Cell ss:StyleID="s79"><Data ss:Type="Number">1</Data></Cell>
<Cell ss:StyleID="s80"><Data ss:Type="Number">1</Data></Cell>
</Row>

You can edit the values to speed up AI Thinking time. I already reduced thisto 4 and 3. Even lower than Archmage level (7,4).

You can increase these values to give AI MORE TIME to try different plays.

I found these current values enough for some smart plays.

Wihh the power of currrent CPU's, these values will probably be more than enough.
etphonehome
 
Posts: 327
Joined: 21 May 2020, 12:50
Has thanked: 285 times
Been thanked: 46 times

Re: MTG: Duels of the Planeswalkers 2014 (XMAS 2024 EDITION)

Postby etphonehome » 03 Jul 2025, 17:37

As far as my knowledge goes, DOTP14 Deck Builder dont have an AI-OK filter.

In Forge, Bad AI cards are marked, but Forge AI is dumb.

I tried to quit DOTP14 and only play Forge, but i always come back to DOTP14 because Forge is always making stupid moves and bad decisions.

Bad AI cards in Forge are good AI cards in DOTP14.
Last edited by etphonehome on 03 Jul 2025, 19:20, edited 1 time in total.
etphonehome
 
Posts: 327
Joined: 21 May 2020, 12:50
Has thanked: 285 times
Been thanked: 46 times

Re: MTG: Duels of the Planeswalkers 2014 (XMAS 2024 EDITION)

Postby Drachou » 03 Jul 2025, 18:28

Nice ty i will check this.

At the moment im recreating the decks of the meta 2013-2014. I think i will focus on the previous CW version for now because it is really hard to do this on your Xmas version => the missing planeswalkers are a huge problem.
You have done a wonderful job, but it is very sad some very important cards are not supported in your version :D No chance you could make some change to revert this :)? I will adapt more recent meta with your Xmas version later. Anyway many thanks for sharing it.

Another little question: How can i create a launcher that would only take some decks in the game? I mean i want to make a launcher per year/meta, so i can play only with random decks of the meta i choose at a time.

Ty,
:)
Drachou
 
Posts: 23
Joined: 25 Jun 2025, 07:50
Has thanked: 0 time
Been thanked: 3 times

Re: MTG: Duels of the Planeswalkers 2014 (XMAS 2024 EDITION)

Postby etphonehome » 03 Jul 2025, 19:29

PLANESWALKERS would make a great addition to available cards, but although most of times they work fine, sometimes AI do bad attack decisions because of instead of attacking player directly, every creature will go to attack the Planeswalker.

Creatures (or spells) don't attack (or deal damage) directly to a Planeswalkers, They attack a player, or deal damage to a player, and you choose a Planeswalker to REDIRECT DAMAGE to. So, redirect damage effects sometimes also become problematic.

Its a question of preferences...
etphonehome
 
Posts: 327
Joined: 21 May 2020, 12:50
Has thanked: 285 times
Been thanked: 46 times

Re: MTG: Duels of the Planeswalkers 2014 (XMAS 2024 EDITION)

Postby etphonehome » 03 Jul 2025, 19:44

The only way that occurs me is:

Identify the meta somehow in each deck filename you create, for example "Deck_001_LOTR.WAD"

create a python program, using a GUI with CHATGPT, where you choose what meta to play from a list of Metas/Sets you defined EX(LOTR, )

Have a REMOVED_DECKS directory inside game directory.

Move all decks from game directory to REMOVED_DECKS folder,than move decks that contains the reference meta in filename ex (LOTR) back to gaming diectory.

When game runs, only decks from the meta you chose will be available to play in game!
Last edited by etphonehome on 04 Jul 2025, 17:30, edited 1 time in total.
etphonehome
 
Posts: 327
Joined: 21 May 2020, 12:50
Has thanked: 285 times
Been thanked: 46 times

Re: MTG: Duels of the Planeswalkers 2014 (XMAS 2024 EDITION)

Postby Drachou » 04 Jul 2025, 16:59

Do you know if there is a way to increase the speed of the timer? the 1,5 seconds time when you can react at each step?
Drachou
 
Posts: 23
Joined: 25 Jun 2025, 07:50
Has thanked: 0 time
Been thanked: 3 times

Re: MTG: Duels of the Planeswalkers 2014 (XMAS 2024 EDITION)

Postby etphonehome » 04 Jul 2025, 17:29

I wish i knew. It's what this game needs!
etphonehome
 
Posts: 327
Joined: 21 May 2020, 12:50
Has thanked: 285 times
Been thanked: 46 times

Re: MTG: Duels of the Planeswalkers 2014 (XMAS 2024 EDITION)

Postby Drachou » 04 Jul 2025, 19:01

So at the moment, the IA can't play the decks i made.
It uses double color land maybe once, and then it stops using it (in previous CW version). When you say you recoded the lands, you mean AI couldn't use them in previous CW version right? I played on Xmas, the multi colored lands generate a random mana each turn in fact, thats how you went around the AI incapacity to use the mana?

So i guess the best we could have here are searching land in decks. We have one "terramorphic expanse" that tap the land, we should get one that can search but the land is not tapped maybe as replacement for multicolored land. Even if this card doesn't exist in reality. Because random mana is not good :D (do you confirm that it is random?)

Man how do i create a card? i guess it is the same code as the "Terramorphic Expanse" but with something like "PutOntoBattlefield" instead of "PutOntoBattlefieldTapped"? Maybe create some that shock and scry too for instance.
Is there an editor for the code to see the functions i can use in the code, or notepad++? (Your MTG_CARD_GENERATOR_GUI_v4.0.pyw don't launch anything if i double click on it with the last python version installed.)

You tell me if i annoy you with all my questions :D
Last edited by Drachou on 05 Jul 2025, 15:46, edited 12 times in total.
Drachou
 
Posts: 23
Joined: 25 Jun 2025, 07:50
Has thanked: 0 time
Been thanked: 3 times

Re: MTG: Duels of the Planeswalkers 2014 (XMAS 2024 EDITION)

Postby etphonehome » 05 Jul 2025, 12:07

I recoded the two- and three-color land cards for the XMAS version. When one of these lands enters the battlefield, and at the beginning of the AI’s turn, it will choose a random useful color.

First, it selects a color based on cards in the AI’s hand. If there are no relevant cards there, it checks the battlefield, then the library, and finally the graveyard. For example, if the AI has only a blue card in hand, the chosen color will be blue. If it has both green and blue cards, one of those will be chosen at random.

Dual- and tri-color lands only produce one color at a time. For human players, the land chooses a useful color when it enters the battlefield, but afterward the player must change the color manually if a different one is needed.

Simply moving Planeswalker cards from the "Unsupported" category won’t work, because I removed support for "damage to a creature or Planeswalker" and "damage to any target" effects. Now, only "damage to creatures" or "damage to creatures and players" is supported.

In previous CW versions, there were two types of mana-producing cards: MM (manual mana) and normal ones. MM lands required tapping to produce mana, but the AI couldn’t understand how to use them, so they were intended for human players only. The other type triggered at the beginning of each phase or through other effects, automatically choosing a random color.

In the XMAS version, color selection now only happens at the start of the AI's turn.

Planeswalkers reduce my game's framerate to around 15 FPS or lower, especially when I hover the mouse over them. Cards that had "permanent" or "enchantment" text also caused performance issues. I had to clean up the filter for permanent and enchantment cards to prevent gameplay from slowing down when hovering over them.
etphonehome
 
Posts: 327
Joined: 21 May 2020, 12:50
Has thanked: 285 times
Been thanked: 46 times

PreviousNext

Return to 2014

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 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 25 guests

Login Form