remove\destroy surface
Posted: Sun Mar 03, 2019 1:44 am
Hi, i didn't find any information about how to remove\delete\destroy surfaces created by any mods (etc Factorissimo2)? We deleted this mod but surfaces are still exist with items.
Code: Select all
/c game.player.print(game.player.surface.name)
https://lua-api.factorio.com/latest/Lua ... face.clearClears this surface deleting all entities and chunks on it.Code: Select all
surface.clear()
Note: This won't clear the surface immediately. It will be cleared at the end of the current tick.
Code: Select all
/c game.delete_surface("surface_name")