Author Topic: Build Optimizer service  (Read 3675 times)


Maybe it's because Bricks with events are ignored?

Hmm...
I tested this, and it works (somewhat)

The wall on the left is what i started with, the wall on the right is what i got. The "wall" on top is what i was hoping for:



Any way to fix this?

EDIT:
I tried breaking up the 2x12x5 wall to 1x1, and then optimize it. This is what I've got:


Brickcount-wise, this is better than the previous result. But why on earth doesn't it merge the six 2x2x5's to one 2x12x5?? (I've tried to optimize the optimized save, but no difference)

But that gave me an idea: Maybe you could first reduce all bricks to smaller bricks (preferably 1x1's) and then merge the resulting save. It looks like the brickcount will be reduced compared to the current method.
Yes, I know that would require much more processing, but it may be worth a try.
« Last Edit: April 27, 2011, 07:45:30 PM by King Leo »

Looks like the script optimizes based on current brick position. In a perfect optimizer, what it should do is look for similarities in volume of existing structures, and then compare those volumes with brick sizes multiple times til it gets multiple brick configurations. Then, it would simulate each one until it figured out which combination has the least bricks.

However, this is not an easy thing to acheive. The human brain is a complex machine, running faster and more efficiently than any computer. You guys may think that it would be easy to make a perfect optimizer, but in truth, it really isn't.

Bottom line: This is the best thing currently out there to optimize brick count. Although it has flaws, and can be improved, there is no reason to point them out and expect them to be fixed easily. Until you come up with a script that can do it better, you should stop complaining.

Until you come up with a script that can do it better, you should stop complaining.
I didn't complain, I just wanted to share my experience. I think red_guy will think the feedback is usefull.
Look at the edit of my previous post btw, it's quite interesting.

Brickcount-wise, this is better than the previous result. But why on earth doesn't it merge the six 2x2x5's to one 2x12x5?? (I've tried to optimize the optimized save, but no difference)
Its supposed to give you a single 2x12x5 brick.  I'll have to see why it doesnt.
thanks for finding the bug.

But that gave me an idea: Maybe you could first reduce all bricks to smaller bricks (preferably 1x1's) and then merge the resulting save. It looks like the brickcount will be reduced compared to the current method.
Yes, I know that would require much more processing, but it may be worth a try.
thats the next step
it will actually have 3 "reduction" stages
1 - reduce all 2x bricks into 2x2s and optimize the result
2 - reduce everything to 1x1 bricks and optimize the result
3 - reduce everything to 1x1F and optimize that.

#3 will take a while to actually run... but in my own testing it was able to handle 1.3million 1x1F bricks without too much troubles

Until you come up with a script that can do it better, you should stop complaining.
This is irrelevant, King Leo's personal programming ability has no effect on his ability to deliver valid and fair criticism.

Hmm...
I tested this, and it works (somewhat)

The wall on the left is what i started with, the wall on the right is what i got. The "wall" on top is what i was hoping for:



Any way to fix this?

EDIT:
I tried breaking up the 2x12x5 wall to 1x1, and then optimize it. This is what I've got:


Brickcount-wise, this is better than the previous result. But why on earth doesn't it merge the six 2x2x5's to one 2x12x5?? (I've tried to optimize the optimized save, but no difference)

But that gave me an idea: Maybe you could first reduce all bricks to smaller bricks (preferably 1x1's) and then merge the resulting save. It looks like the brickcount will be reduced compared to the current method.
Yes, I know that would require much more processing, but it may be worth a try.

I think the wall with lines looks better than a plain wall brick.

I love how I never got people submitting builds for my script, which came first, and seems to work better.

I love how I never got people submitting builds for my script, which came first, and seems to work better.
people are lazy

I offered the same thing... "pm me your build and i'll optimize it"
and also got nothing.

the website is easier to use (no messing with an upload site), but yours has one advantage mine does not -- it works in game.

but ive had this working since last year... I was just too lazy to make a website for it until now.

This is irrelevant, King Leo's personal programming ability has no effect on his ability to deliver valid and fair criticism.
I was actually addressing Sheath, Lord Tony, and tails. King Leo just happened to spark my interest and was the post directly above mine. Sorry for the confusion.
« Last Edit: April 27, 2011, 08:59:51 PM by Treynolds416 »

I was actually addressing Sheath, Lord Tony, and tails. King Leo just happened to spark my interest and was the post directly above mine. Sorry for the confusion.
You don't need to be a Chef to know bad food.

Hmm...
I tested this, and it works (somewhat)

The wall on the left is what i started with, the wall on the right is what i got. The "wall" on top is what i was hoping for:

-snip-

Any way to fix this?

EDIT:
I tried breaking up the 2x12x5 wall to 1x1, and then optimize it. This is what I've got:
-snip-

Brickcount-wise, this is better than the previous result. But why on earth doesn't it merge the six 2x2x5's to one 2x12x5?? (I've tried to optimize the optimized save, but no difference)

But that gave me an idea: Maybe you could first reduce all bricks to smaller bricks (preferably 1x1's) and then merge the resulting save. It looks like the brickcount will be reduced compared to the current method.
Yes, I know that would require much more processing, but it may be worth a try.
Try using the website twice?
It might get you results you want.

I love how I never got people submitting builds for my script, which came first, and seems to work better.
i submitted a build  :panda:

Try using the website twice?
It might get you results you want.

I tried, it doesn't.

I think the wall with lines looks better than a plain wall brick.

Yeah, it looks better. But the brickcount for the plain wall brick is obviously much lower. Maybe we could have two different "modes" for the reducer, one that works like it currently does, resulting in textured builds. And one that merges the bricks two the largest bricks possible, resulting in a low brickcount.