It is currently 11 Sep 2025, 11:28
   
Text Size

New Developer Setup Problems

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

New Developer Setup Problems

Postby ZakBlade » 09 Jan 2013, 04:14

I am attempting to begin working as a developer for forge, but I am having trouble setting up Maven within the Eclipse environment. I followed the steps listed at the following wiki article:
Forge:How_to_Get_Started_Developing_Forge

However, I am having troubles with the installation of Maven and the m2e plugin. I have the most recent versions of Eclipse and Subclipse, and I was able to import the most recent version of the source code at the svn slightlymagic address. However, every time I turn on eclipse and open the forge project, I get the following error:
Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'ForgeLocal'.
Could not calculate build plan: Failed to parse plugin descriptor for org.apache.maven.plugins:maven-compiler-plugin:2.5.1 (maven-compiler-plugin-2.5.1.jar): invalid LOC header (bad signature)
Failed to parse plugin descriptor for org.apache.maven.plugins:maven-compiler-plugin:2.5.1 (maven-compiler-plugin-2.5.1.jar): invalid LOC header (bad signature)
Could not calculate build plan: Failed to parse plugin descriptor for org.apache.maven.plugins:maven-compiler-plugin:2.5.1 (maven-compiler-plugin-2.5.1.jar): invalid LOC header (bad signature)
Failed to parse plugin descriptor for org.apache.maven.plugins:maven-compiler-plugin:2.5.1 (maven-compiler-plugin-2.5.1.jar): invalid LOC header (bad signature)

I think the problem might have something to do with the fact that I am using the most recent version of Maven, which is 3.0.4, while the project seems to be looking for a maven plugin version 2.5.1, but I have no idea what I could do to alleviate this problem if this is the cause of my troubles.

If anyone could provide any insight into this issue, it would be very much appreciated. Also, if there is any additional information that you would need from me, please let me know so I can provide it.
ZakBlade
 
Posts: 6
Joined: 09 Jan 2013, 03:45
Has thanked: 1 time
Been thanked: 0 time

Re: New Developer Setup Problems

Postby timmermac » 09 Jan 2013, 05:39

There's two possible solutions that immediately spring to mind. Try uninstalling the Maven 3.0.4 plugin and see if you can find the 2.5.1 plugin after that. Alternatively, if you can't uninstall the plugin, just uninstall Eclipse and reinstall it, then get the Maven 2.5.1 plugin.
"I just woke up, haven't had coffee, let alone a pee in 7 days, and I find out you stole my ass and made a ...mini-me! Carter, I should be irked currently, yes?" - Jack O'Neill
User avatar
timmermac
Tester
 
Posts: 1512
Joined: 17 May 2010, 20:36
Has thanked: 18 times
Been thanked: 95 times

Re: New Developer Setup Problems

Postby ZakBlade » 09 Jan 2013, 16:35

Apparently the problem was that my maven-compiler-plugin-2.5.1 was corrupted, so reinstalling fixed the problem. I believe it is all working now. Thank you very much.
ZakBlade
 
Posts: 6
Joined: 09 Jan 2013, 03:45
Has thanked: 1 time
Been thanked: 0 time

Re: New Developer Setup Problems

Postby moomarc » 09 Jan 2013, 18:48

Hi ZakBlade. Glad you're up and running!

Is there any particular area that you're looking at developing, or are you just having a look 'round the codebase?

If you have any questions, just ask around and one of the guru's will be able to point you in the right direction.
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: New Developer Setup Problems

Postby ZakBlade » 11 Jan 2013, 16:18

Hello Marc,

I'm hoping to create an improved AI based on artificial neural networks for my senior project. As such, I'm currently looking into how exactly the AI works, and something I recently found interested me. Is the smoothComputerManaCurve() function in the GameNew file actually being used to sort the deck so the AI never gets mana screwed?

Edit: Nevermind about the smoothComputerManaCurve(), I just noticed that it is an option that the player chooses and not something that happens every time.
ZakBlade
 
Posts: 6
Joined: 09 Jan 2013, 03:45
Has thanked: 1 time
Been thanked: 0 time

Re: New Developer Setup Problems

Postby friarsol » 11 Jan 2013, 16:36

ZakBlade wrote:Hello Marc,

I'm hoping to create an improved AI based on artificial neural networks for my senior project. As such, I'm currently looking into how exactly the AI works, and something I recently found interested me. Is the smoothComputerManaCurve() function in the GameNew file actually being used to sort the deck so the AI never gets mana screwed?
I think there's an option in the preferences to allow it to be used "Stack AI Land". It's a remnant from before the AI could Mulligan, but some people like to try to give the AI some extra advantages since it's not very smart.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: New Developer Setup Problems

Postby ZakBlade » 11 Jan 2013, 16:46

Thanks Sol. At first, I was afraid that the computer was always cheating, but I can understand why some people would want the option of not having to worry about free wins because their opponent has mana issues.
ZakBlade
 
Posts: 6
Joined: 09 Jan 2013, 03:45
Has thanked: 1 time
Been thanked: 0 time

Re: New Developer Setup Problems

Postby Sloth » 11 Jan 2013, 17:31

ZakBlade wrote:Hello Marc,

I'm hoping to create an improved AI based on artificial neural networks for my senior project. As such, I'm currently looking into how exactly the AI works, and something I recently found interested me.
Unfortunately the AI of Forge is not cleanly separated from the rest of the code and scattered all over. Other people failed to even get close to implement a Minimax AI because of that.

Maybe you can restrict yourself to attacking/blocking decissions only? ComputerUtilAttack and ComputerUtilBlock handle that.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: New Developer Setup Problems

Postby ZakBlade » 11 Jan 2013, 18:18

Thanks for the info. I'm hoping to use a variant of a minimax AI in which the heuristic function retrieves its values from an artificial neural network (ANN). I'm planning on creating a separate EMenu titled "AI Mode" where I hope to contain all of my changes so I can still compare my AI to the one that is already in place. In order to get this to work, I will first need to make an AI vs AI mode, and then, I will need to make an AI training mode so that the ANN can repeatedly play matches against another AI. Let me know what you think of the possibility of me achieving these plans. I'm going to see what progress I can make in separating the AI from the rest of the code, but if it doesn't work, I will probably end up using my AI just for the battle phase as you suggested.
ZakBlade
 
Posts: 6
Joined: 09 Jan 2013, 03:45
Has thanked: 1 time
Been thanked: 0 time

Re: New Developer Setup Problems

Postby ZakBlade » 11 Jan 2013, 23:17

Thanks everyone for all the input. You've helped me to realize that I will not be able to create this AI as I had hoped. Sloth was right. The AI code is far too spread out to be able to create such an AI in just one semester, and as a result, I do not think I will be able to work on the forge project any time soon. Thank you all so much for helping me realize that this quickly though. Without your help, I would be in serious trouble having spent too much time on a dead end for my project.
ZakBlade
 
Posts: 6
Joined: 09 Jan 2013, 03:45
Has thanked: 1 time
Been thanked: 0 time

Re: New Developer Setup Problems

Postby ArsenalNut » 12 Jan 2013, 01:28

ZakBlade wrote:Thanks everyone for all the input. You've helped me to realize that I will not be able to create this AI as I had hoped. Sloth was right. The AI code is far too spread out to be able to create such an AI in just one semester, and as a result, I do not think I will be able to work on the forge project any time soon. Thank you all so much for helping me realize that this quickly though. Without your help, I would be in serious trouble having spent too much time on a dead end for my project.
You might want to look at Magarena. It already has an AI vs AI mode. Its biggest limitation is that certain types of cards are not supported.
So many cards, so little time
User avatar
ArsenalNut
 
Posts: 512
Joined: 08 Jul 2011, 03:49
Has thanked: 27 times
Been thanked: 121 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 33 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 33 users online :: 0 registered, 0 hidden and 33 guests (based on users active over the past 10 minutes)
Most users ever online was 7967 on 09 Sep 2025, 23:08

Users browsing this forum: No registered users and 33 guests

Login Form