Page 1 of 1

[1.1.74] Crash custom scenario on create surface

Posted: Mon Dec 12, 2022 5:25 am
by root
I want to generate a new surface only after the chunks of the Nauvis surface are removed so that the generator is not busy and generates them right away.
But I came across this bug in which the game constantly crashes. I managed to make the minimum necessary scenario that allows you to repeat the crash.
control.lua:

Code: Select all

script.on_init(function(event)
    log('on_init')

    game.create_surface("s1")

    -- Delete Nauvis
    local surface = game.surfaces[1]
    surface.delete_chunk({1, 1})
end)

script.on_event(defines.events.on_chunk_deleted, function(event)
    log('on_chunk_deleted')

    game.create_surface("s2")
end)

Re: [1.1.74] Crash custom scenario on create surface

Posted: Mon Dec 12, 2022 3:43 pm
by Rseding91
Thanks for the report. It's now fixed for the next release.