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

/lua reload doesn't clear environment

Discussion in 'User Interface (Including Launcher)' started by scroda, Nov 11, 2019.

Thread Status:
Not open for further replies.
  1. scroda

    scroda Empyrean Enforcer

    Messages:
    211
    Likes Received:
    378
    Trophy Points:
    30
    11/11/2019 20:27
    Title: "/lua reload" issue
    Reproduction Rate:100%
    Blocker?n
    Details: "/lua reload" doesn't clear the environment. variables linger behind
    Steps to Reproduce:
    use:
    Code:
    --initialized=false
    if initialized then ConsoleLog("notwiped") end
    
    function ShroudOnUpdate()
       if not initialized then
           initialized=true
           ConsoleLog("initialized")
       end  
    end
    
    then do /lua reload more than once
    then decomment the first line and do /lua reload multiple times again

    User Specs:
    OS: Windows 10 (10.0.0) 64bit
    CPU: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz (6) System RAM: 16344
    GPU: NVIDIA GeForce GTX 1070 GPU RAM: 8088
    SotA.QA.Win.64.885.Date.11.10.19
    Area: Novia_R3_City_Brittany
    Area Display Name: Central Brittany
    Loc: (-9.4, 28.5, -88.9)
    Debug: Tm92aWFfUjNfQ2l0eV9Ccml0dGFueXx8KC05LjM2OCwgMjguNDk2LCAtODguOTA0KXwoMCwgMC44NjUsIDAsIC0wLjUwMil8MjQwLjI1NzJ8MTB8Ny4yNDk5OTc=
     
Thread Status:
Not open for further replies.