Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 213966 - games-fps/nprquake-sdl tries to write config/screenshots/savegames in GAMES_DATADIR
Summary: games-fps/nprquake-sdl tries to write config/screenshots/savegames in GAMES_D...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
Keywords: PMASKED
Depends on:
Reported: 2008-03-19 23:25 UTC by Piotr Szymaniak
Modified: 2010-01-06 06:22 UTC (History)
0 users

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

nprquake-sdl-homedir-test.patch (nprquake-sdl-homedir-test.patch,8.45 KB, text/plain)
2008-03-25 08:16 UTC, Piotr Szymaniak
nprquake-sdl-1-r1.ebuild (nprquake-sdl-1-r1.ebuild,2.12 KB, text/plain)
2008-03-25 08:19 UTC, Piotr Szymaniak
files/nprquake-sdl-save-in-home.patch (nprquake-sdl-save-in-home.patch,8.28 KB, patch)
2008-03-25 20:59 UTC, Piotr Szymaniak
Details | Diff
nprquake-sdl-1-r2.ebuild (nprquake-sdl-1-r2.ebuild,1.81 KB, text/plain)
2008-03-25 21:01 UTC, Piotr Szymaniak

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Szymaniak 2008-03-19 23:25:43 UTC
Taking a screenshot crashes the game with:
Error: Error opening /usr/share/games/quake1/id1/quake00.tga: Permission denied
Couldn't write config.cfg.
uninstalling grabs!

Also, when changing key configuration and then quiting the game:
Couldn't write config.cfg.

And when saving game state:
Saving game to /usr/share/games/quake1/id1/s0.sav...
ERROR: couldn't open.

Reproducible: Always

Steps to Reproduce:
1. emerge nprquake-sdl
2. start
3. try to save the game
4. try to take a screenshot (press F12)

Expected Results:  
Config files, screenshots and save states should be saved like in other fps engines.
ie. like darkplaces:
~ $ ls .darkplaces/id1/
benchmark.log  qconsole.log  s1.sav  s4.sav  screenshots
config.cfg     s0.sav        s2.sav  s5.sav
~ $ ls .darkplaces/hipnotic/

I wonder how this got into stable with those issues?
Comment 1 Piotr Szymaniak 2008-03-25 08:16:35 UTC
Created attachment 147227 [details]

I used source from -- there's a new render added and few small fixes.

What works:
* read/write to proper directory in users $HOME/.nprquake/
* Most Gentoo patches

What is wrong:
* GENTOO_LIBDIR and GENTOO_DATADIR - can't compile with those two. Compilation always dies.
Comment 2 Piotr Szymaniak 2008-03-25 08:19:18 UTC
Created attachment 147229 [details]

Updated ebuild, but still not working.
Comment 3 Piotr Szymaniak 2008-03-25 20:59:59 UTC
Created attachment 147303 [details, diff]
Comment 4 Piotr Szymaniak 2008-03-25 21:01:41 UTC
Created attachment 147304 [details]

Works fine for me on two boxes, used the source from comment #1 with new render.
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2010-01-06 06:22:43 UTC
nprquake-sdl is gone.