Page 1 of 1
I don't know how to disable this command
Posted: Wed Feb 08, 2017 12:00 am
by Eurodos
Hello, recently i used this command to kill every enemies:
/c local surface = game.player.surface
for c in surface.get_chunks() do
for key, entity in pairs(surface.find_entities_filtered({area={{c.x * 32, c.y * 32}, {c.x * 32 + 32, c.y * 32 + 32}}, force= "enemy"})) do
entity.destroy()
end
end
but now i want to disable this command and restore enemies back
Greetings, Eurodos
Re: I don't know how to disable this command
Posted: Wed Feb 08, 2017 8:05 am
by RoddyVR
explore more map,
that will create new chunks
keep eploring till you find some bitter nests.
go back to you base,
leave game running for a few hours (or increase speed if your base isnt huge and comp can handle it)
the bitters will spread out and repopulate the earth
Re: I don't know how to disable this command
Posted: Wed Feb 08, 2017 5:38 pm
by Eurodos
This is describe of my command:
"This will kill all biters, bases and worms. Anything that is an enemy will be completely destroyed. This only affects enemies in the explored world, so any unexplored parts of the map which still need to be generated will still have enemies."
I can see enemies in the map but when i am going close to enemies they disappear
Re: I don't know how to disable this command
Posted: Wed Feb 08, 2017 5:46 pm
by Adil
You see where enemies were, they all were destroyed when you've entered this command. New enemies will only start appearing after you reach the edge of generated map.
The "command" you refer to is actually a sequence of instructions, there is no single undo statement for that.
Re: I don't know how to disable this command
Posted: Wed Feb 08, 2017 6:52 pm
by Eurodos
wow, you had right
Thanks!!!
Re: I don't know how to disable this command
Posted: Wed Feb 08, 2017 8:20 pm
by darkfrei
Respawn enemies:
Code: Select all
/c local surface = game.player.surface
for c in surface.get_chunks() do
local position = surface.find_non_colliding_position("biter-spawner", {x=c.x*32+16, y=c.y*32+16}, 10, 3)
if position and surface.is_chunk_generated(c) then
surface.create_entity{name="biter-spawner", position=position}
end
end
Re: I don't know how to disable this command
Posted: Tue Feb 14, 2017 1:06 pm
by RoddyVR
I'm not sure i'm reading that right, but will it generate spawners in every possible spot (ie packed tight like no tomorow) or something sparce like 1/chunk or something&
a command that'll max populate the map would be interesting for testing "impenetrable wall" claims.
Re: I don't know how to disable this command
Posted: Tue Feb 14, 2017 2:12 pm
by Klonan
RoddyVR wrote:I'm not sure i'm reading that right, but will it generate spawners in every possible spot (ie packed tight like no tomorow) or something sparce like 1/chunk or something&
a command that'll max populate the map would be interesting for testing "impenetrable wall" claims.
Looks like it will just place 1 per chunk on every chunk in the game
Re: I don't know how to disable this command
Posted: Tue Feb 14, 2017 2:47 pm
by mrvn
Klonan wrote:RoddyVR wrote:I'm not sure i'm reading that right, but will it generate spawners in every possible spot (ie packed tight like no tomorow) or something sparce like 1/chunk or something&
a command that'll max populate the map would be interesting for testing "impenetrable wall" claims.
Looks like it will just place 1 per chunk on every chunk in the game
Doesn't that put biter spawners inside your base?
Re: I don't know how to disable this command
Posted: Tue Feb 14, 2017 8:13 pm
by darkfrei
mrvn wrote:Doesn't that put biter spawners inside your base?
Only if you have enough place for it.