Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 232028 - games-fps/sauerbraten-2008.06.17: doesn't save some of the per user config
Summary: games-fps/sauerbraten-2008.06.17: doesn't save some of the per user config
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2008-07-17 00:40 UTC by Luciano Bueno
Modified: 2009-03-09 18:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch on sauerbraten wrapper (sauerbraten-unix.patch,509 bytes, patch)
2008-08-15 18:52 UTC, Tomáš Chvátal (RETIRED)
Details | Diff
patch for ebuild (sauerbraten_ebuild.patch,933 bytes, patch)
2008-08-15 18:52 UTC, Tomáš Chvátal (RETIRED)
Details | Diff
patch for sauerbraten ebuild (sauerbraten_ebuild.patch,997 bytes, text/plain)
2008-08-15 21:10 UTC, Tomáš Chvátal (RETIRED)
Details
patch on sauerbraten wrapper (to filesdir) (sauerbraten_unix.patch,644 bytes, patch)
2008-08-15 21:12 UTC, Tomáš Chvátal (RETIRED)
Details | Diff
updated patch on sauerbraten ebuild (sauerbraten_ebuild.patch,1.06 KB, patch)
2008-10-01 13:53 UTC, Tomáš Chvátal (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Luciano Bueno 2008-07-17 00:40:46 UTC
When in game, open the "Otions" menu, you can change some settings, as Shaders on/off, Sound Sampling, etc. Some of them don't get saved/preserved when you exit the game, specifically the ones that should get saved in ~/sauerbraten/init.cfg, while the ones that get saved are the ones on ~/sauerbraten/config.cfg (both configs files get saved on exit).

Talking upstream with the lead developer of SAUERBRATEN we realized that the way gentoo launches the game is not the way that should be done. Gentoo install adds "sauerbraten_client-bin" to KDE/GNOME menu, and I was explained that the right way of launching the game was using "sauerbraten_unix". Plus Gentoo install adds some symplinks in ~/.sauerbraten that shouldn't be there, but we associated as the way sauerbraten is launched in Gentoo, wich upstream thinks is not correct.


Reproducible: Always

Steps to Reproduce:
1.Launch the game
2.Go to menu : Options->GFX->shaders (change them on or off)
3.Quit the game

Actual Results:  
The shaders config don't get saved

Expected Results:  
All configs should be saved when quiting the game

There is a workaround for this, by launching the game in a terminal via "sauerbraten_client-bin -r". (notice the aditional parameter "-r").
It is not the proper way to do it, but at leats fixes the issues of configs don't geting saved.

-----------------------------------------------------------------------
This additional comments are the actual conversation with the lead programmer of SAURBRATEN (eithrul) with me (Colo) and another Gentoo and Sauerbraten user (tenshi):

Colo
23:57:20
by the way, there is a know bug about settings not getting saved in sauer for linux?

eihrul
23:57:38
Colo: settings save under linux just fine

Colo
23:58:15
some of them don't get saved, couldn't figured out why yet

eihrul
23:58:44
which ones?
 
Colo
23:58:50
for example audio sampling, have it on 22050 as per default, wanna set it to 44100, and can't
 
tenshi
00:00:08
colo, use the "-r" option :P
 
Colo
00:00:26
for launching?
what this option do?

Colo
00:04:09
wow, thnx it worked tenshi!!!!

tenshi
00:05:57
it restores the HARDwARE settings, which have been changed in-game
 
eihrul
00:06:01
if you are using the sauerbraten_unix script this is automatic

Colo
00:08:47
ups, my gentoo install put the sauerbraten_client-bin in the kde menu,in fatc that file isn't in my PATH, is something to download by hand? or should be in the default sauer install?
 
eihrul
00:09:42
eh
then the gentoo thing did it entirely wrong
if you download the sauerbraten package

eihrul
00:10:04
there is a sauerbraten_unix script that is run
that sets some options
like a per-user home directory
and also the -r flag and such :P

eihrul
00:23:54
Colo: tell them they should no longer be copying or symlinking anything into the user's home directory, but should be using the sauerbraten_unix script which sets up sauerbraten to automatically write things to the user's home directory as necessary
Comment 1 Tomáš Chvátal (RETIRED) gentoo-dev 2008-08-15 18:52:03 UTC
Created attachment 162989 [details, diff]
patch on sauerbraten wrapper

patches sauerbraten_unix to be gentoo friendly
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2008-08-15 18:52:48 UTC
Created attachment 162990 [details, diff]
patch for ebuild

ebuild using bundled unix wrapper file instead of gentoo one
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2008-08-15 19:53:06 UTC
Ok solution seems more dificult then i thought, now it is acting same as before.
This could be fixed by copying all datafiles to $HOME/.sauerbraten/ or installing them to VAR and allowing their access for everyone...
Comment 4 Tomáš Chvátal (RETIRED) gentoo-dev 2008-08-15 21:10:38 UTC
Created attachment 162997 [details]
patch for sauerbraten ebuild

this version is using correctly whole wrapper so it should be easy to create some stuff in user homedir :]
Comment 5 Tomáš Chvátal (RETIRED) gentoo-dev 2008-08-15 21:12:03 UTC
Created attachment 162998 [details, diff]
patch on sauerbraten wrapper (to filesdir)

creates enviroment for enabling placement of binary elswhere in system than date files
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2008-10-01 13:53:29 UTC
Created attachment 166901 [details, diff]
updated patch on sauerbraten ebuild

Well now it works on amd64 :]
Comment 7 Tomáš Chvátal (RETIRED) gentoo-dev 2009-03-09 18:33:55 UTC
Fix applied to the tree.
Now you are able to have your own personal sauerbraten configs :}
Maps still not working as they are CANTFIX due to insane overhead to make it work. (hey at least the game is not crashing you are just not able to save the edited map :D)