The International Simutrans Forum


Author Topic: Suggestion: Re-definitions of the “way-constraint” texts in Simutrans-Extended  (Read 2937 times)

0 Members and 1 Guest are viewing this topic.

Offline Phystam

  • Devotee
  • *
  • Posts: 498
  • Pak256.Ex developer
    • Pak256 wiki page
  • Languages: JP, EN, EO
Hello translators and everyone!
I am now planning a modification in “way-constraint” texts in Simutrans-Extended.
I would explain the modification here.
Currently, the text shows only way-constraint, like
Code: [Select]
Prohibitive 1However, I faced on a trouble when I translate it. Because these texts are shared with all of waytypes.
I could not identify which waytype is used.
So, for example, if you write a translation .tab file like
Code: [Select]
Prohibitive 1
DC Catenary
However if this prohibitive constraint number is used for other waytype, such as canals, then Simutrans indicates “Restrictions: DC Catenary” on canal information window!
Therefore I developed a patch in order to identify which waytype is used. In my modification, I added a waytype number before constraint number, like this:
Code: [Select]
Prohibitive 2-1The number 2 means this waytype is “railway track”. Even if you assigned same constraint number for other
waytypes, for instance
Code: [Select]
Prohibitive 3-1for canals. They will not conflict in translation :)
But it means that you translators have to re-translate them. Is it acceptable for you?