KeinNiemand / Factorio-GhostOnWater

Factorio mod to make it possible to paste blueprints on water in one go
https://mods.factorio.com/mod/GhostOnWater
MIT License
1 stars 8 forks source link

Automatically place watertiles under offshore pumps #41

Closed KeinNiemand closed 1 year ago

KeinNiemand commented 1 year ago

Would be usefull feature, but probably not easy to implement Things that would need to be done:

  1. Detect whter or not any type of water has an item that places it, to enable/disable this feature
  2. If enabled change waterGhost offshore pumps so that they can be placed on land and water, this is non trival due to offshore pump having 3 collision mask and 3 Collison tests (collision tests must be fulfilled while masks collide)
  3. Detect what part of the offshore pump needs to be on water based on collision masks/tests and place ghost water tiles there The big problem with this feature is that offshore pumps have so many different masks, the part that should be in water could be defined as either colliding with land or colliding as a collision test that it must be on water.