Keeping a clean “Filesystem” with many OTTD installations (cleaning drafts)

Since OpenTTD 0.6.x, this feature is possible for stable releases, too. So we can publish this almost a year old draft. 😉

I liked to clean my OTTD installations, because new build supports cool features for that. In past I “managed” my OTTDs (different revisions) with symlinks, but with windows i.e., its not possible.

So here is a tiny howto, how to keep many OTTDs without too much redundancy:

First of all, check which directories your OTTD will search for:

>openttd -d misc=4
dbg: [misc] /home/marcel/bin/ottd/deutsch/bin/ added as search path
dbg: [misc] /home/marcel/.openttd/ added as search path
dbg: [misc] /home/marcel/bin/ottd/deutsch/bin/ added as search path
dbg: [misc] /usr/local/share/games/openttd/ added as search path
dbg: [misc] /home/marcel/.openttd/ found as personal directory
(additional help in the readme.txt)

Because I use my PC alone, no other user here, I’ll take ~/.openttd as my “general” data directory (else, I would take /usr/local/…). In this folder is an other subdirectory needed: data.

2. copy the original 5 grfs (trg*) and the sound file ( to a just made directory data, ottdc_grfpack comes there too, of course.

3. The Personal Directory (~/.openttd) will be used for openttd.cfg, saves and screenshots, if you like a special openttd.cfg for a special “testing environment, just copy it to the directory, where the binary openttd is and openttd will take that or start openttd with the argument -c <configfile>

Note for windows users: The system works in windows quite similar, the personal folder is in “my files” etc, you will see it with debug mode as described exactly. aa

8 comments so far

  1. CommanderZ August 19, 2008 09:56

    I use NTFS link to have only one OTTDC grf directory across all my builds. I just have the physical grf directory in only one build and others are only linked to it.

    Saves a lot of space and time 🙂

  2. Ammler August 19, 2008 10:10

    Try to store your GRFs in “mydocs” or however your data home is called, you should find a folder OpenTTD there. Then you do not need to create those links anymore. As we did a year ago. 😉

  3. dih August 19, 2008 11:33

    as very well described in the readme file 😉

  4. planetmaker August 19, 2008 11:46

    and for the lazy:
    ~/.openttd/data (Linux)
    ~/Documents/OpenTTD/data (MacOS)
    C:\Documents and Settings\\My Documents\OpenTTD (Windows)

    Make sure you read the readme despite – you got some more options than these 🙂

  5. CommanderZ August 19, 2008 12:13

    But that requires you to keep common config file (which is not always handy).

  6. planetmaker August 19, 2008 12:15

    it doesn’t. You can still use your individual config files in your individual installation dirs.

  7. CommanderZ August 21, 2008 14:56

    OTTD always loads the common cfg from My Documents first for me (unless I specify it through command line, which is quite inconvinient)

  8. Ammler August 22, 2008 08:15

    Oh, I assumed “the working directory” as the location with the binary.
    “1. The current working directory (from where you started OpenTTD)”

    If you start OpenTTD through shortcut and with another working directory (you can change that, afaik), then it will use the cfg from personal dir instead of the binary dir. As personal dir has prio over binary dir.

    (check the readme I linked in the article)

Leave a comment

Please be polite and on topic. Your email-address will never be published.