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

Card Contributions

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

Card Contributions

Postby beholder » 08 Dec 2011, 10:27

Please post your card scripts here so we can add them to a future release.

Instructions can be found on this wiki page.

Check https://code.google.com/p/magarena/wiki/UpcomingCards for list of cards that have been submitted for the next release.

To test your card script:
- add a text file to Magarena/scripts where the name is obtained by changing non alphabets into underscores, e.g. Guardians' Pledge would be in the file Guardians__Pledge.txt
- start Magarena, add the card to a deck and play
- if it works as expected, please use 'Download images' from the Arena menu and make sure the correct image for the card gets downloaded
- that's it! Just post the card script in this thread and one of the devs will add it to the repository
Last edited by melvin on 28 Dec 2012, 02:37, edited 2 times in total.
Reason: added link to upcoming cards
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 Contributions

Postby mecheng » 29 Jun 2012, 02:12

First card scripting attempt

name=Taiga
url=(insert normal stuff here)magiccards DOT info/rv/en/302 DOT html
image=(insert normal stuff here)magiccards DOT info/scans/en/rv/302 DOT jpg
value=4
rarity=R
type=Land
subtype=Mountain,Forest
mana=r4g4
ability=tap add mana {R} or {G}
timing=land

I'm not a programmer, but this seemed to work for me. Hopefully you enjoy as well. Will post more as I make them.

Edit: I got some message about not using urls. So you need to edit the text above to make it right.
mecheng
 
Posts: 21
Joined: 26 Jun 2012, 16:59
Has thanked: 0 time
Been thanked: 0 time

Re: Card Contributions

Postby melvin » 29 Jun 2012, 03:03

Thanks, mecheng :)

Here is the same file as an attachment to make it easier to download. This will be included in the June release.

I've changed the url and image to use the MTGO Masters Edition IV has it has a nicer card pic that uses a image in the rules box instead of the long text. Hope that is alright with you.
Attachments
Taiga.txt
(209 Bytes) Downloaded 707 times
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 Contributions

Postby mecheng » 30 Jun 2012, 04:27

Ah, now I see the attachment thing. I think I got 5 more duals in here then.
Attachments
Bayou.txt
(213 Bytes) Downloaded 648 times
Savannah.txt
(217 Bytes) Downloaded 649 times
Tundra.txt
(213 Bytes) Downloaded 681 times
Underground_Sea.txt
(223 Bytes) Downloaded 673 times
Volcanic_Island.txt
(226 Bytes) Downloaded 663 times
mecheng
 
Posts: 21
Joined: 26 Jun 2012, 16:59
Has thanked: 0 time
Been thanked: 0 time

Re: Card Contributions

Postby melvin » 03 Jul 2012, 02:57

mecheng wrote:Ah, now I see the attachment thing. I think I got 5 more duals in here then.
Thanks! I've added [1] them to the game, expect to see them as part of release 1.28.

[1] https://code.google.com/p/magarena/sour ... f5c6be01ee
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 Contributions

Postby mecheng » 11 Jul 2012, 05:40

A few more cards to add
Attachments
Scryb_Sprites.txt
(233 Bytes) Downloaded 684 times
Roc_of_Kher_Ridges.txt
(239 Bytes) Downloaded 675 times
Wall_of_Fire.txt
(253 Bytes) Downloaded 665 times
Granite_Gargoyle.txt
(256 Bytes) Downloaded 638 times
mecheng
 
Posts: 21
Joined: 26 Jun 2012, 16:59
Has thanked: 0 time
Been thanked: 0 time

Re: Card Contributions

Postby mecheng » 11 Jul 2012, 06:12

more duals
Attachments
Taiga.txt
(216 Bytes) Downloaded 682 times
Tropical_Island.txt
(224 Bytes) Downloaded 677 times
Plateau.txt
(218 Bytes) Downloaded 653 times
Badlands.txt
(218 Bytes) Downloaded 663 times
Scrubland.txt
(217 Bytes) Downloaded 671 times
mecheng
 
Posts: 21
Joined: 26 Jun 2012, 16:59
Has thanked: 0 time
Been thanked: 0 time

Re: Card Contributions

Postby melvin » 11 Jul 2012, 13:02

Thanks, mecheng. So far, you are the top card contributor for 1.28 :) Btw, the card script has been simplified in 1.28, the property "color" and "converted" can be left out of the script, they are automatically inferred from the casting cost.

You can check out our daily build of 1.28 from https://magarena.ci.cloudbees.com/job/M ... garena.exe

[1] https://code.google.com/p/magarena/sour ... 91f9845951
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 Contributions

Postby spartan vi » 07 Aug 2012, 01:29

Here are some M13 prints.
Attachments
Servant_of_Nefarox.txt
(216 Bytes) Downloaded 644 times
Knight_of_Infamy.txt
(254 Bytes) Downloaded 613 times
Duty_Bound_Dead.txt
(241 Bytes) Downloaded 679 times
Warclamp_Mastiff.txt
(227 Bytes) Downloaded 616 times
Cathedral_of_War.txt
(201 Bytes) Downloaded 623 times
User avatar
spartan vi
 
Posts: 10
Joined: 06 Aug 2012, 20:03
Has thanked: 6 times
Been thanked: 1 time

Re: Card Contributions

Postby spartan vi » 07 Aug 2012, 01:30

And a few more from M13
Attachments
Dragon_Hatchling.txt
(222 Bytes) Downloaded 599 times
Reckless_Brute.txt
(236 Bytes) Downloaded 623 times
Knight_of_Glory.txt
(253 Bytes) Downloaded 604 times
Duskmantle_Prowler.txt
(241 Bytes) Downloaded 601 times
Last edited by spartan vi on 07 Aug 2012, 18:08, edited 2 times in total.
User avatar
spartan vi
 
Posts: 10
Joined: 06 Aug 2012, 20:03
Has thanked: 6 times
Been thanked: 1 time

Re: Card Contributions

Postby spartan vi » 07 Aug 2012, 02:24

Few more easy cards to add from M13
Attachments
Sentinel_Spider.txt
(218 Bytes) Downloaded 607 times
Ajani_s_Sunstriker.txt
(211 Bytes) Downloaded 620 times
User avatar
spartan vi
 
Posts: 10
Joined: 06 Aug 2012, 20:03
Has thanked: 6 times
Been thanked: 1 time

Re: Card Contributions

Postby melvin » 09 Aug 2012, 03:06

Thanks spartan vi :) and welcome to the forum. I've added your card scripts to the game in the following commits:
https://code.google.com/p/magarena/sour ... 669f1a0346
https://code.google.com/p/magarena/sour ... b6f0ec40d8

So far, for the upcoming 1.29 we have the following card contributions:
5 cards by a. benedict balbuena (via email)
6 cards by spartan vi

Keep'em coming!
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 Contributions

Postby Aswan jaguar » 09 Aug 2012, 04:57

Melvin I guess you missed the 5 first from spartan vi so a total of 11 cards.
---
Trying to squash some bugs and playtesting.
User avatar
Aswan jaguar
Super Tester Elite
 
Posts: 8078
Joined: 13 May 2010, 12:17
Has thanked: 730 times
Been thanked: 458 times

Re: Card Contributions

Postby melvin » 09 Aug 2012, 06:24

I should have explained more carefully. Unfortunately, five of cards scripted by spartan vi overlaps with five by a. benedict balbuena (submitted via email) that was committed on Aug 5, see https://code.google.com/p/magarena/source/list

In retrospect, I should have posted about new cards added by a. benedict balbuena here in this thread. Will do that in the future.
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 Contributions

Postby Huggybaby » 09 Aug 2012, 17:40

melvin wrote:In retrospect, I should have posted about new cards added by a. benedict balbuena here in this thread.
If only because he has such a cool name!
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

Next

Return to Magarena

Who is online

Users browsing this forum: No registered users and 23 guests


Who is online

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

Login Form