Author Topic: Brick Connector/Optimiser Tool  (Read 2254 times)

I don't think this exists yet, or I haven't found one.
A tool which when fired at bricks the same color, connects them together, lowering the brickcount, a bit like how trench wars does it, but as a tool.

Example Video of what I mean here
Possible Features
RTB prefs for a radius for the tool to affect would be nice, or a maximum amount of bricks connected.
RTB prefs for player, admin, or super-admin use.

thanks in advance if anyone decides to do this.

Certainly possible. Don't know how complicated it is to implement though

I've been working on this..
I can give you something that only 1/2 works if you're okay

drendran made some kind of script or tool that did this, but i think it worked on entire saves

I've been working on this..
I can give you something that only 1/2 works if you're okay
wait what you're working on some actually fancy and useful add-on
stop writing cliffs of useless code and finish it!!

wait what you're working on some actually fancy and useful add-on
stop writing cliffs of useless code and finish it!!
I've been trying to do this in so many different ways it's not even funny..

It's a lot harder than you think

I've been working on this..
I can give you something that only 1/2 works if you're okay
If you could finish it and release it when it's stable, it would be amazing.

If you could finish it and release it when it's stable, it would be amazing.
It will never be entirely stable

It's a lot harder than you think
I'd say

step 1: find all nearby bricks of same color
step 2: use math to find way to fill it with least possible bricks
step 3: plant bricks

But I have no idea how to do step 2 with code

I'd say

step 1: find all nearby bricks of same color
step 2: use math to find way to fill it with least possible bricks
step 3: plant bricks

But I have no idea how to do step 2 with code
Check similar axis
Check scale
Check rotation and xy flipped scale
Check position

There's been several of these made. I'll post here if I find any of them.


this is a prime example of a computationally hard problem

at least, i think it is. judging by the fact that port and marble man are both stumped, anyway.


drendran made some kind of script or tool that did this, but i think it worked on entire saves
It was red_guy, and his script worked pretty well, but not perfectly