Author Topic: Brick not appearing  (Read 873 times)

So today I made a brick pack with wedge roads each with diffrent angles but they don't appear in the brick menu. Ive packeged them correctly there are no flaws with the server cs heres code of one:
Code: [Select]
32 32 1
SPECIAL

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

bbbbbbbbbddddddddddddddbbbbbbbbb

1

0 0 0
32 32 1
------------------ Top Quads:
7

TEX:TOP
POSITION:
-16 -16 0.5
-16 16 0.5
-7 16 0.5
-7 -16 0.5
UV COORDS:
0 -32
0 0
-9 0
-9 -32
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1

TEX:TOP
POSITION:
7 -16 0.5
7 16 0.5
16 16 0.5
16 -16 0.5
UV COORDS:
9 -32
9 0
0 0
0 -32
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1
//left stripe
TEX:RAMP
POSITION:
-7 -16 0.5
-7 16 0.5
-6.3 16 0.5
-6.3 -16 0.5
UV COORDS:
0 32
0 0
0.7 0
0.7 32
COLORS:
0.996 0.996 0.910 1.000
0.996 0.996 0.910 1.000
0.996 0.996 0.910 1.000
0.996 0.996 0.910 1.000
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1
//middle stripe
TEX:RAMP
POSITION:
-0.3 -16 0.5
-0.3 16 0.5
0.3 16 0.5
0.3 -16 0.5
UV COORDS:
0 32
0 0
0.6 0
0.6 32
COLORS:
0.973 0.800 0.000 1
0.973 0.800 0.000 1
0.973 0.800 0.000 1
0.973 0.800 0.000 1
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1
//right stripe
TEX:RAMP
POSITION:
6.3 -16 0.5
6.3 16 0.5
7 16 0.5
7 -16 0.5
UV COORDS:
0 32
0 0
0.7 0
0.7 32
COLORS:
0.996 0.996 0.910 1.000
0.996 0.996 0.910 1.000
0.996 0.996 0.910 1.000
0.996 0.996 0.910 1.000
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1
//lanes
TEX:RAMP
POSITION:
-6.3 -16 0.5
-6.3 16 0.5
-0.3 16 0.5
-0.3 -16 0.5
UV COORDS:
0 32
0 0
6 0
6 32
COLORS:
0.200 0.200 0.200 1.000
0.200 0.200 0.200 1.000
0.200 0.200 0.200 1.000
0.200 0.200 0.200 1.000
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1

TEX:RAMP
POSITION:
0.3 -16 0.5
0.3 16 0.5
6.3 16 0.5
6.3 -16 0.5
UV COORDS:
0 32
0 0
6 0
6 32
COLORS:
0.200 0.200 0.200 1.000
0.200 0.200 0.200 1.000
0.200 0.200 0.200 1.000
0.200 0.200 0.200 1.000
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1
  Ê   œ   ¼                                            


I don't know anything about making bricks, but all those b's and d's don't look like they should be there

I don't know anything about making bricks, but all those b's and d's don't look like they should be there
That was copied from the road script

if the script isnt messed up then look at the model and see if anything is wrong with it being placed...

if the script isnt messed up then look at the model and see if anything is wrong with it being placed...
Thats the script when I open the blb with notepad blb is the model i think.


here: datablock fxDTSBrickData (brickWedgeRoadData : brickWedgeRoadData)
{
   brickFile = "./WedgeR.blb";
   category = "Baseplates";
   subCategory = "Road";
   uiName = "";
   iconName = "";
   
   hasPrint ="";
   printAspectRatio = "Road Wedge";
   orientationFix = 3;
};

Did you even bother checking the console for an error report? Because it would have gave an error about this:
datablock fxDTSBrickData (brickWedgeRoadData : brickWedgeRoadData)

Basically the colon means inheritance. The datablock on the left of the colon (the new datablock you're creating) inherits from the datablock the on right of the colon (an already existing datablock). The new datablock will copy all members from the existing datablock, and you can change or add members inside the definition. What you're trying to do here is make a datablock inherit from itself. This makes no sense, especially as the datablock you're trying to inherit from doesn't exist yet.



Also, it needs a uiName.

what about this datablock fxDTSBrickData (brickWedgeRoadData : brickWedgeRoadData)
{
   brickFile = "./WedgeR.blb";
   category = "Baseplates";
   subCategory = "Road";
   uiName = "Road Wedge";
   iconName = "";
   
   hasPrint ="";
   printAspectRatio = "Road Wedge";
   orientationFix = 3;
};
What about that?
I suck at server.cs's

You fixed the second problem but completely ignored the first

Code: [Select]
datablock fxDTSBrickData(brickWedgeRoadData : brick32x32froadsData)
{
   brickFile = "./WedgeR.blb";
   uiName = "Road Wedge";
};
Try that

I got it to load thanks to Zombie but it only shows up as a 32x32 baseplate.

iconName = "nameofroad.png";