Editing Languages

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

Moderator: OpenTTD Developers

Post Reply
Quarter Mile
Engineer
Engineer
Posts: 17
Joined: 03 Aug 2019 14:33

Editing Languages

Post by Quarter Mile »

Hi All, sorry for bringing up something that I'm sure you regard as a reasonably simple fix, but I'm out of ideas, and Google is not bringing up anything of any help, and quick look through the Wiki got me nowhere too.

What I am trying to do is edit the English language file (english.lng) to insert different vehicle names using a hex editor (So I can have real vehicles for the trains and trucks, without using a myriad of GRFs) But I keep getting the "Can't read the language pack" error every time I use the editor to insert or delete a character. I have tried to "balance things out" (i.e. even out the amount of characters inserted and deleted) but to no avail. If I want to go the route that I am, will I have to:

A) Go about editing the language a different way,
B) Figure out using a GRF for the language, or
C) Some better way that I don't know.

Thanks for your time, and help.
Eddi
Tycoon
Tycoon
Posts: 8258
Joined: 17 Jan 2007 00:14

Re: Editing Languages

Post by Eddi »

yes, to all three of those questions.
User avatar
jfs
Tycoon
Tycoon
Posts: 1750
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: Editing Languages

Post by jfs »

OpenTTD is open software. Using the wrong tools to "hack" the data files when the right tools are freely available is only making things more difficult for yourself than necessary.
That said, the tools to make langauges files are perhaps too well hidden since the website change earlier. The tool you need is called strgen.

But the way to go about this using language files would be to make a new "translation" that just replaces the vehicle names.
Quarter Mile
Engineer
Engineer
Posts: 17
Joined: 03 Aug 2019 14:33

Re: Editing Languages

Post by Quarter Mile »

Ah, ok, thank you both for your answers, I'll look into it. :)
Eddi
Tycoon
Tycoon
Posts: 8258
Joined: 17 Jan 2007 00:14

Re: Editing Languages

Post by Eddi »

since JFS already covered the A part of your question, here are the two other answers:

B: https://www.tt-wiki.net/wiki/NMLTutorial
C: you can use the work other people put into it, like go to "download online content" and pick "original vehicle names" GRF
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 12 guests