• 0
Sign in to follow this  
Super Jerome

Doors won't open on Chernarus

Question

I am using the Chernarus Building Replacement script, but for some reason I can't open the doors. I see the action to open them, however when you try nothing happens. I tried the fix and it didn't work any help please.

 

Share this post


Link to post
Share on other sites

5 answers to this question

  • 0

 

First, change the "true" in this statement to "false" (this is one of the first lines):

if (isServer) then {
    private _disableSimulation = true; 

 

Second, change your "ExileServer_object_construction_database_load.sqf" to this:

Spoiler

/**
 * ExileServer_object_construction_database_load
 *
 * Exile Mod
 * www.exilemod.com
 * © 2015 Exile Mod Team
 *
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
 */
 
private["_constructionID","_data","_position","_vectorDirection","_vectorUp","_constructionObject","_damageLevel","_public","_pinCode"];
_constructionID = _this;
_data = format ["loadConstruction:%1", _constructionID] call ExileServer_system_database_query_selectSingle;
_position = [_data select 4, _data select 5, _data select 6];
_vectorDirection = [_data select 7, _data select 8, _data select 9];
_vectorUp = [_data select 10, _data select 11, _data select 12];
_constructionObject = createVehicle [(_data select 1), _position, [], 0, "CAN_COLLIDE"];
_constructionObject setPosATL _position;
_constructionObject setVectorDirAndUp [_vectorDirection, _vectorUp];
_constructionObject setVariable ["ExileDatabaseID", _data select 0];
_constructionObject setVariable ["ExileOwnerUID", (_data select 2)];
_constructionObject setVariable ["ExileIsPersistent", true];
_constructionObject setVariable ["ExileTerritoryID", (_data select 15)];
_damageLevel = (_data select 17);
_public = _damageLevel > 0;
_constructionObject setVariable ["ExileConstructionDamage",_damageLevel,_public];
if(_public)then
{
    _constructionObject call ExileServer_util_setDamageTexture;
};
_pinCode = _data select 14;
if !(_pinCode isEqualTo "000000") then
{
    _constructionObject setVariable ["ExileAccessCode", _pinCode];
    _constructionObject setVariable ["ExileIsLocked", (_data select 13), true];
};

// 2017-03-16 + TEMPORARY WORKAROUND UNTIL EXILE UPDATE
//if (getNumber(configFile >> "CfgVehicles" >> (_data select 1) >> "exileRequiresSimulation") isEqualTo 1) then
//{
//    _constructionObject enableSimulationGlobal true;
//    _constructionObject call ExileServer_system_simulationMonitor_addVehicle;
//}
//else 
//{
//    _constructionObject enableSimulationGlobal false;
//};

if (typeOf _constructionObject in ["Exile_Construction_ConcreteDoor_Static", 
    "Exile_Construction_ConcreteGate_Static", 
    "Exile_Construction_WoodGate_Static", 
    "Exile_Construction_WoodDoor_Static", 
    "Exile_Construction_ConcreteWindowHatch_Static", 
    "Exile_Construction_WoodGate_Reinforced_Static", 
    "Exile_Construction_WoodDoor_Reinforced_Static", 
    "Exile_Construction_ConcreteFloorHatch_Static",
    "Land_Stone_Gate_F","Land_City_Gate_F",
    "Land_BarGate_F","Land_Cargo_Patrol_V2_F",
    "Land_Cargo_Tower_V2_F","Land_FuelStation_Feed_F",
    "Land_Cargo_House_V2_F","Land_i_Garage_V2_F",
    "Land_ToiletBox_F","Land_Dome_Big_F","Land_spp_Tower_F",
    "Land_Airport_Tower_F","Land_i_Barracks_V1_F",
    "Land_TTowerSmall_1_F","Land_i_House_Small_03_V1_F",
    "Land_i_House_Big_01_V2_F","Land_PlasticCase_01_medium_F",
    "Land_Research_HQ_F","Land_Research_house_V1_F",
    "Land_HouseV_1I2","Land_i_Stone_Shed_V3_F",
    "Land_Ind_SawMill","Land_dp_mainFactory_F",
    "Land_HouseV_1I1","Land_i_House_Small_02_V1_F",
    "Land_Shed_W4",["Land_Slum_House03_F",
    "Land_HouseV_1I3","Land_i_House_Small_03_V1_F",
    "Land_HouseV_1L2",["Land_i_House_Big_02_V1_F",
    "Land_Misc_WaterStation","Land_ReservoirTank_V1_F",
    "Land_HouseV_2I", "Land_i_House_Big_01_V3_F",
    "Land_Mil_Barracks_L", "Land_Cargo_HQ_V1_F",
    "Land_Mil_Barracks", "Land_Unfinished_building_01_F",
    "Land_A_Office02","Land_Offices_01_V1_F",
    "Land_Ind_Workshop01_03","Land_Ind_Workshop01_04" ,
    "Land_Shed_W02","Land_Slum_House01_F" ,
    "Land_HouseV_3I3","Land_i_Shop_01_V1_F" ,
    "Land_HouseV_3I1","Land_i_Shop_01_V2_F" ,
    "Land_HouseV_3I4","Land_i_Shop_02_V1_F" ,
    "Land_HouseV_3I2","Land_i_Shop_02_V3_F",
    "Land_HouseV_1L1","Land_i_Stone_HouseBig_V2_F" ,
    "Land_houseV_2T1","Land_i_Stone_HouseBig_V3_F" ,
    "Land_houseV_2T2","Land_i_Stone_HouseSmall_V1_F",
    "Land_HouseV_1T","Land_i_Stone_HouseSmall_V1_F",
    "Land_HouseV2_03B","Land_i_Stone_HouseSmall_V3_F",
    "Land_HouseV2_01A","CUP_A1_Cihlovej_dum_in",
    "Land_HouseV2_01B","Land_i_House_Small_01_V3_F",
    "Land_HouseV2_03","Land_i_House_Big_01_V3_F",
    "Land_HouseV2_02_Interier","Land_i_House_Big_02_V2_dam_F",
    "Land_HouseV2_04_interier","Land_i_Shop_01_V3_dam_F",
    "Land_HouseV2_05","Land_CarService_F",
    "Land_Church_01","Land_Chapel_V1_F",
    "Land_Church_02","Land_Chapel_V1_F",
    "Land_Church_02a","Land_Chapel_V1_F",
    "Land_A_Office02","Land_Church_01",
    "Land_Ind_SawMill","Land_Church_02",
    "Land_Church_02a","Land_HouseV2_01A",
    "Land_HouseV2_01B","Land_HouseV2_02_Interier",
    "Land_HouseV2_03","Land_HouseV2_03B",
    "Land_HouseV2_04_interier","Land_HouseV2_05",
    "Land_HouseV_1I1","Land_HouseV_1I2","Land_HouseV_1I3",
    "Land_HouseV_1L2","Land_HouseV_1L1","Land_HouseV_1T",
    "Land_HouseV_2I","Land_houseV_2T1","Land_houseV_2T2",
    "Land_HouseV_3I1","Land_HouseV_3I2","Land_HouseV_3I3",
    "Land_HouseV_3I4","Land_Ind_Workshop01_03",
    "Land_Mil_Barracks","Land_Mil_Barracks_L",
    "Land_Mil_Guardhouse","Land_Misc_WaterStation",
    "Land_Shed_W4","Land_Shed_W02",
    "Land_Mil_Guardhouse","Land_Cargo_Tower_V1_No5_F"]) then
{
    _constructionObject enableSimulationGlobal true;
    _constructionObject call ExileServer_system_simulationMonitor_addVehicle;
}
else 
{
    _constructionObject enableSimulationGlobal false;
};

// 2017-03-16 - TEMPORARY WORKAROUND UNTIL EXILE UPDATE

_constructionObject setVelocity [0, 0, 0];
_constructionObject setPosATL _position;
_constructionObject setVelocity [0, 0, 0];
_constructionObject setVectorDirAndUp [_vectorDirection, _vectorUp];
_constructionObject setVelocity [0, 0, 0];
_constructionObject

And if that doesn't work it's probably because if infiSTAR. Just go into you Exile_AHAT_config and change:

BadActionCheck = "true"; ----> False

check_doors_n_gates = "true";  ------> false

reset_inGameUIEventHandler = "true"; ----> false

Share this post


Link to post
Share on other sites
Advertisement
  • 0
1 hour ago, Super Jerome said:

Second, change your "ExileServer_object_construction_database_load.sqf" to this:

  Reveal hidden contents

/**
 * ExileServer_object_construction_database_load
 *
 * Exile Mod
 * www.exilemod.com
 * © 2015 Exile Mod Team
 *
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
 */
 
private["_constructionID","_data","_position","_vectorDirection","_vectorUp","_constructionObject","_damageLevel","_public","_pinCode"];
_constructionID = _this;
_data = format ["loadConstruction:%1", _constructionID] call ExileServer_system_database_query_selectSingle;
_position = [_data select 4, _data select 5, _data select 6];
_vectorDirection = [_data select 7, _data select 8, _data select 9];
_vectorUp = [_data select 10, _data select 11, _data select 12];
_constructionObject = createVehicle [(_data select 1), _position, [], 0, "CAN_COLLIDE"];
_constructionObject setPosATL _position;
_constructionObject setVectorDirAndUp [_vectorDirection, _vectorUp];
_constructionObject setVariable ["ExileDatabaseID", _data select 0];
_constructionObject setVariable ["ExileOwnerUID", (_data select 2)];
_constructionObject setVariable ["ExileIsPersistent", true];
_constructionObject setVariable ["ExileTerritoryID", (_data select 15)];
_damageLevel = (_data select 17);
_public = _damageLevel > 0;
_constructionObject setVariable ["ExileConstructionDamage",_damageLevel,_public];
if(_public)then
{
    _constructionObject call ExileServer_util_setDamageTexture;
};
_pinCode = _data select 14;
if !(_pinCode isEqualTo "000000") then
{
    _constructionObject setVariable ["ExileAccessCode", _pinCode];
    _constructionObject setVariable ["ExileIsLocked", (_data select 13), true];
};

// 2017-03-16 + TEMPORARY WORKAROUND UNTIL EXILE UPDATE
//if (getNumber(configFile >> "CfgVehicles" >> (_data select 1) >> "exileRequiresSimulation") isEqualTo 1) then
//{
//    _constructionObject enableSimulationGlobal true;
//    _constructionObject call ExileServer_system_simulationMonitor_addVehicle;
//}
//else 
//{
//    _constructionObject enableSimulationGlobal false;
//};

if (typeOf _constructionObject in ["Exile_Construction_ConcreteDoor_Static", 
    "Exile_Construction_ConcreteGate_Static", 
    "Exile_Construction_WoodGate_Static", 
    "Exile_Construction_WoodDoor_Static", 
    "Exile_Construction_ConcreteWindowHatch_Static", 
    "Exile_Construction_WoodGate_Reinforced_Static", 
    "Exile_Construction_WoodDoor_Reinforced_Static", 
    "Exile_Construction_ConcreteFloorHatch_Static",
    "Land_Stone_Gate_F","Land_City_Gate_F",
    "Land_BarGate_F","Land_Cargo_Patrol_V2_F",
    "Land_Cargo_Tower_V2_F","Land_FuelStation_Feed_F",
    "Land_Cargo_House_V2_F","Land_i_Garage_V2_F",
    "Land_ToiletBox_F","Land_Dome_Big_F","Land_spp_Tower_F",
    "Land_Airport_Tower_F","Land_i_Barracks_V1_F",
    "Land_TTowerSmall_1_F","Land_i_House_Small_03_V1_F",
    "Land_i_House_Big_01_V2_F","Land_PlasticCase_01_medium_F",
    "Land_Research_HQ_F","Land_Research_house_V1_F",
    "Land_HouseV_1I2","Land_i_Stone_Shed_V3_F",
    "Land_Ind_SawMill","Land_dp_mainFactory_F",
    "Land_HouseV_1I1","Land_i_House_Small_02_V1_F",
    "Land_Shed_W4",["Land_Slum_House03_F",
    "Land_HouseV_1I3","Land_i_House_Small_03_V1_F",
    "Land_HouseV_1L2",["Land_i_House_Big_02_V1_F",
    "Land_Misc_WaterStation","Land_ReservoirTank_V1_F",
    "Land_HouseV_2I", "Land_i_House_Big_01_V3_F",
    "Land_Mil_Barracks_L", "Land_Cargo_HQ_V1_F",
    "Land_Mil_Barracks", "Land_Unfinished_building_01_F",
    "Land_A_Office02","Land_Offices_01_V1_F",
    "Land_Ind_Workshop01_03","Land_Ind_Workshop01_04" ,
    "Land_Shed_W02","Land_Slum_House01_F" ,
    "Land_HouseV_3I3","Land_i_Shop_01_V1_F" ,
    "Land_HouseV_3I1","Land_i_Shop_01_V2_F" ,
    "Land_HouseV_3I4","Land_i_Shop_02_V1_F" ,
    "Land_HouseV_3I2","Land_i_Shop_02_V3_F",
    "Land_HouseV_1L1","Land_i_Stone_HouseBig_V2_F" ,
    "Land_houseV_2T1","Land_i_Stone_HouseBig_V3_F" ,
    "Land_houseV_2T2","Land_i_Stone_HouseSmall_V1_F",
    "Land_HouseV_1T","Land_i_Stone_HouseSmall_V1_F",
    "Land_HouseV2_03B","Land_i_Stone_HouseSmall_V3_F",
    "Land_HouseV2_01A","CUP_A1_Cihlovej_dum_in",
    "Land_HouseV2_01B","Land_i_House_Small_01_V3_F",
    "Land_HouseV2_03","Land_i_House_Big_01_V3_F",
    "Land_HouseV2_02_Interier","Land_i_House_Big_02_V2_dam_F",
    "Land_HouseV2_04_interier","Land_i_Shop_01_V3_dam_F",
    "Land_HouseV2_05","Land_CarService_F",
    "Land_Church_01","Land_Chapel_V1_F",
    "Land_Church_02","Land_Chapel_V1_F",
    "Land_Church_02a","Land_Chapel_V1_F",
    "Land_A_Office02","Land_Church_01",
    "Land_Ind_SawMill","Land_Church_02",
    "Land_Church_02a","Land_HouseV2_01A",
    "Land_HouseV2_01B","Land_HouseV2_02_Interier",
    "Land_HouseV2_03","Land_HouseV2_03B",
    "Land_HouseV2_04_interier","Land_HouseV2_05",
    "Land_HouseV_1I1","Land_HouseV_1I2","Land_HouseV_1I3",
    "Land_HouseV_1L2","Land_HouseV_1L1","Land_HouseV_1T",
    "Land_HouseV_2I","Land_houseV_2T1","Land_houseV_2T2",
    "Land_HouseV_3I1","Land_HouseV_3I2","Land_HouseV_3I3",
    "Land_HouseV_3I4","Land_Ind_Workshop01_03",
    "Land_Mil_Barracks","Land_Mil_Barracks_L",
    "Land_Mil_Guardhouse","Land_Misc_WaterStation",
    "Land_Shed_W4","Land_Shed_W02",
    "Land_Mil_Guardhouse","Land_Cargo_Tower_V1_No5_F"]) then
{
    _constructionObject enableSimulationGlobal true;
    _constructionObject call ExileServer_system_simulationMonitor_addVehicle;
}
else 
{
    _constructionObject enableSimulationGlobal false;
};

// 2017-03-16 - TEMPORARY WORKAROUND UNTIL EXILE UPDATE

_constructionObject setVelocity [0, 0, 0];
_constructionObject setPosATL _position;
_constructionObject setVelocity [0, 0, 0];
_constructionObject setVectorDirAndUp [_vectorDirection, _vectorUp];
_constructionObject setVelocity [0, 0, 0];
_constructionObject

 

This fix isn't needed anymore. there was an Exile update since the workaround. 

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.