Page 1 of 1

user_settings.conf file possible bug?

Posted: Mon Nov 11, 2019 7:16 pm
by alexlong
Hi.
AlpineQuest 2.2.3.
4pda Russian users wrote me they have found a strange user_settings.conf file behavior.
The command doesn't run if the line is at the very beginning of a file.
core locale=en doesn't work:
Not working.jpg
(69.47 KiB) Downloaded 1608 times
But everything is OK if it is at the second line:
Working.jpg
(69.88 KiB) Downloaded 1608 times
Another examlpe.
core.submenu.force_exit_button=1 does not work
core.locale=en works
Both.jpg
(68.98 KiB) Downloaded 1608 times

Re: user_settings.conf file possible bug?

Posted: Sat Nov 16, 2019 4:30 pm
by Psyberia-Support
Thanks Alex for this report.
However I haven't been able to reproduce it.

Could you send me your exact user setting file so I can try it?
Also, when the application starts, it list in the log file all user settings found. Can you check if you see the user setting displayed in the log file when it's in the first line?

Sorry for the troubles

Re: user_settings.conf file possible bug?

Posted: Sat Nov 16, 2019 8:24 pm
by alexlong
Hi.
I have attached one of my user settings files.
core.submenu.force_exit_button=1 is in the first line and it is doesn't work. As soon as I place it to the secont line it begins working.

Re: user_settings.conf file possible bug?

Posted: Tue Nov 19, 2019 11:44 am
by Psyberia-Support
Thanks Alex,
This is because your files has 3 special invisible characters at the very beginning, impacting the first line (the BOM).
I'll make sure the application ignore them and read the file correctly.

Re: user_settings.conf file possible bug?

Posted: Tue Nov 19, 2019 2:43 pm
by alexlong
Hi, François.
I made simple txt files, put some data and saved them as user_settings.conf files in 65001 (UTF-8).

Re: user_settings.conf file possible bug?

Posted: Tue Nov 19, 2019 3:36 pm
by Psyberia-Support
I know, it's not your fault. I think it's due to the text editor you use that put those characters automatically.
Here is your file without them, it will work fine until you don't edit it.
But this will be find in next beta.

Re: user_settings.conf file possible bug?

Posted: Tue Nov 19, 2019 7:20 pm
by alexlong
Do I get you right the problem will disappear in the next beta i.e. I can use my previous files and everything will be OK?
Usually I use AkelPad text editor or Notepad++
As far as I remember I did not see this problem before. Before I used simple user_setting files with the text in the first line and everything seemed to be OK (probably).
Now I use more complicated files with comments in the first lines so I did not know about the problem, 4pda users told me about it.

Re: user_settings.conf file possible bug?

Posted: Wed Nov 20, 2019 10:12 am
by Psyberia-Support
Yes it will work fine with the next beta, even if you use your previous files.