It is currently 21 Jun 2021, 15:13
   
Text Size

Community Wad

Moderators: Xander9009, CCGHQ Admins

Re: Community Wad

Postby Nick26 » 13 Feb 2021, 11:55

Hi guys, does anyone know how to code emergent ultimatum ? I tried starting from brilliant ultimatum but I failed :cry:
Nick26
 
Posts: 66
Joined: 23 Mar 2015, 16:40
Has thanked: 14 times
Been thanked: 0 time

Re: Community Wad

Postby RiiakShiNal » 16 Feb 2021, 02:31

Nick26 wrote:Hi guys, does anyone know how to code Emergent Ultimatum ? I tried starting from Brilliant Ultimatum but I failed :cry:
The easiest way (though probably not the best experience for the user) to code it would probably be to do it in steps like this (in a single ability):
  1. Set up a filter to search for cards with only a single color and allow select up to 1 card.
  2. If a card was selected, store it in a card pointer. If no card selected then we can skip the steps up until we exile Emergent Ultimatum.
  3. Set up a filter to search for cards with only a single color excluding cards that match the card name of the card stored in the card pointer set up in step 2 and select up to 1 card.
  4. If a card was selected, store it in another card pointer. If no card selected then we can skip to shuffling the card selected in step 2 into the library then exiling Emergent Ultimatum.
  5. Set up a filter to search for cards with only a single color excluding cards that match the name of the card stored in the card pointer set up in step 2 or match the name of the card stored in the card pointer set up in step 4 and select up to 1 card.
  6. If a card was selected, store it in a third card pointer.
  7. Technically, we should exile the cards chosen up to now, but due to engine limitations it is easier to simply put them into a DC and present them to an opponent to choose one to be shuffled in (easy to select opponent if a normal duel otherwise properly selecting an opponent could be tricky in Two-Headed Giant or Free-For-All).
  8. Now protect the two card pointers that are not to be shuffled in and then exile the cards.
  9. Now we need to shuffle the Library (the one card chosen to be shuffled is still in the library so don't need to do anything more with it).
  10. Now we would take the remaining two cards and present them to the caster to choose which one to cast (or none if they choose).
  11. If a card was chosen then cast it for free. If no card chosen then skip to exiling Emergent Ultimatum.
  12. Now present the last card to the caster and ask if they want to cast it (they can choose not to cast it).
  13. If the card was chosen then cast it for free.
  14. Exile Emergent Ultimatum.

Granted, I did not get into the nitty-gritty of how to code each step and there are other ways to code it, but they could get more complicated.
RiiakShiNal
Programmer
 
Posts: 2160
Joined: 16 May 2011, 21:37
Has thanked: 74 times
Been thanked: 481 times

Re: Community Wad

Postby Nick26 » 16 Feb 2021, 08:13

Thanks, I am gonna try that! If it works I'll post the code
Nick26
 
Posts: 66
Joined: 23 Mar 2015, 16:40
Has thanked: 14 times
Been thanked: 0 time

Re: Community Wad

Postby thumpalump » 22 Feb 2021, 01:39

I just wanted to let you guys know you're doing God's work over here. I played DotP 2014 when it released (even DotP 2012) and downloaded the WAD for 2014 a little over a year ago. It's almost the perfect mix for Magic. It has a good looking UI to play the game in, a simple AI to play against, 2HG mode and no need to dump money in to collect the cards. I thought the project had gone dark after the tragedy of what happened to the OG of this place. But I was stoked to find out people are still adding cards to the database. I've been thinking of dabbling in making cards myself and hopefully contributing to the library. Is there any info you guys can give about how to get started creating mods/cards for the WAD?
thumpalump
 
Posts: 4
Joined: 15 Aug 2013, 02:36
Has thanked: 0 time
Been thanked: 0 time

Re: Community Wad

Postby Nick26 » 28 Feb 2021, 19:30

thumpalump wrote:I just wanted to let you guys know you're doing God's work over here. I played DotP 2014 when it released (even DotP 2012) and downloaded the WAD for 2014 a little over a year ago. It's almost the perfect mix for Magic. It has a good looking UI to play the game in, a simple AI to play against, 2HG mode and no need to dump money in to collect the cards. I thought the project had gone dark after the tragedy of what happened to the OG of this place. But I was stoked to find out people are still adding cards to the database. I've been thinking of dabbling in making cards myself and hopefully contributing to the library. Is there any info you guys can give about how to get started creating mods/cards for the WAD?
I am not really good at modding, I know very little about it, so when I want to code a card I look for similar ones and I do some kind of copy/past and rearrange. For example, for Dream Trawler: I started from prognostic sphinx that has the same activated ability, then for the triggered ability I just took a creature with an attacking trigger and then I changed the "resolution time action" part.

I know it's not much but it's definitely better than starting from scratch :)
Nick26
 
Posts: 66
Joined: 23 Mar 2015, 16:40
Has thanked: 14 times
Been thanked: 0 time

Re: Community Wad

Postby thumpalump » 05 Mar 2021, 03:27

That makes a lot of sense. I taught myself how to mod Torchlight 2 by doing the exact same thing. How do you open up the files in the first place to modify them? Is it done through a simple text program? Or is something more complex like IntelliJ with a coding language? Can you share how to open up the files in order to modify them?
thumpalump
 
Posts: 4
Joined: 15 Aug 2013, 02:36
Has thanked: 0 time
Been thanked: 0 time

Re: Community Wad

Postby RiiakShiNal » 15 Mar 2021, 10:47

In addition to this forum there is also a Wiki which contains a fair amount of information in a bit more digestible form.

The wiki even has a Modding Tutorial specifically for DotP 2014.

A primer on Coding Cards.

Using Filters and Interrogations.

Information on Cleaning Code and making code somewhat error resistant.

Some Best Practices.

Frequent Modding Mistakes.

And even a tutorial on making Animated Card Images.
RiiakShiNal
Programmer
 
Posts: 2160
Joined: 16 May 2011, 21:37
Has thanked: 74 times
Been thanked: 481 times

Re: Community Wad

Postby Siber1an » 23 May 2021, 12:37

Hey, guys! Many thanks for everything that was created before! Tell me, please, work on Community Wad has been discontinued or is there a chance that someone will add new cards? I can support such work on a Patreon or transfer to a bank card for example $25 per 1 set.

Also I can support for adding new features in Deck Builder like a displaying Mana Curve and creation of user friendly Card Builder for players who have no skills in programming and modding. Hope someone will interested in this.
Siber1an
 
Posts: 5
Joined: 23 May 2021, 12:32
Has thanked: 2 times
Been thanked: 0 time

Re: Community Wad

Postby Zambooo » 25 May 2021, 21:37

Siber1an wrote:Hey, guys! Many thanks for everything that was created before! Tell me, please, work on Community Wad has been discontinued or is there a chance that someone will add new cards? I can support such work on a Patreon or transfer to a bank card for example $25 per 1 set.

Also I can support for adding new features in Deck Builder like a displaying Mana Curve and creation of user friendly Card Builder for players who have no skills in programming and modding. Hope someone will interested in this.
I can't say that it has been discontinued, but the number of programmers currently working on it is practically zero.
Also, there is no Patreon since, as the name suggests, it is a community driven project.
User avatar
Zambooo
 
Posts: 242
Joined: 01 Jul 2012, 21:33
Has thanked: 19 times
Been thanked: 16 times

Re: Community Wad

Postby HeliosBlaze » 26 May 2021, 00:16

I have coded like a 100 new cards, most of them from Throne of Eldraine, but I started a new school trimester and my time is very limited I will probably upload those if I find some free time, after the trimester ends. Like around the middle of august. Since I want to test them before I upload them.
HeliosBlaze
 
Posts: 5
Joined: 16 Feb 2021, 20:54
Has thanked: 0 time
Been thanked: 2 times

Re: Community Wad

Postby Siber1an » 26 May 2021, 18:57

Hi, guys. Thanks for answers and clarifications. Hope one day the magic programmers come back to us. The work that was done is truly incredible. I just want you to know that I sincerely appreciate everyone who helped with something for Community Wad. Time spent in this game and with Deck Builder was amazing!

HeliosBlaze, I wish you good luck at school! Be strong and smart :D
Siber1an
 
Posts: 5
Joined: 23 May 2021, 12:32
Has thanked: 2 times
Been thanked: 0 time

Previous

Return to 2014

Who is online

Users browsing this forum: No registered users and 19 guests


Who is online

In total there are 19 users online :: 0 registered, 0 hidden and 19 guests (based on users active over the past 10 minutes)
Most users ever online was 1922 on 07 Jun 2021, 06:01

Users browsing this forum: No registered users and 19 guests

Login Form