portablemc icon indicating copy to clipboard operation
portablemc copied to clipboard

Version for testing mod client startup?

Open LyFl0w opened this issue 1 year ago • 3 comments

Would it be possible to have a version where just the game launches in the console (without a graphics card or associated screen size)? This would make it easy to automate mod association on client startup from a docker container.

LyFl0w avatar Mar 09 '24 11:03 LyFl0w

I don't think that it is currently supported by the client, and this seems really complicated to do just from the command line that starts the game. What do you mean by "easy to automate mod association on client startup"? Just checking that mods properly starts and are compatible?

mindstorm38 avatar Mar 09 '24 11:03 mindstorm38

Yes, I want to be able to simply check that mods start up correctly and are compatible, because as far as I know it's not possible to know if a mod is incompatible with another if it's not tested manually (launch the game, create a new world). I'm going to try running an xorg server on a Linux machine where no one will be on it (but I'm not sure what the result will be).

LyFl0w avatar Mar 09 '24 16:03 LyFl0w

This is a technically interesting subject. In the past the launcher used to have an addon that allowed to interact with the game through a Python API, backed by a custom class entry point and remote reflection, this was really cool but I dropped it because it was a bit over engineered and it was not possible to automate. So this is technically possible, but on the other side I don't know at all how we could fake the window system. Something like Selenium but for Minecraft could be insanely useful. Maybe possible by replacing the glfw/opengl libraries with dummy functions? But this requires implementing some part of the APIs anyway.

mindstorm38 avatar Mar 09 '24 23:03 mindstorm38