It is currently 25 Apr 2024, 17:30
   
Text Size

How to get started?

Post MTG Forge Related Programming Questions Here

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

Re: How to get started?

Postby 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.
Ivalen
 
Posts: 22
Joined: 23 Jan 2011, 15:19
Has thanked: 0 time
Been thanked: 0 time

Re: How to get started?

Postby Braids » 28 Aug 2011, 19:24

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.
i added instructions to the wiki; please let me know if this section helps:

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. ;)
User avatar
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?

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

Postby 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. :)
User avatar
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?

Postby 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.
User avatar
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?

Postby 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.
User avatar
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?

Postby 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.
Attachments
error.jpg
jeffwadsworth
Super Tester Elite
 
Posts: 1171
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 287 times
Been thanked: 69 times

Re: How to get started?

Postby 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?
User avatar
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?

Postby jeffwadsworth » 02 Sep 2011, 16:03

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?
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.
jeffwadsworth
Super Tester Elite
 
Posts: 1171
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 287 times
Been thanked: 69 times

Re: How to get started?

Postby Chris H. » 02 Sep 2011, 16:19

jeffwadsworth wrote:
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?
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.
`
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.
User avatar
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?

Postby 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: 1171
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 287 times
Been thanked: 69 times

Re: How to get started?

Postby Doublestrike » 11 Sep 2011, 06:37

Chris H. wrote:It looks like from what you are saying you have installed both Subclipse and Subversion.
Was reading this and did a double take - shouldn't Subversion be installed anyway? Maybe you meant Subversive? :confusing:
---
A joke is a very serious thing.
User avatar
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?

Postby Chris H. » 11 Sep 2011, 11:17

Doublestrike wrote:
Chris H. wrote:It looks like from what you are saying you have installed both Subclipse and Subversion.
Was reading this and did a double take - shouldn't Subversion be installed anyway? Maybe you meant Subversive? :confusing:
`
Yeah, I too am confused. :? I only have Experience with the Mac OS and do not have experience with the Windows OS.

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.
User avatar
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?

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


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

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)

I've tried multiple times; always the same result. Any hints?
Last edited by RumbleBBU on 28 Aug 2012, 13:29, edited 1 time in total.
User avatar
RumbleBBU
 
Posts: 394
Joined: 18 Aug 2012, 04:24
Has thanked: 29 times
Been thanked: 66 times

Re: How to get started?

Postby 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

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 104 guests


Who is online

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

Login Form