ToolTipFix

ToolTipFix

4M Downloads

Crashing When Modifying Configurations

Mino-dev opened this issue ยท 11 comments

commented

The game crashes when trying to access configs (any other mod) through Mod Menu with this mod installed.
Here are the logs:
Crash-report: https://paste.ee/p/ldasa
Full-log: https://paste.ee/p/qoeSg

Hope this information will help you. Thanks for your time creating this wonderful mod!

commented

I'm having the same problem https://pastebin.com/K0tfemzX

commented

Thanks for the report, I'll take a look at this later today

commented

1.0.1 should fix this

commented

Thank you for the quick fix! Will close the issue.

commented

Somehow same error occurs when using Mod Menu with Turkish language. As soon as I hover on configure button, game crashes without showing the "Ayarla..."(Configure...) tooltip unless I disable ToolTipFix. Here's my console output.

commented

Does it crash on another language? Or just Turkish?

commented

The error implies that it's due to an empty string, but there's a check above to prevent that from happening. Very odd

commented

Original string: "Configure..." (Total length is 12)
Polish string: "Skonfiguruj..." (Total length is 14)
Turkish string: "Ayarla..." (Total length is 9)
Chinese (Simplified) string: "้…็ฝฎโ€ฆ" (Total length is 3)
Italian string: "Configura" (Total length is 9)
Russian string: "ะะฐัั‚ั€ะพะธั‚ัŒ..." (Total length is 12)
Brazillian Portuegese: "Configuraรงรฃo..." (Total length is 16)

Game crashed when language set to Turkish, Italian, Chinese (S) and
I think when tooltip length is above 12 the game doesn't crash.

Tried to add more dots to "Ayarla...".
Screen Shot 2020-11-15 at 2 54 52 PM
Didn't crash with 5 dots (with 12 total char)
Then tried with 12 dots and didn't crashed.
Screen Shot 2020-11-15 at 3 02 15 PM
Also tried "โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”" (11x โ€”) to prove tooltip width is irrelevant, then it crashed.

It should be the minimum string length and the position of the configure button. (very close to top-right edge.)

commented

I tried Polish too (which has one of the newest approved translations) but it showed the tooltip without a problem. I'm pretty sure that there's no syntax error in the tr_tr.json. Not my strongest guess but I have a suspicion that it may be something to do with the string length. I'll test different lengths and languages.

commented

Ah can you update tooltipfix tp 1.0.2. I thought for sure I already fixed this, and just saw in your log that you're using an old version.
Thank you for the very in depth testing and investigation though!

commented

Ahh, my bad. Must have missed that one! I thought it was up to date, got worried there. There's no problem with 1.0.2 now, thanks!