Page 1 of 1

[posila][2.0.7]Crash when loading a mod with invalid file paths

Posted: Mon Oct 21, 2024 12:11 pm
by JohnTheCF
Encountered while updating my mod to 2.0, a typo in the mod name in a image path caused the game to crash. Expected to have a dialogue that says that the file path is invalid.

Re: [raiguard][2.0.7]Crash when loading a mod with invalid file paths

Posted: Mon Oct 21, 2024 12:23 pm
by raiguard
Thanks for the report. Do you have the zenity utility installed on your distro?

It appears that SDL uses this to display error dialogs on Wayland.

Re: [raiguard][2.0.7]Crash when loading a mod with invalid file paths

Posted: Mon Oct 21, 2024 5:59 pm
by JohnTheCF
Ah, I should specify that I use Steam via flatpak. I have zenity on my main system but I doubt it's exposed to the flatpak environment and probably isn't included in there. Still, I would expect the game to perform filename sanitization and use the usual mod loading error screen to indicate such errors.

Re: [raiguard][2.0.7]Crash when loading a mod with invalid file paths

Posted: Mon Oct 21, 2024 6:03 pm
by raiguard
I will look into making it an in-game error, but since it isn't already, I imagine it isn't entirely trivial.

Re: [raiguard][2.0.7]Crash when loading a mod with invalid file paths

Posted: Tue Oct 22, 2024 3:15 pm
by JohnTheCF
I would imagine it's like a missing file error, which does work fine when the mod name is correct. Just a guess.

Re: [posila][2.0.7]Crash when loading a mod with invalid file paths

Posted: Tue Oct 22, 2024 7:11 pm
by posila
Thanks for the report.
Fixed for 2.0.10