Enemies colonies bigger with greater distance to x=0,y=0

Place to post guides, observations, things related to modding that are not mods themselves.
Post Reply
Arg-Arthur_MP
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Nov 17, 2016 4:29 am
Contact:

Enemies colonies bigger with greater distance to x=0,y=0

Post by Arg-Arthur_MP »

Hi,

Now, if you spawn a player far away from x=0, y=0, he will be surrounded by really big native's colonies. How could i change that? I need all player to face same challenge not matter where they spawn.

Thank you!

Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: Enemies colonies bigger with greater distance to x=0,y=0

Post by Nexela »

You can clear the enemies from around the spawn location, but the second problem the ores further away from 0, 0 are gonna be bigger

Here is how you could clear the enemies from around the new spawn *command line example*

/c local rad = 200; local spawn = {x=1000, y=1000}; local area = {{spawn.x-rad, spawn.y-rad}, {spawn.x+rad, spawn.y+rad}}; for _, entity in pairs(game.player.surface.find_entities_filtered{area=area, force="enemy"}) do entity.destroy() end

Arg-Arthur_MP
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Nov 17, 2016 4:29 am
Contact:

Re: Enemies colonies bigger with greater distance to x=0,y=0

Post by Arg-Arthur_MP »

Nexela wrote:You can clear the enemies from around the spawn location, but the second problem the ores further away from 0, 0 are gonna be bigger

Here is how you could clear the enemies from around the new spawn *command line example*

/c local rad = 200; local spawn = {x=1000, y=1000}; local area = {{spawn.x-rad, spawn.y-rad}, {spawn.x+rad, spawn.y+rad}}; for _, entity in pairs(game.player.surface.find_entities_filtered{area=area, force="enemy"}) do entity.destroy() end
That could be a solution aproach!

Thank you, Nexela :)

Xeanoa
Fast Inserter
Fast Inserter
Posts: 190
Joined: Tue Apr 26, 2016 4:32 pm
Contact:

Re: Enemies colonies bigger with greater distance to x=0,y=0

Post by Xeanoa »

You could spawn all players an equal distance from (0,0). That would make the natives equally strong for everyone.

Post Reply

Return to “Modding discussion”