It is currently 18 Apr 2024, 01:09
   
Text Size

Card Contributions

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

Re: Card Contributions

Postby PhazedOut » 31 Dec 2012, 17:01

Great! Do you by any chance know how to update my clone with the new version? The only thing I can figure out is to delete and recreate the clone, but this seems clunky and there has to be a better way.
PhazedOut
 
Posts: 9
Joined: 26 Dec 2012, 06:12
Has thanked: 1 time
Been thanked: 0 time

Re: Card Contributions

Postby melvin » 02 Jan 2013, 03:22

If you have no unmerged changes you can do pull and then update your working directory with
Code: Select all
hg pull -u http://code.google.com/p/magarena/
If you have an umerged change, that command will fail to update because now you will have two heads (changesets without a descendant), one from your repo and one from the main repo. Then you can do a "hg merge" to combine your head with the one from the main repo, and then commit your merge with "hg commit". Do pull and merge regularly with the main repo as smaller changes are easier to merge.

This is also the procedure I use to merge changes from clone to the main repo, except that I pull from the clone.
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 PhazedOut » 02 Jan 2013, 23:03

Ok great! I will give that a try next time. Sorry for my ignorance, I have never used a versioning system before this (still in school) but it is some great experience.
PhazedOut
 
Posts: 9
Joined: 26 Dec 2012, 06:12
Has thanked: 1 time
Been thanked: 0 time

Re: Card Contributions

Postby Jak » 15 Mar 2013, 13:30

I wanted to contribute the card "Ant Queen" here, but it is not allowed to upload .groovy files here. :?
Should I mail them to a specific contribution mail address?
Jak
 
Posts: 23
Joined: 23 Mar 2011, 07:37
Has thanked: 0 time
Been thanked: 0 time

Re: Card Contributions

Postby melvin » 16 Mar 2013, 15:13

Hi, Jak. Welcome to the forums :) Please mail them to our mailing list, magarena@googlegroups.com and claim the honor of first user submission of card with groovy script :D
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 Jak » 16 Mar 2013, 23:16

melvin wrote:Hi, Jak. Welcome to the forums :) Please mail them to our mailing list, *** and claim the honor of first user submission of card with groovy script :D
Thanks, joined almost 2 years ago, but didn't post anything all the time. :oops:
And I sent it yesterday already... found the mail address in another thread :roll:
Jak
 
Posts: 23
Joined: 23 Mar 2011, 07:37
Has thanked: 0 time
Been thanked: 0 time

Re: Card Contributions

Postby melvin » 17 Mar 2013, 01:11

Got it! Added it for the March release, you can see the other cards in the March release @ https://code.google.com/p/magarena/wiki/UpcomingCards.
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 ember hauler » 14 Aug 2013, 08:30

Hi guys,

This is my first contribution, very simple card from Magic 2014 Core Set.
Attachments
Sliver_Construct.txt
(212 Bytes) Downloaded 292 times
ember hauler
 
Posts: 79
Joined: 14 Aug 2013, 08:13
Has thanked: 27 times
Been thanked: 14 times

Re: Card Contributions

Postby melvin » 14 Aug 2013, 13:00

ember hauler wrote:Hi guys, This is my first contribution, very simple card from Magic 2014 Core Set.
Hi ember hauler, welcome to the fourms :) and thanks for your contribution. I've merged it into our current development version.

Now that mike's site http://firemind.ch has launched, it is slightly easier for us to manage card contributions from http://www.firemind.ch/card_script_submissions/new as it integrates into our version control system.

Do consider making a submission from firemind.ch in the future. For purpose of attribution, it is recommended to create an account otherwise the submission will be attributed to "guest".
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 ember hauler » 14 Aug 2013, 16:40

Ok.

I've submitted several simple sliver cards that I made: Battle Sliver, Blur Sliver, Bonescythe Sliver, Galerider Sliver, Groundshaker Sliver, Megantic Sliver, Predatory Sliver, Sentinel Sliver, Steelform Sliver, Syphon Sliver, Hive_Stirrings, Fury Sliver, Spitting Sliver and Talon Sliver.

Unfortunately, I don't know how to do more complex cards like Manaweft Sliver or Thorncaster Sliver. Any help or tutorial is appreciated.

And thank you guys for such a great software, please keep up.
ember hauler
 
Posts: 79
Joined: 14 Aug 2013, 08:13
Has thanked: 27 times
Been thanked: 14 times

Re: Card Contributions

Postby melvin » 17 Aug 2013, 03:34

Update: Seems that I've accidentally click edit instead of reply and removed an earlier posting about Thorncaster Sliver. To make up for that, I'll add Thorncaster Sliver next.

Just extended the engine to support gaining mana abilities :D and added Manaweft Sliver and Thorncaster Sliver.

I've simplified the names, so no more addActivation and addTrigger, just use addAbility. In the current development version, addAbility supports activated abilities, triggered abilities, and mana abilities.
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 ember hauler » 18 Aug 2013, 18:50

melvin wrote:Just extended the engine to support gaining mana abilities :D and added Manaweft Sliver and Thorncaster Sliver.
Great. I've submitted Gemhide Sliver, based on Manaweft Sliver.
ember hauler
 
Posts: 79
Joined: 14 Aug 2013, 08:13
Has thanked: 27 times
Been thanked: 14 times

Re: Card Contributions

Postby willianmgbr » 01 Oct 2013, 05:52

CRYPT RATS

FILE NAME: Crypt_Rats.txt
----------------
name=Crypt Rats
url=(insert normal stuff here)magiccards DOT info/7e/en/125 DOT html
image=(insert normal stuff here)magiccards DOT info/scans/en/7e/125 DOT jpg
value=2
rarity=U
type=Creature
subtype=Rat
cost={2}{B}
pt=1/1
timing=main
requires_groovy_code

----------------------------------------
FILE NAME: Crypt_Rats.groovy
------------------
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.None),"Damage"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [
new MagicPayManaCostEvent(source,"{B}")
];
}

@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"SN deals 1 damage to all creatures and players."
);
}

@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
final Collection<MagicPermanent> targets =
game.filterPermanents(event.getPlayer(),MagicTargetFilter.TARGET_CREATURE);
for (final MagicPermanent target : targets) {
final MagicDamage damage=new MagicDamage(event.getSource(),target,1);
game.doAction(new MagicDealDamageAction(damage));
}
for (final MagicPlayer player : game.getPlayers()) {
final MagicDamage damage=new MagicDamage(event.getSource(),player,1);
game.doAction(new MagicDealDamageAction(damage));
}
}
},
new MagicAtEndOfTurnTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer eotPlayer) {
final Collection<MagicPermanent> targets =
game.filterPermanents(permanent.getController(),MagicTargetFilter.TARGET_CREATURE);
return (targets.size() == 0) ?
new MagicEvent(
permanent,
this,
"Sacrifice SN."
):
MagicEvent.NONE;
}

@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicSacrificeAction(event.getPermanent()));
}
}
]

----------------------------------
Save both files in "script" folder

(I don't programmer. "Pestilence" script work perfectly)
willianmgbr
 
Posts: 6
Joined: 29 Sep 2013, 20:12
Has thanked: 4 times
Been thanked: 0 time



PreviousNext

Return to Magarena

Who is online

Users browsing this forum: No registered users and 25 guests


Who is online

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

Login Form