Implementing Cards
by BetaSteward
Moderators: North, BetaSteward, noxx, jeffwadsworth, JayDi, TheElk801, LevelX, CCGHQ Admins
Implementing Cards
by MoonKnight » 17 Jan 2013, 04:31
Hi I was just curious on how I could go about implementing cards myself. I know quite a bit of Java and instead of always asking for cards to be implemented is it possible I could start doing a few on my own?
I would appreciate just a smidgen of guidance on going about this.
Thank you so much.
MoonKnight
I would appreciate just a smidgen of guidance on going about this.
Thank you so much.
MoonKnight
- MoonKnight
- Posts: 43
- Joined: 19 Sep 2011, 19:40
- Has thanked: 1 time
- Been thanked: 2 times
Re: Implementing Cards
by LevelX » 17 Jan 2013, 09:07
Install (or use if already installed on your pc) latest Java SE JDK 6.xx and an IDE (e.g. NetBeans 7.2)and checkout with the IDE the MAGE projects at https://github.com/magefree/mage.git.MoonKnight wrote:Hi I was just curious on how I could go about implementing cards myself. I know quite a bit of Java and instead of always asking for cards to be implemented is it possible I could start doing a few on my own?
I would appreciate just a smidgen of guidance on going about this.
Thank you so much.
MoonKnight
Git and Maven are included (in a limited way) to Netbeans. So it's probably not neccessary to install them separately as long as you doing the common things.
If you are able to successfully build and run mage on your pc (set up works ), you can start to code some new cards. To get write access to the project send your created code to North or noxx. They decide who gets write access to the project.
If you have specific questions during the set up of your system, feel free to ask here again.
JAVA SE JDK
http://www.oracle.com/technetwork/java/javase/downloads/jdk6u38-downloads-1877406.html
Netbeans IDE
http://netbeans.org/community/releases/72/
PS: On the project wiki pages are also some hints/advices for developers.
https://github.com/magefree/mage/wiki
-
LevelX - DEVELOPER
- Posts: 1677
- Joined: 08 Dec 2011, 15:08
- Has thanked: 174 times
- Been thanked: 374 times
Re: Implementing Cards
by jeffwadsworth » 17 Jan 2013, 17:56
It appears that the latest release of Netbeans fixes an irritating issue.
- jeffwadsworth
- Super Tester Elite
- Posts: 1171
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 69 times
Re: Implementing Cards
by MoonKnight » 18 Jan 2013, 21:01
Thank you guys so much for so much help. The code is a lot to take in all at once haha...is there any possible way I could create my own cards for the time being just to get a feel for things. I only want them on my personal mage so I can see if what I'm doing is right. Just practice cards to get a feel for things?
Is that possible?
Is that possible?
- MoonKnight
- Posts: 43
- Joined: 19 Sep 2011, 19:40
- Has thanked: 1 time
- Been thanked: 2 times
Re: Implementing Cards
by LevelX » 18 Jan 2013, 22:30
As long as you haven't committed your changes by git, all your work is only in your personal mage. So I would say it's not just possible but it's the only thing you can do.MoonKnight wrote:Thank you guys so much for so much help. The code is a lot to take in all at once haha...is there any possible way I could create my own cards for the time being just to get a feel for things. I only want them on my personal mage so I can see if what I'm doing is right. Just practice cards to get a feel for things?
Is that possible?
Only if you have write access to the git repository and commit your changes, they will go the common MAGE source code.
-
LevelX - DEVELOPER
- Posts: 1677
- Joined: 08 Dec 2011, 15:08
- Has thanked: 174 times
- Been thanked: 374 times
Re: Implementing Cards
by MoonKnight » 18 Jan 2013, 23:20
Haha alright then! Will I ahve access to all the databases I need to import?
(eg: import java.util.UUID; import mage.Constants; import mage.Constants.CardType;
import mage.Constants.Rarity;...etc.)
(eg: import java.util.UUID; import mage.Constants; import mage.Constants.CardType;
import mage.Constants.Rarity;...etc.)
- MoonKnight
- Posts: 43
- Joined: 19 Sep 2011, 19:40
- Has thanked: 1 time
- Been thanked: 2 times
Re: Implementing Cards
by LevelX » 19 Jan 2013, 00:31
Yes, you can import the complete MAGE source, build the projects and run your local version of MAGE on your pc.MoonKnight wrote:Haha alright then! Will I ahve access to all the databases I need to import?
(eg: import java.util.UUID; import mage.Constants; import mage.Constants.CardType;
import mage.Constants.Rarity;...etc.)
On the wiki site it's described to clone the complete MAGE source to your local repository.
https://github.com/magefree/mage/wiki/Developer-Getting-Started
-
LevelX - DEVELOPER
- Posts: 1677
- Joined: 08 Dec 2011, 15:08
- Has thanked: 174 times
- Been thanked: 374 times
Re: Implementing Cards
by MoonKnight » 19 Jan 2013, 02:31
That is super helpful thank you so much. I am a bit confused (sorry, bear with me I haven't used NetBeans before to download repositories) on how to use the url to get them. When I place it in the box it then asks me for a password and won't connect. Am I doing something wrong? Probably am haha
- MoonKnight
- Posts: 43
- Joined: 19 Sep 2011, 19:40
- Has thanked: 1 time
- Been thanked: 2 times
Re: Implementing Cards
by LevelX » 19 Jan 2013, 08:00
Here are the steps, how to clone the MAGE project with Netbeans.MoonKnight wrote:That is super helpful thank you so much. I am a bit confused (sorry, bear with me I haven't used NetBeans before to download repositories) on how to use the url to get them. When I place it in the box it then asks me for a password and won't connect. Am I doing something wrong? Probably am haha
Menu: Team->Git->Clone
- GitClone02.jpg (6.93 KiB) Viewed 4896 times
traget directory and name can be set to the value you like on your system
-
LevelX - DEVELOPER
- Posts: 1677
- Joined: 08 Dec 2011, 15:08
- Has thanked: 174 times
- Been thanked: 374 times
Re: Implementing Cards
by North » 19 Jan 2013, 12:00
You'll definitely want to use our tools for generating the base class for cards. It is in the Utils directory. You need to have perl installed to use it. I think it's all in those wiki pages.
What there isn't is the location to our card tracking tool: http://ct-magefree.rhcloud.com/
Use that to search for cards with similar behavior. Note that when searching for ability text the following character is used as a placeholder for anything: %. I found it very easy to get into developing cards by example and there are a lot of them that can be implemented like this.
I bet you'll find yourself ready to submit cards in no time.
What there isn't is the location to our card tracking tool: http://ct-magefree.rhcloud.com/
Use that to search for cards with similar behavior. Note that when searching for ability text the following character is used as a placeholder for anything: %. I found it very easy to get into developing cards by example and there are a lot of them that can be implemented like this.
I bet you'll find yourself ready to submit cards in no time.
Re: Implementing Cards
by MoonKnight » 19 Jan 2013, 14:43
you all have been so helpful. Thank you so much for taking the time to answer my questions.
- MoonKnight
- Posts: 43
- Joined: 19 Sep 2011, 19:40
- Has thanked: 1 time
- Been thanked: 2 times
Re: Implementing Cards
by MoonKnight » 19 Jan 2013, 21:22
In the Developer Getting Started Wiki it says to install the Text-Template from the Perl Package Manager but there is no such package in the listings?
- MoonKnight
- Posts: 43
- Joined: 19 Sep 2011, 19:40
- Has thanked: 1 time
- Been thanked: 2 times
Re: Implementing Cards
by LevelX » 19 Jan 2013, 22:45
I normally don't use the perl tools, so I'm not familiar with it.MoonKnight wrote:In the Developer Getting Started Wiki it says to install the Text-Template from the Perl Package Manager but there is no such package in the listings?
I guess this is a link to the lib you need:
http://cpansearch.perl.org/src/MJD/Text-Template-1.45/lib/Text/Template.pm
-
LevelX - DEVELOPER
- Posts: 1677
- Joined: 08 Dec 2011, 15:08
- Has thanked: 174 times
- Been thanked: 374 times
Re: Implementing Cards
by Kratos Aurion » 10 Feb 2016, 17:35
I always get the error message "Cannot connect to repository at https://github.com/magefree/mage.git/".https://github.com/magefree/mage/wiki/Developer-Getting-Started wrote:2. Start NetBeans and clone the code repository from there: Team -> Git -> Clone.
this is the URL for the repository: https://github.com/magefree/mage.git/
- Kratos Aurion
- Posts: 15
- Joined: 11 May 2014, 14:08
- Has thanked: 0 time
- Been thanked: 0 time
Re: Implementing Cards
by LevelX » 10 Feb 2016, 22:41
Firewall or Proxy?Kratos Aurion wrote:I always get the error message "Cannot connect to repository at https://github.com/magefree/mage.git/".https://github.com/magefree/mage/wiki/Developer-Getting-Started wrote:2. Start NetBeans and clone the code repository from there: Team -> Git -> Clone.
this is the URL for the repository: https://github.com/magefree/mage.git/
-
LevelX - DEVELOPER
- Posts: 1677
- Joined: 08 Dec 2011, 15:08
- Has thanked: 174 times
- Been thanked: 374 times
17 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: Bing [Bot] and 160 guests