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

×
I launch the game this way:

CACHEDIR=~/.spel-data/home/Zomboid HOME=~/.spel-data/home ~/.spel-data/GOG\ Games/Project\ Zomboid/start.sh -cachedir=~/.spel-data/home/Zomboid

I get this error:

Running Project Zomboid
64-bit java detected
java.io.FileNotFoundException: /home/me/Zomboid/console.txt (Permission denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
at java.io.FileOutputStream.<init>(FileOutputStream.java:110)
at zombie.gameStates.MainScreenState.main(MainScreenState.java:110)
Exception in thread "main" java.lang.ExceptionInInitializerError
at zombie.gameStates.MainScreenState.main(MainScreenState.java:129)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at org.lwjgl.opengl.LinuxDisplay.getAvailableDisplayModes(LinuxDisplay.java:951)
at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:738)
at org.lwjgl.opengl.Display.<clinit>(Display.java:138)
... 1 more

~/Zomboid is read only but it shouldn't affect startup.
This question / problem has been solved by EnigmaGreyimage
That folder shouldn't be read-only. Could you change its permissions?
avatar
EnigmaGrey: That folder shouldn't be read-only. Could you change its permissions?
Done

Running Project Zomboid
64-bit java detected
Exception in thread "main" java.lang.ExceptionInInitializerError
at zombie.gameStates.MainScreenState.main(MainScreenState.java:129)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at org.lwjgl.opengl.LinuxDisplay.getAvailableDisplayModes(LinuxDisplay.java:951)
at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:738)
at org.lwjgl.opengl.Display.<clinit>(Display.java:138)
... 1 more

Same issue
This one seems to be because it can't get a list of available resolutions. If you have a nVidia or AMD card, could you make sure the proprietary drivers are installed?

Not sure what to suggest if it's an Intel. Not finding the usual results when googling.

Could also be a problem with entropy, as this is happening around a rand() call: https://steamcommunity.com/app/108600/discussions/0/1692659769946051325/
avatar
EnigmaGrey: This one seems to be because it can't get a list of available resolutions. If you have a nVidia or AMD card, could you make sure the proprietary drivers are installed?
I use the free nvidia drivers (Nouveau).
avatar
EnigmaGrey: Could also be a problem with entropy, as this is happening around a rand() call: https://steamcommunity.com/app/108600/discussions/0/1692659769946051325/
The thread suggests installing xrandr which I have installed.
Ah, okay. Not sure if it could be a problem with Nouveau specifically or not.

A user with a similar issue (one line off) mentions needing to change some settings in grub to get it to work: https://www.reddit.com/r/projectzomboid/comments/6rqqgg/game_does_not_start_on_linux/

Will otherwise see if I can't find some more info about the problem.
avatar
EnigmaGrey: Ah, okay. Not sure if it could be a problem with Nouveau specifically or not.

A user with a similar issue (one line off) mentions needing to change some settings in grub to get it to work: https://www.reddit.com/r/projectzomboid/comments/6rqqgg/game_does_not_start_on_linux/

Will otherwise see if I can't find some more info about the problem.
This isn't good. :-( I will have to return the game. Perhaps I will give it a shot in the future.
avatar
EnigmaGrey: Could also be a problem with entropy, as this is happening around a rand() call: https://steamcommunity.com/app/108600/discussions/0/1692659769946051325/
Update: It turned out randr was the issue after all. Turns out there is a xorg-xrandr package that I needed as well.

Thank you very much for your time.