Page 1 of 1

Command line control of home directory

Posted: 02 Jul 2008, 15:12
by Jaxad0127
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.

Re: Command line control of home directory

Posted: 04 Jul 2008, 18:53
by Sanga
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.

Re: Command line control of home directory

Posted: 05 Jul 2008, 23:24
by zick
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.

Re: Command line control of home directory

Posted: 05 Jul 2008, 23:47
by Jaxad0127
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?

Re: Command line control of home directory

Posted: 06 Jul 2008, 13:07
by zick
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.