Tile World file location help (Linux)
#3
You have a few options.

  1. You can set the environment variable TWORLDDIR to change the default directory tree for all shared files. So you could add something like this to your .profile (or .bash_profile or whatever you use):

    export TWORLDDIR=~/.tworld

    <span style="font-family:arial, helvetica, sans-serif;"><span style="font-family:'courier new', courier, monospace;"><span style="font-family:arial, helvetica, sans-serif;"><span style="font-family:'courier new', courier, monospace;"><span style="font-family:arial, helvetica, sans-serif;">Note that this will create ~/.tworld/data, ~/.tworld/sets, and ~/.tworld/res, but your save files will still be in the top-level ~/.tworld directory, which is a little messy. But there's also a TWORLDSAVEDIR environment variable you can use, which will just change the default save directory. So you could do this:

    <span style="font-family:'courier new', courier, monospace;">export TWORLDDIR=~/.tworld
    export TWORLDSAVEDIR=~/.tworld/save



    which would probably be the closest to what you want.
  2. You can use command-line options -D, -L, and -R (and optionally also -S) to override the default directories individually:

    tworld -D datadir -L setsdir -R resdir -S savedir

    To avoid having to type all that out, you could create a tworld shell script in your personal bin directory that looked something like this:

    <span style="font-family:'courier new', courier, monospace;">#!/bin/sh
    DIR=~/.tworld
    tworld -D $DIR/data -L $DIR/sets -R $DIR/res -S $DIR/save



    Note that you can use the command "tworld -h" to see a full list of the command-line options, or "man tworld" to see more detailed documentation. Or the same documentation is available on the website.
  3. Finally, of course, you can compile Tile World yourself, and configure the default directories to be the way you want them to be. That's not as convenient, of course.




For the record, Tile World's file layout follows the standard Unix behavior of putting universal data (the level sets, sounds and graphics) in a shared location, and the user-specific data (your solutions) in a user-specific location.
Reply


Messages In This Thread
Tile World file location help (Linux) - by breadbox - 08-Sep-2015, 8:48 PM
Tile World file location help (Linux) - by Flexico - 08-Sep-2015, 10:07 PM
Tile World file location help (Linux) - by Flexico - 08-Sep-2015, 10:19 PM
Tile World file location help (Linux) - by Flexico - 08-Sep-2015, 10:33 PM
Tile World file location help (Linux) - by breadbox - 08-Sep-2015, 10:40 PM
Tile World file location help (Linux) - by breadbox - 08-Sep-2015, 10:43 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)