Author Topic: Build Optimizer service  (Read 3751 times)

well the bugs reported have been fixed..
the wall of 2x2 bricks now converts to a single 2x12x5.

It also handles flat pieces somewhat.
more to come as I add more rules

Name   TailsRPG.bls
Bricks    55381

Name   TailsRPG-Optimized.bls
Bricks    47261

I'm going to try it on blocko city just to see what happens.



I'm going to try it on blocko city just to see what happens.

If it's color sensitive, which i believe it is, it will fail :D

I'm curious to see how your version of this works Red_Guy. I don't have a build optimizer yet, but I do have a script that given a volume, efficiently fills the area with bricks. If I did this I'd just make something to divide a build into rectangular cubes and then fill them up. I actually do have something like that already but it's not designed to split the cubes by brick color.

I'm curious to see how your version of this works Red_Guy. I don't have a build optimizer yet, but I do have a script that given a volume, efficiently fills the area with bricks. If I did this I'd just make something to divide a build into rectangular cubes and then fill them up. I actually do have something like that already but it's not designed to split the cubes by brick color.
well the rules work with statements like this:
merge: '2x2' into: '2x10'
merge: '2x2' into: '2x8'
merge: '1x1' into: '2x12x5'

Then for each of those merge calls, it takes the smaller brick, and figures out how many will fit into the larger brick, and what locations they should be at.  then it scans the bricks to see if any exist at the positions.

so for this one:  merge: '2x4' into: '2x8'
with a 2x4 brick at 0,0,0  it looks for another 2x4 at 0,2,0, and if it finds one, it will delete both bricks and place a new 2x8 brick at 0,0,0

And then the same for merge: '2x2' into '2x8'   It will look for 4 2x2 bricks in a row and if it finds them, delete all 4 and replace them with a single 2x8.

The "scan the bricks" task needs some kind of index lookup scheme, or the script will take hours to run.  But once thats solved, it works nicely.


You don't need to be a Chef to know bad food.
I agree.

Also, you should come up with new relevant metaphors, that one is getting old

I agree.

Also, you should come up with new relevant metaphors, that one is getting old
You realise that was aimed at you right? lol

Web site is back up, my ISP had a hiccup today.
Also added some stats on the file that gets uploaded.


The service should be back up and running now.
Thanks to those who kept trying and helping me find the errors.

Love it.

Edit: Actually, when I used it, it kinda messed up my 8x8 cubes.
« Last Edit: May 10, 2011, 05:12:23 PM by Uxie »

Love it.

Edit: Actually, when I used it, it kinda messed up my 8x8 cubes.
Hrm. its not supposed to...
If anything it would merge the 8x cubes into 16x cubes where possible.

if you can PM me the build file it messed up, i can take a loko