Closed gryffus closed 8 months ago
Try removing the newline in the data_dir.txt file. This file was not meant to be edited by anything other than the game itself, so there's not much error handling going on there.
That helped. Game successfully starts from any directory now :) Although with somewhat confusing output:
INFO: Julius version 1.7.0.142-082866c6
INFO: Initializing SDL
INFO: SDL initialized
INFO: Loading game from working directory
INFO: No key found on layout for [
INFO: No key found on layout for ]
ERROR: 'c3.eng' or 'c3_mm.eng' files not found or too large.
INFO: Loading game from base path /tmp/.mount_juliusWHymD5/usr/bin/
INFO: No key found on layout for [
INFO: No key found on layout for ]
ERROR: 'c3.eng' or 'c3_mm.eng' files not found or too large.
INFO: Loading game from user pref /home/gryffus/.julius/
INFO: Config key gameplay_fix_immigration 1
However there is still the issue with non-working KDE file picker dialog. This can be reproduced on clean install, when "~/.local/share/bvschaik/julius/data_dir.txt" file does not yet exist.
I will rename the ticket to better describe the issue.
Thanks a lot for quick reply!
Note that it's not a file picker, but a directory picker.
It's working here on my Steam Deck's desktop mode KDE, so it may actually be an issue with your distro!
Edit: Tested using the appimage build and it's working fine for me.
I have updated KDE, Qt and kdialog versions in the desription.
I still don't think this is a Julius bug, as the dialog works fine everywhere else and it's a system dialog.
Which distro are you using?
Yep, I just got confirmed it's a kdialog 23.08.4 bug. Probably related to https://invent.kde.org/utilities/kdialog/-/merge_requests/17 .
Sorry for confusion, closing.
Operating System: openSUSE Tumbleweed 20231218 kdialog Version 23.08.4 KDE Plasma Version: 5.27.10 KDE Frameworks Version: 5.113.0 Qt Version: 5.15.11 Graphics Platform: X11
Julius seems to create following file:
with location to current game data directory.
I have done a simple test:
If I put the data files to ~/.julius/ directory, or cd there, it works correctly:
Both distro binaries and AppImage are behaving the same.