How to combine several language packs

From TWC Wiki
Jump to: navigation, search

[edit] How to combine several "language packs"

Here is a step-by-step guide how-to combine several language files together in Empire, Napoleon and Shogun 2.


You can open all language pack files with the Pack File Manager which you find on the Empire/Napoleon/Shogun mod tools sections. It is not recommended to edit the "vanilla" language files directly, because each official patch could overwrite these files.


If you use multiple mods which replace the localisation.loc you have to merge these language packs that all unit names and descriptions are shown.


As a base language pack I recommend these UPC files:


Unit Pack Compatibility Project - Empire (UPC-ETW) which is available in English, German, French and Spanish.


Unit Pack Compatibility Project - Napoleon (UPC-NAP) which is available in English, German, French and Spanish.


Unit Pack Compatibility Project - Shogun (UPC-SHO) which is available in English, German, French, Spanish, Italian, Russian, Polish and Czech.


In these language packs are several mods already merged and both will be updated regularly by Swiss Halberdier.


Please create a backup before you edit the language pack.


- open the unit_pack_compatibility_project.pack

- open the “text” directory

- click on localisation.loc and on the right side you see the content in a table with three columns

- click on Export TSV to create an exported TSV file and save it in UNICODE format.

You can call it: unit_pack_compatibility_project.tsv


Empire / Napoleon

- open your other_language.pack which you want to merge:

- open the “text” directory

- click on localisation.loc

- click on Export TSV to create an exported TSV file and save it in UNICODE format. You can call it: name_ of_ mod.tsv


Shogun 2

We modders can add the unit names directly into the mod file and you can search for this suffix *.loc which all customized text tables use.

Unfortunately these directly included customized *.loc tables display only the unit names in the English language version. If you use a non-English language, then these unit names don't show up. Therefore I created the UPC-SHO.


- open your used MOD.pack which you want to merge:

- open the “text” directory

- open the “db” directory

- click on custom_localisation.loc

- click on Export TSV to create an exported TSV file and save it in UNICODE format. You can call it: name_ of_ mod.tsv


Now you should use a text editor like Windows Notepad or the free Notepad++ to open the TSV files.


- open the name_of_mod.tsv and go to the end of the file. Then scroll up and you'll see where the unit names begin. Normally they're located at the end of the file. But some modders integrate the unit names at the top of the file. If you're not sure then you could copy/paste the whole file and add it at the end of the original UPC file like described below.


Mark parts or all entries of your name_of_mod.tsv and copy them.

- open the unit_pack_compatibility_project.tsv and paste the copied entries under the existing rows at the end of the file. Don't overwrite the other entries and don't change the spacings in this file.

- save it call_it_like_you_want_combined.tsv.

- copy your downloaded unit_pack_compatibility_project.pack and rename it for example to unit_pack_compatibility_project_combined.pack.


- open the new unit_pack_compatibility_project_combined.pack

- open the “text” directory

- click on localisation.loc

- click on Import TSV and add the call_it_like_you_want_combined.tsv to the pack file.

- then save and copy the new created unit_pack_compatibility_project_combined.pack to your ETW or NTW data directory.


IMPORTANT: There can be only ONE language file in the "data" folder and you must remove all other older UPC or other language files from mods.

It is recommended that the type of the language file is the special patch "movie-type" format. This special format loads automatically if you put the file into your Total War\data directory. When you start TW, then it overwrites virtually all other *.loc tables in the vanilla language file packs. Right click on the mod name and select "Change pack type" and set it to "movie". In all my UPC projects the format is "movie-type".


After this whole process you can see the unit names from both language packs.


Cheers

Swiss Halberdier


Additional Units Mod - Empire (AUM)


Additional Units Mod - Napoleon (AUM-NAP)


Additional Units Mod - Shogun (AUM-SHO)

Personal tools