Author Topic: Here's a way to convert all cube bricks to modterrain  (Read 1010 times)

I'll explain a method to convert default large cube bricks (shown in the image below) to modter bricks of the same size.



Open the .bls save file in Notepadd++ and type "ctrl+f". Go to the "Replace" tab.
At the bottom of this page, set "Search Mode" to "Regular expression."

Find what:
^(8x cube)("\s-?[0-9]\d*(\.\d+)?\s-?[0-9]\d*(\.\d+)?\s-?[0-9]\d*(\.\d+)?\s-?[0-9]\d*(\.\d+)?\s-?[0-9]\d*(\.\d+)?\s-?[0-9]\d*(\.\d+)?\s)(\s)

Replace with:
\1\ \2\ModTer/brickRAMP
****NOTE**** YOU MUST HAVE 1 SPACE AT THE END OF THE ABOVE LINE

Select "Replace All"

Repeat for 16x, 32x, and 64x at the start of 'Find what:' instead of 8x
« Last Edit: June 12, 2016, 09:00:54 AM by Farad »

what about for corners?

what about for corners?

There are no corner bricks I know of that are the same shape as modter corners.

Whatever is this junk?

why is that a gigantic regex string
seriously, look what it does

Whatever is this junk?
regular expression

why is that a gigantic regex string
seriously, look what it does
The expression looks for lines like this:
8x Cube" -166.5 96 2.2 0 0 40  0 0 1 1 1

It would change the above line to this:
8x Cube " -166.5 96 2.2 0 0 40 ModTer/brickRAMP 0 0 1 1 1

Oh! I thought you said blb. Not bls.