[1.1.74] Crash custom scenario on create surface

This subforum contains all the issues which we already resolved.
root
Burner Inserter
Burner Inserter
Posts: 17
Joined: Fri May 06, 2016 8:58 pm
Contact:

[1.1.74] Crash custom scenario on create surface

Post 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)
Attachments
factorio-current.log
(9.39 KiB) Downloaded 92 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 14711
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [1.1.74] Crash custom scenario on create surface

Post by Rseding91 »

Thanks for the report. It's now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”