Closed chimbersaw closed 5 months ago
Not related to the topic: I have been wondering why isn't the -lwjgl
flag enabled by default if that is the main point of headlessmc
? If you want to keep it that way, its okay, but I then encourage you to explicitly state this in the How to use
section of the README. I personally found out how to actually run mc headless with your project via browsing your github issues. The other way could be using help launch
but imo this crucial info should be reflected in the readme.
HeadlessMC does not print all versions at startup, e.g. I do not print snapshots since the official launcher adds new ones everytime so the output would be huge.
There might be some version.json in your .minecraft/versions that has a badly formed json? An id field might be missing. I will look into making the parsing more robust so that such malformed versions get filtered out.
Not related to the topic: I have been wondering why isn't the
-lwjgl
flag enabled by default if that is the main point ofheadlessmc
?
Yes, very true. I will do that when I have time to also rewrite the documentation, it sucks rn.
There is the hmc.invert.lwjgl.flag
property which makes the lwjgl flag work the other way around.
There might be some version.json in your .minecraft/versions that has a badly formed json? An id field might be missing. I will look into making the parsing more robust so that such malformed versions get filtered out.
Yes, I have found out that there is one version of minecraft causing the problem, which was installed by a 3rd party launcher.
Yes, very true. I will do that when I have time to also rewrite the documentation, it sucks rn. There is the
hmc.invert.lwjgl.flag
property which makes the lwjgl flag work the other way around.
Okay, thanks!
https://github.com/3arthqu4ke/headlessmc/actions/runs/8580610588
You can also try this version, it should not crash anymore on that version. (I think)
https://github.com/3arthqu4ke/headlessmc/actions/runs/8580610588
You can also try this version, it should not crash anymore on that version. (I think)
Yes, there is now crash now, thx
FYI, the parsing problem initially happens at ArgumentFactory#57
, where the json has "values" field while you try to parse the "value" field.
IDK who is right and who is wrong, just going to provide you with the problematic .json
file if you wish to modify your parsing to support this:
Fabric 1.19.3.json
Fixed in 1.9.4
Okay sorry
Okay, since we figured out the more important bug, here's another one:
I get the
java.lang.NullPointerException
when runningversions
command on macos aarch64. Strangely, this does not happen on startup when the versions are printed in the similar manner. This also does not occur on ubuntu.Expected behaviour: