[0.8.1][Linux] Raze does not correctly find raze.pk3

Moderator: Raze Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed

[0.8.1][Linux] Raze does not correctly find raze.pk3

Post by wildweasel »

Raze 0.8.1, Linux Mint 19.1 x86_64, compiled from the source archive from the Github Releases section.

Raze, for whatever reason, absolutely refuses to check any of the FileSearch or GameSearch paths in the INI file for Raze.pk3. Running a copy of Raze that has been sudo make install'ed, from any folder that does NOT contain Raze.pk3, spews this error message:
Image

However, popping up a terminal window and changing to any folder containing raze.pk3 causes the game to run normally, as does manually changing the working folder of any menu entry created for it, as seen here:
Image

For what it's worth, for some reason, sudo make install from the build folder copies raze.pk3 into /usr/local/share/games/doom which otherwise contains no other files. Raze doesn't detect it in there, either.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49200
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [0.8.1][Linux] Raze does not correctly find raze.pk3

Post by Graf Zahl »

TBH, I'll never understand why Linux is so anal about putting the game data into some folder far, far away from the executable. And of course that apparently every distro uses different rules. How is this ever supposed to work? Nobody can memorize all these idiotic rules.
User avatar
Rachael
Posts: 13881
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: [0.8.1][Linux] Raze does not correctly find raze.pk3

Post by Rachael »

Well - the game data itself can go literally anywhere regardless of distro rules, you could just do /opt/data/raze and call it a day, or even /opt/raze. (GZDoom's .deb does /opt/gzdoom) The key here is that the installer script and the file searcher must agree on exactly where that should be.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49200
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [0.8.1][Linux] Raze does not correctly find raze.pk3

Post by Graf Zahl »

... which all would be a moot point if it could just be placed into the same folder as the executable - like any properly designed Windows and Mac application does.
User avatar
Rachael
Posts: 13881
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: [0.8.1][Linux] Raze does not correctly find raze.pk3

Post by Rachael »

I don't see why not. Raze wouldn't be the first to do that.

I think the underlying intent of it all is that all executables on the system can be found in a folder easily marked with the $PATH variable, and its data in another consistent spot. But things get a bit muddied up, when as you already cited, everyone has their own idea of what those folders should be.

That being said, what GZDoom does is it installs a script into /usr/games (which is $PATH searchable) called "gzdoom" that consists of nothing more than the following:

Code: Select all

#!/bin/bash

exec /opt/gzdoom/gzdoom "$@"
All of its data is in that folder, alongside the executable.

Raze should be able to do something similar. That might not be too hard for me to set up.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49200
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [0.8.1][Linux] Raze does not correctly find raze.pk3

Post by Graf Zahl »

Why isn't it set up like that anyway? The CMake project was built upon GZDoom's after all...
User avatar
Rachael
Posts: 13881
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: [0.8.1][Linux] Raze does not correctly find raze.pk3

Post by Rachael »

To be quite honest I don't even know if the CMake project does the same thing as what the official Debian archives do.

As for me personally, it's a feature I use very little, so I haven't had much reason to use or check it.

My role in porting Raze to Linux was mainly getting it to run at all. I really can't be the only one doing this stuff for Linux, I am not the one who uses Raze on Linux a whole heck of a lot. Much as I like Raze, I use it very little (I am not that strongly tied to Build games), and I *rarely* use Linux for anything gaming related, I more often use it for projects.
User avatar
Rachael
Posts: 13881
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: [0.8.1][Linux] Raze does not correctly find raze.pk3

Post by Rachael »

Okay so it's only the Debian archives that work the way I said. The 'install' target generated by CMake is a whole different bag of worms.

I do not know if this commit solves the issue, but it does nevertheless set things that should have been set from the get-go.
User avatar
mjr4077au
Posts: 830
Joined: Sun Jun 16, 2019 9:17 pm
Graphics Processor: nVidia with Vulkan support
Location: Gosford NSW, Australia

Re: [0.8.1][Linux] Raze does not correctly find raze.pk3

Post by mjr4077au »

I'm going to close this commit due to the age of it. I personally don't have any problems under Linux and haven't had reports of this from anyone else so hopefully its all good!

Return to “Closed Bugs [Raze]”