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




Community Wad
Moderator: CCGHQ Admins
Re: Community Wad - Updated Dec-12-15
by Xander9009 » 21 Dec 2015, 15:00
I'm not ignoring it. (I fixed Herald of Dromoka and the error with Fiend of Shadows, by the way. Someone else reported it. I didn't fix the exiled card casting, though...) However, I haven't been personally working on the CW very much. Hopefully someone else will get a chance to look into it.nivmizzet1 wrote:Is anybody looking into this?nivmizzet1 wrote:Delver of Secrets doesn't transform
The card's code looks fine to me, and the function is in the WAD, so I can't figure out what the problem is.
I found one difference between the transformed card codes for delver of secrets (not working) and bloodline keeper (working). Bloodline keeper simply hadwhere insectile aberration had something like
- Code: Select all
ResetTransformation()
so I changed that, but the card is still not transforming.
- Code: Select all
TFM.Transform.ResetTransformation()
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
-
Xander9009 - Programmer
- Posts: 2905
- Joined: 29 Jun 2013, 07:44
- Location: Indiana, United States
- Has thanked: 121 times
- Been thanked: 445 times
Re: Community Wad - Updated Dec-12-15
by nivmizzet1 » 21 Dec 2015, 16:19
I saw you fixed that. I went to fix it not long after the post was made and saw you'd already fixed it.Xander9009 wrote:I fixed Herald of Dromoka
______________________________________
my DOTP 2014 Main mod page - my DOTP 2014 OP Decks mod page - Community WAD
my DOTP 2014 Main mod page - my DOTP 2014 OP Decks mod page - Community WAD
- nivmizzet1
- Posts: 617
- Joined: 21 Mar 2013, 10:10
- Has thanked: 100 times
- Been thanked: 25 times
Re: Community Wad - Updated Dec-12-15
by drovil » 22 Dec 2015, 10:22
Tried to fiddle with Delver of Secrets;
moved this code line:
below this line at the bottom:
moved this code line:
- Code: Select all
<TOKEN_REGISTRATION reservation="1" type="_INSECTILE_ABERRATION_CW_226755" />
below this line at the bottom:
- Code: Select all
<AI_BASE_SCORE score="600" zone="ZONE_BATTLEFIELD" />
"Also, that's post number 5. You're officially no longer censored. lol"
-Xander, the Enlightener
Rest in Peace Xander9009.
-Xander, the Enlightener
Rest in Peace Xander9009.
Re: Community Wad - Updated Dec-12-15
by Xander9009 » 22 Dec 2015, 12:46
Yeah. Due to an engine bug, the image only changes if the card color changes, so that's about as close as it will usually get.drovil wrote:Tried to fiddle with Delver of Secrets;
moved this code line:
- Code: Select all
<TOKEN_REGISTRATION reservation="1" type="_INSECTILE_ABERRATION_CW_226755" />
below this line at the bottom:Is this the intended effect below?
- Code: Select all
<AI_BASE_SCORE score="600" zone="ZONE_BATTLEFIELD" />
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
-
Xander9009 - Programmer
- Posts: 2905
- Joined: 29 Jun 2013, 07:44
- Location: Indiana, United States
- Has thanked: 121 times
- Been thanked: 445 times
Re: Community Wad - Updated Dec-12-15
by drovil » 22 Dec 2015, 13:32
Is it possible to have a workaround like adding a "mediator" when transforming a card?Xander9009 wrote:the image only changes if the card color changes
Delver of Secrets -> a temporary Red card with an image of "Please wait" -> Insectile Aberration
Many thanks.

"Also, that's post number 5. You're officially no longer censored. lol"
-Xander, the Enlightener
Rest in Peace Xander9009.
-Xander, the Enlightener
Rest in Peace Xander9009.
Re: Community Wad - Updated Dec-12-15
by Xander9009 » 22 Dec 2015, 14:56
I tried similar ideas, but unfortunately, it must process state-based actions in order for it to register the color change, and if that happens, then there will be instances where that might be a problem (to the point of the creature immediately dying). Simply changing the picture isn't worth the potential side-effects.drovil wrote:Is it possible to have a workaround like adding a "mediator" when transforming a card?Xander9009 wrote:the image only changes if the card color changes
Delver of Secrets -> a temporary Red card with an image of "Please wait" -> Insectile Aberration
Many thanks.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
-
Xander9009 - Programmer
- Posts: 2905
- Joined: 29 Jun 2013, 07:44
- Location: Indiana, United States
- Has thanked: 121 times
- Been thanked: 445 times
Re: Community Wad - Updated Dec-12-15
by nivmizzet1 » 22 Dec 2015, 16:52
That's weird, because I already tried that. These are the codes I tried, below. I should mention now, the only other thing I changed (apart from what I've mentioned already) was the CW number on insectile aberration, because I remembered something about the numbers needing to be a certain way (although I think it was just that they couldn't be the same), so I made it 11 more than delver of secrets, because that's how it is on bloodline keeper/lord of lineage.drovil wrote:Tried to fiddle with Delver of Secrets;
moved this code line:
- Code: Select all
<TOKEN_REGISTRATION reservation="1" type="_INSECTILE_ABERRATION_CW_226755" />
below this line at the bottom:Is this the intended effect below?
- Code: Select all
<AI_BASE_SCORE score="600" zone="ZONE_BATTLEFIELD" />
- Code: Select all
<?xml version='1.0'?>
<CARD_V2 ExportVersion="2">
<FILENAME text="DELVER_OF_SECRETS_CW_226749" />
<CARDNAME text="DELVER_OF_SECRETS" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Delver of Secrets]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Scopritore di Segreti]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Geheimnisstöberer]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Sondeur de secrets]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Indagador de secretos]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[秘密を掘り下げる者]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Delver of Secrets]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Разыскиватель Тайн]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Investigador de Segredos]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="226749" />
<ARTID value="DELVER_OF_SECRETS" />
<ARTIST name="Nils Hamm" />
<CASTING_COST cost="{U}" />
<TYPE metaname="Creature" />
<SUB_TYPE metaname="Human" />
<SUB_TYPE metaname="Wizard" />
<EXPANSION value="ISD" />
<RARITY metaname="C" />
<POWER value="1" />
<TOUGHNESS value="1" />
<TRIGGERED_ABILITY replacement_effect="1" active_zone="ZONE_ANY">
<TRIGGER value="BEGINNING_OF_STEP">
return MTG():GetStep() == STEP_UPKEEP and MTG():GetTurnNumber() == 0
</TRIGGER>
<RESOLUTION_TIME_ACTION>
TFM_Transform().DoCardRegistration_Resolution1("_INSECTILE_ABERRATION_CW_226760")
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
TFM_Transform().DoCardRegistration_Resolution2()
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<TRIGGERED_ABILITY replacement_effect="1" active_zone="ZONE_TRANSITION">
<TRIGGER value="ZONECHANGE_TRANSITION" simple_qualifier="self" to_zone="ZONE_BATTLEFIELD" from_zone="ZONE_ANY" />
<RESOLUTION_TIME_ACTION>
TFM_Transform().ResetTransformation()
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<STATIC_ABILITY>
<CONTINUOUS_ACTION layer="1">
TFM_Transform().ContinuousAction()
</CONTINUOUS_ACTION>
</STATIC_ABILITY>
<TRIGGERED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[At the beginning of your upkeep, look at the top card of your library. You may reveal that card. If an instant or sorcery card is revealed this way, transform Delver of Secrets.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[All’inizio del tuo mantenimento, guarda la prima carta del tuo grimorio. Puoi rivelarla. Se una carta istantaneo o stregoneria viene rivelata in questo modo, trasforma lo Scopritore di Segreti.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Schaue dir zu Beginn deines Versorgungssegments die oberste Karte deiner Bibliothek an. Du kannst diese Karte offen vorzeigen. Falls auf diese Weise eine Spontanzauber- oder Hexerei-Karte vorgezeigt wird, transformiere den Geheimnisstöberer.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Au début de votre entretien, regardez la carte du dessus de votre bibliothèque. Vous pouvez révéler cette carte. Si une carte d’éphémère ou de rituel est révélée de cette manière, transformez le Sondeur de secrets.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Al comienzo de tu mantenimiento, mira la primera carta de tu biblioteca. Puedes mostrar esa carta. Si se muestra una carta de instantáneo o conjuro de esta manera, transforma al Indagador de secretos.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[あなたのアップキープの開始時に、あなたのライブラリーの一番上のカードを見る。 あなたはそのカードを公開してもよい。 これによりインスタント・カードかソーサリー・カードが公開された場合、秘密を掘り下げる者を変身させる。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[At the beginning of your upkeep, look at the top card of your library. You may reveal that card. If an instant or sorcery card is revealed this way, transform Delver of Secrets.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[В начале вашего шага поддержки посмотрите верхнюю карту вашей библиотеки. Вы можете показать ту карту. Если таким образом показывается карта мгновенного заклинания или волшебства, трансформируйте Разыскивателя Тайн.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[No início de sua manutenção, olhe o card do topo do seu grimório. Você pode revelar aquele card. Se um card de mágica instantânea ou de feitiço for revelado dessa maneira, transforme Investigador de Segredos.]]></LOCALISED_TEXT>
<TRIGGER value="BEGINNING_OF_PLAYERS_STEP" simple_qualifier="controller">
return MTG():GetStep() == STEP_UPKEEP
</TRIGGER>
<RESOLUTION_TIME_ACTION>
local player = EffectController()
local top = player:Library_GetTop()
if top ~= nil and player:IsAI() == false then
local queryDC = EffectDC():Make_Chest(2)
queryDC:Set_CardPtr(0, top)
player:ChooseItemFromDC( "CARD_QUERY_CHOOSE_CARD_TO_REVEAL", queryDC, EffectDC():Make_Targets(0), QUERY_FLAG_MAY )
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local player = EffectController()
local top = player:Library_GetTop()
if top ~= nil then
local card = nil
if player:IsAI() == false then
card = EffectDC():Get_Targets(0) and EffectDC():Get_Targets(0):Get_CardPtr(0)
elseif top:GetCardType():Test(CARD_TYPE_INSTANT) or top:GetCardType():Test(CARD_TYPE_SORCERY) then
card = top
end
if card ~= nil then
card:Reveal()
EffectDC():Set_CardPtr(1, card)
end
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local card = EffectDC():Get_CardPtr(1)
if card ~= nil and ( card:GetCardType():Test(CARD_TYPE_INSTANT) or card:GetCardType():Test(CARD_TYPE_SORCERY) ) then
TFM_Transform().DoTransformation( EffectSource() )
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<SFX text="COMBAT_PLASMA_LARGE_ATTACK" power_boundary_min="4" power_boundary_max="-1" />
<SFX text="COMBAT_PLASMA_SMALL_ATTACK" power_boundary_min="1" power_boundary_max="3" />
<HELP title="MORE_INFO_TITLE_DELVER_OS_TRANSFORM" body="MORE_INFO_BODY_DELVER_OS_TRANSFORM" zone="ZONE_ANY" />
<AI_BASE_SCORE score="600" zone="ZONE_BATTLEFIELD" />
<TOKEN_REGISTRATION reservation="1" type="_INSECTILE_ABERRATION_CW_226760" />
<AUTHOR><![CDATA[thefiremind]]></AUTHOR>
<EDITORS><![CDATA[thefiremind]]></EDITORS>
<DATE><![CDATA[2-10-14]]></DATE>
</CARD_V2>
- Code: Select all
<?xml version='1.0'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="_INSECTILE_ABERRATION_CW_226760" />
<CARDNAME text="INSECTILE_ABERRATION" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Insectile Aberration]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Insetto Aberrante]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Insekten-Scheußlichkeit]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Aberration insectoïde]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Aberración insectoide]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[昆虫の逸脱者]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Insectile Aberration]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Насекомовидная Тварь]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Aberração Insetídea]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="226760" />
<ARTID value="INSECTILE_ABERRATION" />
<COLOUR value="U" />
<ARTIST name="Nils Hamm" />
<CASTING_COST cost="" />
<FLAVOURTEXT>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[“Unfortunately, all my test animals have died or escaped, so I shall be the final subject. I feel no fear. This is a momentous night.”
—Laboratory notes, final entry]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[“Purtroppo, tutte le mie cavie sono morte o scappate, così sarò io il soggetto finale. Non ho alcuna paura. Questa è una notte importante.”
—Appunti di laboratorio, ultima annotazione]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[„Leider sind alle meine Versuchstiere gestorben oder entflohen, daher bin ich selber das letzte Testobjekt. Ich habe keine Angst. Dies ist eine bedeutsame Nacht.”
—Versuchsnotizen, letzter Eintrag]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[« Malheureusement, tous mes animaux de tests sont morts ou se sont échappés, alors je serai le dernier cobaye. Je ne ressens aucune peur. La nuit s’annonce grisante. »
—Notes de laboratoire, dernière entrée]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[“Por desgracia, todos mis animales de prueba murieron o escaparon, así que yo seré el último especimen. No tengo miedo. Esta es una noche memorable.”
—Notas de laboratorio, último apunte]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[「残念ながら、私の実験動物はすべて死ぬか逃げるかしてしまった。ならば私が最後の実験台となろう。 恐れは無い。 重大な夜となるだろう。」
――研究記録、最後の書き込み]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[“Unfortunately, all my test animals have died or escaped, so I shall be the final subject. I feel no fear. This is a momentous night.”
—Laboratory notes, final entry]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[«Увы, все мои подопытные животные либо сдохли, либо убежали, поэтому последний эксперимент я поставлю на самом себе. Я не боюсь. Это историческая ночь».
— последняя запись в лабораторном журнале]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[“Infelizmente, todas as minhas cobaias morreram ou fugiram, portanto eu serei a cobaia final. Não tenho medo. Esta será uma noite memorável.”
— Notas de laboratório, último registro]]></LOCALISED_TEXT>
</FLAVOURTEXT>
<TYPE metaname="" />
<EXPANSION value="ISD" />
<RARITY metaname="C" />
<POWER value="3" />
<TOUGHNESS value="2" />
<TRIGGERED_ABILITY replacement_effect="1" active_zone="ZONE_TRANSITION">
<TRIGGER value="ZONECHANGE_TRANSITION" simple_qualifier="self" to_zone="ZONE_ANY" from_zone="ZONE_BATTLEFIELD" />
<RESOLUTION_TIME_ACTION>
ResetTransformation()
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<STATIC_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Flying]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Vol]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Vuela.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Fliegend]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Volare]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[飛行]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[비행]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Полет]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Voar]]></LOCALISED_TEXT>
<INTRINSIC characteristic="CHARACTERISTIC_FLYING" />
</STATIC_ABILITY>
<SFX text="COMBAT_BITE_LARGE_ATTACK" power_boundary_min="4" power_boundary_max="-1" />
<SFX text="COMBAT_BITE_SMALL_ATTACK" power_boundary_min="1" power_boundary_max="3" />
<AI_BASE_SCORE score="600" zone="ZONE_BATTLEFIELD" />
<AUTHOR><![CDATA[thefiremind]]></AUTHOR>
<EDITORS><![CDATA[thefiremind]]></EDITORS>
<DATE><![CDATA[02-10-14]]></DATE>
</CARD_V2>
______________________________________
my DOTP 2014 Main mod page - my DOTP 2014 OP Decks mod page - Community WAD
my DOTP 2014 Main mod page - my DOTP 2014 OP Decks mod page - Community WAD
- nivmizzet1
- Posts: 617
- Joined: 21 Mar 2013, 10:10
- Has thanked: 100 times
- Been thanked: 25 times
Re: Community Wad - Updated Dec-12-15
by drovil » 23 Dec 2015, 04:23
I'm not sure how to do that nor I think I have permissions(?) to do that, sorry sir.nivmizzet1 wrote:Did you add it to google drive?

Here's my code for Delver of Secrets:
- | Open
- Code: Select all
<?xml version='1.0'?>
<CARD_V2 ExportVersion="2">
<FILENAME text="DELVER_OF_SECRETS_CW_226749" />
<CARDNAME text="DELVER_OF_SECRETS" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Delver of Secrets]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Scopritore di Segreti]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Geheimnisstöberer]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Sondeur de secrets]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Indagador de secretos]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[秘密を掘り下げる者]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Delver of Secrets]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Разыскиватель Тайн]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Investigador de Segredos]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="226749" />
<ARTID value="DELVER_OF_SECRETS" />
<ARTIST name="Nils Hamm" />
<CASTING_COST cost="{U}" />
<TYPE metaname="Creature" />
<SUB_TYPE metaname="Human" />
<SUB_TYPE metaname="Wizard" />
<EXPANSION value="ISD" />
<RARITY metaname="C" />
<POWER value="1" />
<TOUGHNESS value="1" />
<TRIGGERED_ABILITY replacement_effect="1" active_zone="ZONE_ANY">
<TRIGGER value="BEGINNING_OF_STEP">
return MTG():GetStep() == STEP_UPKEEP and MTG():GetTurnNumber() == 0
</TRIGGER>
<RESOLUTION_TIME_ACTION>
TFM_Transform().DoCardRegistration_Resolution1("_INSECTILE_ABERRATION_CW_226755")
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
TFM_Transform().DoCardRegistration_Resolution2()
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<TRIGGERED_ABILITY replacement_effect="1" active_zone="ZONE_TRANSITION">
<TRIGGER value="ZONECHANGE_TRANSITION" simple_qualifier="self" to_zone="ZONE_BATTLEFIELD" from_zone="ZONE_ANY" />
<RESOLUTION_TIME_ACTION>
TFM_Transform().ResetTransformation()
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<STATIC_ABILITY>
<CONTINUOUS_ACTION layer="1">
TFM_Transform().ContinuousAction()
</CONTINUOUS_ACTION>
</STATIC_ABILITY>
<TRIGGERED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[At the beginning of your upkeep, look at the top card of your library. You may reveal that card. If an instant or sorcery card is revealed this way, transform Delver of Secrets.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[All’inizio del tuo mantenimento, guarda la prima carta del tuo grimorio. Puoi rivelarla. Se una carta istantaneo o stregoneria viene rivelata in questo modo, trasforma lo Scopritore di Segreti.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Schaue dir zu Beginn deines Versorgungssegments die oberste Karte deiner Bibliothek an. Du kannst diese Karte offen vorzeigen. Falls auf diese Weise eine Spontanzauber- oder Hexerei-Karte vorgezeigt wird, transformiere den Geheimnisstöberer.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Au début de votre entretien, regardez la carte du dessus de votre bibliothèque. Vous pouvez révéler cette carte. Si une carte d’éphémère ou de rituel est révélée de cette manière, transformez le Sondeur de secrets.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Al comienzo de tu mantenimiento, mira la primera carta de tu biblioteca. Puedes mostrar esa carta. Si se muestra una carta de instantáneo o conjuro de esta manera, transforma al Indagador de secretos.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[あなたのアップキープの開始時に、あなたのライブラリーの一番上のカードを見る。 あなたはそのカードを公開してもよい。 これによりインスタント・カードかソーサリー・カードが公開された場合、秘密を掘り下げる者を変身させる。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[At the beginning of your upkeep, look at the top card of your library. You may reveal that card. If an instant or sorcery card is revealed this way, transform Delver of Secrets.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[В начале вашего шага поддержки посмотрите верхнюю карту вашей библиотеки. Вы можете показать ту карту. Если таким образом показывается карта мгновенного заклинания или волшебства, трансформируйте Разыскивателя Тайн.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[No início de sua manutenção, olhe o card do topo do seu grimório. Você pode revelar aquele card. Se um card de mágica instantânea ou de feitiço for revelado dessa maneira, transforme Investigador de Segredos.]]></LOCALISED_TEXT>
<TRIGGER value="BEGINNING_OF_PLAYERS_STEP" simple_qualifier="controller">
return MTG():GetStep() == STEP_UPKEEP
</TRIGGER>
<RESOLUTION_TIME_ACTION>
local player = EffectController()
local top = player:Library_GetTop()
if top ~= nil and player:IsAI() == false then
local queryDC = EffectDC():Make_Chest(2)
queryDC:Set_CardPtr(0, top)
player:ChooseItemFromDC( "CARD_QUERY_CHOOSE_CARD_TO_REVEAL", queryDC, EffectDC():Make_Targets(0), QUERY_FLAG_MAY )
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local player = EffectController()
local top = player:Library_GetTop()
if top ~= nil then
local card = nil
if player:IsAI() == false then
card = EffectDC():Get_Targets(0) and EffectDC():Get_Targets(0):Get_CardPtr(0)
elseif top:GetCardType():Test(CARD_TYPE_INSTANT) or top:GetCardType():Test(CARD_TYPE_SORCERY) then
card = top
end
if card ~= nil then
card:Reveal()
EffectDC():Set_CardPtr(1, card)
end
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local card = EffectDC():Get_CardPtr(1)
if card ~= nil and ( card:GetCardType():Test(CARD_TYPE_INSTANT) or card:GetCardType():Test(CARD_TYPE_SORCERY) ) then
TFM_Transform().DoTransformation( EffectSource() )
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<SFX text="COMBAT_PLASMA_LARGE_ATTACK" power_boundary_min="4" power_boundary_max="-1" />
<SFX text="COMBAT_PLASMA_SMALL_ATTACK" power_boundary_min="1" power_boundary_max="3" />
<AI_BASE_SCORE score="600" zone="ZONE_BATTLEFIELD" />
<TOKEN_REGISTRATION reservation="1" type="_INSECTILE_ABERRATION_CW_226755" />
<AUTHOR><![CDATA[thefiremind]]></AUTHOR>
<EDITORS><![CDATA[thefiremind]]></EDITORS>
<DATE><![CDATA[02-10-14]]></DATE>
</CARD_V2>
- | Open
- Code: Select all
<?xml version='1.0'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="_INSECTILE_ABERRATION_CW_226755" />
<CARDNAME text="INSECTILE_ABERRATION" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Insectile Aberration]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Insetto Aberrante]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Insekten-Scheußlichkeit]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Aberration insectoïde]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Aberración insectoide]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[昆虫の逸脱者]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Insectile Aberration]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Насекомовидная Тварь]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Aberração Insetídea]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="226755" />
<ARTID value="INSECTILE_ABERRATION" />
<COLOUR value="U" />
<ARTIST name="Nils Hamm" />
<CASTING_COST cost="" />
<FLAVOURTEXT>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[“Unfortunately, all my test animals have died or escaped, so I shall be the final subject. I feel no fear. This is a momentous night.”
—Laboratory notes, final entry]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[“Purtroppo, tutte le mie cavie sono morte o scappate, così sarò io il soggetto finale. Non ho alcuna paura. Questa è una notte importante.”
—Appunti di laboratorio, ultima annotazione]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[„Leider sind alle meine Versuchstiere gestorben oder entflohen, daher bin ich selber das letzte Testobjekt. Ich habe keine Angst. Dies ist eine bedeutsame Nacht.”
—Versuchsnotizen, letzter Eintrag]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[« Malheureusement, tous mes animaux de tests sont morts ou se sont échappés, alors je serai le dernier cobaye. Je ne ressens aucune peur. La nuit s’annonce grisante. »
—Notes de laboratoire, dernière entrée]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[“Por desgracia, todos mis animales de prueba murieron o escaparon, así que yo seré el último especimen. No tengo miedo. Esta es una noche memorable.”
—Notas de laboratorio, último apunte]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[「残念ながら、私の実験動物はすべて死ぬか逃げるかしてしまった。ならば私が最後の実験台となろう。 恐れは無い。 重大な夜となるだろう。」
――研究記録、最後の書き込み]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[“Unfortunately, all my test animals have died or escaped, so I shall be the final subject. I feel no fear. This is a momentous night.”
—Laboratory notes, final entry]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[«Увы, все мои подопытные животные либо сдохли, либо убежали, поэтому последний эксперимент я поставлю на самом себе. Я не боюсь. Это историческая ночь».
— последняя запись в лабораторном журнале]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[“Infelizmente, todas as minhas cobaias morreram ou fugiram, portanto eu serei a cobaia final. Não tenho medo. Esta será uma noite memorável.”
— Notas de laboratório, último registro]]></LOCALISED_TEXT>
</FLAVOURTEXT>
<TYPE metaname="" />
<EXPANSION value="ISD" />
<RARITY metaname="C" />
<POWER value="3" />
<TOUGHNESS value="2" />
<TRIGGERED_ABILITY replacement_effect="1" active_zone="ZONE_TRANSITION">
<TRIGGER value="ZONECHANGE_TRANSITION" simple_qualifier="self" to_zone="ZONE_ANY" from_zone="ZONE_BATTLEFIELD" />
<RESOLUTION_TIME_ACTION>
TFM_Transform().ResetTransformation()
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<STATIC_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Flying]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Vol]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Vuela.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Fliegend]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Volare]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[飛行]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[비행]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Полет]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Voar]]></LOCALISED_TEXT>
<INTRINSIC characteristic="CHARACTERISTIC_FLYING" />
</STATIC_ABILITY>
<SFX text="COMBAT_BITE_LARGE_ATTACK" power_boundary_min="4" power_boundary_max="-1" />
<SFX text="COMBAT_BITE_SMALL_ATTACK" power_boundary_min="1" power_boundary_max="3" />
<AI_BASE_SCORE score="600" zone="ZONE_BATTLEFIELD" />
<AUTHOR><![CDATA[thefiremind]]></AUTHOR>
<EDITORS><![CDATA[thefiremind]]></EDITORS>
<DATE><![CDATA[02-10-14]]></DATE>
</CARD_V2>
Got quite confused with the Confirm/Finish notification when selecting to reveal the card.

"Also, that's post number 5. You're officially no longer censored. lol"
-Xander, the Enlightener
Rest in Peace Xander9009.
-Xander, the Enlightener
Rest in Peace Xander9009.
Re: Community Wad - Updated Dec-12-15
by nivmizzet1 » 23 Dec 2015, 18:26
OK, I've used your code and it's still not transforming. There must be something in my files that's interacting with it, but I can't for the life of me figure out what that could be. Whatever it is, it can't be affecting all transform cards because bloodline keeper is working...
______________________________________
my DOTP 2014 Main mod page - my DOTP 2014 OP Decks mod page - Community WAD
my DOTP 2014 Main mod page - my DOTP 2014 OP Decks mod page - Community WAD
- nivmizzet1
- Posts: 617
- Joined: 21 Mar 2013, 10:10
- Has thanked: 100 times
- Been thanked: 25 times
Re: Community Wad - Updated Dec-12-15
by nivmizzet1 » 23 Dec 2015, 18:39
[lua] [string "THRULL_PARASITE_CW_366437_TITLE (TARGET_DEFINITION)~0x000004a4"]:17: attempt to compare number with nil
______________________________________
my DOTP 2014 Main mod page - my DOTP 2014 OP Decks mod page - Community WAD
my DOTP 2014 Main mod page - my DOTP 2014 OP Decks mod page - Community WAD
- nivmizzet1
- Posts: 617
- Joined: 21 Mar 2013, 10:10
- Has thanked: 100 times
- Been thanked: 25 times
Re: Community Wad - Updated Dec-12-15
by Xander9009 » 23 Dec 2015, 18:51
Should be fixed. I wish I knew what was wrong with it immediately, but if I had to take a guess, I'd say look for any triggered abilities in the two cards related to running at the start of the game and check how many RTAs each card uses for that ability. If they're different, copy the working one to the non-working one.nivmizzet1 wrote:[lua] [string "THRULL_PARASITE_CW_366437_TITLE (TARGET_DEFINITION)~0x000004a4"]:17: attempt to compare number with nil
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
-
Xander9009 - Programmer
- Posts: 2905
- Joined: 29 Jun 2013, 07:44
- Location: Indiana, United States
- Has thanked: 121 times
- Been thanked: 445 times
Re: Community Wad - Updated Dec-12-15
by nivmizzet1 » 23 Dec 2015, 21:15
Not sure what you mean; are you talking about delver of secrets? When you say 'look for any triggered abilities in the two cards', which two cards do you mean? And how do you identify 'triggered abilities ... related to running at the start of the game'? I didn't know such things existed. As you can probably tell, I'm completely lost, lol.Xander9009 wrote:I wish I knew what was wrong with it immediately, but if I had to take a guess, I'd say look for any triggered abilities in the two cards related to running at the start of the game and check how many RTAs each card uses for that ability. If they're different, copy the working one to the non-working one.
______________________________________
my DOTP 2014 Main mod page - my DOTP 2014 OP Decks mod page - Community WAD
my DOTP 2014 Main mod page - my DOTP 2014 OP Decks mod page - Community WAD
- nivmizzet1
- Posts: 617
- Joined: 21 Mar 2013, 10:10
- Has thanked: 100 times
- Been thanked: 25 times
Re: Community Wad - Updated Dec-12-15
by Xander9009 » 23 Dec 2015, 21:26
Sorry. The two cards I meant were the Delver of Secrets and Bloodline Keeper. The broken and working transform cards on your end, respectively.
To identify a start-of-game triggered ability, find any triggered ability with the "replacement_effect" attribute whose trigger is beginning of step == upkeep and turn number = 0. They'll both have one. The only question is whether or not they have the same number of RESOLUTION_TIME_ACTION blocks in them. I just checked them and here's Bloodline Keeper//Lord of Lineage
To identify a start-of-game triggered ability, find any triggered ability with the "replacement_effect" attribute whose trigger is beginning of step == upkeep and turn number = 0. They'll both have one. The only question is whether or not they have the same number of RESOLUTION_TIME_ACTION blocks in them. I just checked them and here's Bloodline Keeper//Lord of Lineage
- Code: Select all
<TRIGGERED_ABILITY replacement_effect="1" active_zone="ZONE_ANY">
<TRIGGER value="BEGINNING_OF_STEP">
return MTG():GetStep() == STEP_UPKEEP and MTG():GetTurnNumber() == 0
</TRIGGER>
<RESOLUTION_TIME_ACTION>
TFM_Transform().DoCardRegistration_Resolution1("_LORD_OF_LINEAGE_CW_227072")
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
TFM_Transform().DoCardRegistration_Resolution2()
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
- Code: Select all
<TRIGGERED_ABILITY replacement_effect="1" active_zone="ZONE_ANY">
<TRIGGER value="BEGINNING_OF_STEP">
return MTG():GetStep() == STEP_UPKEEP and MTG():GetTurnNumber() == 0
</TRIGGER>
<RESOLUTION_TIME_ACTION>
TFM_Transform().DoCardRegistration_Resolution1("_INSECTILE_ABERRATION_CW_226755")
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
TFM_Transform().DoCardRegistration_Resolution2()
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
Last edited by Xander9009 on 24 Dec 2015, 18:22, edited 1 time in total.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
-
Xander9009 - Programmer
- Posts: 2905
- Joined: 29 Jun 2013, 07:44
- Location: Indiana, United States
- Has thanked: 121 times
- Been thanked: 445 times
Re: Community Wad - Updated Dec-12-15
by nivmizzet1 » 24 Dec 2015, 08:13
OK, yeah, I sort of already did that. I checked them both against each other looking at all the parts specific to the transform mechanic and they're virtually identical excluding the reference to their respective transform cards.Xander9009 wrote:Sorry. The two cards I meant were the Delver of Secrets and Bloodline Keeper. The broken and working transform cards on your end, respectively.
To identify a start-of-game triggered ability, find any triggered ability with the "replacement_effect" attribute whose trigger is beginning of step == upkeep and turn number = 0. They'll both have one. The only question is whether or not they have the same number of RESOLUTION_TIME_ACTION blocks in them. I just checked them and here's Bloodline Keeper//Lord of LineageDelver of Secrets//Insectile Aberation
- Code: Select all
<TRIGGERED_ABILITY replacement_effect="1" active_zone="ZONE_ANY">
<TRIGGER value="BEGINNING_OF_STEP">
return MTG():GetStep() == STEP_UPKEEP and MTG():GetTurnNumber() == 0
</TRIGGER>
<RESOLUTION_TIME_ACTION>
TFM_Transform().DoCardRegistration_Resolution1("_LORD_OF_LINEAGE_CW_227072")
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
TFM_Transform().DoCardRegistration_Resolution2()
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>Same number, so that's not the issue.
- Code: Select all
<TRIGGERED_ABILITY replacement_effect="1" active_zone="ZONE_ANY">
<TRIGGER value="BEGINNING_OF_STEP">
return MTG():GetStep() == STEP_UPKEEP and MTG():GetTurnNumber() == 0
</TRIGGER>
<RESOLUTION_TIME_ACTION>
TFM_Transform().DoCardRegistration_Resolution1("_INSECTILE_ABERRATION_CW_226755")
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
TFM_Transform().DoCardRegistration_Resolution2()
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
______________________________________
my DOTP 2014 Main mod page - my DOTP 2014 OP Decks mod page - Community WAD
my DOTP 2014 Main mod page - my DOTP 2014 OP Decks mod page - Community WAD
- nivmizzet1
- Posts: 617
- Joined: 21 Mar 2013, 10:10
- Has thanked: 100 times
- Been thanked: 25 times
Re: Community Wad - Updated Dec-12-15
by Xander9009 » 24 Dec 2015, 18:23
In that case, check the transformed cards, and then check the tranformation function files (TFM_TRANSFORM, I think).
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
-
Xander9009 - Programmer
- Posts: 2905
- Joined: 29 Jun 2013, 07:44
- Location: Indiana, United States
- Has thanked: 121 times
- Been thanked: 445 times
Who is online
Users browsing this forum: No registered users and 5 guests