Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Texture remaps don't work in exported project #81660

Closed
tcoxon opened this issue Sep 14, 2023 · 1 comment · Fixed by #84791
Closed

Texture remaps don't work in exported project #81660

tcoxon opened this issue Sep 14, 2023 · 1 comment · Fixed by #84791

Comments

@tcoxon
Copy link
Contributor

tcoxon commented Sep 14, 2023

Godot version

4.1.1.stable.official

System information

Godot v4.1.1.stable - Arch Linux #1 SMP PREEMPT_DYNAMIC Sat, 10 Jun 2023 00:35:35 +0000 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 970 (nvidia; 530.41.03) - AMD Ryzen 5 2600 Six-Core Processor (12 Threads)

Issue description

My project contains some textures that contain text. I use localisation remaps to swap the textures that get used in-game so that the text displays in the player's own language. This works fine in the editor, but in exported builds (both release and debug) it only displays English text.

The exported builds log some warnings that seem relevant:

WARNING: Translation remap 'res://cassette_player_text_en.png' does not exist. Falling back to 'res://cassette_player_text_en.png'.
     at: _path_remap (core/io/resource_loader.cpp:921)
WARNING: Translation remap 'res://cassette_player_text_ja_JP.png' does not exist. Falling back to 'res://cassette_player_text_en.png'.
     at: _path_remap (core/io/resource_loader.cpp:921)

Might be related to #80130?

Steps to reproduce

  1. Download the attached reproducer and open in Godot 4.1.
  2. Run it from the editor. A script in the main scene changes the locale to ja_JP in _ready, so you'll see Japanese text on the screen.
  3. Export the game for your platform, and run that. English text will display instead.

Minimal reproduction project

missing-textures.zip

@akien-mga akien-mga added this to the 4.2 milestone Sep 14, 2023
@profour
Copy link

profour commented Nov 9, 2023

Wanted to bump this. We are seeing this as well on the latest 4.2beta5 for our project.

YuriSizov pushed a commit to YuriSizov/godot that referenced this issue Jan 23, 2024
GuybrushThreepwood-GitHub pushed a commit to GuybrushThreepwood-GitHub/godot that referenced this issue Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants