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

Overhaul
12 days ago
2.0
465
Environment Fluids Power

g Game crash on placing tiles

15 days ago

I found a bug. The game crashes once I set tiles somewhere.

By hand:
Error while running event water-is-not-infinite::on_player_built_tile (ID 53)
water-is-not-infinite/big-water.lua:39: bad argument #1 of 2 to 'ipairs' (table expected, got nil)
stack traceback:
[C]: in function 'ipairs'
water-is-not-infinite/big-water.lua:39: in function 'on_build_landfill'
water-is-not-infinite/control.lua:218: in function <water-is-not-infinite/control.lua:207>

By bot:
Error while running event water-is-not-infinite::on_robot_built_tile (ID 55)
water-is-not-infinite/big-water.lua:39: bad argument #1 of 2 to 'ipairs' (table expected, got nil)
stack traceback:
[C]: in function 'ipairs'
water-is-not-infinite/big-water.lua:39: in function 'on_build_landfill'
water-is-not-infinite/control.lua:218: in function <water-is-not-infinite/control.lua:207>

12 days ago
(updated 12 days ago)

Thanks for letting me know. It's a stupid bug - I've fixed it now

New response