Page 1 of 1

Problems with language files

Posted: 10 Jun 2018 22:21
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
1.png
(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:

Re: Problems with language files

Posted: 11 Jun 2018 03:53
by rowdog
The first letter of the file name should be lowercase so it's english.lng not English.lng.

Re: Problems with language files

Posted: 11 Jun 2018 04:32
by Alberth
The error is about a duplicate ##grflangid line.
Each language has its own ID, see the table under "LanguageIDs" at https://newgrf-specs.tt-wiki.net/wiki/N ... 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.