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.
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
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)
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 oforg.gethydra.redux.Bootstrap
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)