Quests icon indicating copy to clipboard operation
Quests copied to clipboard

Formatting Bug

Open HorusApl opened this issue 1 year ago • 1 comments

What is your Quests version / build number (do not say "latest")?

5.0.3-b474

Describe the problem and how to replicate it.

These 2 specific lines do not follow any rational formatting used elsewhere in the file:

completed: "%#555555%%bold%Test" redoCompleted: "%#555555%%bold%Test"

I have tried the typical %#fff000% that the other lines of the lang file use and work fine, but for some reason these 2 do not. I have tried every formatting way I know, the built in &e &l type MC codes, normal rgb, &#fff000, etc and it seems to just randomly choose the color. #555555 is a dark gray, and for some reason it shows as a Dark purple. The %bold% appears to work still.

Also, the ( ) on the message is not listed in the lang file to edit, but still appears in-game. image

Any console errors to share?

n/a

If applicable, can you provide an example quest from quests.yml?

Any/all quests

HorusApl avatar Jun 12 '24 22:06 HorusApl

Strings that have item/entity/enchantment names like this are sent to the client for translation via LocaleLib. I think what's happening is the hex format isn't converting well to the Minecraft json command which is necessary for translation. Part of it seems to be dark purple because only the last char is being applied there (so §5).

I may find time to look into this further, but please understand something like this is extremely low priority.

PikaMug avatar Jul 16 '24 14:07 PikaMug