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

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.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: [0.8.1][Linux] Raze does not correctly find raze.pk3

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

by mjr4077au » Sat Jul 24, 2021 12:00 am

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!

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

by Rachael » Sun Dec 27, 2020 4:30 am

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.

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

by Rachael » Sun Dec 27, 2020 4:10 am

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.

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

by Graf Zahl » Sun Dec 27, 2020 3:42 am

Why isn't it set up like that anyway? The CMake project was built upon GZDoom's after all...

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

by Rachael » Sun Dec 27, 2020 3:18 am

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.

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

by Graf Zahl » Sun Dec 27, 2020 2:51 am

... 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.

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

by Rachael » Sun Dec 27, 2020 2:07 am

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.

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

by Graf Zahl » Sun Dec 27, 2020 2:03 am

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.

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

by wildweasel » Sun Dec 27, 2020 1:26 am

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.

Top