Dismiss Notice
This Section is READ ONLY - All Posts Are Archived

ShroudOnKeyDown(string) does not work when multiple scripts run

Discussion in 'User Interface (Including Launcher)' started by Tiina Onir, Nov 24, 2019.

  1. Tiina Onir

    Tiina Onir Avatar

    Messages:
    1,060
    Likes Received:
    1,822
    Trophy Points:
    125
    Location:
    Bramble, South Paladis
    1. Title: ShroudOnKeyDown(string) does not work when multiple scripts run
    2. Reproduction Rate: 100%
    3. Blocker? No
    4. Details: I have multiple scripts, all divided into different files to make it easy for users to pick and choose what they want. If multiple of them are running, it breaks ShroudOnKeyDown(string) even though only one script calls that.
    5. Steps to Reproduce:
      1. Download https://raw.githubusercontent.com/sotadb/LuaScripts/master/info.sotadb.loottracker.lua into lua folder
      2. /lua reload
      3. Press 'P'
      4. note list toggles
      5. Download https://raw.githubusercontent.com/sotadb/LuaScripts/master/info.sotadb.pools.lua to Lua folder
      6. /lua reload
      7. Press 'P'
      8. note list does not toggle
     
    Jaesun likes this.
  2. Tiina Onir

    Tiina Onir Avatar

    Messages:
    1,060
    Likes Received:
    1,822
    Trophy Points:
    125
    Location:
    Bramble, South Paladis
    @devilcult has a work-around: Make sure all of:

    ShroudOnConsoleInput(string type, string sourcePlayer, string message)
    ShroudOnUpdate()
    ShroudOnGUI()
    ShroudOnStart()

    are defined in every script.