Pipe Plus

by yokmp

Adds some additional underground pipe-stuff. Now with GUI.

Content
9 days ago
1.1 - 2.0
10.9K
Logistics Fluids

g Easier placing/mining and Space Exploration integration

a month ago

Hi, and thank you for this mod!

A couple of things that would make placing and mining these entities are:

Craft them by an pipe-to-ground, not the same raw ingredients as a regular pipe-to-ground (this can be done in pipe.lua)

  recipe.ingredients = {{type = "item", name = "pipe-to-ground", amount = 1}}
  recipe.results = {{type = "item", name = "pipe-to-ground", amount = 1}}

Set the placeable_by and mineable to be pipe-to-ground: (this can also be done in pipe.lua)

  entity.minable = {mining_time = 0.1, result = "pipe-to-ground"}
  entity.placeable_by = {{item = "pipe-to-ground", count = 1}}

These will make it much easier to copy-paste and place these.

About Space Exploration combatibility: I could make a copy of this mod and replace all the names with the space pipes from SE, but I thought it would be a good idea to keep it in one mod if possible.

It takes a few (small) different changes across a few files, and I can provide you a diff if you want.

11 days ago

Set the placeable_by and mineable to be pipe-to-ground: (this can also be done in pipe.lua)
entity.minable = {mining_time = 0.1, result = "pipe-to-ground"} entity.placeable_by = {{item = "pipe-to-ground", count = 1}}

These will make it much easier to copy-paste and place these.

If i do this and mine one of the mod pipes it will give me a vailla one back and i have to craft a new modded one again. Isn't it easier to just keep the modded pipe to reuse it easier? I will add an option to switch the behaviour.

About Space Exploration combatibility: I could make a copy of this mod and replace all the names with the space pipes from SE, but I thought it would be a good idea to keep it in one mod if possible.

It takes a few (small) different changes across a few files, and I can provide you a diff if you want.

I can implement your changes if you send me a diff. There are several things i want to change/update but i just lack the time, so a diff would rly help.

11 days ago

If i do this and mine one of the mod pipes it will give me a vailla one back and i have to craft a new modded one again. Isn't it easier to just keep the modded pipe to reuse it easier? I will add an option to switch the behaviour.

Because of entity.placeable_by you don't have to craft the modded one again, because you can use a normal underground pipe.
This way, you never have to craft the mod's ones.

For the full changes, including the SE compatibility, see this diff https://github.com/costas-basdekis/pipe_plus/commit/89997d284cbcff5b121409bdce27fc5983408ba7

Thank you!

11 days ago

If this allows copying/pasting the, uh, 'twisted' pipe-to-ground pipes, then I second this change. I was actually coming here to petition the addition of somehow allowing the multi-directional pipe-to-ground pipes to be blueprinted.

If not... well, there's my petition. Please somehow allow the pipe-to-ground pipes that are nonlinear (i.e. come out one direction but go a different direction) to be blueprinted.

I recognize that you're busy, but I thought I would ask.

11 days ago

I can not test anything relatet to space-exploration because i just don't want to build a ship and whatnot ^^. I will upload a new version tomorrow with your changes included and look for a fitting SE save

10 days ago
(updated 10 days ago)

allowing the multi-directional pipe-to-ground pipes to be blueprinted.

These changes do indeed allow that.

look for a fitting SE save

I can send you an SE save if you want to (although it has a lot of mods, which you don't have to enable if you just want to check the pipes).
Let me know how.

Thank you for updating!

New response