Author Topic: .BLS Files  (Read 4169 times)

I have a .bls file with two bricks side by side each other. I am trying to work on a converter/project for roblox. There are a bunch of lines of code, what do these lines mean and do they tell me these things:

-rotation
-size
-position
-color


What does Linecount 2 mean?


What is this line of code, are these the actual coords. of the bricks? Is the color of the brick also in there?



What is all of this code for, is it important? Do I just need where it says Linecount 2?
« Last Edit: December 22, 2012, 07:31:48 PM by Altiris »



I detect treason...
No.
Code: [Select]
1x4" 17 -0.75 0.3 1 1 59  6 1 1 1 1

DATABLOCK UINAME | POSITION | ROTATION | PRINT | COLORID | COLORFX | SHAPEFX | RAYCASTING | COLLISION | RENDERING
« Last Edit: December 22, 2012, 08:03:17 PM by Eeposs »

First, the header. Two irrelevant lines (probably a sort of magic string).
Next, there's the description. Finally, you have 64 lines for every color in the colorset in a scalar RGBA format.

Then, the actual bricks. This section starts with "Linecount" and then the total number of bricks.
From then on, every brick is represented as a line.

Bricks can have additional properties such as events or items which are placed right after the line and are formatted like "+-OWNER 20000".

No.
Code: [Select]
1x4" 17 -0.75 0.3 1 1 59  6 1 1 1 1

DATABLOCK UINAME | POSITION | ROTATION | ? | COLORID | COLORFX | SHAPEFX | RAYCASTING | COLLISION | RENDERING

Can anyone tell me what ? is?

I don't see anything related to prints in that list of attributes you wrote, so it might be the print used for the brick. Unless that's an attribute on it's own line.

Alright Port you are helping me out good so far. About the RGBA colors, so those first long lines are all about the colors?


I changed where it says "110" to "316" and that changed the bricks color to Grey when I loaded it in BL, do I use that for color or the lines you told me at the top?
« Last Edit: December 22, 2012, 08:08:05 PM by Altiris »

Alright Port you are helping me out good so far. About the RGBA colors, so those first long lines are all about the colors?

When you save, the entire colorset is saved as well. Each color is saved on it's own line (64 in total) in the following format:

R.RRRRRR G.GGGGGG B.BBBBBB A.AAAAAA

Example:

0.570000 0.987520 0.250000 1.000000


I changed where it says "110" to "316"

Uh, where does it say 110?

When you save, the entire colorset is saved as well. Each color is saved on it's own line (64 in total) in the following format:

R.RRRRRR G.GGGGGG B.BBBBBB A.AAAAAA

Example:

0.570000 0.987520 0.250000 1.000000

Uh, where does it say 110?
Right after 0.3, also on the save files its XZY not XYZ correct?
« Last Edit: December 22, 2012, 08:22:44 PM by Altiris »

Right after 0.3

1x1" 5.75 -5.25 0.3 1 1 0   0 0 1 1 1

Code: [Select]
DATABLOCK UINAME | POSITION | ROTATION | PRINT | COLORID | COLORFX | SHAPEFX | RAYCASTING | COLLISION | RENDERING

Brick Type1x1
Position5.75 -5.25 0.3
Rotation1*
Print ID1
Color ID0**
Color FX ID0?
Shape FX ID0?
Ray Casting1 (Enabled)
Collision1 (Enabled)
Rendering1 (Enabled)

*This refers to the ID of the 90 degree aligned angle (0, 1, 2, 3).
**This refers to the index of the color in the colorset. The first color is 0, the last is 63.

Thanks Port, I sort of pretty much understand everything. What is printID, is that when a brick has a print on it?

What is printID, is that when a brick has a print on it?

I'm not sure about how the print table and other such things work internally, but when applying a print to a brick, you need to specify a numeric ID. There's some global variables that let you find the ID from the category and name, but I don't remember exactly what they're called. Something like $printTableX[ "Letters/b" ].

I'm not sure about how the print table and other such things work internally, but when applying a print to a brick, you need to specify a numeric ID. There's some global variables that let you find the ID from the category and name, but I don't remember exactly what they're called. Something like $printTableX[ "Letters/b" ].
It's okay, I'm trying to do a blockland to Roblox brick converter with a friend of mine, basically getting the coordinates from BL bricks and then spawning Roblox bricks and placing them in the same coordinates, I am just basically brainstorming and setting down some ideas as well as working on graphs and learning how each of these properties work. Right now the MAIN thing I don't understand are the Colors, which I think will just have to be trial and error.

Right now the MAIN thing I don't understand are the Colors, which I think will just have to be trial and error.

If a brick uses color ID 6, use the RGBA color on line 6 + 4.

If a brick uses color ID 6, use the RGBA color on line 6 + 4.
I have to remove the first like top 3 lines right because then its not really Line 13 or no? Okay so I have a brick that uses color ID 13, which is blue in BL. So I would use line 13 correct?