Water is not infinite


Makes water a finite resource. Uses a depth map: each water tile has a depth based on its type. Pumps drain lakes; depleted tiles become land. Refill with outfall pipes. (Alpha)

Overhaul
16 hours ago
2.0
273
Environment Fluids Power

b Bug with the warp drive machine

18 days ago

This is the bug I got, most likely it is connected with the warp drive machine.

Error while running event water-is-not-infinite::on_tick (ID 0)
LuaEntity belongs to surface planet_51_player (index 10) but a LuaEntity belonging to surface nauvis (index 1) was expected.
stack traceback:
[C]: in function 'draw_text'
water-is-not-infinite/control.lua:837: in function 'pump_processing'
water-is-not-infinite/control.lua:1340: in function <water-is-not-infinite/control.lua:1331>

Here is the link to the save.
https://drive.google.com/drive/folders/1XSOiXbQGbhCxQRC3jVEHqTt1p_VyLZ5R?usp=drive_link

18 days ago

Thanks for the report!

This is expected for now: the mod hasn’t been tested with Space Age yet and currently assumes there is only one surface (Nauvis). The error happens because it tries to draw text on Nauvis while the entity is on another surface. I’m working on proper multi-surface support and will fix this in the next update or the one right after

New response