On Tue, 29 Sep 2015 09:45:58 +0200 Fabian Greffrath <fab...@debian.org> wrote: > Please try with "+set basedir /path/to/quake2" as an additional > parameter. I believe things will become easier if you install the > "quake2" Debian package which will already set the crucial variables > for you.
Debian's yamagi-quake2 package is not designed to be used as a standalone Quake engine. If it was, it would be in $PATH, not buried under /usr/lib. The package description even says so: This engine is intended to be used via the wrapper script and menu entries in the quake2 package. If you don't follow the instructions and you don't use it as intended, then software doesn't work. This is not really a bug at all, and certainly not a grave one. Fabian, I think the change you made for this is actually a regression: previously, it was possible to run the Quake II demo (or a standalone non-Quake-II game analogous to FreeDoom and OpenArena, if such a thing exists) by setting the basedir to a suitable path. This is useful because it means the maintainers of src:yquake2 and src:quake, who probably all own a retail copy of Quake II, can test that the demo has not regressed without having to remove the retail Quake II data. Steps to reproduce the regression: * have quake2, quake2-data and quake2-demo-data installed * "quake2 --demo" * look at the search path Expected result: only the demo is loaded; the full game is not Actual result: > Using /usr/share/games/quake2//baseq2/ to fetch paks > Added packfile '/usr/share/games/quake2//baseq2/pak0.pak' (3307 > files). > Added packfile '/usr/share/games/quake2//baseq2/pak1.pak' (279 files). > Added packfile '/usr/share/games/quake2//baseq2/pak2.pak' (2 files). > Added packfile '/usr/share/games/quake2//baseq2/pak3.pak' (8 files). > Added packfile '/usr/share/games/quake2-demo/baseq2/pak0.pak' (1106 > files). > Using binary dir /usr/lib/yamagi-quake2/baseq2/ to fetch paks > Using '/home/smcv/.yq2/baseq2' for writing. See also commits 308d9bb3 and 4941fb9c. If you insist on configuring yquake2 to look in /usr/share/games/quake2 by default, I think the correct change would be to patch filesystem.c with one of these arrangements: * set the default for fs_basedir to the system-wide path instead of ".", so that "+set basedir" can override, and do not call FS_AddSystemwideGameDirectory(); or * skip FS_AddSystemwideGameDirectory() if fs_basedir is at a non-default value Regards, S