It is currently 16 Apr 2024, 18:44
   
Text Size

Card wishlist

Moderators: ubeefx, beholder, melvin, ShawnieBoy, Lodici, CCGHQ Admins

Re: Card wishlist

Postby rasdel » 27 May 2012, 16:31

First of all i want to say i am a Magarena addict!

I downloaded it yesterday... Magarena... where have u been all my life!!! It's deffinitely the best way to play MTG with AI i have found, including playing DotP.

Of course the cards are limited right now but still is awesome...

I only have 1 request for the moment... it's been one of my favorite cards... i would like the 7th edition art since it looks better too...

Prodigal Sorcerer

http://gatherer.wizards.com/Pages/Card/ ... seid=11458

Anyway, hope you can add it...

Cheers
rasdel
 
Posts: 20
Joined: 26 Dec 2009, 16:41
Has thanked: 0 time
Been thanked: 4 times

Re: Card wishlist

Postby pcastellazzi » 27 May 2012, 21:13

Prodigal Sorcerer can be implemented with scripting. Please take a look at: http://code.google.com/p/magarena/wiki/ ... ntingCards. Inside Magerena-1.26/Magarena/scripts is the current set. Prodigal Pyromancer would be a good start point.

Code: Select all
name=Prodigal Sorcerer
url=http://magiccards.info/7e/en/94.html
image=http://magiccards.info/scans/en/7e/94.jpg
value=3
rarity=C
type=Creature
subtype=Human,Wizard
color=u
converted=3
cost={2}{U}
pt=1/1
ability=ping 1
timing=fmain
I not tested it but i think this should do the trick. Dont forget to download the images using the option from the menu. Hope it helps.
Last edited by pcastellazzi on 28 May 2012, 02:43, edited 1 time in total.
The lights then came up and the crowd erupted in applause, because that's what the crowd does after it watches destruction on a large screen.
— Ben Kuchera, Mordern Warfare 3 review.
User avatar
pcastellazzi
 
Posts: 184
Joined: 25 Apr 2012, 00:40
Location: Montevideo, Uruguay
Has thanked: 11 times
Been thanked: 30 times

Re: Card wishlist

Postby rasdel » 27 May 2012, 23:40

I tried but i didn't work. If i put the script into the script folder Magarena wont even start. I'll read around and see if i can find a way around it. Still, it's good to know that one can add some cards editing scripts from others. It opens up some possibilities. Either way, if i fail i guess there is a chance the devs will implement this card eventually,

Cheers
rasdel
 
Posts: 20
Joined: 26 Dec 2009, 16:41
Has thanked: 0 time
Been thanked: 4 times

Re: Card wishlist

Postby pcastellazzi » 28 May 2012, 02:39

rasdel wrote:I tried but i didn't work. If i put the script into the script folder Magarena wont even start.
Make sure the script is named "Prodigal_Sorcerer.txt" (without the quotes) and you are running the latest version (1.26). Older versions used a slightly different script format. Instead of start with
Code: Select all
name=Prodigal Sorcerer
the script should start with:
Code: Select all
>Prodigal Sorcerer
The lights then came up and the crowd erupted in applause, because that's what the crowd does after it watches destruction on a large screen.
— Ben Kuchera, Mordern Warfare 3 review.
User avatar
pcastellazzi
 
Posts: 184
Joined: 25 Apr 2012, 00:40
Location: Montevideo, Uruguay
Has thanked: 11 times
Been thanked: 30 times

Re: Card wishlist

Postby rasdel » 28 May 2012, 03:49

Yeap, everything is the same, i am using 1.26, and already noticed the difference in script, thanks though... there is only 1 question...

When i open a script it looks like this:

Code: Select all
name=Abbey Griffinurl=http://magiccards.info/isd/en/1.htmlimage=http://magiccards.info/scans/en/isd/1.jpgvalue=3rarity=Ctype=Creaturesubtype=Griffincolor=wconverted=4cost={3}{W}pt=2/2ability=flying,vigilancetiming=main
Is that fine? Or it MUST look like this?

Code: Select all
name=Prodigal Sorcerer
url=http://magiccards.info/7e/en/94.html
image=http://magiccards.info/scans/en/7e/94.jpg
value=3
rarity=C
type=Creature
subtype=Human,Wizard
color=u
converted=3
cost={2}{U}
pt=1/1
ability=ping 1
timing=fmain
Thanks (i think a mod should move this lasts posts to another thread i don't want to deviate from the "whishlist")

Cheers
rasdel
 
Posts: 20
Joined: 26 Dec 2009, 16:41
Has thanked: 0 time
Been thanked: 4 times

Re: Card wishlist

Postby pcastellazzi » 28 May 2012, 15:05

It should be like shown in the code. Each key=val in a separate line.
Attachments
Prodigal_Sorcerer.txt
Prodigal Sorcerer (working)
(232 Bytes) Downloaded 373 times
The lights then came up and the crowd erupted in applause, because that's what the crowd does after it watches destruction on a large screen.
— Ben Kuchera, Mordern Warfare 3 review.
User avatar
pcastellazzi
 
Posts: 184
Joined: 25 Apr 2012, 00:40
Location: Montevideo, Uruguay
Has thanked: 11 times
Been thanked: 30 times

Re: Card wishlist

Postby rasdel » 02 Jun 2012, 12:42

Well, since Prodigal Sorcerer is working i guess i'll post some cards that i think require code, since i can't seem to be able to implememnt them to the game...

Stormscape Apprentice
Thunderscape Apprentice
Daring Apprentice
Sage Owl
Cinder Shade
Halam Djinn
Hooded Kavu
Trench Wurm
Hate Weaver
Phyrexian Delver
Confiscate
Inspiration
rasdel
 
Posts: 20
Joined: 26 Dec 2009, 16:41
Has thanked: 0 time
Been thanked: 4 times

Re: Card wishlist

Postby melvin » 02 Jun 2012, 13:30

You're right, none of these can be scripted. Most can be implemented with a bit of Java code, except for Sage Owl (no support for looking at cards).
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

Re: Card wishlist

Postby Huggybaby » 04 Jun 2012, 16:37

Thanks everyone. Prodigal Sorcerer is a perfect classic card and a must-have. 8)
User avatar
Huggybaby
Administrator
 
Posts: 3205
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 696 times
Been thanked: 594 times

Re: Card wishlist

Postby beholder » 09 Jun 2012, 12:53

rasdel wrote:Well, since Prodigal Sorcerer is working i guess i'll post some cards that i think require code, since i can't seem to be able to implememnt them to the game...

Stormscape Apprentice
Thunderscape Apprentice
Daring Apprentice
Sage Owl
Cinder Shade
Halam Djinn
Hooded Kavu
Trench Wurm
Hate Weaver
Phyrexian Delver
Confiscate
Inspiration
Hooded Kavu can be scripted, I just added it to the repository :
Code: Select all
name=Hooded Kavu
url=http://magiccards.info/in/en/147.html
image=http://magiccards.info/scans/en/in/147.jpg
value=2
rarity=C
type=Creature
subtype=Kavu
color=r
converted=3
cost={2}{R}
pt=2/2
ability=gains {B} fear
timing=main
If debugging is the process of removing bugs, then programming must be the process of putting them in.
User avatar
beholder
Programmer
 
Posts: 123
Joined: 17 Jul 2011, 17:56
Location: Netherlands
Has thanked: 16 times
Been thanked: 25 times

Re: Card wishlist

Postby beholder » 10 Jun 2012, 08:06

I added Mirrorworks but not the others on your list. Here's why:

Clone - I tried but didn't manage to make this card work properly (it's all a bit technical :/).
Phantasmal creatures - We tested these a while ago and the AI just doesn't play these well enough.
Gate to the Æther - There's no support for revealing cards.
Precursor Golem - I see no way to determine how many golems the spell could target.
Survival of the Fittest - Searching the library is not supported.
If debugging is the process of removing bugs, then programming must be the process of putting them in.
User avatar
beholder
Programmer
 
Posts: 123
Joined: 17 Jul 2011, 17:56
Location: Netherlands
Has thanked: 16 times
Been thanked: 25 times

Re: Card wishlist

Postby jmartus » 19 Jun 2012, 12:22

jmartus
 
Posts: 207
Joined: 11 Oct 2010, 09:25
Has thanked: 0 time
Been thanked: 7 times

Re: Card wishlist

Postby mecheng » 26 Jun 2012, 17:09

First, your program is amazing, thanks for that!
I don't know if I understood the Jun 7 update note (kind of a double negative statement), but if it means we can now request cards before 7th edition, I would think the original dual lands would be nice.

Also, not a card request, but a filter request. For each set. I played the game way back in the day and now looking at 2000 new cards is overwhelming. Would be nice to select by expansion so I can use your game to learn the new card sets. I think the pre constructed decks help a lot there too, so thanks for that.

As for other older cards: candelabra, beserk, elephant graveyard were always fun. And the power 9. I could see Two Headed Giant and Raging River being hard to program, but what about Fork or Wheel of Fortune.
mecheng
 
Posts: 21
Joined: 26 Jun 2012, 16:59
Has thanked: 0 time
Been thanked: 0 time

Re: Card wishlist

Postby melvin » 27 Jun 2012, 02:50

jmartus wrote:Living Destiny
We don't have support for reveal actions yet, but we have some thoughts on how AI could make use of it and some initial ideas on what the UI would look it. So it is not implementable now but should be in the future when we have the necessary compoenents. Tracking this as issue 241, https://code.google.com/p/magarena/issues/detail?id=241

mecheng wrote:First, your program is amazing, thanks for that!
I don't know if I understood the Jun 7 update note (kind of a double negative statement), but if it means we can now request cards before 7th edition, I would think the original dual lands would be nice.
Yes, that's what it means. We acknowledge that different people like to play with different cards and we want to support that.

The original dual lands are scriptable (can be added without changing the code). Do try scripting it yourself, that would be the fastest way to get it in the game. If you post your card scripts, we will be happy to include them in the next release. See https://code.google.com/p/magarena/sour ... _Crypt.txt for an example of a similar card script and see https://code.google.com/p/magarena/wiki ... ntingCards for documentation of card scripting in general.

mecheng wrote:Also, not a card request, but a filter request. For each set. I played the game way back in the day and now looking at 2000 new cards is overwhelming. Would be nice to select by expansion so I can use your game to learn the new card sets. I think the pre constructed decks help a lot there too, so thanks for that.
That's on our todo, https://code.google.com/p/magarena/issues/detail?id=198.

mecheng wrote:As for other older cards: candelabra, beserk, elephant graveyard were always fun. And the power 9. I could see Two Headed Giant and Raging River being hard to program, but what about Fork or Wheel of Fortune.
Candelabra of Tawnos: multiple targets not supported due to AI limitation
Berserk: implementable
Elephant Graveyard: implementable
Black Lotus: no mana pool
Moxens: scriptable
Ancestral Recall: implementable
Time Walk: will be in the next release
Timetwister: implementable
Fork: almost implementable, the "copy is red" part needs some additional work
Wheel of Fortune: will be in the next release, implemented by pcastellazzi
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

Re: Card wishlist

Postby mecheng » 28 Jun 2012, 00:13

Thanks for the quick and detailed reply. I tried following your info on card scripting and had a few questions:
1. Can you put more code info in there. Like the codes for colors for instance. I looked at a few cards to figure it out, but might be nice to list. Also, on Mountain for instance mana=r4 but on your Bloodcrypt example, the mana was b3r3 - why 3 vs 4?
2. How to get new cards into the game itself?
I was thinking I'd just add a txt file with my new script into the scripts folder and then when game loaded up, do a download for new image.
Except the game will not get past splash screen with new file added. But once I take file out and start again, it loads (but of course, no new card).
So maybe just a few notes on the actual steps on getting the cards into the game.
3. You mentioned to "post your scripts" - is there a forum for that already? If so, perhaps others have done what I am trying and it would be faster for all us to get that way.
Thanks again
mecheng
 
Posts: 21
Joined: 26 Jun 2012, 16:59
Has thanked: 0 time
Been thanked: 0 time

PreviousNext

Return to Magarena

Who is online

Users browsing this forum: No registered users and 26 guests


Who is online

In total there are 26 users online :: 0 registered, 0 hidden and 26 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: No registered users and 26 guests

Login Form