It is currently 26 Sep 2017, 14:43
   
Text Size

Card Contributions

Moderators: melvin, beholder, ubeefx, 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 209 times
User avatar
melvin
AI Programmer
 
Posts: 1009
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 435 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 187 times
Savannah.txt
(217 Bytes) Downloaded 178 times
Tundra.txt
(213 Bytes) Downloaded 181 times
Underground_Sea.txt
(223 Bytes) Downloaded 186 times
Volcanic_Island.txt
(226 Bytes) Downloaded 175 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: 1009
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 435 times

Re: Card Contributions

Postby mecheng » 11 Jul 2012, 05:40

A few more cards to add
Attachments
Scryb_Sprites.txt
(233 Bytes) Downloaded 189 times
Roc_of_Kher_Ridges.txt
(239 Bytes) Downloaded 181 times
Wall_of_Fire.txt
(253 Bytes) Downloaded 190 times
Granite_Gargoyle.txt
(256 Bytes) Downloaded 158 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 177 times
Tropical_Island.txt
(224 Bytes) Downloaded 178 times
Plateau.txt
(218 Bytes) Downloaded 177 times
Badlands.txt
(218 Bytes) Downloaded 164 times
Scrubland.txt
(217 Bytes) Downloaded 177 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: 1009
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 435 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 162 times
Knight_of_Infamy.txt
(254 Bytes) Downloaded 160 times
Duty_Bound_Dead.txt
(241 Bytes) Downloaded 166 times
Warclamp_Mastiff.txt
(227 Bytes) Downloaded 155 times
Cathedral_of_War.txt
(201 Bytes) Downloaded 168 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 174 times
Reckless_Brute.txt
(236 Bytes) Downloaded 164 times
Knight_of_Glory.txt
(253 Bytes) Downloaded 161 times
Duskmantle_Prowler.txt
(241 Bytes) Downloaded 167 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 167 times
Ajani_s_Sunstriker.txt
(211 Bytes) Downloaded 167 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: 1009
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 435 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.
---
Currently working on updating missing & wrong Manalink.ct_all values for AI.
- Long term update all missing & wrong values in Manalink.csv mainly & (maybe)Manalink.ct_all
User avatar
Aswan jaguar
Super Tester
 
Posts: 5238
Joined: 13 May 2010, 12:17
Has thanked: 508 times
Been thanked: 267 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: 1009
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 435 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: 3051
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 562 times
Been thanked: 565 times

Next

Return to Magarena

Who is online

Users browsing this forum: No registered users and 1 guest


Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: No registered users and 1 guest

Login Form