Page 1 of 1
Crash on long translatable label texts
Posted: 26 Jul 2013, 17:48
by steeffeen
hey there,
i tried building a long translatable text with several TextLib::Compose() parts
unfortunately the client crashes instantly on script start
crash log
crash log after some changes
i can supply the regarding code if needed
regards,
steff
// Edit: updated thread subject
Re: Crash on script start
Posted: 27 Jul 2013, 21:56
by steeffeen
alright, i did the same with another script and noticed something:
i've only composed the long text and added it to the spawnscreen lib with
Code: Select all
SpawnScreen::AddSubsection("section", TextVar);
and still everything is fine
on the next try i called
Code: Select all
SpawnScreen::CreatePrettyRules("name");
as well and then the crash happened
so it seems to have something to do with manialink labels
Re: Instant Crash on long translatable label texts
Posted: 29 Apr 2014, 14:19
by steeffeen
it's happening if you compose the string wrong by giving invalid parameter placeholders and try to display this string on the ui
LogCrash_00B51EEC.txt
Code: Select all
declare test = TextLib::Compose(_("My %1st Param, My %2nd Param, My %3rd Param, My 4%th Param"), "1", "2", "3", "4");
test = TextLib::Compose(_("%1, My %5th Param, My %6th Param, My %7th Param"), test, "5", "6", "7");
UIManager.UIAll.ManialinkPage = """<label text="{{{test}}}"/>""";