remove\destroy surface
-
- Burner Inserter
- Posts: 12
- Joined: Wed Mar 09, 2016 6:27 pm
- Contact:
remove\destroy surface
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.
Last edited by A.creature on Fri Mar 08, 2019 11:33 am, edited 3 times in total.
-
- Burner Inserter
- Posts: 12
- Joined: Wed Mar 09, 2016 6:27 pm
- Contact:
Re: remove\destroy surface
at this moment i found command how get a name of current surface
Code: Select all
/c game.player.print(game.player.surface.name)
-
- Burner Inserter
- Posts: 12
- Joined: Wed Mar 09, 2016 6:27 pm
- Contact:
Re: remove\destroy surface
Moved to modding help.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: remove\destroy surface
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.
-
- Burner Inserter
- Posts: 5
- Joined: Fri Jan 24, 2020 9:57 pm
- Contact:
Re: remove\destroy surface
For future reference, the command would actually be
Code: Select all
/c game.delete_surface("surface_name")