How to get started?
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: How to get started?
by Braids » 02 Aug 2011, 22:14
by the way, i updated the "Typical Development Usage" wiki section again. is there an EGit or Git expert who can take a look at it? edit away; it's a wiki. or pm me.
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. 

-
Braids - Programmer
- Posts: 556
- Joined: 22 Jun 2011, 00:39
- Location: Unknown. Hobby: Driving myself and others to constructive madness.
- Has thanked: 1 time
- Been thanked: 1 time
Re: How to get started?
by Agetian » 04 Aug 2011, 04:46
Umm unfortunately, it didn't help either... just the same thing after I do this. :\jendave wrote:Try to removeAgetian wrote:@ jeffwadsworth: Hmm, tried it but it didn't help...Thanks for trying to help though!
Then run
- Code: Select all
.m2/repository/com/mortennobel
- Code: Select all
mvn -U clean install
- Agetian
- Programmer
- Posts: 3486
- Joined: 14 Mar 2011, 05:58
- Has thanked: 683 times
- Been thanked: 569 times
Re: How to get started?
by jendave » 04 Aug 2011, 13:09
Agetian, please post a screenshot of your Maven Dependencies in Eclipse.
Re: How to get started?
by Braids » 04 Aug 2011, 14:11
how does one do that? open pom.xml?jendave wrote:Agetian, please post a screenshot of your Maven Dependencies in Eclipse.
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. 

-
Braids - Programmer
- Posts: 556
- Joined: 22 Jun 2011, 00:39
- Location: Unknown. Hobby: Driving myself and others to constructive madness.
- Has thanked: 1 time
- Been thanked: 1 time
Re: How to get started?
by jendave » 04 Aug 2011, 14:13
Like this.Braids wrote:how does one do that? open pom.xml?jendave wrote:Agetian, please post a screenshot of your Maven Dependencies in Eclipse.
Re: How to get started?
by Agetian » 05 Aug 2011, 04:12
@ jendave: I was about to do that when I decided to try out one more thing (found this "Update Dependencies" in the Maven menu after you mentioned dependencies), I hit that, agreed to let it update, and it started to work fine for me!
)
Thanks a lot to everyone for helping me out!

Thanks a lot to everyone for helping me out!

- Agetian
- Programmer
- Posts: 3486
- Joined: 14 Mar 2011, 05:58
- Has thanked: 683 times
- Been thanked: 569 times
Re: How to get started?
by jendave » 05 Aug 2011, 06:32
Great!Agetian wrote:@ jendave: I was about to do that when I decided to try out one more thing (found this "Update Dependencies" in the Maven menu after you mentioned dependencies), I hit that, agreed to let it update, and it started to work fine for me!)
Thanks a lot to everyone for helping me out!
Re: How to get started?
by Braids » 05 Aug 2011, 14:44
@Agetian: could you take a look at http://www.slightlymagic.net/wiki/Forge:How_to_Get_Started_Developing_Forge#I_am_getting_an_error_about_.22Fix_the_build_path.22_or_.22The_type_..._cannot_be_resolved..22 to see if it matches your symptoms and solution? it's a really small section.Agetian wrote:@ jendave: I was about to do that when I decided to try out one more thing (found this "Update Dependencies" in the Maven menu after you mentioned dependencies), I hit that, agreed to let it update, and it started to work fine for me!)
Thanks a lot to everyone for helping me out!
edit: in case anyone cares, the full url is
- Code: Select all
http://www.slightlymagic.net/wiki/Forge:How_to_Get_Started_Developing_Forge#I_am_getting_an_error_about_.22Fix_the_build_path.22_or_.22The_type_..._cannot_be_resolved..22
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. 

-
Braids - Programmer
- Posts: 556
- Joined: 22 Jun 2011, 00:39
- Location: Unknown. Hobby: Driving myself and others to constructive madness.
- Has thanked: 1 time
- Been thanked: 1 time
Re: How to get started?
by Doublestrike » 27 Aug 2011, 10:10
OK, so I've assigned myself a bug (moving the progress bar inside the splash frame) and I've finished coding the solution. I went to test my solution with the latest revision from the SVN, and there's 200 errors in the downloaded project!
Is this normal? Is there a way to work around it? How to get the last working version so I can test?
Also, is there a place where this procedure is detailed? I'd be happy to write about it but I don't know what's expected.
Is this normal? Is there a way to work around it? How to get the last working version so I can test?
Also, is there a place where this procedure is detailed? I'd be happy to write about it but I don't know what's expected.
---
A joke is a very serious thing.
A joke is a very serious thing.
-
Doublestrike - UI Programmer
- Posts: 715
- Joined: 08 Aug 2011, 09:07
- Location: Bali
- Has thanked: 183 times
- Been thanked: 161 times
Re: How to get started?
by Hellfish » 27 Aug 2011, 10:21
Try updating the dependencies. Right-click on the topmost node in the package explorer (Forge [trunk]) and go to Maven->Update Dependencies. Check the "Force Update of Snapshots/Releases" just in case and click OK.
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
-
Hellfish - Programmer
- Posts: 1297
- Joined: 07 Jun 2009, 10:41
- Location: South of the Pumphouse
- Has thanked: 110 times
- Been thanked: 169 times
Re: How to get started?
by Doublestrike » 27 Aug 2011, 11:57
Great, that did the trick. After another week or two of getting to know the system, I'll write it into the wiki. Thanks for the help.
Not sure how to commit changes, am going to try now. Any tips welcome!
Update
Had a go at a commit, hopefully all is well. Now, off to learn PMD, Checkstyle, TestNG, and FindBugs.
Not sure how to commit changes, am going to try now. Any tips welcome!

Update
Had a go at a commit, hopefully all is well. Now, off to learn PMD, Checkstyle, TestNG, and FindBugs.
---
A joke is a very serious thing.
A joke is a very serious thing.
-
Doublestrike - UI Programmer
- Posts: 715
- Joined: 08 Aug 2011, 09:07
- Location: Bali
- Has thanked: 183 times
- Been thanked: 161 times
Re: How to get started?
by Chris H. » 27 Aug 2011, 13:46
`Doublestrike wrote:Great, that did the trick. After another week or two of getting to know the system, I'll write it into the wiki. Thanks for the help.
Not sure how to commit changes, am going to try now. Any tips welcome!
Update
Had a go at a commit, hopefully all is well. Now, off to learn PMD, Checkstyle, TestNG, and FindBugs.
I saw your commits, thank you.
The short answer to your question I believe is:
1 Synchronize with the repository.
2 Resolve any conflicts.
3 After resolving any conflicts you then Update All Incoming Changes.
4 You then can Commit All Outgoing Changes. When you commit your changes a dialog will be displayed. You can paste in a commit log message and you can choose to not commit all of the changes in your local project.
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: How to get started?
by Ivalen » 28 Aug 2011, 16:38
I followed the wiki instructions http://www.slightlymagic.net/wiki/Forge:How_to_Get_Started_Developing_Forge
1. Install Java - I was already at 1.6.0_27, and I installed the JDK
2. Install eclipse - successful. My workspace created in the default location.
3. Install subversion - I installed the Slik subversion installation package.
4. Install subclipse - successful. Options are available as the instructions indicate.
5. Check out the latest SVN - successful. Churned for some time, now my workspace has a large amount of data.
After the SVN loaded, the problems sub-pane listed 625 errors and 6 warnings.
For example:

And when I attempted to "Run as Application" - I also got the following error:

1. Install Java - I was already at 1.6.0_27, and I installed the JDK
2. Install eclipse - successful. My workspace created in the default location.
3. Install subversion - I installed the Slik subversion installation package.
4. Install subclipse - successful. Options are available as the instructions indicate.
5. Check out the latest SVN - successful. Churned for some time, now my workspace has a large amount of data.
After the SVN loaded, the problems sub-pane listed 625 errors and 6 warnings.
For example:

And when I attempted to "Run as Application" - I also got the following error:

- Ivalen
- Posts: 22
- Joined: 23 Jan 2011, 15:19
- Has thanked: 0 time
- Been thanked: 0 time
Re: How to get started?
by Ivalen » 28 Aug 2011, 17:16
Looks like a lot of the 'libraries' are missing, so I started working my way through the errors. For example: BraidsAssertFunctions imports a library called "testng". I found it on the net, and 'installed new software.'
The error went away.
Okay looks like I need to manually discover each library location and deal with the imports one at a time. Problem is, this was the only one I got to work.
For example: bugzreporter.java imports "org.apache.log4j.Logger".
I found the SVN for it at http://svn.apache.org/viewvc/logging/log4j/trunk/
But when I install new software, eclipse "could not find" it. Argh.
The error went away.
Okay looks like I need to manually discover each library location and deal with the imports one at a time. Problem is, this was the only one I got to work.
For example: bugzreporter.java imports "org.apache.log4j.Logger".
I found the SVN for it at http://svn.apache.org/viewvc/logging/log4j/trunk/
But when I install new software, eclipse "could not find" it. Argh.
- Ivalen
- Posts: 22
- Joined: 23 Jan 2011, 15:19
- Has thanked: 0 time
- Been thanked: 0 time
Re: How to get started?
by friarsol » 28 Aug 2011, 17:32
Ivalen, did you update the Maven dependencies? It sounds like this is where your issue is coming from.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Who is online
Users browsing this forum: No registered users and 18 guests