CH!LL3R Posted September 22, 2014 Report Share Posted September 22, 2014 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 More sharing options...
Zupa Posted September 22, 2014 Author Report Share Posted September 22, 2014 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 More sharing options...
CH!LL3R Posted September 22, 2014 Report Share Posted September 22, 2014 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 More sharing options...
CH!LL3R Posted September 22, 2014 Report Share Posted September 22, 2014 The new first Dialog looks like this... http://www31.zippyshare.com/v/34574388/file.html Link to comment Share on other sites More sharing options...
Zupa Posted September 22, 2014 Author Report Share Posted September 22, 2014 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 More sharing options...
ARC_Solo Posted September 22, 2014 Report Share Posted September 22, 2014 Getting an Undefined RscButton { error in ComboLockUI.hpp Defines is my first .hpp file called. Link to comment Share on other sites More sharing options...
Zupa Posted September 22, 2014 Author Report Share Posted September 22, 2014 Getting an Undefined RscButton { error in ComboLockUI.hpp Defines is my first .hpp file called. uploaded a new defines in git Link to comment Share on other sites More sharing options...
Cubitron Posted September 22, 2014 Report Share Posted September 22, 2014 ErrorMessage: File mpmissions\__cur_mp.napf\doorManagement\ComboLockUI.hpp, line 59: /Entercode/Controls.main_combo: Undefined base class 'RscButton' i get this Error with the new file Link to comment Share on other sites More sharing options...
ARC_Solo Posted September 22, 2014 Report Share Posted September 22, 2014 He just said he updated it. Link to comment Share on other sites More sharing options...
calamity Posted September 22, 2014 Report Share Posted September 22, 2014 uploaded a new defines in git 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 ??? Link to comment Share on other sites More sharing options...
Zupa Posted September 22, 2014 Author Report Share Posted September 22, 2014 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 More sharing options...
ARC_Solo Posted September 22, 2014 Report Share Posted September 22, 2014 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"; }; calamity 1 Link to comment Share on other sites More sharing options...
calamity Posted September 22, 2014 Report Share Posted September 22, 2014 all is good. thankz zupa. except manual combo not working I will try Skellyy's fix now if I can just build up the nerve to add your single currency system Link to comment Share on other sites More sharing options...
Cubitron Posted September 22, 2014 Report Share Posted September 22, 2014 #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 Link to comment Share on other sites More sharing options...
PeterBeer Posted September 22, 2014 Report Share Posted September 22, 2014 #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 More sharing options...
Zupa Posted September 22, 2014 Author Report Share Posted September 22, 2014 #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 More sharing options...
Zupa Posted September 22, 2014 Author Report Share Posted September 22, 2014 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 More sharing options...
calamity Posted September 22, 2014 Report Share Posted September 22, 2014 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 More sharing options...
PeterBeer Posted September 22, 2014 Report Share Posted September 22, 2014 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 More sharing options...
Anarior Posted September 22, 2014 Report Share Posted September 22, 2014 On your new lockcode UI, the numbers don't cycle when clicked. It is possible to unlock the door but not ideal. Lock UI also doesn't close when the code is entered successfully. Link to comment Share on other sites More sharing options...
Zupa Posted September 22, 2014 Author Report Share Posted September 22, 2014 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 More sharing options...
PeterBeer Posted September 22, 2014 Report Share Posted September 22, 2014 Lol, it changes your order of the object. It switches vector and ownerid So any fix then ? Link to comment Share on other sites More sharing options...
Zupa Posted September 22, 2014 Author Report Share Posted September 22, 2014 So any fix then ? change that mod savings, so it doenst do that Link to comment Share on other sites More sharing options...
Zupa Posted September 22, 2014 Author Report Share Posted September 22, 2014 On your new lockcode UI, the numbers don't cycle when clicked. It is possible to unlock the door but not ideal. Lock UI also doesn't close when the code is entered successfully. Pushed new changes to github to fix that. Link to comment Share on other sites More sharing options...
Anarior Posted September 22, 2014 Report Share Posted September 22, 2014 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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now