MCPHackers / LaunchWrapper

Launch wrapper for legacy Minecraft
MIT License
21 stars 3 forks source link

Obscure launch issue #6

Closed moderatorman closed 11 months ago

moderatorman commented 11 months ago

So, I've written a launcher that uses the BetterJSONs repository, and downloads everything and all that. Works great.

The issue I'm having is that the launch command constructed by my launcher works perfectly in the command line, but does not produce the same behavior when launching with a ProcessBuilder. The game will start, but none of the parameters are accepted. It gives me a default "PlayerXXX" name with no session ID, despite my constructed command clearly containing the information in the debug log.

It would be quite bothersome to have to copy/paste only the relevant code so instead I'll give an exact link to the part of my GitHub repo that is giving me issues. You ought to be able to clone & compile the entire thing with no issues.

GitHub Repo

Edit: Here are some launch commands if you want to boot it up from IntelliJ. It needs some special VM arguments. Using org.gethydra.redux.Main instead of org.gethydra.redux.Bootstrap

--module-path %APPDATA%\.hydra\fx-runtime\lib --add-modules javafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.swing,javafx.media,javafx.web

Edit 2: I also tried messing around with putting quotes in arguments and also not doing it, but seemingly with the same or worse results. I'm not entirely sure what the root cause is.

I'm really hoping I'm just being retarded but it's making no sense to me at all. Hopefully one of you can point out my mistake.

Adoptium Temurin 17 Windows 11 latest (pretty sure it also happens on Linux too, but don't quote me on that)

moderatorman commented 11 months ago

I have resolved the issue myself. I was in fact being retarded lol