Author Topic: Brick Add-on Help  (Read 593 times)

I am making a new brick add-on, I have it all packed up and ready for usage. However, there is one issue. (Please respect that I am new to scripting and I am struggling to learn the concept)

Whenever I place my brick, it doesn't appear, and it isn't colliding. It might have something to do with the lack of an icon, of which I don't know how to create. Here is the script. (If that's what you want to call it)

Quote
datablock fxDTSBrickData (brick8x8x12Data)
{
   brickFile = "./8x8x12.blb";
   category = "Baseplates";
   subCategory = "Cube";
   uiName = "8x Halfcube";
   iconName = "Add-Ons/Brick_Halfcube/8x8x12";
};

Again, please note that I am a complete from the scratch beginner.
Your feedback is greatly appreciated!

It is a script, you're not wrong there.

I can't see anything wrong with it :/

The fact is, however, I don't have an icon for it. That's just prepared for when I do get one! Thing is tho, I don't know how!

The fact is, however, I don't have an icon for it. ...
This is why it isn't working.

... Thing is tho, I don't know how!
What about going into DestructLight or Construct, place your (grey colored) brick somewhere, take a snapshot, go into GIMP/Paint.NET/whatever you use other than Paint, magic wand the white/black part, and save it as a .png?

Quote
Whenever I place my brick, it doesn't appear, and it isn't colliding. It might have something to do with the lack of an icon, of which I don't know how to create.
I need an organized way I can give my brick a png. image :/

You don't have to have a .png file. I thought it just appeared as a question mark in the brick menu.

Yea, but when I place the brick, nothing appears. I just hear the "click" sound from placing the brick.

Here's what it looks like in the file.

Quote
            8x8x12         BBL         1k
            Description   Text Document   1k
            Namecheck   Text Document   1k
            rtbinfo           Text Document   1k
            server           CS File          1k
Quote
8 8 12
            Brick
Quote
Title: HalfCube
Author: Custard
Half cubes, because no one bothered to script a resize tool.
Quote
Brick_Halfcube
Quote
id: 6932
icon: Lego
type: Bricks
title: Brick_Halfcube
version: 1
Quote
datablock fxDTSBrickData (brick8x8x12Data)
{
   brickFile = "./8x8x12.blb";
   category = "Baseplates";
   subCategory = "Halfcube";
   uiName = "8x Halfcube";
   iconName = "Add-Ons/Brick_Halfcube/8x8x12";
};

datablock fxDTSBrickData (brick8x8x12Data)
{
   brickFile = "./8x8x12.blb";
   category = "Baseplates";
   subCategory = "Halfcube";
   uiName = "8x Halfcube";
   iconName = "Add-Ons/Brick_Halfcube/8x8x12";
};

If you see any flaws please tell me.