Request for Cards/Source Code
by BetaSteward
Moderators: North, BetaSteward, noxx, jeffwadsworth, JayDi, TheElk801, LevelX, CCGHQ Admins
Request for Cards/Source Code
by Yoichi » 16 Jun 2012, 04:47
I've found a some cards I'd like to use that aren't implemented:
I'm fairly confident this wouldn't be a big deal if I could just pull the source code and build my own version with these added, but since your google code page got DMCAed, is there somewhere else read-only access to the source code is available?
Actually, I guess pretty much all the PCH2 stuff needs adding?
- Sharding Sphinx (Set: Shards of Alara)
- Baleful Strix (Set: Planechase 2012)
- Parasitic Strix (Set: Conflux)
- Tainted Isle (Set: Torment)
I'm fairly confident this wouldn't be a big deal if I could just pull the source code and build my own version with these added, but since your google code page got DMCAed, is there somewhere else read-only access to the source code is available?
Actually, I guess pretty much all the PCH2 stuff needs adding?
- Yoichi
- Posts: 7
- Joined: 16 Jun 2012, 04:23
- Has thanked: 0 time
- Been thanked: 0 time
Re: Request for Cards/Source Code
by noxx » 16 Jun 2012, 05:10
You may get sources here:
- Code: Select all
https://github.com/magefree/mage
Re: Request for Cards/Source Code
by Yoichi » 16 Jun 2012, 10:03
Cheers for that. Well, I plan to have a play around just to learn how the codebase works, at least, even if you do end up adding those cards soonish anyway.
I'm having some trouble building from (unmodified) source though - mvn install is building everything from Root through to Server Console just fine but failing most of the tests - I'm seeing a lot of "java.lang.IllegalArgumentException: Couldn't load deck, deck size=7". Specifically, it is failing all the tests it does not skip, and all of them are throwing the same error.
Oh, and I'm using Maven 3.0.4 and JDK 1.7.0.
I'm having some trouble building from (unmodified) source though - mvn install is building everything from Root through to Server Console just fine but failing most of the tests - I'm seeing a lot of "java.lang.IllegalArgumentException: Couldn't load deck, deck size=7". Specifically, it is failing all the tests it does not skip, and all of them are throwing the same error.
Oh, and I'm using Maven 3.0.4 and JDK 1.7.0.
- Yoichi
- Posts: 7
- Joined: 16 Jun 2012, 04:23
- Has thanked: 0 time
- Been thanked: 0 time
Re: Request for Cards/Source Code
by noxx » 17 Jun 2012, 09:10
I use maven 2.2.1 and JRE 1.6.0_30 on Win7
and maven 3.0.3 and JRE 1.6.0_31 on Mac OS X
On both environments tests work.
and maven 3.0.3 and JRE 1.6.0_31 on Mac OS X
On both environments tests work.
- Code: Select all
Results :
Tests run: 272, Failures: 0, Errors: 0, Skipped: 21
Re: Request for Cards/Source Code
by jeffwadsworth » 17 Jun 2012, 14:01
Hello. I use JDK 1.6 also, 1.7 may be causing the issue for you. Everything builds fine and all tests pass. Have you tried using an IDE client? Netbeans 7.1.1 here.
- jeffwadsworth
- Super Tester Elite
- Posts: 1171
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 69 times
Re: Request for Cards/Source Code
by Yoichi » 19 Jun 2012, 06:31
Still having issues, with both JDK1.6 and 1.7, and both from the command line and in Netbeans. Clearly the problems are specific to me, so no doubt I've screwed something somewhere.
- Yoichi
- Posts: 7
- Joined: 16 Jun 2012, 04:23
- Has thanked: 0 time
- Been thanked: 0 time
Re: Request for Cards/Source Code
by jeffwadsworth » 19 Jun 2012, 12:16
Try modifying the lineYoichi wrote:Still having issues, with both JDK1.6 and 1.7, and both from the command line and in Netbeans. Clearly the problems are specific to me, so no doubt I've screwed something somewhere.
protected static boolean testmode;
Located in main.java under Mage.server.
protected static boolean testmode = true;
- jeffwadsworth
- Super Tester Elite
- Posts: 1171
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 69 times
Re: Request for Cards/Source Code
by Yoichi » 20 Jun 2012, 06:45
Sadly, it still explodes during the testing phase of the build. FWIW I'm also seeing java.lang.reflect.InvocationTargetException and null pointer exceptions. Not a clue what is going on - tomorrow I will try on a different machine.
- Yoichi
- Posts: 7
- Joined: 16 Jun 2012, 04:23
- Has thanked: 0 time
- Been thanked: 0 time
Re: Request for Cards/Source Code
by noxx » 20 Jun 2012, 07:34
First of all, please try to update to most recent version, I've commited some jars that may affect running tests.
Secondly, maybe something bad with the jars in your maven repository.
Try to remove them manually (the whole folder):
Secondly, maybe something bad with the jars in your maven repository.
Try to remove them manually (the whole folder):
- Code: Select all
.m2\repository\org\mage\
Re: Request for Cards/Source Code
by North » 21 Jun 2012, 20:06
This skips the tests.
Eclipse is known to cause issues, if this is what you are using. I don't think anyone from the team uses it anymore. Noxx may tell you more on this. Netbeans and InteliJ have no problem with this.
PS: I hope this minor impediment won't stop you from joining our project as a developer. I'll be looking forward to welcoming you aboard.
- Code: Select all
mvn install -DskipTests
Eclipse is known to cause issues, if this is what you are using. I don't think anyone from the team uses it anymore. Noxx may tell you more on this. Netbeans and InteliJ have no problem with this.
PS: I hope this minor impediment won't stop you from joining our project as a developer. I'll be looking forward to welcoming you aboard.
Re: Request for Cards/Source Code
by Yoichi » 22 Jun 2012, 12:41
So, after creating a fresh clone of the repo, and running the commands in repository/install-maven.bat manually, everything works fine now (without skipping the tests). Woot.
Also, FYI I am not using Eclipse.
Also, FYI I am not using Eclipse.
- Yoichi
- Posts: 7
- Joined: 16 Jun 2012, 04:23
- Has thanked: 0 time
- Been thanked: 0 time
Re: Request for Cards/Source Code
by North » 25 Jun 2012, 08:19
I'm glad to hear this.
You can find some helpful information no the wiki. The Developers Getting Started and Developer Notes pages are what you will be interested in. There is an easy way to test the cards you are working on. This is explained in there.
You can find some helpful information no the wiki. The Developers Getting Started and Developer Notes pages are what you will be interested in. There is an easy way to test the cards you are working on. This is explained in there.
Re: Request for Cards/Source Code
by dragon5911 » 28 Jun 2012, 23:16
i hope im posting in the correct topic, sorry if i am not.
I would like to use the following cards:
teferi's puzzle box
mindmoil
patron wizard
drowner of secrets
anvil of bogardan
kederekt parasite
spiteful visions
walking archive
greatbow doyen
brigid, heor of kinsbaile
lys alana bowmaster
azami, lady of scrolls
supreme inquisitor
fallowsage
surgespanner
ghostway
day of the dragons
momentary blink
boon refelction
furnace of rath
rage reflection
there are more but i didn't want to overdo it more than i already have
thank you for your time.
I would like to use the following cards:
teferi's puzzle box
mindmoil
patron wizard
drowner of secrets
anvil of bogardan
kederekt parasite
spiteful visions
walking archive
greatbow doyen
brigid, heor of kinsbaile
lys alana bowmaster
azami, lady of scrolls
supreme inquisitor
fallowsage
surgespanner
ghostway
day of the dragons
momentary blink
boon refelction
furnace of rath
rage reflection
there are more but i didn't want to overdo it more than i already have
thank you for your time.
- dragon5911
- Posts: 1
- Joined: 28 Jun 2012, 23:08
- Has thanked: 0 time
- Been thanked: 0 time
Re: Request for Cards/Source Code
by Backfir3 » 29 Jun 2012, 17:42
Hi, in the next days i'll have same free time to dedicate to Mage, i've already done some cards but i need to test them. When I'll post the code, do you prefer java files or a git patch file? I used to send java files to BetaSteward but he seems to be gone ...
Bye
Backfir3
Bye
Backfir3
Re: Request for Cards/Source Code
by noxx » 29 Jun 2012, 20:49
I'm glad that more and more people get interested in Mage.
And I remember you already programmed some cards for it.
You may attach files in any format here (java or git patch). I'll take a look at them.
Best Regards,
Noxx
And I remember you already programmed some cards for it.
You may attach files in any format here (java or git patch). I'll take a look at them.
Best Regards,
Noxx
17 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 38 guests