Author Topic: The Special *.blb's  (Read 5267 times)

Most of you know by now that BLB's are in text. Most of you also know that if you want to generate a standard brick or plate, its as easy as:
Code: [Select]
1 2 3
brick

But how does Blockland make those ramps and such. Well I think I know. Sort of... Lets look at an example: the 1X2 ramp(not sure what degree)

When making a "special" brick, instead of putting "brick" at the end of the size, you put "special." That's the easy part. Now how to render shape: I believe that you have to specify where each face's vertexes are. for example:

Code: [Select]
----------------top quads:
1

TEX:TOP
POSITION:
-0.5 -1 1.5
-0.5 0 1.5
0.5 0 1.5
0.5 -1 1.5
UV COORDS:
0 0
0 1
-1 1
-1 0
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1

In position, you specify the position of each vertex reletave to the center of mass of the shape. Im not sure if its reletive to the center of mass, but Im guessing that would be the way to go.

Also this sets the boundries for the collision mesh. Thing is that DIF's work kinda the same, collision mesh wise. When you make a shape into a DIF, each face gets it's own collision to it, and it's laser accurate (within 0.2 Torque Units)

Also for the textures, Im assuming, are premapped in the code that compiles BLB's and makes them into shapes.

I think it's possible to use this to make more elaborate shapes, like arches and LEGO specific shapes, like ones coming in sets (i.e. plane set comes with special jet engines).

But this one fact perplexes me. Ever notice the 1X4X5 window? It looks exactly the same as the DTS version on Vanilla. This means one of two things:

1. Badspot has 1337 modeling skills and can pinpoint each vertex perfectly and code it to a text only shape.

Or the more logical 2. He mannaged to find/create an exporter that exports shapes into text. I know Milkshape can do this, but its written in weird code.

Post your comments/arguements/horrays/boos/omfg you stole my ideas/anything else I left out here.

The model for the 1x4x5 windows actually is different, if you look. Its pretty noticeable too.

I know exactly how to make new bricks using this system, and have. I've done things like quarter-cylinders and a 2x2 with a 1x1 cut out of it, like the corner bricks. I think i also did inverted corner bricks.

The only problem is that blb files don't download to the clients yet, so they won't be able to see it. This means I haven't bothered putting them up for download or anything, or showing them on my server. Once they download to clients etc. i'll put them all in a brick pack or something.

Can't you do something like the decal downloader to fix that? Put the file name of the blb in the datablock.

Can't you do something like the decal downloader to fix that? Put the file name of the blb in the datablock.
ye..a..g.... I don't think that'll work, I don't think you can Force Download Scripts (.cs/.blb).

Unless you make a hack that can force downloads of BLB's, which can be easily exploited.

As I understand it, Badspot will be making them download later on. No need to haxx anything.

I got a Q Ephi. How do you make more advanced bricks with the BLB system? Is it hard coding or some exporter?

...I know Milkshape can do this, but its written in weird code...
It's called ASCII.

ASCII is not a code. It's a method for character viewing.
Well, .blb have some sort of scripting, pherhaps Badspot made it.

ASCII is not a code. It's a method for character viewing.
Well, .blb have some sort of scripting, pherhaps Badspot made it.
Most likely.

I got a Q Ephi. How do you make more advanced bricks with the BLB system? Is it hard coding or some exporter?
Its just mathematics, and common sense.

ASCII is not a code. It's a method for character viewing.
I meant that's what Milkshape exports to.

Well, .blb have some sort of scripting, pherhaps Badspot made it.
He did, he mentioned it before it came out.

I got a Q Ephi. How do you make more advanced bricks with the BLB system? Is it hard coding or some exporter?
Its just mathematics, and common sense.
And a small amount of coding knowledge I guess...

No, just mathematics, and common sense.

Code: [Select]
X
X
d

u
X
d

0
COVERAGE: //TBNESW
1 : 1
1 : 2
0 : 3
0 : 6
1 : 3
0 : 6
What does that part mean?