Blockland Forums > Modification Help
client side
Furling:
How I can write script cliet side for brick selection images and notepad.blb allow show player can see image and blb format without force them download. While test on my server for my rail road track. I hopefully this will help.
Nexus:
What language are you speaking?
I see brick selection, and for that you use
commandtoserver('instantusebrick', ###);
what image are you talking about?
I am confused what you want to do with .blb brick files.
Furling:
--- Quote from: Nexus on July 12, 2011, 08:44:37 AM ---What language are you speaking?
I see brick selection, and for that you use
commandtoserver('instantusebrick', ###);
what image are you talking about?
I am confused what you want to do with .blb brick files.
--- End quote ---
Custom image.png at selection brick.
I want player can see brick form shape from .blb brick file. While I test blb brick, when player join my server and they can see image at brick selection aslo ghost brick after plant brick. They can see shape brick from .blb brick file, because I has not release my rail road track brick yet.
Fluff-is-back:
I think you mean the brick icon?
Well in a standard brick the datablock for the brick has an iconName variable.
--- Code: ---datablock fxDTSBrickData(brick4x4roundData)
{
brickFile = "./4x4round.blb";
category = "Rounds";
subCategory = "Bricks";
uiName = "4x4 Round";
iconName = "Add-Ons/Brick_4x4Round/4x4round.png"; //Icon path
collisionShapeName = "./4x4round.dts";
};
--- End code ---
I hope this helps.
Furling:
--- Quote from: Fluff-is-back on July 12, 2011, 12:04:48 PM ---I think you mean the brick icon?
Well in a standard brick the datablock for the brick has an iconName variable.
--- Code: ---datablock fxDTSBrickData(brick4x4roundData)
{
brickFile = "./4x4round.blb";
category = "Rounds";
subCategory = "Bricks";
uiName = "4x4 Round";
iconName = "Add-Ons/Brick_4x4Round/4x4round.png"; //Icon path
collisionShapeName = "./4x4round.dts";
};
--- End code ---
I hope this helps.
--- End quote ---
Not that. I want use client side script. Because other player can't see my add on. Only I has one, They not have has my add on. When they join my server, they will not see my brick icon without client side allow show image to them same for blb format.