Reloading UI apps in development without restarting the game

Discussion in 'Content Creation' started by aviator331, Apr 16, 2025.

  1. aviator331

    aviator331
    Expand Collapse

    Joined:
    Apr 1, 2024
    Messages:
    4
    Hello, I'm looking for a way to get UI apps to refresh properly while developing them.

    I have the UI app set up under the unpacked directory under mods. Whenever I modify a file, the UI flashes briefly, but any changes to e.g. app.js do not actually take effect.

    I have tried using both F5 and Ctrl+F5 through Ctrl+U (UI Dev Tools). The UI does refresh, but changes still do not apply.

    The only way I can get the changes to actually apply is to restart the game, which makes UI development quite tedious.

    In case it matters, I am on the Linux native version.
     
  2. JlnPrssnr

    JlnPrssnr
    Expand Collapse

    Joined:
    Jun 15, 2016
    Messages:
    433
    Isn't it CTRL + R?
     
  3. aviator331

    aviator331
    Expand Collapse

    Joined:
    Apr 1, 2024
    Messages:
    4
    Ctrl+R reloads the current vehicle and its VLUA.
     
  4. Turbo49>

    Turbo49>
    Expand Collapse

    Joined:
    Apr 1, 2021
    Messages:
    3,221
    Try using ctrl+L
     
  5. aviator331

    aviator331
    Expand Collapse

    Joined:
    Apr 1, 2024
    Messages:
    4
    Ctrl+L reloads the main Lua engine and GELUA. It also seems to reload the UI, but even then the changes still do not apply.
    --- Post updated ---
    Update: I think I found a solution. After some quick testing, I noticed that changes to app.html do take effect after F5, but changes to app.js do not. I disabled the cache from the devtools (Network -> Disable cache), and now F5 correctly applies changes.
     
    #5 aviator331, Apr 18, 2025
    Last edited: Apr 18, 2025
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice