Page 16 of 18

Re: How to get started?

PostPosted: 16 Sep 2014, 16:10
by darknesscrysis
Hello, I want to understand how Forge works and maybe help developing it in the future. I'm following the How_to_Get_Started_Developing_Forge instructions to put all the portable programs in an USB. I have put java and eclipse but I don't know if I have done the .bat file right.
set Path=\Java\bin;%Path%
.\Eclipse\eclipse.exe -vm ..\Java\bin -data .\workspace

I have read this in one of the first posts:
Chris H. wrote:For those people who may in the future decide that they are interested in learning Java and the Eclipse development system, they should visit the Eclipse web site at:

I think that I downloaded the Eclipse IDE for Java Developers some months ago, my version is version 3.4.

There are two long pdf files that will provide you with a basic tutorial:

Additional documentation can be found at:
I only had one semester of C++ in the college a few years ago. What do you recommend me to look for being able to develop forge?

Re: How to get started?

PostPosted: 23 Sep 2014, 14:42
by darknesscrysis
I'm gonna take the course Object-oriented programming. Is that useful?

Re: How to get started?

PostPosted: 23 Sep 2014, 17:28
by Chris H.
The basic tutorial and an Object-oriented programming course should be useful.

Re: How to get started?

PostPosted: 13 May 2015, 16:00
by sionn
Hello , I'm a java programmer of newcomers.
I have a few questions about Forge project.

1) Why not measured the coverage of JUnit?
May I commit the JUnit test code?

2) Does this project would not be possible to use the Github?
I feel that it is scary to directly commit code to SVN.

Re: How to get started?

PostPosted: 13 May 2015, 16:53
by KrazyTheFox
sionn wrote:Hello , I'm a java programmer of newcomers.
I have a few questions about Forge project.
Welcome!

sionn wrote:1) Why not measured the coverage of JUnit?
May I commit the JUnit test code?
We don't have many unit tests and there's no real effort to improve code coverage, as far as I know. I don't think anyone would have objections to committing more tests.

sionn wrote:2) Does this project would not be possible to use the Github?
I feel that it is scary to directly commit code to SVN.
Most developers on this project prefer SVN. I asked a while back if anyone would want to switch to Git and the consensus was to stay with SVN.

Re: How to get started?

PostPosted: 14 May 2015, 01:27
by timmermac
We used git some time back, and there were some issues. SVN has been more reliable to this point.

Re: How to get started?

PostPosted: 14 May 2015, 14:15
by sionn
Thank you for answering my questions! :D

Re: How to get started?

PostPosted: 15 May 2015, 04:45
by sharkus
One quick question...

I got everything working from Eclipse to debug the targeting arrow problem (see patch posted on bug thread). Anyhow, I want to play using my new .jar file, but get a path error ("FSkin > can't find skins directory!") when I export a run-able jar and run it from my main forge install location.

I'm guessing it is because it is trying to find the "res" directory by following "../forge-gui" instead of the current working directory. For the life of me I can't find where this include path is configured for exported jars. Am I missing a step somewhere?

Thanks,
Marcus

Re: How to get started?

PostPosted: 15 May 2015, 12:53
by friarsol
sharkus wrote:I'm guessing it is because it is trying to find the "res" directory by following "../forge-gui" instead of the current working directory. For the life of me I can't find where this include path is configured for exported jars. Am I missing a step somewhere?
Is your working path set to <code>\forge\forge-gui-desktop and classpath set to forge-gui-desktop? I'm pretty sure that's a requirement. Also your main class should be: forge.view.Main

Although I haven't setup a new dev environment in forever (and stopped using Eclipse altogether), I think that should be the right info.

Re: How to get started?

PostPosted: 15 May 2015, 15:41
by sharkus
friarsol wrote:Is your working path set to <code>\forge\forge-gui-desktop and classpath set to forge-gui-desktop? I'm pretty sure that's a requirement. Also your main class should be: forge.view.Main

Although I haven't setup a new dev environment in forever (and stopped using Eclipse altogether), I think that should be the right info.
Looks like this is the code that is causing my issue. I'll browse around Eclipse and see if I can find the way to configure the build info version string when I get home from work tonight. I can't say I'm a huge fan of Eclipse. My preferred editor of choice is VIM. :)

Code: Select all
    public String getAssetsDir() {
        return StringUtils.containsIgnoreCase(BuildInfo.getVersionString(), "svn") ?
                "../forge-gui/" : "";
    }

Re: How to get started?

PostPosted: 15 May 2015, 16:16
by friarsol
sharkus wrote:
friarsol wrote:Is your working path set to <code>\forge\forge-gui-desktop and classpath set to forge-gui-desktop? I'm pretty sure that's a requirement. Also your main class should be: forge.view.Main

Although I haven't setup a new dev environment in forever (and stopped using Eclipse altogether), I think that should be the right info.
Looks like this is the code that is causing my issue. I'll browse around Eclipse and see if I can find the way to configure the build info version string when I get home from work tonight. I can't say I'm a huge fan of Eclipse. My preferred editor of choice is VIM. :)

Code: Select all
    public String getAssetsDir() {
        return StringUtils.containsIgnoreCase(BuildInfo.getVersionString(), "svn") ?
                "../forge-gui/" : "";
    }
I've been using IntelliJ IDEA for the last few years and found it way easier to setup than Eclipse. But yea, if your project level working path isn't set to forge-gui-desktop, than that relative call won't work for you. That's what I was trying to say.

Re: How to get started?

PostPosted: 18 May 2015, 04:03
by sharkus
friarsol wrote:I've been using IntelliJ IDEA for the last few years and found it way easier to setup than Eclipse. But yea, if your project level working path isn't set to forge-gui-desktop, than that relative call won't work for you. That's what I was trying to say.
I eventually gave up trying to find the right settings in Eclipse and ran Maven from the command line. Everything works fine from there. I might give IntelliJ IDEA a shot at some point in the future.

Re: How to get started?

PostPosted: 15 Jul 2015, 21:14
by daemon-nio
Great, thanks sharkus I got it right now.

I set it up in IntelliJ and it is super-easy
* svn checkout
* open IntelliJ and importing the pom.xml
* on the right panel click on "Maven Projects" and then on the refresh icon.
* create a new RunnableConfiguration with:
** Main class: forge.view.Main
** Classpath: /Your/Path/To/Svn/Folder/forge-gui-desktop (note by default forge-gui-desktop is not in the classpath. This gave me some trouble and I was modifying the source code and remove ../ from the line commented above).

Re: How to get started?

PostPosted: 23 Nov 2015, 21:11
by damicore
Hello, I've just checked out the svn repo and I can't run it as a java application in eclipse for some reason.
All the options under the "run as" dialog are Maven related ones (Maven build, Maven clean, etc).
Could somebody help me out here?
Also if anybody happens to know where is the pool of cards generation method for quest spell shop that'd be awesome.

Re: How to get started?

PostPosted: 25 Oct 2016, 01:06
by ShivaFang
cardforge.googlecode.com not found. Has the SVC moved?