Problems with language files

Discussions about the technical aspects of graphics development, including NewGRF tools and utilities.

Moderator: Graphics Moderators

Post Reply
User avatar
Mr Bruco
Posts: 32
Joined: 21 Jul 2016 11:10

Problems with language files

Post by Mr Bruco »

Hello here, I'm new with nml and code in general, I'm interested in learning it.
I tried to follow the steps of tutorial, but I'm in trouble at some point.
I think an image can explain more than many words, so this is an image of what I've done so far
(192.05 KiB) Not downloaded yet
The files are copied directly from the tutorial, I tried to make as few mistakes as possible, but this is what comes out and I have not idea of how to move forward.

Thanks to those who will help :bow:

Posts: 64
Joined: 24 May 2017 12:51
Location: East Texas

Re: Problems with language files

Post by rowdog »

The first letter of the file name should be lowercase so it's english.lng not English.lng.

OpenTTD Developer
OpenTTD Developer
Posts: 4755
Joined: 09 Sep 2007 05:03
Location: home

Re: Problems with language files

Post by Alberth »

The error is about a duplicate ##grflangid line.
Each language has its own ID, see the table under "LanguageIDs" at ... uage_files (1st column).
Apparently you have at least 2 files with language ID 1, ie more than one file that claims to be the English(GB) translation. Since the computer cannot know which file is speaking the truth, it wants you to fix this by changing the ##grflangid line of the files until there is one language file for each language.
Being a retired OpenTTD developer does not mean I know what I am doing.

Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 2 guests