Author Topic: Brick help  (Read 1583 times)

Sup, I'm having problems with a test addon i'm making.
I'm wanting to have a DTS model (which i have created) to be in a brick, It gets in-game but is not visible at all but does show up in the brick menu, How can i fix this?

Sup, I'm having problems with a test addon i'm making.
I'm wanting to have a DTS model (which i have created) to be in a brick, It gets in-game but is not visible at all but does show up in the brick menu, How can i fix this?

Rofl this is what my question topic was about. I didn't get any answers and I honestly have no idea on how to do it either.


Quote
Bls File:

2 2 1
SPECIAL

Server.cs file:

datablock fxDTSBrickData(DinnerPlateData)
{
   brickFile = "./DinnerPlate.blb";
   category = "Special";
   subCategory = "Misc";
   uiName = "DinnerPlate";
   iconName = "Add-Ons/Brick_DinnerPlate/DinnerPlate";
};

« Last Edit: December 14, 2010, 12:07:42 PM by alex dude »

-snip of code-

That's what I tried but I have been waiting for another person to answer.

The console says a error with the code on line 8, which is icon name i do believe.

Line 8 is

Quote
datablock fxDTSBrickData(DinnerPlateData)

Unless your talking about from a certain point in the code...

Line 8 is

Unless your talking about from a certain point in the code...
Those are two different codes in 1, the BLS and server.cs

Those are two different codes in 1, the BLS and server.cs

Oh yeah... then your right  :D

Ok, You want to have a .dts model in the brick? Yet, you never specify any .dts model in the script, anywhere. Unless I missed something?

Ok, You want to have a .dts model in the brick? Yet, you never specify any .dts model in the script, anywhere. Unless I missed something?

That might be it...

Here, I have found my old Skull Prop add-on. It involves the dts in the script.

Quote
datablock StaticShapeData(SkullShape)
{
   shapefile="add-ons/Prop_Skull/SkeleHead.dts";
};

datablock fxDtsBrickData(SkullBrickData)
{
   category="Props";
   subCategory="Other";
   uiName="Skull";
   iconName = "add-ons/prop_skull/brickicons/skull";
   
   brickSizeX=1;
   brickSizeY=1;
   brickSizeZ=3;
   
   isProp=1;
   
   brickRender=0;
   brickCollide=1;
   brickRaycast=1;
   
   spawnModel=SkullShape;
   modelOffset="0 0 -0.3";
   modelScale="1.0 1.0 1.0";
   
   colorCount=1;
   
   colorGroup[0]="ALL";
      colorMode[0]="Intensity";
      colorShift[0]="1 1 1 1";
};

Of course this is a prop and doesn't work anymore. But if I changed some of the labels in the script do you think it would work?

The brick went in-game but the model did not.
« Last Edit: December 17, 2010, 12:18:39 PM by alex dude »

The brick went in-game but the model did not.

That's what happened for my script? Yea I thought so. It's what happened for me too. But I don't understand WHY the model doesn't appear.