Background: In non-Space-Age 2.0.72, using water-is-not-infinite_0.11.0, I have built a network of offshore pumps across a large body of water, to supply a large factory. Many of those offshore pumps I have been placing in remote view, using ctrl-shift-click to automatically place landfill underneath first. I also place pipes, pipe-to-ground, roboports, and power lines with ctrl-shift-click to hook it up to the large water network in the lake, and to let the robots reach to build it.
Problem: sometimes the mod seems to be mistaken about the position of my character when checking for flooding.
- One time I got (as best I can remember) an alert about the offshore pump being destroyed, I went to look at the alterted location, and my character was physically teleported to near/at the location it happened. The character was on land a long way from the water before that.
- Another couple of times, I got the console message "wasted, flooded", and my character suddenly died despite being hundreds of meters away in a desert. (And the resulting corpse was at that position in the desert as I expected, not in the water.) I think I was looking at something in remote view at the time, and my remote view might have been centered on water.
I don't know how to reproduce these events other than I keep playing and very rarely they will happen.
I have a load of other mods installed but none look like they would be related to this problem.
My speculation on the cause, from looking at the code, is there may be a difference between the position of player and position of player.character, when in remote view. (But I don't know the API; maybe they are the same after all.) If they are different, then prevent_player_flooding might then mix up the remote view position and the character position, causing the "wasted, flooded", or the teleportation I once observed.