[Linux] Extra game files not in file search path

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!

[Linux] Extra game files not in file search path

Postby Caligari87 » Sun Nov 01, 2020 11:01 am

I think this is a long-standing issue but only became apparent to me just now.

The files lights.pk3, brightmaps.pk3, and game_widescreen_gfx.pk3 are all installed in the /opt/gzdoom/ folder, but this folder is never added to the .ini as a search path.
Code: Select allExpand view
/opt/gzdoom/brightmaps.pk3
/opt/gzdoom/game_support.pk3
/opt/gzdoom/game_widescreen_gfx.pk3
/opt/gzdoom/gzdoom.pk3
/opt/gzdoom/lights.pk3

Code: Select allExpand view
[FileSearch.Directories]
Path=$HOME/.config/gzdoom
Path=/usr/local/share/
Path=/usr/local/share/doom
Path=/usr/local/share/games/doom
Path=/usr/share/doom
Path=/usr/share/games/doom
Path=$DOOMWADDIR

gzdoom.pk3 and game_support.pk3 appear to load properly, but setting autoloadbrightmaps / autoloadlights / autoloadwidescreen doesn't work, and probably hasn't worked for some time. This is a somewhat hidden issue, as the IWAD selection box on Linux doesn't include the checkboxes for any of these (or any other optional settings for that matter).

Possible solutions:
  1. The files need to be installed to one of the other directory paths.
  2. The path list needs to include /opt/gzdoom/ (unless this can be pushed, users would need to delete their .ini).
  3. The loading code needs to treat these files the same as gzdoom.pk3 and game_support.pk3.

8-)
User avatar
Caligari87
I'm just here for the community
User Accounts Assistant
 
Joined: 26 Feb 2004
Location: Salt Lake City, Utah, USA
Discord: Caligari87#3089

Re: [Linux] Extra game files not in file search path

Postby Caligari87 » Thu Nov 05, 2020 2:21 pm

So I was doing some reading around and it looks like for GZDoom's purposes, option #2 above might be the most consistent. This thread on StackOverflow suggests that /opt/ is meant for "monolithic windows-style" application deployments from outside sources. Plus it would avoid blzut3 needing to change the package build.

jlliagre wrote:On the other hand, /opt is a directory for installing unbundled packages (i.e. packages not part of the Operating System distribution, but provided by an independent source), each one in its own subdirectory. They are already built whole packages provided by an independent third party software distributor.

(though obviously there's significant debate on this point as is traditional with all things *nix).

Unfortunately I think it means that existing Linux users would either need to regenerate their INI on the next version update, or add the path manually, but if we're being truthful the amount of people affected by this seems to be rather small since it's probably been broken for years.

8-)
User avatar
Caligari87
I'm just here for the community
User Accounts Assistant
 
Joined: 26 Feb 2004
Location: Salt Lake City, Utah, USA
Discord: Caligari87#3089

Re: [Linux] Extra game files not in file search path

Postby Rachael » Thu Nov 05, 2020 2:56 pm

I think Option #3 would be the best way to go, I just haven't got around to it.
User avatar
Rachael
Admin
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support


Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest