dlcache - path specification

Discuss anything to do with Nexuiz here.

Moderators: Nexuiz Moderators, Moderators

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

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..
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

Tue May 29, 2007 7:48 pm

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

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.
    User avatar
    tChr
    Forum addon
     
    Posts: 1501
    Joined: Tue Feb 28, 2006 9:11 pm
    Location: Trondheim, Norway

Wed May 30, 2007 4:02 pm

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...)
    User avatar
    KadaverJack
    Site admin and forum addon
     
    Posts: 1102
    Joined: Tue Feb 28, 2006 9:42 pm

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...
    User avatar
    Psychcf
    Forum addon
     
    Posts: 1554
    Joined: Sun Dec 03, 2006 11:38 pm
    Location: NY, USA

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...
    User avatar
    KadaverJack
    Site admin and forum addon
     
    Posts: 1102
    Joined: Tue Feb 28, 2006 9:42 pm

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

Wed May 30, 2007 9:02 pm

  • Yes.

    Image

    To be on topic, a program working like mklink but for XP is available on sysinternals.com.
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Wed May 30, 2007 9:10 pm

Wed May 30, 2007 9:14 pm

  • [RBI]Karl Ranseier wrote:Sysinternals.com has been acquired by Microsoft in July 2006.

    The mklink-like program for Windows 2000 and newer divVerent mentioned can be found under http://www.microsoft.com/technet/sysinternals/FileAndDisk/Junction.mspx.


    Did they serioulsy have to buy third-pary companies to achieve symlinks in their own file system?
    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.
    User avatar
    tChr
    Forum addon
     
    Posts: 1501
    Joined: Tue Feb 28, 2006 9:11 pm
    Location: Trondheim, Norway

Wed May 30, 2007 9:30 pm

  • tChr wrote:
    [RBI]Karl Ranseier wrote:Sysinternals.com has been acquired by Microsoft in July 2006.

    The mklink-like program for Windows 2000 and newer divVerent mentioned can be found under http://www.microsoft.com/technet/sysinternals/FileAndDisk/Junction.mspx.


    Did they serioulsy have to buy third-pary companies to achieve symlinks in their own file system?


    Essentially yes. NTFS has had symlinks since Windows 2000 (more specifically, since NTFS 5.0); however this functionality was neither well documented nor really exposed in Windows.
    [RBI]Karl Ranseier
    Member
     
    Posts: 28
    Joined: Wed Apr 04, 2007 2:22 pm
    Location: Germany

Wed May 30, 2007 10:12 pm

  • Well, they didn't buy sysinternals for THAT, as another mklink-like program is in the resource kit.
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Fri Jun 01, 2007 3:43 pm

  • Maybe not so much on 1 computer with several users, but think about a family with several people playing Nexuiz, they can share the dlcache folder on a NAS device for example to save bandwidth.

    If it is not a family think about several people sharering a a house, etc.

    Best regards,

    dreamteam



    tChr wrote:
    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.
    dreamteam
    Member
     
    Posts: 16
    Joined: Thu Mar 02, 2006 6:39 pm



Return to Nexuiz - General Discussion




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest