Allow deleting chunk instantly for migration scripts

Things that we aren't going to implement
Post Reply
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2916
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Allow deleting chunk instantly for migration scripts

Post by Optera »

Problem:
Migration scripts updating existing surface(s) to new biomes, e.g. when adding alien biomes mid game or updating to a new map generator, take a lot of memory when generating temporary surfaces as deleting chunks will only happen after they complete.

Suggestion:
Add a method similar to force_generate_chunk_requests() for chunk deletion to forcefully purge chunks within the same tick.
This method could be limited to work only within migration scripts if it'd cause issues in control phase.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13202
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Allow deleting chunk instantly for migration scripts

Post by Rseding91 »

Sorry but this isn't going to happen. Nothing in the game logic assumes chunks can be invalidated during a tick so literally every place that touches them would have to be guarded against the possibility that one disappears during any Lua call and that's just not going to happen.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Won't implement”