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 Ivalen » 28 Aug 2011, 17:34
I didn't do anything with Maven. When I read the wiki page it indicated Maven was used to publish Forge for public release.. I don't want to do that, just build my own local copy.
Anyway I'll install the rest, and follow up.
Anyway I'll install the rest, and follow up.
- Ivalen
- Posts: 22
- Joined: 23 Jan 2011, 15:19
- Has thanked: 0 time
- Been thanked: 0 time
Re: How to get started?
by Braids » 28 Aug 2011, 19:24
i added instructions to the wiki; please let me know if this section helps:Ivalen wrote:I didn't do anything with Maven. When I read the wiki page it indicated Maven was used to publish Forge for public release.. I don't want to do that, just build my own local copy.
Anyway I'll install the rest, and follow up.
http://www.slightlymagic.net/wiki/Forge:How_to_Get_Started_Developing_Forge#Updating_Maven_Dependencies
"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 Ivalen » 28 Aug 2011, 20:51
After installing Maven and m2e, all worked well, just some warnings about unused modules etc. Thanks for the help.
- Ivalen
- Posts: 22
- Joined: 23 Jan 2011, 15:19
- Has thanked: 0 time
- Been thanked: 0 time
Re: How to get started?
by Chris H. » 29 Aug 2011, 02:30
`Ivalen wrote:I didn't do anything with Maven. When I read the wiki page it indicated Maven was used to publish Forge for public release.. I don't want to do that, just build my own local copy.
There is a section in the wiki that gives you a Maven command that will create an archive containing all of the files that you need to run the forge app on your local machine.
So you can do a local publish to your machine.

-
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 Rob Cashwalker » 29 Aug 2011, 04:36
The maven context menu items aren't very clear about their real intended purpose. The good news is that without knowing the password, you can't accidentally upload anything.
The Force will be with you, Always.
-
Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
Re: How to get started?
by Chris H. » 29 Aug 2011, 12:25
`Rob Cashwalker wrote:The maven context menu items aren't very clear about their real intended purpose. The good news is that without knowing the password, you can't accidentally upload anything.
The Team -> Maven Build... command will let you enter in a Maven goal.
The goal -U -B clean -P windows-linux install will build a snapshot package build of the Windows/Linux package only. This goal does not upload the forge archive to a site for distribution.
-
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 jeffwadsworth » 31 Aug 2011, 16:36
I am getting the error attached when attempting to import the project. I followed the guide and everything "seems" to be installed correctly.
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: How to get started?
by Chris H. » 02 Sep 2011, 10:38
`jeffwadsworth wrote:I am getting the error attached when attempting to import the project. I followed the guide and everything "seems" to be installed correctly.
I'm a Mac OS X guy and your problem is with Windows. Click on the link that is included. It may tell you that you need to download and install a version of Subversion. Are you running in 64 bit?
-
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 jeffwadsworth » 02 Sep 2011, 16:03
No, 32 bit Win 7. I use another system with the same error that is 64 bit Win 7. I reinstalled Subversion many times in an attempt to fix this issue already.Chris H. wrote:`jeffwadsworth wrote:I am getting the error attached when attempting to import the project. I followed the guide and everything "seems" to be installed correctly.
I'm a Mac OS X guy and your problem is with Windows. Click on the link that is included. It may tell you that you need to download and install a version of Subversion. Are you running in 64 bit?
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: How to get started?
by Chris H. » 02 Sep 2011, 16:19
`jeffwadsworth wrote:No, 32 bit Win 7. I use another system with the same error that is 64 bit Win 7. I reinstalled Subversion many times in an attempt to fix this issue already.Chris H. wrote:`jeffwadsworth wrote:I am getting the error attached when attempting to import the project. I followed the guide and everything "seems" to be installed correctly.
I'm a Mac OS X guy and your problem is with Windows. Click on the link that is included. It may tell you that you need to download and install a version of Subversion. Are you running in 64 bit?
Hmm, not sure then what is causing your problem, sorry.

It looks like from what you are saying you have installed both Subclipse and Subversion.
-
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 jeffwadsworth » 06 Sep 2011, 22:19
Yes. I will install everything from scratch on another system and see what happens. Thanks.
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: How to get started?
by Doublestrike » 11 Sep 2011, 06:37
Was reading this and did a double take - shouldn't Subversion be installed anyway? Maybe you meant Subversive? :confusing:Chris H. wrote:It looks like from what you are saying you have installed both Subclipse and Subversion.
---
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. » 11 Sep 2011, 11:17
`Doublestrike wrote:Was reading this and did a double take - shouldn't Subversion be installed anyway? Maybe you meant Subversive? :confusing:Chris H. wrote:It looks like from what you are saying you have installed both Subclipse and Subversion.
Yeah, I too am confused.

The picture provided by Jeff states that "Subversion Native Library Not Available". So it looks like he has Subclipse installed but it is not accessing the Subversion/JavaHL.
At http://subclipse.tigris.org/wiki/JavaHL it states that Subclipse includes JavaHL for Winsows 32 bit so I guess that he does not need to download and install Subversion. On the other hand, Winsows 64 bit does require a Subversion package to be installed.
I am not sure what Jeff needs to do to get up and running again. He had a working dev system setup with the old SVN. The only thing different this time around is the need to have Maven installed for the dependancies.
-
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 RumbleBBU » 28 Aug 2012, 10:19
Gave up to temptation and decided to give this a go, i.e. set up an Eclipse environment and dl the source so I can try some 'improvements' I had in mind.
I tried to follow the instructions on http://www.slightlymagic.net/wiki/Forge ... ping_Forge to the dot (Windows, portable except for the actual JDK). However, there was one point where I could not follow the instructions exactly:
Then I went on to check out the source code...
Failed. I've tried this multiple times, but everytime it fails with this error message:
"SVN Checkout has encountered a problem. cannot checkout"
The 'Details' button gives the supremely helpful details: "cannot checkout".
The Eclipse window, though, contains some more information:
I tried to follow the instructions on http://www.slightlymagic.net/wiki/Forge ... ping_Forge to the dot (Windows, portable except for the actual JDK). However, there was one point where I could not follow the instructions exactly:
Now the problem was that there was nothing with string "svn" in it. There was a m2e-sublicpse connector and a m2e-subversive connector, though. I installed them both.m2e Plugin
m2e is a required plugin that integrates your computer's Maven client into the Eclipse user interface. It is responsible for downloading the latest third-party jars for ordinary Java compilation of Forge.
m2e Plugin Connectors
The m2e plugin must have a connector installed to work with various SCM repositories. Connectors can be found as follows.
SVN Connector
1.Navigate to File -> Import...
2.Expand the Maven folder
3.Select Check Out Maven Projects from SCM and click Next.
4.In the dialog window that opens, click Find more SCM connectors in the m2e Marketplace
?It's on the lower right side of the window.
5.Search for m2e-svn and select. Click Finish.
Then I went on to check out the source code...
Failed. I've tried this multiple times, but everytime it fails with this error message:
"SVN Checkout has encountered a problem. cannot checkout"
The 'Details' button gives the supremely helpful details: "cannot checkout".
The Eclipse window, though, contains some more information:
- Code: Select all
(snip)
....
A U:/Dev/Workspace/ForgeLocal/src/main/java/forge/AllZoneUtil.java
A U:/Dev/Workspace/ForgeLocal/src/main/java/forge/CardListUtil.java
A U:/Dev/Workspace/ForgeLocal/src/main/java/forge/StaticEffect.java
A U:/Dev/Workspace/ForgeLocal/src/main/java/forge/HandSizeOp.java
A U:/Dev/Workspace/ForgeLocal/src/main/java/forge/GameActionUtil.java
A U:/Dev/Workspace/ForgeLocal/src/main/java/forge/GameEntity.java
A U:/Dev/Workspace/ForgeLocal/src/main/java/forge/CardUtil.java
A U:/Dev/Workspace/ForgeLocal/src/main/java/forge/NameChanger.java
A U:/Dev/Workspace/ForgeLocal/src/main/java/forge/CardColor.java
A U:/Dev/Workspace/ForgeLocal/src/main/java/forge/error
A U:/Dev/Workspace/ForgeLocal/src/main/java/forge/error/package-info.java
A U:/Dev/Workspace/ForgeLocal/src/main/java/forge/error/BugzReporter.java
A U:/Dev/Workspace/ForgeLocal/src/main/java/forge/error/ErrorViewer.java
A U:/Dev/Workspace/ForgeLocal/src/main/java/forge/error/ExceptionHandler.java
A U:/Dev/Workspace/ForgeLocal/src/main/java/forge/GameLog.java
A U:/Dev/Workspace/ForgeLocal/src/main/java/forge/CardType.java
A U:/Dev/Workspace/ForgeLocal/src/main/java/forge/model
A U:/Dev/Workspace/ForgeLocal/src/main/java/forge/model/FMatchState.java
A U:/Dev/Workspace/ForgeLocal/src/main/java/forge/model/MultipleForgeJarsFoundError.java
A U:/Dev/Workspace/ForgeLocal/src/main/java/forge/model/package-info.java
A U:/Dev/Workspace/ForgeLocal/src/main/java/forge/model/FModel.java
A U:/Dev/Workspace/ForgeLocal/src/main/java/forge/model/BuildInfo.java
A U:/Dev/Workspace/ForgeLocal/src/main/java/forge/CardCharacteristicName.java
A U:/Dev/Workspace/ForgeLocal/src/main/java/forge/package-info.java
A U:/Dev/Workspace/ForgeLocal/src/main/java/forge/Singletons.java
RA layer request failed
svn: REPORT of '/forge/!svn/vcc/default': Could not read response body: connection was closed by server (http://svn.slightlymagic.net)
Last edited by RumbleBBU on 28 Aug 2012, 13:29, edited 1 time in total.
Re: How to get started?
by friarsol » 28 Aug 2012, 12:06
I know a few of use use external SVN Tools (such as Tortoise SVN) instead of the integrated Eclipse SVN. If noone else has any ideas, I'd recommend giving that a shot.
- 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 10 guests