NPT allows pipes to only connect to pipes of the same material, including underground pipes! Pipe weaving is now possible! Please report any bugs here or on github
Got a cool base that uses my mod? Let me know and I can pics up on the mod portal!
Should be compatible with most mods that adds unique pipes, if something breaks, let me know.
By default, NPT completely replaces the connection categories defined by other mods. If you wish to add compatibility on your own, you have a few options:
- Add the
prototype.npt_compat = {}
table to your prototype (pipe, pipe to ground, tank, crafting machine, etc) - Add
npt_compat.mod = "your-mod-name"
REQUIRED FOR SMOOTH COMPATABILITY - Add
npt_compat.ignore = true
if you don't want NPT to do anything to that entity - Add
npt_compat.tag = "custom-tag"
for NPT to make all entities with the same tag connect. For example,mod = "test-mod"
andtag = "foo"
means that any entities with thetest-mod
andfoo
tags will connect. This means that two different mods with the sametag
will not connect, so if you want them to connect,mod
andtag
must be the same. This is often easier and better than usingoverride
- Add
npt_compat.override = "custom-category"
to override what the connection_category is for all of the normal connections of that entity - Add
npt_compat.override_underground = "custom-category"
to override what the connection_category is for all of the underground connections of that entity
NPT also features special compat that it uses for fluidboxes that shouldn't be modified (plasma connections on fusion generators). It detects whether it has a fluidbox filter, then checks that against a blacklist. If you wish to prevent certain fluidboxes with filters from being modified, use the following:
- Add the
prototype.npt_compat = {}
table to the fluid in the fluidbox filter (i.e. the fluidfusion-plasma
has this table) - Add
npt_compat.blacklist = true
. You don't need to add anything to fluidbox filter fluids that should connect to NPT pipes.
If you wish to add compatibility with a mod, talk to me on here or discord so we can sort it out.
This is a complete rebuild of the 1.1 version using connection_category, a new feature in the 2.0 modding API. Old versions used scripting and a ton of filler entities. The old code won't be useful... at least here :)
The old version is a revamp of Incompatible Pipes by sticklord. It was rebuilt from the ground up for 1.1.
If you have a mod idea, let me know and I can look into it.