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
Crash on long translatable label texts
Moderator: NADEO
Crash on long translatable label texts
Last edited by steeffeen on 29 Apr 2014, 14:19, edited 2 times in total.
Re: Crash on script start
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 withand still everything is fine
on the next try i called as well and then the crash happened
so it seems to have something to do with manialink labels
i've only composed the long text and added it to the spawnscreen lib with
Code: Select all
SpawnScreen::AddSubsection("section", TextVar);
on the next try i called
Code: Select all
SpawnScreen::CreatePrettyRules("name");
so it seems to have something to do with manialink labels
Re: Instant Crash on long translatable label texts
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
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}}}"/>""";
Who is online
Users browsing this forum: No registered users and 1 guest