It is currently 25 Jun 2025, 21:49
   
Text Size

Formal Request Thread

Moderator: CCGHQ Admins

Re: Formal Request Thread

Postby StoneyTheBear » 04 Sep 2015, 08:58

nivmizzet1 wrote:
StoneyTheBear wrote:Master of Etherium
Ponder
Preyseizer Dragon
Master of Etherium
Shield of the Avatar

Not sure how the shield will be to code. It has a bit of a strange mechanic. I'm hoping it's possible though.
You have Master of Etherium in your list twice, and it's already in the CW, as are Ponder and Shield of the Avatar. Preyseizer Dragon is the only card on your list not in the CW.
My apologies. I was going off of what Riaak's deck building was telling me. Using a clean install seems to present the correct cards.
User avatar
StoneyTheBear
 
Posts: 33
Joined: 22 May 2015, 04:29
Has thanked: 3 times
Been thanked: 0 time

Re: Formal Request Thread

Postby Xander9009 » 04 Sep 2015, 14:56

nachonal986 wrote:sorry, but somebody could code Cairn Wanderer and gift of immortality?
You wouldn't be able to do protection unless you literally list every possible protection ability and check for all permanents with that type of protection. Or perhaps a function to check for permanents in graveyards with protection abilities, adding those types to a filter as it goes. This way it would only be one ability, rather than a hundred. It would still be very difficult.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2905
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 121 times
Been thanked: 445 times

Re: Formal Request Thread

Postby nachonal986 » 05 Sep 2015, 00:17

Xander9009 wrote:
nachonal986 wrote:sorry, but somebody could code Cairn Wanderer and gift of immortality?
You wouldn't be able to do protection unless you literally list every possible protection ability and check for all permanents with that type of protection. Or perhaps a function to check for permanents in graveyards with protection abilities, adding those types to a filter as it goes. This way it would only be one ability, rather than a hundred. It would still be very difficult.
sorry, is coded into CW, and works ok, so only, Cairn Wanderer it's possible to do?

and there exist anothers enchantments for copy or creature to do something like these?
User avatar
nachonal986
 
Posts: 83
Joined: 27 Jul 2015, 21:13
Has thanked: 17 times
Been thanked: 1 time

Re: Formal Request Thread

Postby Xander9009 » 07 Sep 2015, 19:21

StoneyTheBear wrote:
nivmizzet1 wrote:
StoneyTheBear wrote:Master of Etherium
Ponder
Preyseizer Dragon
Master of Etherium
Shield of the Avatar

Not sure how the shield will be to code. It has a bit of a strange mechanic. I'm hoping it's possible though.
You have Master of Etherium in your list twice, and it's already in the CW, as are Ponder and Shield of the Avatar. Preyseizer Dragon is the only card on your list not in the CW.
My apologies. I was going off of what Riaak's deck building was telling me. Using a clean install seems to present the correct cards.
Preyseizer Dragon is done.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2905
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 121 times
Been thanked: 445 times

Re: Formal Request Thread

Postby Xander9009 » 07 Sep 2015, 19:24

nachonal986 wrote:sorry, but somebody could code Cairn Wanderer and gift of immortality?
Gift of Immortality is in the CW. Cairn wanderer cannot be fully coded yet. I'm planning to make a set of functions to expose protection abilities. Once I do, Cairn Wanderer will be one of the cards I code. They'll be generally useful, too. Many times, we need to target a creature without using a target tag, but that's the only way to avoid targeting creatures with protection. Given an idea I had a long time ago, it may also enable Creature A must block creature B if able. If I recall correctly, protection was the main problem with my idea. I'd have to go and look it up, again, though.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2905
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 121 times
Been thanked: 445 times

Re: Formal Request Thread

Postby Xander9009 » 07 Sep 2015, 19:33

nachonal986 wrote:
Xander9009 wrote:
nachonal986 wrote:sorry, but somebody could code Cairn Wanderer and gift of immortality?
You wouldn't be able to do protection unless you literally list every possible protection ability and check for all permanents with that type of protection. Or perhaps a function to check for permanents in graveyards with protection abilities, adding those types to a filter as it goes. This way it would only be one ability, rather than a hundred. It would still be very difficult.
sorry, is coded into CW, and works ok, so only, Cairn Wanderer it's possible to do?

and there exist anothers enchantments for copy or creature to do something like these?
Searching Gatherer for any cards with flying, lifelink, and deathtouch (just because these should all three appear on any cards with this kind of ability), I only see two. Cairn Wanderer and Soulflayer. I coded Soulflayer, and it works. But it doesn't consider any protection abilities. As for things that copy things, that's always done as a copy of the entire card. Never a part of a card, such as a single ability.

As for the protection abilities, I've gone through and indexed the abilities. As far as already coded cards go, there are 26 different kinds of protection.

| Open
White
Blue
Black
Red
Green
Colored Spells
Multicolored
Monocolored

Artifacts
Enchantments
Creatures
Instants
Lands
Sorceries*

CMC >= 3

Beasts
Clerics
Demons
Dragons
Elves
Goblins
Kavu
Non-Spirits
Vampires
Werewolves
Zombies

Everything

*Sorceries is never used as an innate protection ability.



There are of course MANY cards (183) with one or more of these abilities. I'm considering how we can handle protection. I think the best way to go is to have an RSN_ObjectDC chest with 3 subchests. Those 3 subchests would contain the three possible parameters for filters, in order. Progenitus, Emrakul, the Aeons Torn, and players will all require special code, but everything else should be able to be handled with just those chests. I'm not sure how to handle the fact that it's an ability and thus could be lost. Riiak, maybe you'll have an idea here.

My current thought is to have a custom characteristic for protection. But it would also need another manager (unless the custom characteristic manager is altered) to reset that chest on those cards at some layer less than 6, where protection abilities are set. This way, if they ever lose their abilities, the chest on that card is nullified, and any checks for protection will return false.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2905
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 121 times
Been thanked: 445 times

Re: Formal Request Thread

Postby RiiakShiNal » 07 Sep 2015, 23:07

You missed Concerted Effort, Death-Mask Duplicant, and Escaped Shapeshifter.

Xander9009 wrote:There are of course MANY cards (183) with one or more of these abilities. I'm considering how we can handle protection. I think the best way to go is to have an RSN_ObjectDC chest with 3 subchests. Those 3 subchests would contain the three possible parameters for filters, in order. Progenitus, Emrakul, the Aeons Torn, and players will all require special code, but everything else should be able to be handled with just those chests. I'm not sure how to handle the fact that it's an ability and thus could be lost. Riiak, maybe you'll have an idea here.
At one time I was working on a system to handle both granting Protection and storing off the values in a way such that they could be read and applied, but I managed to lose the code (of which there was a lot) and lost the motivation to re-write all of it. It was designed to work with my Custom Characteristics, though I was still fighting a few issues when the code got wiped out.

Xander9009 wrote:My current thought is to have a custom characteristic for protection. But it would also need another manager (unless the custom characteristic manager is altered) to reset that chest on those cards at some layer less than 6, where protection abilities are set. This way, if they ever lose their abilities, the chest on that card is nullified, and any checks for protection will return false.
Custom Characteristics already clear on Layer 0 every time CONTINUOUS_ACTIONs are calculated (handled by the manager). This is to ensure that the characteristics are correct regardless of what happens to the card (goes to graveyard, gets flickered, returned to hand then recast, put on top of library, loses abilities, etc...).
RiiakShiNal
Programmer
 
Posts: 2188
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times

Re: Formal Request Thread

Postby Xander9009 » 07 Sep 2015, 23:17

RiiakShiNal wrote:You missed Concerted Effort, Death-Mask Duplicant, and Escaped Shapeshifter.
Apparently I limited it a bit too much. I figured lifelink and deathtouch would exist on any of them with such an ability, but I guess not. Thanks.

RiiakShiNal wrote:
Xander9009 wrote:There are of course MANY cards (183) with one or more of these abilities. I'm considering how we can handle protection. I think the best way to go is to have an RSN_ObjectDC chest with 3 subchests. Those 3 subchests would contain the three possible parameters for filters, in order. Progenitus, Emrakul, the Aeons Torn, and players will all require special code, but everything else should be able to be handled with just those chests. I'm not sure how to handle the fact that it's an ability and thus could be lost. Riiak, maybe you'll have an idea here.
At one time I was working on a system to handle both granting Protection and storing off the values in a way such that they could be read and applied, but I managed to lose the code (of which there was a lot) and lost the motivation to re-write all of it. It was designed to work with my Custom Characteristics, though I was still fighting a few issues when the code got wiped out.
That's extremely unfortunate. That explains why you had the list of protection abilities handy when I wanted to incorporate them into the universal generator plugin.

RiiakShiNal wrote:
Xander9009 wrote:My current thought is to have a custom characteristic for protection. But it would also need another manager (unless the custom characteristic manager is altered) to reset that chest on those cards at some layer less than 6, where protection abilities are set. This way, if they ever lose their abilities, the chest on that card is nullified, and any checks for protection will return false.
Custom Characteristics already clear on Layer 0 every time CONTINUOUS_ACTIONs are calculated (handled by the manager). This is to ensure that the characteristics are correct regardless of what happens to the card (goes to graveyard, gets flickered, returned to hand then recast, put on top of library, loses abilities, etc...).
I was assuming the custom characteristic would be more for whether or not a given card has protection, and then the chest would have the stored data explaining what that protection is for. So the characteristic manager would clear the characteristic itself, but not the chest. But thinking about it, I wouldn't actually need to clear the chest as long as the characteristic is checked first, and then clear the chest before writing to it each continuous action iteration. So, you're right, another manager wouldn't be necessary. Not sure why I was thinking the chest definitely needed cleared... Oh well. I guess if it does need cleared, I'm either doing something wrong or I'll just deal with it then haha.

Unfortunately, I've gotten myself into ANOTHER big project to delay everything I do: I'm currently writing a modding tutorial on the wiki.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2905
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 121 times
Been thanked: 445 times

Re: Formal Request Thread

Postby migookman » 07 Sep 2015, 23:29

Xander9009 wrote: Unfortunately, I've gotten myself into ANOTHER big project to delay everything I do: I'm currently writing a modding tutorial on the wiki.
I think this would be a great idea. I've been thinking of doing some videos for modding cards.
User avatar
migookman
 
Posts: 135
Joined: 05 Aug 2014, 06:37
Has thanked: 22 times
Been thanked: 28 times

Re: Formal Request Thread

Postby RiiakShiNal » 07 Sep 2015, 23:41

Xander9009 wrote:That's extremely unfortunate. That explains why you had the list of protection abilities handy when I wanted to incorporate them into the universal generator plugin.
Well, I also used them for my card generator (which is not as robust or as polished as thefiremind's so I never released it).

Xander9009 wrote:Unfortunately, I've gotten myself into ANOTHER big project to delay everything I do: I'm currently writing a modding tutorial on the wiki.
True, it is a pretty decent sized project so it will take a while. As for writing a modding tutorial on the Wiki, I'm sure that many people will thank you for it as there are probably many people still out there still not sure on modding for DotP 2014 (and there are still issues with DotP 2015, which haven't been solved just yet, and still issues for Duels: Origins).
RiiakShiNal
Programmer
 
Posts: 2188
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times

Re: Formal Request Thread

Postby nachonal986 » 08 Sep 2015, 00:04

As I read is pretty hard to code Cairn Wanderer, Escaped Shapeshifter and Death-Mask Duplicant, so I'll discard the idea to do a deck clones abilities.

Thanks anyway to all!
User avatar
nachonal986
 
Posts: 83
Joined: 27 Jul 2015, 21:13
Has thanked: 17 times
Been thanked: 1 time

Re: Formal Request Thread

Postby Xander9009 » 08 Sep 2015, 01:47

Alright, so the tutorial is up. I'll improve it with pictures and the coding section when I have time (or of course, since it's a wiki, anyone else who wants to can please feel free haha).

http://www.slightlymagic.net/wiki/DotP_ ... g_Tutorial
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2905
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 121 times
Been thanked: 445 times

Re: Formal Request Thread

Postby Borborigmos » 08 Sep 2015, 16:18

Xander9009 wrote:I coded Soulflayer, and it works. But it doesn't consider any protection abilities. As for things that copy things, that's always done as a copy of the entire card. Never a part of a card, such as a single ability.
Are you sure Soulflayer works? I just tested it and delved a Troll Ascetic and a Vampire Nighthawk and he came into play with no abilities.
Borborigmos
 
Posts: 90
Joined: 13 Apr 2015, 16:24
Has thanked: 25 times
Been thanked: 4 times

Re: Formal Request Thread

Postby Xander9009 » 08 Sep 2015, 16:33

Borborigmos wrote:
Xander9009 wrote:I coded Soulflayer, and it works. But it doesn't consider any protection abilities. As for things that copy things, that's always done as a copy of the entire card. Never a part of a card, such as a single ability.
Are you sure Soulflayer works? I just tested it and delved a Troll Ascetic and a Vampire Nighthawk and he came into play with no abilities.
He definitely worked before. I'll test him out again.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2905
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 121 times
Been thanked: 445 times

Re: Formal Request Thread

Postby Xander9009 » 08 Sep 2015, 21:54

I tested Soulflayer with those two cards, and he works just as expected. The only downside to how he works is that while the badges are displayed, the abilities aren't added as text.

You must have something on your end preventing Soulflayer from working properly.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2905
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 121 times
Been thanked: 445 times

PreviousNext

Return to 2014

Who is online

Users browsing this forum: etphonehome and 4 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 5 users online :: 1 registered, 0 hidden and 4 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: etphonehome and 4 guests

Login Form