New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basedir possibly added twice #90
Comments
On the other hand, maybe it is best to just completely omit that call to
Please note that the binary has been built with |
That specific command-line is not correct; the point of Debian's quake2 wrapper script is that it passes appropriate command-line arguments to the engine to select the right basedir. The right thing would be one of
which end up running
yquake2 in Debian is deliberately not on the default $PATH, because it is intended to be used via the quake2 script, which also does things like checking that the necessary data files are present. Previous uploads of yquake2 in Debian have circumvented this issue by either setting |
Totally untested patch which might be one way to simplify this: master...smcv:wip/systemwide-basedir |
Yes, I know. But this is upstream's bug tracker, upstream's executable is called |
I think Simon's patch is right, This patch cures both symptoms: (1) base dirs are not loaded twice anymore and (b) if an explicit I was working on a similar approach that would only call |
Hmm.. yeah. You're right. The whole WITH_SYSTEMWIDE logic is kind of messy and needs to be refactored. I'm very short on time right now. I'm afraid that it'll take some time until I'm able to have closer look. :( |
Hey Simon, maybe we should add your patch to the Debian package? This would serve it a lot more testing and if it proves satisfactory, that could be a good reason for Yamagi to apply it upstream. Also, it will fix the "regression" I introduced in my previous upload. |
I've just pushed the patch by smcv. Thank you. :) |
Good idea! We have applied it to the Debian package since Oct 06 without any reported problems. |
i'll will test in the two ways: building as a linux box and using a debian in a debian bvox, and see i the expected behaviour are the dessired! and i'll post the feedback in a week .. if i found some problems i open a issue request at here.. due i noted there's no much users using the debian engine (i remited to the debian conquets)and cited that why providing guindows binarys.. that's why there's no bugs reports.. guindows users conforms to used the engine and no more.. |
quickly tested! i opened a new issue if necesary: i tested the package in debian with debian sid installation (to make more confortable to bugs re1uest) when i donload the JUG mod (quake 2 juggernaut) and try to load as u'r suggested way simon, fail to load now either using quake2 or directly the binary lauch, base patch not loading (/usr/share/games/quake2/baseq2) and only loads the manually set basedir for the downloaded game by example JUG (/media/pendrive/JUG), many custom mods need loaded the complete game at base dir to the engine does not work! NOTE: juggernaut does not need a game lib loader game.so |
Hi there,
when run as
quake2 +set basedir /usr/share/games/quake2
, i.e. withbasedir
set to the same directory that is already defined asSYSTEMDIR
, this directory is added twice:Please note that it is first added by
FS_AddSystemwideGameDirectory()
with an additional slash added between theSYSTEMDIR
and theBASEDIRNAME
part. And then it is added a second time byFS_AddGameDirectory()
without this additional slash.I believe two things need to be done here:
FS_AddGameDirectory()
or all of the higher-level directory-adding functions to prevent the same directory from being loaded twice.Thanks,
Fabian
The text was updated successfully, but these errors were encountered: