Define a new string

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

Moderator: OpenTTD Developers

Post Reply
Posts: 1
Joined: 13 Aug 2019 02:52

Define a new string

Post by georgeyates » 13 Aug 2019 02:53

. how can I create english.lng??

The program says:

2034: WARNING: String name 'STR_5808_ERROR' is invalid (or already used)
2035: WARNING: String STR_5808_ERROR has no definition. Using NULL value

Very good project!

User avatar
Posts: 544
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: Define a new string

Post by jfs » 13 Aug 2019 16:19

If you modify the base language file (english.txt) and generate a new english.lng, you also need to recompile the entire game (openttd.exe), since the string index numbers in the language files are compiled in.
The build system included with the source code automatically rebuilds all the appropriate files when you modify english.txt and recompile the game.

Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 4 guests