Solved Update UI-Mods during pause

Discussion in 'Mod Support' started by Stiegfried, Jun 16, 2018.

  1. Stiegfried

    Stiegfried
    Expand Collapse

    Joined:
    Feb 17, 2018
    Messages:
    16
    Hello everyone,

    I just ran into the problem that UI-Mods don't update while the game is paused. But I need my UI-Mods to update while the game is paused (e.g. because I want to enter values in an UI-Mod while the game is paused). Is there a way to update UI-Mods while the game is paused from inside the lua file of a scenario? Or any other way?

    Thanks in advance,
    Stiegfried
     
  2. thomatoes50

    thomatoes50
    Expand Collapse
    BeamNG Team

    Joined:
    Jan 31, 2013
    Messages:
    722
    you should be able to do it, the problem is that depending of what data you want to displayed, the value won't change as everything is frozen
     
  3. Stiegfried

    Stiegfried
    Expand Collapse

    Joined:
    Feb 17, 2018
    Messages:
    16
    But is there a way of manually forcing an update of the UI-Mod? Because entering a value is only one reason I want to update the UI. Another reason is because I want to "hide the game" from the player while the ai is hitting the speed the scenario is supposed to start with ( https://www.beamng.com/threads/set-the-speed-without-acceleration.55418/ ) and I want a "Start" button to appear once the scene is ready.
     
    #3 Stiegfried, Jun 18, 2018
    Last edited: Jun 24, 2018
  4. Stiegfried

    Stiegfried
    Expand Collapse

    Joined:
    Feb 17, 2018
    Messages:
    16
    Is there maybe a way to activate a slowmotion that is slower than 1/100? That would allow me to activate the super-slowmotion for about a second or so every now and then so the UIs get updated let's say every 10 seconds but the vehicle would only drive one or two meters even if it takes the player several minutes to read all the instructions etc..
     
  5. thomatoes50

    thomatoes50
    Expand Collapse
    BeamNG Team

    Joined:
    Jan 31, 2013
    Messages:
    722
    Code:
    bullettime.set(0.001)
    Game was not meant to played this way, It will look like you have less than 1fps . Set to 1 for realtime
     
  6. Stiegfried

    Stiegfried
    Expand Collapse

    Joined:
    Feb 17, 2018
    Messages:
    16
    Shame on me. I already looked through bullettime.lua to see why bullettime.set(10) doesn't work. I found that the value has upper and lower bordervalues and I thought to remember the lower border to be 0.01 (which is obviously not the case) ...

    Thanks.
     
  7. thomatoes50

    thomatoes50
    Expand Collapse
    BeamNG Team

    Joined:
    Jan 31, 2013
    Messages:
    722
    the limits are ]0:1] I think, the research version will have a switch to unlock higher physics speed but it will depends on the PC performance then
     
  8. thomatoes50

    thomatoes50
    Expand Collapse
    BeamNG Team

    Joined:
    Jan 31, 2013
    Messages:
    722
    I have no idea.
    The research version is targeting students/university research. It is not at all meant to be used for gaming.
     
    • Informative Informative x 1
  9. thomatoes50

    thomatoes50
    Expand Collapse
    BeamNG Team

    Joined:
    Jan 31, 2013
    Messages:
    722
    I Apologies that you took it as a personal insult.

    This answer was written in a way to prevent future people reading this thread asking for the research version just because it have new features.
     
  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