I get a crash when running the following command. Tried it on 2.0.14 and 2.0.15 - both crashed.
1. Start Factorio
2. Ctrl + left mouse button on "Single player"
3. Run the command that is below
4. Crash
Code: Select all
/c
local character = game.player.character
if not character or not character.valid then
return
end
local surface = character.surface
surface.set_multi_command(
{
command = {
type = defines.command.go_to_location,
destination_entity = character,
radius = 32,
distraction = defines.distraction.by_enemy
},
unit_count = 512,
force = 'enemy',
unit_search_distance = 32
}
)