Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144501 - [PATCH] games-util/xqf-1.0.4 and real_dir
Summary: [PATCH] games-util/xqf-1.0.4 and real_dir
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-20 02:31 UTC by samLT
Modified: 2010-01-06 06:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
real_dir.patch (real_dir.patch,328 bytes, patch)
2006-08-20 02:31 UTC, samLT
Details | Diff
diff between xqf-1.0.4-r1 and xqf-1.0.4-r2 (diff-ebuild-r1-r2.patch,43 bytes, text/plain)
2006-08-20 02:34 UTC, samLT
Details
real_dir.patch (real_dir.patch,327 bytes, patch)
2006-08-20 03:00 UTC, samLT
Details | Diff
diff between xqf-1.0.5 and xqf-1.0.5-r1 ebuild (1.0.5-1.05-r1.diff,693 bytes, patch)
2006-11-08 09:29 UTC, samLT
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description samLT 2006-08-20 02:31:24 UTC
I'll take quake3 as an example.

Running quake3 for the first time create the ~/.q3a directory,

mv ~/.q3a ~/quake3

Try joining a server with xqf, and you'll have this message:
"~/.q3a directory doesn't exist or doesn't contain baseq3"

Now in XQF--> Preferences --> games --> quake3, put ~/quake3 in the "Working Directory"

Results:
It doesn't work, same error message. The "Working Directory" we've just set doesn't work (as expected)


The patch corrects this wrong behaviour
Comment 1 samLT 2006-08-20 02:31:49 UTC
Created attachment 94670 [details, diff]
real_dir.patch
Comment 2 samLT 2006-08-20 02:34:03 UTC
Created attachment 94671 [details]
diff between xqf-1.0.4-r1 and xqf-1.0.4-r2
Comment 3 samLT 2006-08-20 02:59:28 UTC
I attached the wrong patch :/ here is the good one :)
Comment 4 samLT 2006-08-20 03:00:53 UTC
Created attachment 94674 [details, diff]
real_dir.patch
Comment 5 Tristan Heaven (RETIRED) gentoo-dev 2006-08-25 15:02:25 UTC
(In reply to comment #0)
> Running quake3 for the first time create the ~/.q3a directory,

ok.

> mv ~/.q3a ~/quake3

why?

> Try joining a server with xqf, and you'll have this message:
> "~/.q3a directory doesn't exist or doesn't contain baseq3"

Message from quake or xqf?
 
> Now in XQF--> Preferences --> games --> quake3, put ~/quake3 in the "Working
> Directory"
> 
> Results:
> It doesn't work, same error message. The "Working Directory" we've just set
> doesn't work (as expected)

What do you expect it to do?
Comment 6 samLT 2006-08-26 04:54:15 UTC
The message is obviously from XQF, since if there is no ~/.q3a directory, then quake3 will just create it.

Anyway, here is the full story:

I launch games on an other Xserver being an other user: 'xplayer' (using sudo)

(I'm using the script the script xlaunch: http://forums.gentoo.org/viewtopic-t-483004.html )

This means I have no ~/.q3a, and I don't want. That's where the "Working Directory" setting should handy, I can point it to /home/xplayer/.q3a instead of the default ~/.q3a

(I also added xquake3 in the command field (see thread given above for more info ))

Then I can start XQF on my Desktop, being *me*, select a server, and when I join it, it sudo to xplayer then starts a new Xserver, the game, the xbindkeys daemon (if you like) and so on..)


Well, the "working Directory" doesn't work as expected, but, using the patch I proposed, it works.

The patch is really basic:
REPLACE  "dir = this->real_home?this->real_home:this->real_dir;"

where real_home is the default home for a given game. and real_dir is the "Working Directory" we set for that game.

WITH   "dir = this->real_dir?this->real_dir:this->real_home;"

(otherwise dir is always set to real_home, since it's always defined. )






Comment 7 samLT 2006-08-26 04:57:05 UTC
I'm sorry, there are some missing words in my sentences. I hope you can understand them anyway.

I miss the preview button :)
Comment 8 samLT 2006-08-26 06:37:39 UTC
> > Results:
> > It doesn't work, same error message. The "Working Directory" we've just set
> > doesn't work (as expected)
> What do you expect it to do?

The error from XQF said the "Wroking Directory ~/.q3a , either doesn't exist or doesn't contain baseq3 (or demoq3)"
Although I set it to ~/quake3, it keeps trying to look into ~/.q3a
Comment 9 Tristan Heaven (RETIRED) gentoo-dev 2006-11-04 14:53:04 UTC
Fixed in the new version?
Comment 10 samLT 2006-11-08 09:29:39 UTC
Created attachment 101483 [details, diff]
diff between xqf-1.0.5 and xqf-1.0.5-r1 ebuild
Comment 11 samLT 2006-11-08 09:31:10 UTC
(In reply to comment #9)
> Fixed in the new version?
> 

Nope, still the same problem, I did make a bug report on sourceforge, but didn't get any comment. Actually I'm surprised with this new version I thought there were   no one maintaining the package any more.

the patch still applies.

Comment 12 samLT 2006-12-19 09:35:35 UTC
actually as explained on the bug report on sourceforge, this was just a dirty work around (it was probably not even fully working, but as I don't pay attention to the preview map, I didn't notice)

anyway, bug closed as INVALID