Command line control of home directory

Got something on your mind about the project? This is the correct place for that.
Forum rules
This forum is for feature requests, content changes additions, anything not a Bug in the software.
Please report all bugs on the Support Forums
Post Reply
User avatar
Jaxad0127
TMW Adviser
TMW Adviser
Posts: 4209
Joined: 01 Nov 2007, 18:35
Location: Internet

Command line control of home directory

Post by Jaxad0127 » 02 Jul 2008, 16:12

It would be nice if we could change the location of the home directory with the command line. I often run the game off an external harddrive and would like to keep all of the data there without having to move stuff back and forth. It's also useful under roaming profiles where what the game thinks is the home directory isn't part of the profile (my situation above also has this). Handling multiple update servers would be easier in the current code with this.
Image
User avatar
Sanga
Peon
Peon
Posts: 70
Joined: 16 Mar 2008, 22:57

Re: Command line control of home directory

Post by Sanga » 04 Jul 2008, 19:53

jaxad0127 wrote:It would be nice if we could change the location of the home directory with the command line. I often run the game off an external harddrive and would like to keep all of the data there without having to move stuff back and forth. It's also useful under roaming profiles where what the game thinks is the home directory isn't part of the profile (my situation above also has this). Handling multiple update servers would be easier in the current code with this.
If you're running under Linux, just have a shell script do "export HOME=/whatever/dir" and then "tmw" - that'll effectively change the home directory for that session (note that you'll have to make sure you have write permissions to that directory...).

Note that the SVN version already has a decent mechanism for handling multiple update servers - it creates different subdirectories under "~/.tmw/updates" for the different update servers.
zick
Novice
Novice
Posts: 194
Joined: 21 Feb 2007, 04:30
Location: City Of Champions Again

Re: Command line control of home directory

Post by zick » 06 Jul 2008, 00:24

Or somehow be able to store the executable, libraries, and data files on a usb pen drive ... It used to be this way a couple of versions ago.
User avatar
Jaxad0127
TMW Adviser
TMW Adviser
Posts: 4209
Joined: 01 Nov 2007, 18:35
Location: Internet

Re: Command line control of home directory

Post by Jaxad0127 » 06 Jul 2008, 00:47

zick wrote:Or somehow be able to store the executable, libraries, and data files on a usb pen drive ... It used to be this way a couple of versions ago.
The application itself can be stored that way, along with the application data (everything included with the installer), but the updates, etc, can't be. I noticed while looking at the code that it's possible in the 0.1 version. Could that be backported to 0.0.25?
Image
zick
Novice
Novice
Posts: 194
Joined: 21 Feb 2007, 04:30
Location: City Of Champions Again

Re: Command line control of home directory

Post by zick » 06 Jul 2008, 14:07

aren't the updates just zipped versions of the data files in the proper directories ... in theory can't you just unzip and overwrite the old data. yeah not really backwards compatible but whatever.
Post Reply