Author Topic: How do i make add-ons?  (Read 870 times)

(I know stupid right?)I just dont know how to make maps, vehicles, bricks, or any other add-ons.Please help.

(I know stupid right?)I just dont know how to make maps, vehicles, bricks, or any other add-ons.Please help.
You want to learn how to make bricks?

Not the cool, custom ones, but I can teach you how to make simple ones.

Later on, I might be able to teach you how to make water.

For bricks, first open notepad (or anything similar), then make something like this:

Code: [Select]
1 2 3
BRICK

Then save it and call it 1x2.blb (or for your brick, BrickName.blb)



The 1 represents a number of studs. The 2 is similar to the 1, but in the other direction. The 3 is the height in plates, or how many plates stacked up on each other it would take to reach the top.

Now we turn to server.cs:

Code: [Select]
datablock fxDTSBrickData (brick1x2x3Data)
{
    brickFile = "./1x2.blb" ;
    category = "Bricks" ;
    subCategory = "1x" ;
    uiName = "1x2" ;
    iconName = "1x2Brick.PNG" ;
};

or if you would like to know what goes where, this might help more:

Code: [Select]
datablock fxDTSBrickData (brick[Name]Data)
{
    brickFile = "[.blb file]" ;
    category = "[what tab on the top it should be in" ;
    subCategory = "[sub category such as "Prints"]" ;
    uiName = "[name]" ;
    iconName = "[.PNG image of the brick]" ;
};
(replace [ ] with what you have that corresponds)

To make the PNG image, take a snap shot of the brick (or bricks, by them selves) in construct. (But you must first make it (or them) work in Blockland, so leave out the iconName = "blah"; till you finish the rest of the addon.) Make sure the .PNG is 96x96. The easiest way to do this is to use gimp: http://www.gimp.org/

If you have several bricks you'd like to make, the make several .blb's, then in the server.cs, make several data blocks(one for every brick).

Then add the description.txt (description goes here)

Finally, make a zip (use winzip for Windows, zip in Linux console, ? for Mac) containing the .blb(s), server.cs, description.txt, and the .PNG(s) (not till you get the screen shot (see above)) and call it Brick_[what ever you like].zip (no spaces).

I hope you could under stand it.  :cookieMonster: Unfortunately, don't know how to make special bricks, so I'll leave to someone else.
« Last Edit: July 20, 2009, 12:43:00 AM by autofire »

Oh yes, if you'd like know know modeling, go here:

http://forum.blockland.us/index.php?topic=66763.0

(for blender, by darkstar, not me)

PS: have some ice cream?  :iceCream:

Scripting is something you can learn by starting small, I started with a colorset which is just shades of red, blue and green.

-snip-
you know all to much to be registered two days ago.

Are you an alternate or something?

you know all to much to be registered two days ago.

Are you an alternate or something?
It's illegal you know.

It's illegal you know.
Yeah, I know.You mean illegal to have an alt. account, right?