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 (sample.cat) 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
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 đ
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. đ
as very well described in the readme file đ
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 đ
But that requires you to keep common config file (which is not always handy).
it doesn’t. You can still use your individual config files in your individual installation dirs.
OTTD always loads the common cfg from My Documents first for me (unless I specify it through command line, which is quite inconvinient)
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)