News:

The Forum Rules and Guidelines
Our forum has Rules and Guidelines. Please, be kind and read them ;).

How do I add/change text in the game show on buildings and other objects?

Started by mroby, September 21, 2010, 05:45:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mroby

My apologies if this has been asked before.  I searched but could not find.

I am trying to create my own objects (buildings, attractions, etc) and would like to add my own text to these objects that appears in the game.

For example, when you select a building, it often includes a summary about the type of building or who used to live there - "An old lady lives here . . . "

Where is this information stored in the game and how can I add/modify it?

Thanks for your help!

DirrrtyDirk

These texts are parts of the translation files, located e.g at Simutrans\pak\text\en.tab (=English texts in pak64).

These files are simple text files and can be edited  (although they might be formatted for UNIX, so better don't use Windows' Notepad to edit there - use Wordpad or Notepad++ or such), but I would not recommend adding (or changing) things directly in there, since with the next pakset-update everything will be lost again.

Better only look at these files to find out how they work (e.g. odd lines: object names; even lines: translations&texts) and create a new file (make sure you keep the required format (UNIX?) though!) and name it (I'll use English for this example*) en_XYZ.tab (where for XYZ you can use whatever you like, just let it start with en_ and end with .tab)

(* = For a different language, replace "en" with the proper letters for that language.)
  
***** PAK128 Dev Team - semi-retired*****