Door Lock issues

Door Lock issues

« posted: Jun 05, 2017, 11:51 AM »
Ok looking for some help as this is driving me nuts now,

Edited the store confige to show base locker, base door and door locker, everything is as it should be and i can move and load all items.

Issue is the base door key ! i can access the pin menu (should be default 0000) but keep getting wrong pin.

When i buy them they dont issue a random pin.

Any ideas guys

Re: Door Lock issues

« Reply #1 posted: Jun 05, 2017, 01:47 PM »
Added this line to the playersetupend.sqf  [] execVM "addons\AF_Keypad\AF_KP_vars.sqf";   //base door lock

still getting wrong pin message.

Is their a file i can set a default pin or a random pin

Re: Door Lock issues

« Reply #2 posted: Jun 06, 2017, 07:29 PM »
Just a thought ? do i need to have ExtDB for the doors locks etc to work correctly.

Cheers

Re: Door Lock issues

« Reply #3 posted: Jun 07, 2017, 12:42 PM »
Ok i sussed it, there was no default pin code, i just needed to hit enter to bring up the menu..

5 days and i never even fekin tried this  :-\

Re: Door Lock issues

« Reply #4 posted: Jun 07, 2017, 04:34 PM »
Ok New issue if anyone can help.. got the panel working as their is no default code i.e (0000)(1234) just hit enter.

Trouble now is the code resets to Enter on restart and the door does not open ? could really do with some help on this one guys..


Cheers
DoG

Re: Door Lock issues

« Reply #5 posted: Jun 11, 2017, 04:17 PM »
Little update, the doors and key pad work, you can open and close the door and change the password pin,only trouble now is the Pin does not save.

Do things like base locker and door lock pins save direct to the ExtDB or to the player save ?

Re: Door Lock issues

« Reply #6 posted: Jun 13, 2017, 02:36 PM »
If its not saving you did not edit the file in the persistence directory. Look at the oLoad.sqf located in persistence/server/world...

Do you have this:

Code: [Select]
switch (_var) do
{
case "side": { _value = _value call _strToSide };
case "R3F_Side": { _value = _value call _strToSide };
case "lockDown": { _value }; // BASE LOCKER
case "password": { _value }; // BASE LOCKER - SAFE - DOOR
case "lockedSafe": { _value }; // SAFE
case "A3W_inventoryLockR3F": { _value }; // SAFE
case "R3F_LOG_disabled": { _value }; // SAFE
case "ownerName":
{


Remember whenever AgentRev updates his releases you have to update that deals with base lockers and doors by manually copying and pasting.....

Re: Door Lock issues

« Reply #7 posted: Jun 13, 2017, 03:53 PM »
hey cheers Doc, just checked my Oload.sqf and it is the exact same as yours,, trying a few more bits.

Cheers for the reply man,will report back


DoG
  • Offline hobart
  • First Blood
  • ***
  • Posts: 82

Re: Door Lock issues

« Reply #8 posted: Jun 13, 2017, 10:10 PM »
make sure you have this in persistence\server\world\fn_getObjectProperties.sqf
Code: [Select]
// BASE - SAFE LOCKING Start
switch (true) do
{
case ( _obj isKindOf "Land_Device_assembled_F"):
{
_lockDown = _obj getVariable "lockDown";

if (!isNil "_lockDown") then
{
   _variables pushBack ["lockDown", _lockDown];
};

_password = _obj getVariable "password";

if (!isNil "_password") then
{
   _variables pushBack ["password", _password];
};
};
case ( _obj isKindOf "Box_NATO_AmmoVeh_F"):
{
_password = _obj getVariable "password";

if (!isNil "_password") then
{
   _variables pushBack ["password", _password];
};

_lockedSafe = _obj getVariable "lockedSafe";

if (!isNil "_lockedSafe") then
{
   _variables pushBack ["lockedSafe", _lockedSafe];
};

_inventoryLock = _obj getVariable "A3W_inventoryLockR3F";

if (!isNil "_inventoryLock") then
{
   _variables pushBack ["A3W_inventoryLockR3F", _inventoryLock];
};

_R3FLog = _obj getVariable "R3F_LOG_disabled";

if (!isNil "_R3FLog") then
{
   _variables pushBack ["R3F_LOG_disabled", _R3FLog];
};
};
};
//BASE - SAFE LOCKING End


at line 65/66

Re: Door Lock issues

« Reply #9 posted: Jun 18, 2017, 01:53 PM »
Hey Hobart, i have that line in the persistence folder, think the problem might be with the lock not giving a default code on purchase ? i can change it in game but after restart it defaults back to hitting enter ?

I have noticed most servers have default 0000 pin but 1 i played on it was 1234 default ? can i edit what the default door pin will be ?

Re: Door Lock issues

« Reply #10 posted: Jun 18, 2017, 01:59 PM »
this is showing up alot in the RPT Log.

execVM "addons\BoS\BoS_ownerM>
12:52:07   Error position: <_owner):
{
execVM "addons\BoS\BoS_ownerM>
12:52:07   Error Undefined variable in expression: _owner
12:52:07 File mpmissions\__CUR_MP.Altis\addons\BoS\BoS_SelectMenu.sqf, line 21

Re: Door Lock issues

« Reply #11 posted: Jun 18, 2017, 03:21 PM »
ok i have the key pad now with default 0000 when u buy it, still same issue after restart it goes back to default pin.