Jump to content

[Release] 3.0 Door Management - No More Codes


Zupa

Recommended Posts

Okay, sorry... I had to know that, but doesnt think about it ^^

Now I try to figure out, how to eliminate the error "You dont have rights to manage..." or something like that, by using the Code-Block from Post #68 by joelash

++++++++EDIT++++++++++
Okay, i did the changes from Post #68, now i can open/close doors by Eye-Scan, but i couldnt manage the door... this error pops up:

Varibale '_display' does not support serialization. Call
'disableSerialization' in the current script (maybe 'mpmissions\__
CUR_MP.sauerland\initDoorManagement.sqf') if
you need to use it.

And how could a Player manage doors, that already exist, before I put this script on the server?

Link to comment
Share on other sites

UPDATED Original post to P4L Version 2.0 With option to have manual code ( with option to have cen's harder penalty). Config is in initDoormanagement.

 

Can anyone test this on a test server?

 

I had no time to test the code.

 

Thx to BigDaddy for some extra work already done!

 

A screenshot of the new first Dialog would be nice if someone can make that  for the post ^^

Link to comment
Share on other sites

Fixed this Error with the Code from Post #53

Varibale '_display' does not support serialization. Call
'disableSerialization' in the current script (maybe 'mpmissions\__
CUR_MP.sauerland\initDoorManagement.sqf') if
you need to use it.

But, now I have two Problems...

 

1)

I only can manage the door, if I click on "UnlockDoor" and only BEFORE I open it with the EyeScan. After opening with EyeScan, this Option will doesnt show again, it only lockes or unlocks the door and.... If I click on "Manage Door" in the MouseAction i still have the "You do not have the rights to manage" Text

 

2)

Is there a chance to manage the door, if it was build before I add this Script?

Link to comment
Share on other sites

Fixed this Error with the Code from Post #53

Varibale '_display' does not support serialization. Call
'disableSerialization' in the current script (maybe 'mpmissions\__
CUR_MP.sauerland\initDoorManagement.sqf') if
you need to use it.

But, now I have two Problems...

 

1)

I only can manage the door, if I click on "UnlockDoor" and only BEFORE I open it with the EyeScan. After opening with EyeScan, this Option will doesnt show again, it only lockes or unlocks the door and.... If I click on "Manage Door" in the MouseAction i still have the "You do not have the rights to manage" Text

 

2)

Is there a chance to manage the door, if it was build before I add this Script?

 

I pressumre you dont use plot4Life?

Link to comment
Share on other sites

you state

( THE DEFINES IS THE SAME AS I USE FOR ANY SCRIPT OF MINE, YOU ONLY NEED IT ONCE, do NOT include it if you already have it)

so should we replace the old #include "plotManagement\defines.hpp"  

replace that defines.hpp with this one ???

 

Didnt see that was in the post, i updaded the defines yes.

 

AND yes, overwrite that defines with the new one. ( to support the combolock one added later)

Link to comment
Share on other sites

Gone over all of it again, followed all the steps but the "Manage door" link doesn't open the Door management and "manual combo" doesn't show up when clicked.

 

Fixed manual code

In doorUnlock.hpp replace Zupa Button4 with

 

class ZupaButton_4 : RscShortcutButton
		{
			idc = -1;
			text = "Manual Code";
			x = 0.40 * safezoneW + safezoneX;
			y = 0.50 * safezoneH + safezoneY;					
			style = 2;
			w = 0.20;
			onButtonClick = "call player_enterCode";					
		};
Link to comment
Share on other sites

#include "doorManagement\ComboLockUI.hpp"

 

i need this for plot4l and for non plot4l?

 

with this i get

 

doorManagement\ComboLockUI.hpp, line 59: /Entercode/Controls.main_combo: Undefined base class 'RscButton'

 

and without

 

i have no errors but i dont have the rights to manage

 

If you look in the Defines.hpp you need the RscButton and a few other if you haven't got it 

Link to comment
Share on other sites

#include "doorManagement\ComboLockUI.hpp"

 

i need this for plot4l and for non plot4l?

 

with this i get

 

doorManagement\ComboLockUI.hpp, line 59: /Entercode/Controls.main_combo: Undefined base class 'RscButton'

 

and without

 

i have no errors but i dont have the rights to manage

 

there is an updated defines.hpp

Link to comment
Share on other sites

 

Gone over all of it again, followed all the steps but the "Manage door" link doesn't open the Door management and "manual combo" doesn't show up when clicked.

 

Fixed manual code

In doorUnlock.hpp replace Zupa Button4 with

 

class ZupaButton_4 : RscShortcutButton
		{
			idc = -1;
			text = "Manual Code";
			x = 0.40 * safezoneW + safezoneX;
			y = 0.50 * safezoneH + safezoneY;					
			style = 2;
			w = 0.20;
			onButtonClick = "call player_enterCode";					
		};

 

 

Updated the git with that bugfix

Link to comment
Share on other sites

 

Gone over all of it again, followed all the steps but the "Manage door" link doesn't open the Door management and "manual combo" doesn't show up when clicked.

 

Fixed manual code

In doorUnlock.hpp replace Zupa Button4 with

 

class ZupaButton_4 : RscShortcutButton
		{
			idc = -1;
			text = "Manual Code";
			x = 0.40 * safezoneW + safezoneX;
			y = 0.50 * safezoneH + safezoneY;					
			style = 2;
			w = 0.20;
			onButtonClick = "call player_enterCode";					
		};

 

thankz for this fix. all is good now

onButtonClick = "call player_enterCode";

Link to comment
Share on other sites

If you use this : 

 

Change the code it says you cant manage it any more 

 

The world coordinates do change in the database which moves the ID number might be why ?

 

Before changing Code : 

["231.168213","[9732.359375,11533.50293,0.104401]",[[-0.779,-0.627,0],[0,0,1]],"76561198090922004"]

After changing Code : 

["231.168213","[9732.359375,11533.50293,0.104401]","76561198090922004",[[-0.779,-0.627,0],[0,0,1]]]

Any fix ?

Link to comment
Share on other sites

If you use this : 

 

Change the code it says you cant manage it any more 

 

The world coordinates do change in the database which moves the ID number might be why ?

 

Before changing Code : 

["231.168213","[9732.359375,11533.50293,0.104401]",[[-0.779,-0.627,0],[0,0,1]],"76561198090922004"]

After changing Code : 

["231.168213","[9732.359375,11533.50293,0.104401]","76561198090922004",[[-0.779,-0.627,0],[0,0,1]]]

Any fix ?

 

Lol, it changes your order of the object. It switches vector and ownerid

Link to comment
Share on other sites

Pushed new changes to github to fix that.

 

Thanks, I'll give that a try. I was starting to pull all the code from the Epoch git to rewrite the mod to use the builtin UI instead :D

 

Will let you know how it works out.

 

Also I noticed that the manual code button only works if you click manage, close the window, go back to unlock door and then click on the manual code button, but that is nothing major for now.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...