[Rseding] 0.17.74 - LuaSurface.set_tiles kills the player for no good reason

We are aware of them, but do not have solutions that don't cause other issues. They go here in order not to take space in the main bug thread list.
PyroFire
Filter Inserter
Filter Inserter
Posts: 356
Joined: Tue Mar 08, 2016 8:18 am
Contact:

[Rseding] 0.17.74 - LuaSurface.set_tiles kills the player for no good reason

Post by PyroFire »

Image

/c local f=game.player.surface local p=game.player.position f.set_tiles{ {name="out-of-map",position={p.x,p.y+1}} }

Image

Why does this kill the player?
You can clearly see i'm standing in a valid position.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15896
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Rseding] 0.17.74 - LuaSurface.set_tiles kills the player for no good reason

Post by Rseding91 »

If you turn on show-collision-rectangles and show-tile-grid you'll see that you're actually standing on the out-of-map tiles. So, when you call set_tiles the player collides with the out-of-map tiles and he gets killed as part of "remove entities that collide with the set tile".

I don't have a nice solution to this because player collision is different than everything else in that: the player can walk partially on tiles it collides with.
Attachments
Capture.PNG
Capture.PNG (50.86 KiB) Viewed 1364 times
If you want to get ahold of me I'm almost always on Discord.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15896
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Rseding] 0.17.74 - LuaSurface.set_tiles kills the player for no good reason

Post by Rseding91 »

I'll let Posila know- I think he was the one who worked on the player walking logic so he might have some idea about if it's possible to address this.
If you want to get ahold of me I'm almost always on Discord.
mrvn
Smart Inserter
Smart Inserter
Posts: 5969
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: [Rseding] 0.17.74 - LuaSurface.set_tiles kills the player for no good reason

Post by mrvn »

This also happens with waterfill mods. When you waterfill "below" the player you drown.
Post Reply

Return to “Minor issues”