OpenRCT2 / OpenRCT2/OpenRCT2

Failed to load language file

Open
#23,617 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C++
Stars
16.2k
Forks
1.9k
Avg merge
1d 20h
Merged PRs (30d)
80

Description

Operating System

Linux 6.12

OpenRCT2 build

OpenRCT2, v0.4.18-59 (190c2a9888 on makepkg)

Base game

RollerCoaster Tycoon 2

Area(s) with this issue?

This bug is a graphical glitch or error

Describe the issue

Whenever OpenRCT2 starts, I get this message in a popup "Failed to load language file! Your installation may be damaged". From the program's standard out, I see that it is attempting to load the en-GB localization.

I've also tried with the latest stable release of OpenRCT2 and that has the exact same failure with the same error message while attempting to load the en-GB localization files.

ERROR[/usr/src/debug/openrct2-git/openrct2-git/src/openrct2/localisation/LanguagePack.cpp:62 (FromFile)]: Unable to open /usr/bin/data/language/en-GB.txt: Unable to open '/usr/bin/data/language/en-GB.txt'
ERROR[/usr/src/debug/openrct2-git/openrct2-git/src/openrct2/Context.cpp:431 (Initialise)]: Failed to open configured language: Unable to open language 8
ERROR[/usr/src/debug/openrct2-git/openrct2-git/src/openrct2/localisation/LanguagePack.cpp:62 (FromFile)]: Unable to open /usr/bin/data/language/en-GB.txt: Unable to open '/usr/bin/data/language/en-GB.txt'
FATAL[/usr/src/debug/openrct2-git/openrct2-git/src/openrct2/Context.cpp:438 (Initialise)]: Failed to open fallback language: Unable to open language 8

Potentially related, in directory /usr/bin/data/language/ there is only localization data for the development build of OpenLoco that I also have installed: en-GB.yml and en-US.yml

Steps to reproduce
  1. Use the openrct2 binary to set the game files location
  2. Run openrct2. It will show the popup window mentioned and then will not proceed any further.
Attachments

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported failures at src/openrct2/localisation/LanguagePack.cpp:62 and src/openrct2/Context.cpp:431 and 438, then reproduce the launch after setting the game files location. Inspect why the installation looks for /usr/bin/data/language/en-GB.txt; done means OpenRCT2 starts without the language-file popup and loads the configured or fallback language.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
localization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.