Vhati / ftl-profile-editor

Profile editor for FTL: Faster Than Light (www.ftlgame.com)
GNU General Public License v2.0
128 stars 30 forks source link

Need help running the program on Steam Deck #129

Open Aepoh opened 1 month ago

Aepoh commented 1 month ago

Trying to run the program on Steam Deck throws a missing java.xml.bind error similar to other issues. The program is very out of date, relying on old versions of Java to operate that are not easily installed on a Steam Deck. It's a problem because of how necessary it is to the modern FTL experience, due to how the program speeds up crew skill farming.

Aepoh commented 1 month ago

I figured out how to get it working by using SDKman to install a version of Java 8 and then dragging the .command file onto a Konsole window. https://sdkman.io/

I still need to figure out a way to get the program to run from game mode. Not sure how to do that since any other way of trying to run the program tells me that it can't find Java.

Malanius commented 1 month ago

What version of Java is Steam Deck running by default?

Some work has been done to run it on Java 11 in #115, but that might also be outdated, you can check at least.

Honestly, I'm not even sure if the project is still alive, @Vhati has been quiet for a while.

Niels-NTG commented 1 month ago

Tip: when you get it running, you might want to use this fork by @reseto instead, which should work with the latest version of the game https://github.com/reseto/ftl-profile-editor/, but it still is compiled for Java 7.

Aepoh commented 1 month ago

What version of Java is Steam Deck running by default?

Some work has been done to run it on Java 11 in #115, but that might also be outdated, you can check at least.

Honestly, I'm not even sure if the project is still alive, @Vhati has been quiet for a while.

There is no default. Steam Deck doesn't come with Java, you have to install it yourself or ape it from Minecraft or something.

A version of SlipStream that the Hyperspace mod tutorial included comes with its own prepacked java in a jre folder. What I did was use SDKman to install Java 8fx (Zulu repo) and now java -jar FTLProfileeditor.jar works, and so does dragging it onto the konsole window. I also replaced the .command script with the one that Slipstream has and replaced all instances of "x-terminal" in the script with "konsole" (and also changed the java -jar arg to point to profileeditor instead of slipstream) and now it works as a proper double click executable. I also took the jre folder from .sdkman/candidates/java8 and put it in the same folder as ftlprofileeditor.

It will even work in Gamemode when added to steam but due to some rendering error it just shows up as a big gray box on my screen. The UI is still interact-able but everything is invisible.

Aepoh commented 1 month ago

Tip: when you get it running, you might want to use this fork by @reseto instead, which should work with the latest version of the game https://github.com/reseto/ftl-profile-editor/, but it still is compiled for Java 7.

Honestly that might be what I'm already using. What I have I downloaded off of the subset forums. I'll still try the other one you linked and see if it fixes my rendering error issue.

Edit: I tried going there but I can't figure out how to download that in a way that I can actually use it. There are no releases and downloading it as a zip doesn't include a jar file. The compiled binaries link offered just links to Vhati's FTLpe

Aepoh commented 1 month ago

I wonder if the Hyperspace dev would be interested in working on a better and more modern profile editor. FTL really needs it.