MovingBlocks / Terasology

Terasology - open source voxel world
http://terasology.org
Apache License 2.0
3.64k stars 1.32k forks source link

Chest name displaying incorrectly #5232

Closed Rukki13 closed 1 month ago

Rukki13 commented 2 months ago

Terasology Launcher Version: 4.8.0 Terasology Version: 5.3.0 Operating System: Windows 11 Home Onboard / Dedicated Graphics: GTX 1650 TI Java Version: 8 Update 202

Problem: When I look at the chest block, its name isn't displayed correctly. image Game Template: Lost

I will work on it and push the code.

Rukki13 commented 2 months ago

Where are the blocks properties defined for a certain block? The template is Lost

BenjaminAmos commented 2 months ago

The tooltips come from the WorldlyTooltip module. That particular string looks like a translated ("i18n"/internationalisation) string. The main ones can be found in the files at engine/src/main/resources/org/terasology/engine/assets/i18n).

The name string for that particular chest though is defined in https://github.com/Terasology/CoreAdvancedAssets/blob/develop/assets/i18n/game.lang. That placeholder string is supposed to be replaced by the translation system, so the issue may lie within the WordlyTooltip module itself.

BenjaminAmos commented 2 months ago

NUI's ToStringTextRenderer class might have been intended to do it also, although you'll need to pass a translator instance into it directly.

soloturn commented 1 month ago

@Rukki13 how can one quickest find such a chest?

Rukki13 commented 1 month ago

I entered the first house I've encountered

jdrueckert commented 1 month ago

@Rukki13 I'm closing this as this is a duplicate of https://github.com/Terasology/CoreAdvancedAssets/issues/6 In the original issue you'll find some more information about the assumed problem and ideas how to fix it.