Rewire Tool v2


Selection tool that intelligently rearranges copper poles within the selected area, ensuring all connections are made at 90-degree angles for a cleaner appearance.

Utilities
7 months ago
2.0
359
Circuit network Power

i Create shortest connections only

4 months ago

When you use this on a bunch of powerpoles in a line, it will connect all of them, leaving a tangled mess of wires going over each other like this: https://prnt.sc/GiL91mSJvnlT

It would be way better if it would only connect the closest power poles like this: https://prnt.sc/tCYC-vH3s_JO

The implementation should not be that hard, just check if there is a power pole in the middle when making the connection. You could even have it as an optional user setting. I can try and take a go at it as well.

4 months ago

Ok I took a whack at it and this is what I came up with: https://pastebin.com/bxTqcmqf
Let me explain it's features:
- It will not connect two power poles if it detects a third one in the middle, as shown in the previous post.
- It now works with entity ghosts and ghost-to-not-glost connections as well.
- Improved performance, a square of 100x100 power poles (10 000 total) lags "only" for several seconds.
- Added a maximum check set at 10 000, anything larger will just give you a warning message in the console instead of lagging the game.

New response