JACoders / OpenJK

Community effort to maintain and improve Jedi Academy (SP & MP) + Jedi Outcast (SP only) released by Raven Software
GNU General Public License v2.0
2.03k stars 614 forks source link

Settings and controls cannot be saved #496

Closed ghost closed 6 years ago

ghost commented 10 years ago

Whenever I try changing the keyboard controls or the video settings the changes never get saved. I've also tried /writeconfig test.cfg, but the configuration is nowhere to be found.

At first, I thought that this could be a permission issue, so I chmod'ed the base directory to 777, but that didn't help. Any ideas?

Razish commented 10 years ago

Check in $HOME/.local/share/openjk/ You can configure this with fs_homepath, or build a portable version (with preprocessor switch via cmake)

Are you saying your settings aren't saved, or you can't find where they're saved?

ghost commented 10 years ago

The .cfg files seem to be saved in the folder you've mentioned, HOWEVER, I still cannot make the changes in the Controls and Video section persistent. They get reset once I leave the settings window.

EDIT: Now I noticed that some of the changes got saved. However, there are still some issues. If, say, I set crouch to the "MOUSE 2" button, after I restart the game it seems that both the default and custom values are loaded - I can crouch with both "c" (the default) and "MOUSE 2". If try to use backspace to delete any buttons attached to it and then set only "MOUSE 2", the setting resets after game restart.

ensiform commented 10 years ago

What does it actually do? It just goes back to the main screen with nothing happening on windows..

Defaults are always loaded initially:

exec default.cfg or mpdefault.cfg -- this file exists in the assets you cant remove it. unbindall exec openjk.cfg or openjk_sp.cfg -- your autogen'd file. exec autoexec.cfg -- a custom file to exec after autogen.

ensiform commented 9 years ago

Close?

https://github.com/JACoders/OpenJK/commit/11136f9778e4247190c0e86b44072f6ad12e87c0 https://github.com/JACoders/OpenJK/commit/da222af9a2660a3e8a4cdbf86742cda3a9695a89 https://github.com/JACoders/OpenJK/commit/1af602bec38b0aba3ed0ba452144161eb8d020d9

These are likely related.

xycaleth commented 6 years ago

I think the commits mentioned should fix this so closing this. Feel free to reopen if it's still an issue.