Released MK's Dynamic Weather 1.1

This lua script implements dynamic weather in BeamNG! (and tornadoes)

  1. PilotMasterNavy

    PilotMasterNavy
    Expand Collapse

    Joined:
    Jun 3, 2024
    Messages:
    17
    right so i figured it out i had 2 tornado mods that used the games wind, and when i disabled one of them it worked again!
     
    • Like Like x 1
  2. NatPro38

    NatPro38
    Expand Collapse

    Joined:
    Jul 9, 2025
    Messages:
    1
    Thank you for the great mod.
    Recently been getting an error when turning Off Simplified Traffic. Error From the Log:
    Code:
    215.41605|E|GameEngineLua:Exception| [string "lua/ge/extensions/dynamicWeatherMK/common.lua"]:15: attempt to index a nil value
    =============== Stack Traceback >> START >>
    (1) metamethod C function '__index'
    (2) Lua upvalue 'isSimplifiedOrUnicycle' at line 15 of chunk 'lua/ge/extensions/dynamicWeatherMK/common.lua'
      vehicle = userdata: (...)
      bool = boolean: false
      (*temporary) = nil
      (*temporary) = number: 1.06438e-311
      (*temporary) = number: 76603
      (*temporary) = nil
      (*temporary) = userdata: (...)
      (*temporary) = string[28]: "attempt to index a nil value"
    (3) Lua field 'applyWindAll' at line 47 of chunk 'lua/ge/extensions/dynamicWeatherMK/common.lua'
      forceVec = cdata: (...)
      (for index) = number: 9
      (for limit) = number: 13
      (for step) = number: 1
      i = number: 9
      vehicle = userdata: (...)
    (4) Lua local 'func' at line 2004 of chunk 'lua/ge/extensions/dynamicWeatherMK/weather.lua'
      dt = number: 0.0188184
      dtSim = number: 0.0195
      showGui = boolean: true
    (5) Lua field 'hook' at line 820 of chunk 'lua/common/extensions.lua'
      funcName = string[8]: "onUpdate"
      funcList = table: 0x01f58c886968  {1:function: 0x01f57c02e5f8, 2:function: 0x01f50d019c70, 3:function: 0x01f5984d5aa8, 4:function: 0x01f50d2aa020, 5:function: 0x01f54990ea00, 6:function: 0x01f50d260158, 7:function: 0x01f57bc0cee8, 8:function: 0x01f53a45e738, 9:function: 0x01f50ce57048, 10:function: 0x01f52e078830, 11:function: 0x01f5490ce088, 12:function: 0x01f53b04f910, 13:function: 0x01f57c2e9290, 14:function: 0x01f53aa51450, 15:function: 0x01f50cf5da88, 16:function: 0x01f57c0b7c28, 17:function: 0x01f51ebc78a0, 18:function: 0x01f52df549d8, 19:function: 0x01f50cd7e020, 20:function: 0x01f51ee514a0, 21:function: 0x01f53cac9650, 22:function: 0x01f5890d3298, 23:function: 0x01f59b8be060, 24:function: 0x01f57bd24008, 25:function: 0x01f50cc64290 (more...)}
      (for generator) = C function: builtin#6
      (for state) = table: 0x01f58c886968  {1:function: 0x01f57c02e5f8, 2:function: 0x01f50d019c70, 3:function: 0x01f5984d5aa8, 4:function: 0x01f50d2aa020, 5:function: 0x01f54990ea00, 6:function: 0x01f50d260158, 7:function: 0x01f57bc0cee8, 8:function: 0x01f53a45e738, 9:function: 0x01f50ce57048, 10:function: 0x01f52e078830, 11:function: 0x01f5490ce088, 12:function: 0x01f53b04f910, 13:function: 0x01f57c2e9290, 14:function: 0x01f53aa51450, 15:function: 0x01f50cf5da88, 16:function: 0x01f57c0b7c28, 17:function: 0x01f51ebc78a0, 18:function: 0x01f52df549d8, 19:function: 0x01f50cd7e020, 20:function: 0x01f51ee514a0, 21:function: 0x01f53cac9650, 22:function: 0x01f5890d3298, 23:function: 0x01f59b8be060, 24:function: 0x01f57bd24008, 25:function: 0x01f50cc64290 (more...)}
      (for control) = number: 21
      _ = number: 21
      func = Lua function '?' (defined at line 1962 of chunk lua/ge/extensions/dynamicWeatherMK/weather.lua)
    (6) Lua function 'update' at file '/lua/ge/main.lua:594' (best guess)
      dtReal = number: 0.0188184
      dtSim = number: 0.0195
      dtRaw = number: 0.016722
    --------------- << END << 
     
  3. Wariano

    Wariano
    Expand Collapse

    Joined:
    Aug 9, 2024
    Messages:
    69
    I found a bug where you cant open the ui menu with ctrl + alt + W
     
  4. SupraTech

    SupraTech
    Expand Collapse

    Joined:
    Jan 6, 2025
    Messages:
    589
  5. Wariano

    Wariano
    Expand Collapse

    Joined:
    Aug 9, 2024
    Messages:
    69
    No its the same keybinds but it just wont pop up
     
  6. SupraTech

    SupraTech
    Expand Collapse

    Joined:
    Jan 6, 2025
    Messages:
    589
    Ok
    --- Post updated ---
    Have you tirned on the system before attmepting to Toggle the ui
     
  7. MegaKnight

    MegaKnight
    Expand Collapse

    Joined:
    Sep 12, 2024
    Messages:
    245
    Did you activate the mod using Ctrl + W first (the keybind may not work if it's already used for some other functionality)? If you did, could you provide more context? What exactly where you doing?
     
  8. Wariano

    Wariano
    Expand Collapse

    Joined:
    Aug 9, 2024
    Messages:
    69
    Yeah i did. Maybe it was the map that it couldnt do it cuz once i tried going to a different map it was working.
    I tried it on a modded map to see if it had support and it did but the menu wouldnt open.
     
  9. trollboi

    trollboi
    Expand Collapse

    Joined:
    Mar 23, 2025
    Messages:
    52
    is it possible to make roane county supportable for dynamic weather or. is there something that makes maps unsupportable
     
  10. MegaKnight

    MegaKnight
    Expand Collapse

    Joined:
    Sep 12, 2024
    Messages:
    245
    I think I tried this mod on Roane County and it worked for me. I don't what's wrong on your end.
    You could try the following:



    Currently working on an update :)

    screenshot_2025-09-02_17-19-23.png devimg_ui.png
     
  11. trollboi

    trollboi
    Expand Collapse

    Joined:
    Mar 23, 2025
    Messages:
    52
    ok thank you so much ill go and try it
    --- Post updated ---
    ok so i was trying it out and after saving this happned, and im guessing that its because of ether the terrain block or scatter sky. or something idk


    btw i dont exactly know all about world editer so i may did something worng so i may need help
     

    Attached Files:

    • 284160_361.jpg
    #151 trollboi, Sep 3, 2025
    Last edited: Sep 3, 2025
  12. MegaKnight

    MegaKnight
    Expand Collapse

    Joined:
    Sep 12, 2024
    Messages:
    245
    It's probably because of the terrain block. If you want to revert your changes, you can remove the /levels/SouthernHighway folder in your user folder.

    Weirdly enough, it works on my end. Maybe I've made some changes to the loading process on my WIP version that I forgot or it's something on your end, I don't know. Make sure to use the latest version of both mods, maybe wait for the update of the weather mod. It definitely should work after that.

    screenshot_2025-09-03_07-26-54.png
     
  13. MegaKnight

    MegaKnight
    Expand Collapse

    Joined:
    Sep 12, 2024
    Messages:
    245
    Hopefully approved tomorrow :)

    update__1_1.png
     
  14. trollboi

    trollboi
    Expand Collapse

    Joined:
    Mar 23, 2025
    Messages:
    52
    ok i will try it out


    ok so i wanted your opinion on this, i downloaded both mods from the ingame mod thing, (the mods where yours and the maps) but now ima try to get them as zip files and remove the repo ones and see if that does something bc i heard that if you get a mod from the repo its not the same then a zip file
    --- Post updated ---
    ok so uhhhhhhhhhhh yea. zip files did nothing sadly. oh yea i forgot to say this but i tried this on safe mode and the same thing happened soooo it cant be my mods or anything

    but i did have an idea, is it possible if you can send me the save file or whatever from your roane county?
     

    Attached Files:

    • 284160_366.jpg
  15. MegaKnight

    MegaKnight
    Expand Collapse

    Joined:
    Sep 12, 2024
    Messages:
    245
    No, the file is too large and I didn't make any changes to the map anyway.
     
  16. trollboi

    trollboi
    Expand Collapse

    Joined:
    Mar 23, 2025
    Messages:
    52
    deleted
     
  17. MegaKnight

    MegaKnight
    Expand Collapse

    Joined:
    Sep 12, 2024
    Messages:
    245
    I just checked the current repo version of my mod (1.0.2). The updated version (1.1) will support Roane County, as it adds support for maps that don't have clouds. So you would have to add a CloudLayer object to make the map supported as of now.
    For some reason I thought the current version already supports maps without clouds. Sorry
     
  18. trollboi

    trollboi
    Expand Collapse

    Joined:
    Mar 23, 2025
    Messages:
    52
    do i try it now or tomorrow because you said earlier the update is for tomorrow or maybe im dumb
     
  19. MegaKnight

    MegaKnight
    Expand Collapse

    Joined:
    Sep 12, 2024
    Messages:
    245
    I don't know if the update is approved tomorrow. I uploaded it to the repo today, but it could take longer. For now, you would have to edit the map if you want to use the weather mod on it.
     
  20. trollboi

    trollboi
    Expand Collapse

    Joined:
    Mar 23, 2025
    Messages:
    52
    you saved me sir. thank you. have a good day.


    i will stop bombastically bombarding you. lmao
    --- Post updated ---
    but there is one more thing. what about the ai not using their lights at night? :) (this is a real thing people have been talking about)
     

    Attached Files:

    • 284160_367.jpg
  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