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

Request for Cards/Source Code

by BetaSteward

Moderators: North, BetaSteward, noxx, jeffwadsworth, JayDi, TheElk801, LevelX, CCGHQ Admins

Request for Cards/Source Code

Postby 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?
Yoichi
 
Posts: 7
Joined: 16 Jun 2012, 04:23
Has thanked: 0 time
Been thanked: 0 time

Re: Request for Cards/Source Code

Postby noxx » 16 Jun 2012, 05:10

You may get sources here:
Code: Select all
https://github.com/magefree/mage
I may add these cards by myself, they are easy to implement, but if you want you may code them by yourself.
noxx
DEVELOPER
 
Posts: 110
Joined: 25 Mar 2012, 08:13
Has thanked: 3 times
Been thanked: 37 times

Re: Request for Cards/Source Code

Postby 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.
Yoichi
 
Posts: 7
Joined: 16 Jun 2012, 04:23
Has thanked: 0 time
Been thanked: 0 time

Re: Request for Cards/Source Code

Postby 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.

Code: Select all
Results :
Tests run: 272, Failures: 0, Errors: 0, Skipped: 21
noxx
DEVELOPER
 
Posts: 110
Joined: 25 Mar 2012, 08:13
Has thanked: 3 times
Been thanked: 37 times

Re: Request for Cards/Source Code

Postby 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

Postby 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

Postby jeffwadsworth » 19 Jun 2012, 12:16

Yoichi 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.
Try modifying the line
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

Postby 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

Postby 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):
Code: Select all
.m2\repository\org\mage\
Inform if it doesn't help.
noxx
DEVELOPER
 
Posts: 110
Joined: 25 Mar 2012, 08:13
Has thanked: 3 times
Been thanked: 37 times

Re: Request for Cards/Source Code

Postby North » 21 Jun 2012, 20:06

This skips the tests.
Code: Select all
mvn install -DskipTests
You can install the 3rd party libs from the repository directory if you haven't done so already. The batch file didn't work for me the last time so I copied the contents of the directory into my maven repository manually.

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.
North
DEVELOPER
 
Posts: 93
Joined: 15 May 2011, 08:20
Has thanked: 8 times
Been thanked: 15 times

Re: Request for Cards/Source Code

Postby 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.
Yoichi
 
Posts: 7
Joined: 16 Jun 2012, 04:23
Has thanked: 0 time
Been thanked: 0 time

Re: Request for Cards/Source Code

Postby 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.
North
DEVELOPER
 
Posts: 93
Joined: 15 May 2011, 08:20
Has thanked: 8 times
Been thanked: 15 times

Re: Request for Cards/Source Code

Postby 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.
dragon5911
 
Posts: 1
Joined: 28 Jun 2012, 23:08
Has thanked: 0 time
Been thanked: 0 time

Re: Request for Cards/Source Code

Postby 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
Backfir3
 
Posts: 7
Joined: 20 Jan 2012, 18:02
Has thanked: 1 time
Been thanked: 2 times

Re: Request for Cards/Source Code

Postby 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
noxx
DEVELOPER
 
Posts: 110
Joined: 25 Mar 2012, 08:13
Has thanked: 3 times
Been thanked: 37 times

Next

Return to XMage

Who is online

Users browsing this forum: No registered users and 38 guests


Who is online

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

Login Form