It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
When I attempt to run the game on Wayland on Linux with the start script, i.e., when I run`./start.sh`, the game doesn't start and it instead outputs some usage information for the `java` command. The fix for that is to run `./game/SlayTheSpire` instead. However, doing that results in a different error:

```
$ ./game/SlayTheSpire
10:26:34.420 INFO desktop.DesktopLauncher> time: 1661595994416
10:26:34.520 INFO desktop.DesktopLauncher> version: 2020-12-13
10:26:34.521 INFO desktop.DesktopLauncher> libgdx: 1.9.5
10:26:34.521 INFO desktop.DesktopLauncher> default_locale: en_GB
10:26:34.521 INFO desktop.DesktopLauncher> default_charset: UTF-8
10:26:34.522 INFO desktop.DesktopLauncher> default_encoding: UTF-8
10:26:34.524 INFO desktop.DesktopLauncher> java_version: 1.8.0_131
10:26:34.524 INFO desktop.DesktopLauncher> os_arch: amd64
10:26:34.525 INFO desktop.DesktopLauncher> os_name: Linux
10:26:34.525 INFO desktop.DesktopLauncher> os_version: 5.18.17_1
10:26:34.528 INFO core.SystemStats> MEMORY STATS:
Free Memory: 83Mb
Max Memory: 910Mb
Allocated Memory: 103Mb
Unallocated Memory: 807Mb
Total Free Memory: 890Mb
Used Memory: 19Mb

10:26:34.529 INFO core.SystemStats> DISK STATS:
Total Space: 100,220Mb
Usable Space: 31,924Mb
Free Space: 37,060Mb

10:26:38.795 INFO core.STSSentry> java.net.UnknownHostException: a: a: Name or service not known
10:26:38.812 INFO core.DisplayConfig> Reading info.displayconfig
10:26:39.117 INFO core.DisplayConfig> DisplayConfig successfully read.
10:26:39.117 INFO desktop.DesktopLauncher> Settings successfully loaded
10:26:39.118 INFO desktop.DesktopLauncher> Launching application...
Exception in thread "LWJGL Application" java.lang.ExceptionInInitializerError
at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.setVSync(LwjglGraphics.java:558)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:124)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at org.lwjgl.opengl.LinuxDisplay.getAvailableDisplayModes(LinuxDisplay.java:954)
at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:738)
at org.lwjgl.opengl.Display.<clinit>(Display.java:138)
... 2 more
AL lib: (EE) alc_cleanup: 1 device not closed
$
```

The fix for that was I had to install the `xrandr` package.
Please delete this
Post edited October 12, 2022 by myconv
avatar
myconv: Please delete this
Why? The advice to install xrandr helped me be able to run the game (since on wayland, xrandr is useless, it's not a common thing to have installed).
I meant delete the post saying "please delete this" since we can not delete our own posts