This is a suggested sticky.How to add dat files without driving me bonkers1.
All dat files must end with a line of two or more dashes:
Simutrans doesn't care, but Simutranslator *does*. This is in addition to the lines of dashes which are used as separators between multiple objects in the same file.2.
Object "name"s should not have spaces in them. They can have dashes, underscores, and parentheses. Underscores are preferred over dashes.
The spaces will be added in the translations.3.
City building objects have to follow a specific name format.
where XXX is COM, IND, or RES; YYYY is anything, including underscores; zzzz does not contain underscores or numerals; and LL is the 'level', which should be at least 01. In pak128.Britain the format is stricter, and it will probably become stricter yet in the future as new features are added. So ask before naming a city building.4.
Line endings. If you're working with TortoiseSVN or subversion, before you commit any files:
First, find the configuration settings in TortoiseSVN, using these instructions: http://www.mediawiki.org/wiki/Subversion/auto-props
Or find the configuration file from the command line for command-line subversion, which is at:
In [miscellany] uncomment/add this line:
enable-auto-props = yes
In the [auto-props] section, uncomment the default bits and also add:
*.dat = svn:eol-style=native
You only have to do this once. 5.
Line endings again! If you're working with git, before you add any files, set the core.autocrlf option appropriately for whichever system you're on:
git config --global core.autocrlf true
git config --global core.autocrlf input
You only have to do this once. 6.
You shouldn't need to touch the Makefile unless you add a new directory. But if you add a new directory, please either update the Makefile or let me (or someone else who understands Makefiles) update it.7.
Finally, please check your spelling for typos, as mis-spelled names are confusing and hard to remember. I have recently fixed a "clanlline-steamer.dat" (clan-line-steamer), a "Boeing_747_200_BritishCalendonian.dat", a "name=Cemetry" object, etc.
I think this is everything, though I or someone else may think of more things later.