Multiplayer Respawn Death loop

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Erelaszun
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Mar 11, 2016 2:58 pm
Contact:

Multiplayer Respawn Death loop

Post by Erelaszun »

I set up a modded multiplayer server for some friends... and found out the hard way after a few hours of playing... if you die and go back to the default respawn... you are instantly killed by spitters.

I have searched and searched... and I have no idea how to do:

A: Move the spawn point
or
B: Protect the current spawn point

Any help would be great here.
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5404
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Multiplayer Respawn Death loop

Post by Klonan »

Erelaszun wrote:I set up a modded multiplayer server for some friends... and found out the hard way after a few hours of playing... if you die and go back to the default respawn... you are instantly killed by spitters.

I have searched and searched... and I have no idea how to do:

A: Move the spawn point
or
B: Protect the current spawn point

Any help would be great here.
A: Setting a spawn point:

Code: Select all

/c game.local_player.force.set_spawn_position({500,500}, game.local_player.surface)
b: Defending the spawn:

Code: Select all

/c 
for x = -4,4 do
for y = -4,4 do
game.local_player.surface.create_entity{name = "distractor", position = {x*3,y*3}, force = game.local_player.force}
end
end

Code: Select all

/c 
for x = -4,4 do
for y = -4,4 do
local turret = game.local_player.surface.create_entity{name = "gun-turret", position = {x*6+2,y*6+2}, force = game.local_player.force}
turret.insert{name = "piercing-bullet-magazine", count = 25}
end
end

Code: Select all

/c 
for x = -16,16 do
for y = -16,16 do
game.local_player.surface.create_entity{name = "land-mine", position = {x*4,y*4}, force = game.local_player.force}
end
end
Erelaszun
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Mar 11, 2016 2:58 pm
Contact:

Re: Multiplayer Respawn Death loop

Post by Erelaszun »

Thank you for the quick reply Klonan.
Post Reply

Return to “Technical Help”