It seems to work if the empty level is only one level under the one which is needed. I put a 15th Level in my Dungeon Master Remake to try out if it works for me, but it didn't.
I got following error code:
Code: Select all
[string "Party.lua"]:0: attempt to index a nil value
stack traceback:
[string "Party.lua"]: in function 'setPosition'
[string "Party.lua"]: in function 'update'
[string "Party.lua"]: in function 'update'
[string "Map.lua"]: in function 'updateEntities'
[string "Dungeon.lua"]: in function 'updateLevels'
[string "GameMode.lua"]: in function 'update'
[string "DungeonEditor.lua"]: in main chunk
[C]: in function 'xpcall'
[string "DungeonEditor.lua"]: in function 'preview'
[string "DungeonEditor.lua"]: in function 'update'
[string "Grimrock.lua"]: in main chunk
stack traceback:
[C]: in function 'error'
[string "DungeonEditor.lua"]: in function 'handleError'
[string "DungeonEditor.lua"]: in function 'preview'
[string "DungeonEditor.lua"]: in function 'update'
[string "Grimrock.lua"]: in main chunk
Your version works also with the newest update of the editor. But i won't have twice so much levels as needed.