Sesu8642 / FeudalTactics

Strategy game with countless unique and challenging levels.
GNU General Public License v3.0
79 stars 20 forks source link

Running FeudalTactics on Mobile Linux #84

Open jonnius opened 1 week ago

jonnius commented 1 week ago

I tried starting the release desktop jar like java -jar FeudalTactics-desktop.jar on an arm64 Ubuntu Touch Linux device, but keep getting:

[LWJGL] GLFW_API_UNAVAILABLE error
        Description : EGL: Failed to find support for OpenGL
        Stacktrace  :
                org.lwjgl.glfw.GLFW.nglfwCreateWindow(GLFW.java:2058)
                org.lwjgl.glfw.GLFW.glfwCreateWindow(GLFW.java:2229)
                com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createGlfwWindow(Lwjgl3Application.java:527)
                com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createWindow(Lwjgl3Application.java:463)
                com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createWindow(Lwjgl3Application.java:449)
                com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:163)
                de.sesu8642.feudaltactics.lwjgl3.Lwjgl3Launcher.createApplication(Lwjgl3Launcher.java:24)
                de.sesu8642.feudaltactics.lwjgl3.Lwjgl3Launcher.main(Lwjgl3Launcher.java:16)
[de.sesu8642.feudaltactics.lwjgl3.Lwjgl3Launcher] the game crashed because of an unexpected exception
com.badlogic.gdx.utils.GdxRuntimeException: Couldn't create window
        at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createGlfwWindow(Lwjgl3Application.java:530)
        at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createWindow(Lwjgl3Application.java:463)
        at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createWindow(Lwjgl3Application.java:449)
        at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:163)
        at de.sesu8642.feudaltactics.lwjgl3.Lwjgl3Launcher.createApplication(Lwjgl3Launcher.java:24)
        at de.sesu8642.feudaltactics.lwjgl3.Lwjgl3Launcher.main(Lwjgl3Launcher.java:16)

I assume, it is requiring OpenGL support, while Ubuntu Touch provides GLES. As you support Android, I assume that GLES should be supported by this game. Is that correct? Can you provide any guidance how to package/start the game so that it utilizes GLES?

Sesu8642 commented 1 week ago

I think you might need to edit the config in de.sesu8642.feudaltactics.lwjgl3.Lwjgl3Launcher. See https://libgdx.com/wiki/graphics/opengl-es-support.