dlcache - path specification

Discuss anything to do with Nexuiz here.

Moderators: Nexuiz Moderators, Moderators

dlcache - path specification

Postby dreamteam » Tue May 29, 2007 5:24 pm

Hi,

is there a way to specify the location of the
dlcache
directory?

The reason is that I would like to have this folder outside the normal Nexiuz data path to be able to use this path with the different Nexuiz versions (2.23, 2.3 test3, 2.3 test4, etc)

Best regards,

dreamteam
dreamteam
Member
 
Posts: 16
Joined: Thu Mar 02, 2006 6:39 pm

Postby esteel » Tue May 29, 2007 5:56 pm

I"m not aware of a way to change this on windows.. on linux you could use ~/.nexuiz/data/ or ~/.nexuiz/data/dlcache
Well on windows nt,2000, xp.. you can create a kind of symlink on NTFS filesytems but i never tried to do that..
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby Mirio » Tue May 29, 2007 7:48 pm

why u just do not copy it?... ;)
ginseng
Mirio
Forum addon
 
Posts: 1170
Joined: Sun Apr 15, 2007 3:05 pm
Location: Aneurysm

Postby dreamteam » Wed May 30, 2007 3:12 pm

esteel wrote:I"m not aware of a way to change this on windows.. on linux you could use ~/.nexuiz/data/ or ~/.nexuiz/data/dlcache
Well on windows nt,2000, xp.. you can create a kind of symlink on NTFS filesytems but i never tried to do that..

so do I, but wouldn´t it by nice to be able to specify the path name for the dlcache in the settings? Could not be so difficult.


>why u just do not copy it?...
This is the way I am doing it right now, but over the time the amount of data is quite large and than you are in trouble to keep it in sync, that´s why I was thinking the more elegant way is to be able to specify the path for the dlcache.

Best regards,
dreamteam
dreamteam
Member
 
Posts: 16
Joined: Thu Mar 02, 2006 6:39 pm

Postby tChr » Wed May 30, 2007 3:30 pm

dreamteam wrote:
esteel wrote:I"m not aware of a way to change this on windows.. on linux you could use ~/.nexuiz/data/ or ~/.nexuiz/data/dlcache
Well on windows nt,2000, xp.. you can create a kind of symlink on NTFS filesytems but i never tried to do that..

so do I, but wouldn´t it by nice to be able to specify the path name for the dlcache in the settings?

Hmm i especially see the usefulness for this on a *nix system with several users, to share the DLcache.
the spice extend life!
the spice expand conciousness!
the spice is vital to space travel!
sooooo.. tell me what you want, waht you really-really want
I will proceed directly to the intravenous injection of hard drugs, please.
tChr
Forum addon
 
Posts: 1501
Joined: Tue Feb 28, 2006 9:11 pm
Location: Trondheim, Norway

Postby Psychcf » Wed May 30, 2007 4:02 pm

yeah, I can as well... also if you don't want to save every pk3 you get you can use the /tmp/ dir
Psychcf
Forum addon
 
Posts: 1554
Joined: Sun Dec 03, 2006 11:38 pm
Location: NY, USA

Postby KadaverJack » Wed May 30, 2007 4:22 pm

tChr wrote:Hmm i especially see the usefulness for this on a *nix system with several users, to share the DLcache.

Just create a new directory, make it chmod 1777 and symlink the dlcache there... No problem if you have symlinks ;)
Only windows users have that problem, since there are no symlinks on windows. (at least not for the average user...)
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm

Postby Psychcf » Wed May 30, 2007 7:28 pm

KadaverJack wrote:
tChr wrote:Hmm i especially see the usefulness for this on a *nix system with several users, to share the DLcache.

Just create a new directory, make it chmod 1777 and symlink the dlcache there... No problem if you have symlinks :wink:
Only windows users have that problem, since there are no symlinks on windows. (at least not for the average user...)

oh yeah, didn't think about that. still, windows users are left in the dust, we should add this feature...
Psychcf
Forum addon
 
Posts: 1554
Joined: Sun Dec 03, 2006 11:38 pm
Location: NY, USA

Postby KadaverJack » Wed May 30, 2007 7:43 pm

The problem i see with adding this feature: currently the engine's security restrictions prevent it from reading/writing any files outside the gamedir. If the user is able to change the location of the dlcache directory, a malicious server could do the same and escape the "jail" that way...
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm

Postby [RBI]Karl Ranseier » Wed May 30, 2007 8:30 pm

Under Vista the dlcache directory can't be written directly to the game directory; it's redirected to the so-called 'virtual store' in the user's directory, i.e. C:\Users\<username>\AppData\Local\VirtualStore\Program Files\Nexuiz. Creating a symbolic link to it can be done using
Code: Select all
mklink
on the command line:

Code: Select all
mklink /J <link> <location of dlcache dir>


The /J stands for 'directory junction.'

Any doubts left that Windows is more user-friendly than UNIX-oid OSs?

Edit: mklink doesn't exist in Windows XP or earlier.
[RBI]Karl Ranseier
Member
 
Posts: 28
Joined: Wed Apr 04, 2007 2:22 pm
Location: Germany

Next

Return to Nexuiz - General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron