1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

String length upper limit = 4096 characters?

Discussion in 'Civ5 - SDK / LUA' started by ZeroOne, Dec 12, 2010.

  1. ZeroOne

    ZeroOne Hitchhiker

    Joined:
    Aug 10, 2002
    Messages:
    88
    Location:
    Finland
    I've been modding the HappinessTipHandler function in TopPanel.lua to improve the happiness tooltip. It's now working alright except for the fact that only the first 4096 characters of the strText variable are displayed in the game! In essence, the tooltip text is cut in a random position, such as "+5 fr" when it should be "+5 from [ICON] incense". Is there any way around this limitation? :confused:
     

Share This Page