Gibberlings3 / BG1NPC

The BG1 NPC Project adds a great deal of content by expanding the depth of character and levels of interaction with the NPCs from the Baldur's Gate game. Requires Tutu, BGT, or BGEE.
https://www.gibberlings3.net/mods/npcs/bg1npc/
47 stars 24 forks source link

Extended Sarevok's Diary for BG1EE is too long to fit in maximum size of one replica for two (eg Russian) and three (eg Chinese) bytes characters in utf-8. #109

Open abalabokhin opened 1 year ago

abalabokhin commented 1 year ago

The translation of Extended Sarevok's Diary (bg1npc_tmp.tra@575) on some languages can easily be bigger than 32 Kb in utf-8 encoding (BG1EE, EET), that is the maximum for dlg file. In this case the item description is empty. The reason is that some characters (eg all Russian alphabet characters) are more than on byte in utf-8 encoding. Is it possible to split the item description in two or three parts, change the UI to show such a long description or fix it somehow else?

Added: I'm actually not sure that the limitation is 32 Kb, not 64 Kb, but for some reasons Russian text that is 26.2 Kb cannot be shown in the EE game (but works in vanilla BG). It might be the problem with encoding though.