I get ReadText errors in my game when I use a script or mod
In what language do you play the game?
Modifying a language file (t file) for your language
Language files allow X3 scripts, mods, and missions to work in multiple languages. They are sometimes called "t files" because they are located in the t folder.
For STEAM users the default location is:
X3 AP : "C:\Program Files (x86)\Steam\steamapps\common\X3 Terran Conflict\addon
\t"
X3 TC : "C:\Program Files (x86)\Steam\steamapps\common\X3 Terran Conflict
\t"
Example: Detector
Detector's language "page" is 8552. So the language files are named 8552-L0
xx.xml (where the "xx" is replaced by the two-digit international telephone dialing code for your country).
England's dialing code is 44, so the English language file for Detector is
8552-L044.xml
Note that there is no harm in having "extra" language files that your game does not use. The important thing is that the "correct" language file (that matches the language of your game) must exist in the correct t folder (TC) (or addon\t for AP).
Let's make an Italian language file for Detector:
- Copy the English file to a new file. Name the new file 8552-L039.xml for Italian.
- Open the new file with a good text editor such as Notepad++. (It is too easy for novices to make common mistakes with Windows Notepad or Wordpad, although it is possible to use them.)
- Change <language id="44"> to <language id="39">
- Save and close the file.
You should now be able to use Detector in your Italian game.
Tip 1: Use the same technique to make language files for all of your favorite scripts and mods.
Tip 2: If you translate the text into your own language, and test that it works in-game, then post your modified language file in the script's thread so that the script/mod author can include the language file in future versions.
Language Codes
Here are a few common language codes, although there are others:
07 - Russian
33 - French
34 - Spanish
39 - Italian
42 - Czech
44 - English
48 - Polish
49 - German
The -L089 files
Note that language 89 does not exist. Most of my scripts include a -L089 file with a descriptive file name. This file is purely for documentation -- it allows you to see, at a glance, which script goes with a set of language files. The reason for using an xml file (instead of a text file) is that the xml file tricks the Plugin Manager into installing the file into your t folder (which is where you want it).
.