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

[1.0.0.341] ContextPtr:SetInputHandler() not working for <AddUserInterfaces> in mods ?

Discussion in 'Civ6 - Bug Reports' started by Gedemon, Jun 2, 2019.

  1. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    8,646
    Location:
    France
    All in title again, seems this is working for the contexts of the base game, but not in a Lua script loaded using
    Code:
            <AddUserInterfaces>
                <Properties>
                    <Context>InGame</Context>
                </Properties>
                <File>MyFile.xml</File>
            </AddUserInterfaces>
     
  2. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    8,646
    Location:
    France
    Update: still an issue with 1.0.0.341

    Automation.SetInputHandler() was a working workaround, but need to be cleaned on exit else the game crashes to desktop and the crash occurs before any cleaning can be done using Events.LeaveGameComplete
     

Share This Page