Strgen: the Very basics

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

User avatar
jfs
Tycoon
Tycoon
Posts: 1334
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: Strgen: the Very basics

Post by jfs »

U+0009 is a horizontal tab.

Translations are not allowed to use the {STRING0}, {STRING1}, {STRING2}, etc. codes for placeholders, only the non-translated english.txt is allowed to use those. Translations must use {STRING} without any number on it instead.

If you want to make a "translation" that only changes a few strings, I would recommend starting off the english_us.txt file, but delete all the translated lines, then add only the lines you are interested in changing. You should also have an unmodified english.txt file that you can compile into english.lng (and make sure it's identical to the english.lng that ships with the game version you are working for. Strgen has some special logic regarding english.txt and english.lng and those files should be present when you run it for any other language.
Quarter Mile
Engineer
Engineer
Posts: 14
Joined: 03 Aug 2019 14:33

Re: Strgen: the Very basics

Post by Quarter Mile »

Ok, done that, Strgen isn't happy with it,

I've checked the .txt file, those lines are there at the top, and I've got the unedited English.txt in the same folder (for 1.11.0). The ##name and ##ownname wouldn't work with either English_US or English (Original Vehicle names)

I've attached the edited text file as well, as always, thanks for the help.
Attachments
1.png
1.png (4.17 KiB) Viewed 216 times
Original.txt
(20.23 KiB) Downloaded 23 times
Eddi
Tycoon
Tycoon
Posts: 7645
Joined: 17 Jan 2007 00:14

Re: Strgen: the Very basics

Post by Eddi »

check that your .txt file has the correct encoding, line endings, etc.
You might not exactly be interested in Ferion, but if you are, have fun :)
Quarter Mile
Engineer
Engineer
Posts: 14
Joined: 03 Aug 2019 14:33

Re: Strgen: the Very basics

Post by Quarter Mile »

SUCCESS!!! (Of sorts)

Following jfs' advice, I repaced the vehicle names in the english_US file with the actual manufacturer names, (but left the rest of the file intact) and it works! :)

So big thanks to jfs, Eddi, and Truebrain for their patience and advice, and again to Truebrain for posting the strgen binary. You all rock :D :D :D

Time to get gaming :mrgreen:
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 5 guests