It is currently 18 Nov 2018, 22:30
   
Text Size

How to get started?

Post MTG Forge Related Programming Questions Here

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

Re: How to get started?

Postby Seravy » 25 Jun 2017, 23:00

You mean this one?
Maven.png

It's not working, doesn't even run through that, let alone compile a jar.

...I guess I can run from the source if I really want to use whatever feature I add, it not that important.
Seravy
 
Posts: 363
Joined: 26 Oct 2016, 21:23
Has thanked: 5 times
Been thanked: 27 times

Re: How to get started?

Postby KrazyTheFox » 25 Jun 2017, 23:03

I would strongly recommend running Maven from outside Eclipse, just because Eclipse makes it difficult at best to get it working.
User avatar
KrazyTheFox
Programmer
 
Posts: 723
Joined: 18 Mar 2014, 23:51
Has thanked: 66 times
Been thanked: 225 times

Re: How to get started?

Postby Seravy » 25 Jun 2017, 23:28

Oh, you meant to type that in a DOS prompt.
Well, that works a bit better, got this far :

maven2.png


Oh well, I guess I rather spend my time doing something more meaningful like trying to add one of the other features I wanted.

Meanwhile I uploaded the "patch" file in the other thread, didn't find a way to export so I had to manually pick the 4 changed files. Hope that works.
Seravy
 
Posts: 363
Joined: 26 Oct 2016, 21:23
Has thanked: 5 times
Been thanked: 27 times

Re: How to get started?

Postby Seravy » 27 Jun 2017, 11:27

experimenting more with this...

1. I think the correct command might be
mvn install -P windows-linux-release
and not
mvn install -P windows-linux ?
2. It seems to require JDK to be installed so doing that right now.
(why is the wiki pointing at the JRE download? Well, I guess Eclipse did work with that...)

...now it compiles one folder at a time, then still throws an error of having no JDK afterwards...but every time it gets closer to having all of them done as one folder does get done somehow...and now it's done. Well, that was weird but it worked!

...and this means I can now play the game using my changes without having to wait for an official release.
...and trying this upgraded the version of my quest saves to include the new filter rating data so it's not going to be compatible with official releases until it does get included, ouch. Fortunately I have a backup, but it means I can't use the new system until it's officially "in".
Seravy
 
Posts: 363
Joined: 26 Oct 2016, 21:23
Has thanked: 5 times
Been thanked: 27 times

Re: How to get started?

Postby daitokujibiko » 18 Jul 2017, 16:32

So new versions of intelliJ seem to have changed some stuff, and it took me a while to get forge running with one. To be honest I don't remember what exactly I did, but the steps on the wiki are a bit out of date. For step 6, there is no Maven window on the right, so you've got to find the maven panel which is hidden in View -> Tools Windows -> Maven projects. Step 7 seems to be totally different because I don't get anything when I click run -> edit configuration. I had to navigate the submenus under default and add a new Application configuration and play with the settings there. Hope that helps someone.
daitokujibiko
 
Posts: 22
Joined: 22 Jun 2017, 21:52
Has thanked: 10 times
Been thanked: 1 time

Previous

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 3 guests


Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: No registered users and 3 guests

Login Form