1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.36 Bug Reporting thread
    Solutions and more information may already be available.

World Editor: Save/autosave breaks

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by stuffi3000, Jun 24, 2025 at 9:44 PM.

  1. stuffi3000

    stuffi3000
    Expand Collapse

    Joined:
    Feb 6, 2022
    Messages:
    47
    Dear BeamNG team,

    Since a few updates ago I am getting a very strange error after a while when editing my custom BeamNG map:
    1020.18278|E|GameEngineLua:Exception| lua/common/utils.lua:1053: attempt to concatenate local 'levelName' (a nil value)
    =============== Stack Traceback >> START >>
    (1) metamethod C function '__concat'
    (2) Lua field 'getPathLevelMain' at file 'lua/common/utils.lua:1053'
    levelName = nil
    (*temporary) = C function: 0x01cdd0301b40
    (*temporary) = string[15]: "main.level.json"
    (*temporary) = string[8]: "/levels/"
    (*temporary) = nil
    (*temporary) = string[16]: "/main.level.json"
    (*temporary) = string[54]: "attempt to concatenate local 'levelName' (a nil value)"
    (3) Lua upvalue 'saveLevelAs' at line 146 of chunk 'lua/ge/extensions/editor/api/core.lua'
    levelPath = string[38]: "/settings/editor/autosaves/ebr_sv/0005"
    levelName = nil
    (*temporary) = C function: 0x01cdd0301998
    (*temporary) = string[38]: "/settings/editor/autosaves/ebr_sv/0005"
    (4) Lua field 'autoSaveLevel' at line 167 of chunk 'lua/ge/extensions/editor/api/core.lua'
    oldLevelPath = string[15]: "/levels/ebr_sv/"
    folderName = string[4]: "0005"
    oldDirty = boolean: true
    counter = number: 5
    path = string[38]: "/settings/editor/autosaves/ebr_sv/0005"
    (5) Lua local 'func' at line 121 of chunk 'lua/ge/extensions/editor/autoSave.lua'
    dtReal = number: 0.00713092
    dtSim = number: 0.007
    dtRaw = number: 0.0077825
    (6) Lua field 'hook' at line 820 of chunk 'lua/common/extensions.lua'
    funcName = string[11]: "onEditorGui"
    funcList = table: 0x01cf3b620c00 {1:function: 0x01cdb290dc00, 2:function: 0x01cd990dd5a8, 3:function: 0x01cdd0d5ce00, 4:function: 0x01cf59361fa8, 5:function: 0x01cdb2f02c30, 6:function: 0x01cf38d837a0, 7:function: 0x01ce07fb4810, 8:function: 0x01cf614a70d8, 9:function: 0x01cdc0abaf50, 10:function: 0x01cdb40bd4d8, 11:function: 0x01cf4a111a50, 12:function: 0x01ceb6a36328, 13:function: 0x01cf4a319ee8, 14:function: 0x01cd9a5d5ac8, 15:function: 0x01ce940d5290, 16:function: 0x01cf3b695180, 17:function: 0x01cf59cb9b98, 18:function: 0x01cdb3eca670, 19:function: 0x01ce9cfca4d8, 20:function: 0x01cf59883498, 21:function: 0x01ce8ef35948, 22:function: 0x01cf49f578f8, 23:function: 0x01cdb3fddbb8, 24:function: 0x01cdb2e17440, 25:function: 0x01cdb9386540 (more...)}
    (for generator) = C function: builtin#6
    (for state) = table: 0x01cf3b620c00 {1:function: 0x01cdb290dc00, 2:function: 0x01cd990dd5a8, 3:function: 0x01cdd0d5ce00, 4:function: 0x01cf59361fa8, 5:function: 0x01cdb2f02c30, 6:function: 0x01cf38d837a0, 7:function: 0x01ce07fb4810, 8:function: 0x01cf614a70d8, 9:function: 0x01cdc0abaf50, 10:function: 0x01cdb40bd4d8, 11:function: 0x01cf4a111a50, 12:function: 0x01ceb6a36328, 13:function: 0x01cf4a319ee8, 14:function: 0x01cd9a5d5ac8, 15:function: 0x01ce940d5290, 16:function: 0x01cf3b695180, 17:function: 0x01cf59cb9b98, 18:function: 0x01cdb3eca670, 19:function: 0x01ce9cfca4d8, 20:function: 0x01cf59883498, 21:function: 0x01ce8ef35948, 22:function: 0x01cf49f578f8, 23:function: 0x01cdb3fddbb8, 24:function: 0x01cdb2e17440, 25:function: 0x01cdb9386540 (more...)}
    (for control) = number: 69
    _ = number: 69
    func = Lua function '?' (defined at line 109 of chunk lua/ge/extensions/editor/autoSave.lua)
    (7) Lua field 'presentGui' at line 448 of chunk 'lua/ge/extensions/editor/api/gui.lua'
    dtReal = number: 0.00713092
    dtSim = number: 0.007
    dtRaw = number: 0.0077825
    io = cdata: (...)
    (8) Lua local 'func' at line 32 of chunk 'lua/ge/extensions/editor/mainUpdate.lua'
    dtReal = number: 0.00713092
    dtSim = number: 0.007
    dtRaw = number: 0.0077825
    (9) Lua field 'hook' at line 820 of chunk 'lua/common/extensions.lua'
    funcName = string[8]: "onUpdate"
    funcList = table: 0x01cf4a2e22b0 {1:function: 0x01ceaf139460, 2:function: 0x01cdd076f550, 3:function: 0x01cd8725aec0, 4:function: 0x01cdd05ab220, 5:function: 0x01cdd07303e8, 6:function: 0x01cdd0a87610, 7:function: 0x01cdd06133e8, 8:function: 0x01cdd048ab10, 9:function: 0x01cdd0559dd8, 10:function: 0x01cd9a35c4c0, 11:function: 0x01cd9a26be60, 12:function: 0x01cd87260f88, 13:function: 0x01cdd05c2be8, 14:function: 0x01cdd0894650, 15:function: 0x01cdd07c92f8, 16:function: 0x01cdb2cf3330, 17:function: 0x01ce86333860, 18:function: 0x01cdd05acdf8, 19:function: 0x01cdb2a3fc10, 20:function: 0x01ce97724e88, 21:function: 0x01cdb39ea128, 22:function: 0x01cd9a27c2b8, 23:function: 0x01cdd0484478, 24:function: 0x01cdd0499b98, 25:function: 0x01cd87264940 (more...)}
    (for generator) = C function: builtin#6
    (for state) = table: 0x01cf4a2e22b0 {1:function: 0x01ceaf139460, 2:function: 0x01cdd076f550, 3:function: 0x01cd8725aec0, 4:function: 0x01cdd05ab220, 5:function: 0x01cdd07303e8, 6:function: 0x01cdd0a87610, 7:function: 0x01cdd06133e8, 8:function: 0x01cdd048ab10, 9:function: 0x01cdd0559dd8, 10:function: 0x01cd9a35c4c0, 11:function: 0x01cd9a26be60, 12:function: 0x01cd87260f88, 13:function: 0x01cdd05c2be8, 14:function: 0x01cdd0894650, 15:function: 0x01cdd07c92f8, 16:function: 0x01cdb2cf3330, 17:function: 0x01ce86333860, 18:function: 0x01cdd05acdf8, 19:function: 0x01cdb2a3fc10, 20:function: 0x01ce97724e88, 21:function: 0x01cdb39ea128, 22:function: 0x01cd9a27c2b8, 23:function: 0x01cdd0484478, 24:function: 0x01cdd0499b98, 25:function: 0x01cd87264940 (more...)}
    (for control) = number: 20
    _ = number: 20
    func = Lua function '?' (defined at line 23 of chunk lua/ge/extensions/editor/mainUpdate.lua)
    (10) Lua function 'update' at file '/lua/ge/main.lua:594' (best guess)
    dtReal = number: 0.00713092
    dtSim = number: 0.007
    dtRaw = number: 0.0077825
    --------------- << END <<

    As soon as this error appears with the first autosave, the asset browser disappears and the log becomes filled to the brink with this same error over and over and over again.

    I have previously made a forum post about it, which also CONTAINS A CODE SOLUTION: https://www.beamng.com/threads/world-editor-level-cant-be-saved-after-a-few-minutes.100508/
    HOWEVER, with every update my solution becomes reverted and the issue is present again. I would prefer if someone from the dev team could take a look at this issue, why it is happening and potentially implement my fix into the official game code.

    I am available for troubleshooting through the official Discord server.
     
  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