Sync Pipes
v0.9.32
4 years ago
works with
RIP SyncPipes...
As you may, or may not have seen, february's update will be bringing pipes to vanilla Rust. This makes this plugin redundant. With that I will no longer be updating this plugin. Thank you to everyone who has downloaded, given feedback and helped me with developing this plugin.
Joe 90
Before I go into detail on what this plugin can do I'd like to say a big thank you to TheGreatJ who made the amazing jPipes plugin, which this is based on.
It has been re-written to make the pipes work synchronously with all pipes connected to the same container. This allows for advanced sorting and filtering of items into your containers, shops, furnaces, etc.
What can it do?
syncPipes allows you to connect multiple containers together to automatically:
- Move items between container
- Filter items to allow you to sort what goes where
- Splitting stacks evenly between multiple containers
- Send raw materials into furnaces or refineries for processing
- Supplying fuel Mining Quarries and Pump Jacks and collecting the output
- Auto-filling your shops with the correct items and collecting the payments
Getting Started
How does it work?
You can connect containers together to move items from one container to the other. Once created you can then change the settings of the pipe to do all sorts of things:
- Turn the pipe off to stop the transfer of items
- Set whether the items will fill the destination container or only take up 1 stack
- Add items to the filter to limit what the pipe can transfer
- Automatically start a Furnace, BBQ, Pump Jack, Quarry, Oil refinery or Recycler when the correct items are moved to it.
- Split the items evenly into multiple stacks in an oven using the Furnace Splitter mod.
- Reverse the pipe to send items back the other way
How do I create a pipe?
Creating a pipe is very simple all you need to do is type /p into chat. You then need to use a wooden hammer to hit two containers and this will create the pipe. The first container you hit will start to transfer items to the second container.
How can I change the pipe's settings?
Each pipe has a menu that you can open by hitting it with a wooden hammer.
For a pipe that just goes between normal containers (eg. furnaces, oil refineries, etc.), you will get the following menu:
The top bar (in green) shows the source and destination containers with items moving from left to right. The number of '>' between them shows the rate of items moving through the pipe.
- Status: This shows you if your pipe is running or not. You can start or stop the pipe by clicking the corresponding button to the right
- Stack Mode: This shows whether the pipe will fill the destination container or just make a single stack of items in it
- Pipe Priority: This shows the priority that the items will use this pipe.
- Swap Direction: If you click this it will reverse the direction of the pipe and start to move items the other way.
- Open Filter: If you click this it will open a filter container that allows you to set what the pipe can transport.
How can I filter items?
If you click 'Open Filter' from the pipe menu it will open the filter as a loot container in your inventory. You can then simply drag items into it to set this as something the pipe can allow through.
Server Setup
Configuration file
General Settings
{
"filterSizes": [
0,
6,
18,
30,
42
],
"flowRates": [
1,
5,
10,
30,
50
],
"maxPipeDist": 64.0,
"minPipeDist": 2.0,
"noDecay": true,
"commandPrefix": "p",
"hotKey": "p",
"updateRate": 2,
"xmasLights": false
}
Permissions
This plugin uses the permission system. To assign a permission, use oxide.grant <user or group> <name or steam id> <permission>. To remove a permission, use oxide.revoke <user or group> <name or steam id> <permission>.
Sample Config File
{
"filterSizes": [
0,
6,
18,
30,
42
],
"flowRates": [
1,
5,
10,
30,
50
],
"maxPipeDist": 64.0,
"minPipeDist": 2.0,
"noDecay": true,
"commandPrefix": "p",
"hotKey": "p",
"updateRate": 2,
"xmasLights": false,
"salvageDestroy": true,
"permLevels": {
"sticks": {
"upgradeLimit": 0,
"pipeLimit": 15
},
"wood": {
"upgradeLimit": 1,
"pipeLimit": 25
},
"stone": {
"upgradeLimit": 2,
"pipeLimit": 35
},
"metal": {
"upgradeLimit": 3,
"pipeLimit": 45
},
"hqm": {
"upgradeLimit": -1,
"pipeLimit": -1
}
}
}
Known issues
None
Future development
Sometimes it can be difficult to hit a pipe at the right angle to get the menu to open. To try and address this, I'm hoping to increase the functionality of the containers and add a menu to the containers showing all the pipes coming into and going out of that container.