KubeJS

KubeJS

61M Downloads

Format Error (localization)

BlackAures1 opened this issue · 15 comments

commented

Minecraft Version

1.18.2

KubeJS Version

kubejs-forge-1802.5.4-build.533

Rhino Version

rhino-forge-1802.1.14-build.209

Architectury Version

architectury-4.9.83-forge

Forge/Fabric Version

Curseforge Forge 40.1.73

Describe your issue

Sometimes "Format Error" may appear during localization, but they do not affect anything but visuals. This happens because of some characters in other languages. Is there any way to remove this "Format Error" warning?

image

"chapter.1.quest.1.description.1": "▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬\n■ Хочешь пройти по пути настоящих драконов? Тогда тебе сюда. Задания можно проходить в любом порядке. За многие из них вы будете получать награды, но самое важное это информация о модах и изменениях в них.\n▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬\n■ Полный список заданий можно найти в меню слева. Здесь только самые общие задания.\n▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬\n■ Для выполнения некоторых заданий требуется подтверждение прочтения. Для этого нужно просто нажать галочку слева от награды. Прежде чем забирать саму награду, обязательно освободите инвентарь.\n▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬\n■ Если вам что-то не нравится в каком-либо из модов, просто используйте конфиги. У Dragon Survival конфиг доступен без перезагрузки игры. Просто зайдите в инвентарь дракона и нажмите на шестерёнку справа внизу. Многие моды в модпаке являются настраиваемыми. Для этого откройте папку с модпаком (curseforge - minecraft - Instances - Play as Dragon) и найдите там папку config. С помощью Блокнот или Notepad++ откройте и изучите файл нужного вам мода.\n\n■ Не нашли нужную вам настройку? Возможно, она находится тут: Play as Dragon - saves - World Name - serverconfig\n▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬"

If it's important, modpack: https://www.curseforge.com/minecraft/modpacks/play-as-dragon
This mod was used to simplify the creation of localization keys (but it certainly can't have anything to do with the mod): https://www.curseforge.com/minecraft/mc-mods/ftb-quests-localization-keys

Crash report/logs

No response

commented
Error during pre-loading phase
net.minecraftforge.fml.ModLoadingException: Mod bettervillage requires libraryferret3.0.0 or above
Currently, libraryferret is 2.5.1

As well as this error better fps is incompatible with whatever sodium port you have.
Can you fix those issues then send a new debug.log?

commented

Are you able to repeat this bug with my text? I can send you a debug, but there will be a lot of unnecessary stuff.
server.txt
latest.log
debug-1.log.gz
It should have everything you need. This error appeared on any startup at any time, so I don't think it makes much difference which debug to send, but here are a few. The first one is from the kubejs folder.

commented

Can you please provide the debug.log file on a paste site like https://gist.github.com please?

commented

I have always had the new version of libraryferret
image

I apologize for the long response. Here is the new log without better fps:
debug.log

commented

Opening quests with Format Error also causes a huge spam in the console. Is there any way to disable it so it doesn't clog the files?
image

commented

I cannot see any "format error" in the log. It seems to only show up in the screenshot you sent, in FTBQuests. Could it be a problem with them?

commented

Does it still happen if you load the translation file with a resouce pack instead of KubeJS' assets folder?

commented

This debug spam happens when I open any quest that says "Format error". When I wrote text directly in FTBQuests without localization keys this problem didn't happen and it appeared only after adding localization. I can find you specific quests in English in the modpack that have Format error, if you will deal with this problem.

Here is the structure of the quests and the localization files themselves, if it's important.
kubejs.zip

commented

I haven't tried that. Could it work?

commented

I have this problem too, and I load with resoucepack, still will appear the Format error message.

image

commented

Is there any chance this will be fixed?
ftb-quests-forge-1902.4.16-build.235 + kubejs-forge-1902.6.0-build.142 still bugged
latest.log
debug.log

commented

This seems to not be an issue with KubeJS, as it still happens when using a resourcepack not loaded with KubeJS.
So I suspect it is either an issue with the addon or FTBQuests.

commented

Wait, what resource pack are you talking about? You yourself wrote about resource packs for testing to "fix" the problem, but another user confirmed that your "fix" doesn't work. I'm using your localization system (Instances\Play as Dragon Gothic Edition\kubejs\assets\kubejs\lang). If you need to duplicate this in FTB Quest, I can write them, but something tells me they will say you have the problem, because when I write the text directly in FTB Quest I do not get this error.
image
image

commented

KubeJS' localisation system is the same system as in a resource pack, just in a different folder.
Because the issue happens in a resource pack that is not controlled by KubeJS this is not KubeJS' fault.
If I had to guess it is probably a bug in how FTBQuests handles localisation (specifically localisation, not all text).

commented

I forwarded them this error, hope it helps. Thank you for your time ^^