WaterExtractor


Adds a Water Well that extracts water from the underground

Content
15 hours ago
2.0 - 2.1
7.00K
Mining Fluids

g 2.1 update?

15 days ago

It seems 2.1 decided to make life difficult in that is has removed the helper assembler2pipepictures(), further there are new(? to me at least!) files __base__/graphics/entity/assembling-machine-2/assembling-machine-2-pipe-N.lua for example that now contain the width/height/shift/line_length.

... I sidestepped the issue by blatant copy/paste for now, but it'd probably be a better longer term solution if instead imported/loaded from those files. DIFFPATCH of what I did to get it working-hacky-ish below for reference.

diff -x info.json -r ./ext-orig/WaterExtractor/WaterExtractor_1.0.2/prototypes/entities.lua ./ext-upd/WaterExtractor/WaterExtractor_1.0.2/prototypes/entities.lua
17a18,59
> function assembler2pipepictures()
>   return
>   {
>     north =
>     {
>       filename = "__base__/graphics/entity/assembling-machine-2/assembling-machine-2-pipe-N.png",
>       priority = "extra-high",
>       width = 52,
>       height = 20,
>       shift = util.by_pixel( 0.5, 11.0),
>       scale = 0.5
>     },
>     east =
>     {
>       filename = "__base__/graphics/entity/assembling-machine-2/assembling-machine-2-pipe-E.png",
>       priority = "extra-high",
>       width = 32,
>       height = 72,
>       shift = util.by_pixel( -23.0, 1.5),
>       scale = 0.5
>     },
>     south =
>     {
>       filename = "__base__/graphics/entity/assembling-machine-2/assembling-machine-2-pipe-S.png",
>       priority = "extra-high",
>       width = 64,
>       height = 70,
>       shift = util.by_pixel( 0.0, -24.0),
>       scale = 0.5
>     },
>     west =
>     {
>       filename = "__base__/graphics/entity/assembling-machine-2/assembling-machine-2-pipe-W.png",
>       priority = "extra-high",
>       width = 30,
>       height = 74,
>       shift = util.by_pixel( 23.0, 0.5),
>       scale = 0.5
>     }
>   }
> end
> 
125c167
< })
\ No newline at end of file
---
> })
diff -x info.json -r ./ext-orig/WaterExtractor/WaterExtractor_1.0.2/prototypes/recipes.lua ./ext-upd/WaterExtractor/WaterExtractor_1.0.2/prototypes/recipes.lua
44c44
<             category = "water-well-production",
---
>             categories = {"water-well-production"},
57c57
<  
\ No newline at end of file
---
>  
15 hours ago

Isn't 2.1 an experimental release?

New response