Author Topic: Door Bricks .cs Not Working Properly (For a friend, not me)  (Read 682 times)

Here is the posting my friend wants to be posted here.

Quote
Im making door bricks, one is working and one is not. The one working open fines and stuff, The other one only opensCCW but wont close or openCW

Here is the code for the server.cs

//server.cs -- for Brick_Doors, execute all things in here

// test door thing
// datablock fxDTSBrickData ( brickDoorTestData )
// {
// brickFile = "./dev/testDoor.blb";
// category = "special";
// subCategory = "misc";
// uiName = "Door Test";
// iconName = "./placeholder";
// orientationFix = 1;
// };

%error = ForceRequiredAddOn( "Support_Doors" );

if( %error == $Error::AddOn_NotFound )
{
error("Brick Doors: Support_Doors is missing somehow, what did you do?");
}
else
{
exec( "./bricks/door_blindone.cs" );
exec( "./bricks/door_blindstring.cs" );
exec( "./bricks/door_blindtwo.cs" );
}

Here is the code for the Working Door:

datablock fxDTSBrickData ( brickdoor_blindone_openCWData )
{
brickFile = "./door_blindone_openCW.blb";
uiName = "Horizontal slat blind";

isDoor = 1;
isOpen = 1;

closedCW = "brickdoor_blindone_closedCWDa ta";
openCW = "brickdoor_blindone_openCWData";

closedCCW = "brickdoor_blindone_closedCWDa ta";
openCCW = "brickdoor_blindone_openCCWDat a";

orientationFix = 3;
};

datablock fxDTSBrickData ( brickdoor_blindone_openccwDat a : brickdoor_blindone_opencWData )
{
brickFile = "./door_blindone_openCCW.blb";

isOpen = 1;
};

datablock fxDTSBrickData ( brickdoor_blindone_closedCWDa ta : brickdoor_blindone_openCWData )
{
brickFile = "./door_blindone_closed.blb";
category = "NewBricks";
subCategory = "Blinds";

iconName = "base/unknown.png";

isOpen = 0;
};

Here is the code for the glitch door:

datablock fxDTSBrickData ( brickdoor_blindtwoopenCWData )
{
brickFile = "./door_blindtwoopenCW.blb";
uiName = "Verticle Slat Blind";

isDoor = 1;
isOpen = 1;

closedCW = "brickdoor_blindtwoclosedCWDat a";
openCW = "brickdoor_blindtwoopenCWData";

closedCCW = "brickdoor_blindtwoclosedCWDat a";
openCCW = "brickdoor_blindtwoopenCCWData";

orientationFix = 3;
};

datablock fxDTSBrickData ( brickdoor_blindtwoopenCCWData : brickdoor_blindtwoopenCWData )
{
brickFile = "./door_blindtwoopenCCW.blb";

isOpen = 1;
};

datablock fxDTSBrickData ( brickdoor_blindtwoopenCWData : brickdoor_blindtwoopenCWData )
{
brickFile = "./door_blindtwoclosed.blb";
category = "NewBricks";
subCategory = "Blinds";

iconName = "base/unknown.png";

isOpen = 0;
};


Im not sure whats happening.

If anyone knows what the issue is in the code, please post below. On my behalf this is going to help him and I will post below whatever he says. For reasons he is banned so he cannot post here. If it doesn't have to do with the topic just don't post.

Thank you.

datablock fxDTSBrickData ( brickdoor_blindtwoopenCWData : brickdoor_blindtwoopenCWData )
{
...
isOpen = 0;
};

He says thank you for the help. What you said properly fixed his issue. On my behalf as well thank you.

Locking the topic as it has no further use of being open unless others have the same issue.