Running/debugging Downlord Client

Post here if you want to help developing something for FAF.

Running/debugging Downlord Client

Postby HeWhoHasBigHump » 30 Apr 2019, 06:21

Hello everyone!
I cloned the git repo for the DL client and tried to get it going in Eclipse.
I have openJFX12 and Java 12 installed but every time I try to do application/bootRun from gradle, it blows up with "Error: JavaFX runtime components are missing, and are required to run this application"

I added module-path and add-modules for all JavaFX modules in the run configuration. Still the same error.

I've never used Gradle before. Maybe I'm doing it wrong?
What do I have to do to debug the client from Eclipse?
Ribbit!
User avatar
HeWhoHasBigHump
 
Posts: 3
Joined: 19 Jun 2018, 22:20
Has liked: 0 time
Been liked: 0 time
FAF User Name: HeWhoHasBigHump

Re: Running/debugging Downlord Client

Postby axel12 » 01 May 2019, 13:26

Ask a mod to invite you to our slack
User avatar
axel12
Crusader
 
Posts: 33
Joined: 08 Jan 2018, 13:22
Location: DE
Has liked: 7 times
Been liked: 6 times
FAF User Name: axel12

Re: Running/debugging Downlord Client

Postby axel12 » 01 May 2019, 13:27

But fun fact you need oracle jdk 10 or ortherwise you will need to fix a lot of bugs occurring from the updating of the version
User avatar
axel12
Crusader
 
Posts: 33
Joined: 08 Jan 2018, 13:22
Location: DE
Has liked: 7 times
Been liked: 6 times
FAF User Name: axel12

Re: Running/debugging Downlord Client

Postby Brutus5000 » 01 May 2019, 14:08

There are still issues with the client using JavaFX methods that are not exported in the new module system and other shenanigans that are still unresolved.
If you can fix them, a PR would be appreciated. Otherwise you will need to use Oracle JDK10 for now.
The 9th Doctor wrote:You think it'll last forever, the people and cars and concrete. But it won't. One day it's all gone, even the sky.
Brutus5000
Site Admin
 
Posts: 270
Joined: 05 Aug 2016, 23:32
Has liked: 27 times
Been liked: 239 times
FAF User Name: brutus5000

Re: Running/debugging Downlord Client

Postby HeWhoHasBigHump » 01 May 2019, 20:43

Brutus5000 wrote:There are still issues with the client using JavaFX methods that are not exported in the new module system and other shenanigans that are still unresolved.
If you can fix them, a PR would be appreciated. Otherwise you will need to use Oracle JDK10 for now.


The code compiles using Java10 and OpenJFX12 but I had to add a bunch of JVM options to get it to work. Now it's caught on finding faf-uid.

What are the command line options for FAFClientApplication?
Also, can you send me an invite for Slack to hewhohasbighump@gmail.com ?
Ribbit!
User avatar
HeWhoHasBigHump
 
Posts: 3
Joined: 19 Jun 2018, 22:20
Has liked: 0 time
Been liked: 0 time
FAF User Name: HeWhoHasBigHump

Re: Running/debugging Downlord Client

Postby Brutus5000 » 02 May 2019, 17:02

You need to run the gradle task downloadNativeDependencies, but it should be a part of gradle build.

Also, my current command line arguments are:
-DnativeDir=build/resources/native -Dprism.dirtyopts=false -Xms128m -Xmx512m -XX:MinHeapFreeRatio=15 -XX:MaxHeapFreeRatio=33 -XX:+HeapDumpOnOutOfMemoryError -XX:+UseStringDeduplication -javaagent:webview-patch/build/libs/webview-patch.jar

+ -Dspring.profiles.active=prod or set the spring profile in your IDE.


Slack invite is on the way.
The 9th Doctor wrote:You think it'll last forever, the people and cars and concrete. But it won't. One day it's all gone, even the sky.
Brutus5000
Site Admin
 
Posts: 270
Joined: 05 Aug 2016, 23:32
Has liked: 27 times
Been liked: 239 times
FAF User Name: brutus5000


Return to Contributors

Who is online

Users browsing this forum: No registered users and 1 guest