Author Topic: Brick use reduction script.  (Read 7599 times)

Even checking UI names would probably work. :x
That's all the informations the forumulas are.
The brick type to search from, the brick type to search for, and what brick to make in their place. (along with, sometimes, an offset vector)

How 'smart' is the script?

As some of you know, it's very hard to make a program that can perfectly optimize data quickly, efficiently, and while the same data is being changed while it is optimizing.

How 'smart' is the script?

As some of you know, it's very hard to make a program that can perfectly optimize data quickly, efficiently, and while the same data is being changed while it is optimizing.
You realize that the data being changed is only going to be what it changes itself, right?
It's a slash command, which will automatically recommand/restart itself until it no longer reduces any bricks.

How about adding a /undo command incase you dont like the changes it makes too

How about adding a /undo command incase you dont like the changes it makes too
This. Make it continuously unwind the groupings until the point you started or until you say stop.

The script works by reading large lists of manually entered in "forumulas".
Basically, it could work with custom brick packs, but you'd need to enter in a line or two of code in yourself.
Just make it check brickSizeX, brickSizeY and brickSizeZ and if it's not a special brick (round, arches,  etc) then combine them. You don't need lists of formulas, that's just extremely over complicating it.
EDIT: You'd need to cache all the brick sizes on server start up for the combinations, but that's easy.


Someone give me a big, preferrably spammy, build I can test this on!
I'll get to work on it...
BTW, this is a dream come true.  Does it create a cube if the dimensions of the spam is right?

Hurry up and make it work good now.

Want to use on TailsRPG so it's playable.
(55k)
« Last Edit: April 25, 2011, 01:50:16 PM by tails »

- Create a 1x1x1 brick tower (With empty interior and floors)
- Use this
- ???
- Result?

I do not know if I will release this, but if you upload a save to my website, I'll return a reduced copy to you, if you want.


ive got a working brick reduction (optimizer) script working as well.
but its not written in torquescript, so it wont work in game.

However its VERY fast (processes all the files in saves\Slate in about 2mins)
So i'll extend the same offer DrenDran posted - PM me a link to the save file and i'll run it through my optimizer.

Great idea... only problem is if the separation of bricks is for looks.