CharlesDarwin Posted April 15, 2015 Report Share Posted April 15, 2015 Thank you very much for a must-have script, IMO. Excellent work, easy install, clear instructions. A big thank you! computermancer 1 Link to comment Share on other sites More sharing options...
Guest Posted April 16, 2015 Report Share Posted April 16, 2015 Whens the highly configurable version getting released? Link to comment Share on other sites More sharing options...
Floyd Posted April 16, 2015 Report Share Posted April 16, 2015 **resolved** Link to comment Share on other sites More sharing options...
computermancer Posted April 17, 2015 Author Report Share Posted April 17, 2015 Whens the highly configurable version getting released? Tonight :ph34r: Link to comment Share on other sites More sharing options...
computermancer Posted April 17, 2015 Author Report Share Posted April 17, 2015 cmEarplugs 2.0 is now available on github! Earplugs script for Arma 3 Epoch (EPAH safe) - This script allows you to put in "earplugs". - Config.sqf will let you configure almost every possible aspect of the script. - You can now insert and remove the earplugs by pressing a key of your choice. - Current available keys are : F4, F5, INSERT, NUMPADMULTIPLY, NUMPADDIVIDE - Auto-insert and remove earplugs when getting in and out of vehicles. - Inserting earplugs reduces volume down to about 25 percent. - Removing earplugs restores volume to 100 percent. *Thanks to mgm on epochmod.com for helping with keypress config technique. EDIT: I didn't have any battleye kicks, let me know if you get any so I can update BE filters. mgm 1 Link to comment Share on other sites More sharing options...
mgm Posted April 17, 2015 Report Share Posted April 17, 2015 cmEarplugs 2.0 is now available on github! Earplugs script for Arma 3 Epoch (EPAH safe) - This script allows you to put in "earplugs". - Config.sqf will let you configure almost every possible aspect of the script. - You can now insert and remove the earplugs by pressing a key of your choice. - Current available keys are : F4, F5, INSERT, NUMPADMULTIPLY, NUMPADDIVIDE - Auto-insert and remove earplugs when getting in and out of vehicles. - Inserting earplugs reduces volume down to about 25 percent. - Removing earplugs restores volume to 100 percent. *Thanks to mgm on epochmod.com for helping with keypress config technique. EDIT: I didn't have any battleye kicks, let me know if you get any so I can update BE filters. Congrats on the new release! A small suggestion on the documentation side: if you move the bottom 2 lines to top, to line positions #2 & #3 script intro will be fullin 3 lines, one ofter another easy to follow, as such: - This script allows you to put in "earplugs". - Inserting earplugs reduces volume down to about 25 percent. - Removing earplugs restores volume to 100 percent. You keep improving this non-stop! Looking forward to v.3.0 with luxury earplugs that keep vehicle noise out like the previous versions but can also pair up with your Apple Watch (the new 32 zettabytes, 2036 model!) and keep playing music at 100% volume level. Good job cm, keep it up! computermancer 1 Link to comment Share on other sites More sharing options...
Tobias Solem Posted April 17, 2015 Report Share Posted April 17, 2015 This pops up: Public Variable Restriction #0 "cmEarplugs_hotkeyDIKCodeNumber" = 62 I tried adding !=""cmEarplugs_hotkeyDIKCodeNumber" = 62"" Link to comment Share on other sites More sharing options...
Darth_Rogue Posted April 17, 2015 Report Share Posted April 17, 2015 Just do !"cmEarplugs_hotkeyDIKCodeNumber" computermancer 1 Link to comment Share on other sites More sharing options...
Tobias Solem Posted April 17, 2015 Report Share Posted April 17, 2015 Also: Script Error #59 "EP_LOOP;}; [] spawn {cmKeyPress = (findDisplay 46) displayAddEventHandler ["KeyDown","if ((_this select 1) == cmEarplugs_hotke" 17.04.2015 15:52:42: tried this: !="KeyDown" Link to comment Share on other sites More sharing options...
mgm Posted April 17, 2015 Report Share Posted April 17, 2015 Guys, I suggested KeyDown because it was consistently working for me, cm gave credit and used this more elegant solution. That would be the end of it if this was vanilla Arma. However EPOCH evidently changes things. As soon as I moved my Transport for Arma script to production (with the initial public alpha release) started receiving reports of "it's not working" from testers. I have done my homework (after the event) and set up a clean lab and done tests in a systematic way. In summary, keyDown works only when EPAH is enabled AND player is an admin. I don't know if this KeyDown method which myself and CM use can be 'fixed' in Epoch. What I do know is, until someone shows us how, we need a temp workaround. Last night, I have implemented which does not rely on keyPress but 'activates' when map is opened three times in rapid succession (3 times in 8 seconds by default). Admittedly opening/closing map is a bit ugly method but for the time being, in the absence of anything better, it is doing the job. Working fine when Epoch AntiHack is on or off, working fine when local player is admin or not, working fine when AH cfgpatches setting enabled or not etc etc. It is easy enough to code mapDetect from scratch but I will be happy to share the code if CM would like to re-use my existing code. Link to comment Share on other sites More sharing options...
Darth_Rogue Posted April 17, 2015 Report Share Posted April 17, 2015 From what I hear KeyUp works fine. Link to comment Share on other sites More sharing options...
mgm Posted April 17, 2015 Report Share Posted April 17, 2015 From what I hear KeyUp works fine. When I noticed the issue with EPOCH_KeyDown (i.e.: not working), changing all KeyDown's to KeyUp was the first step in my test process, lasted about 5 minutes and did not work for me. If anybody shares working code I will be happy to test & use. I imagine EPOCH_KeyDown is not there to outright 'block' all KeyDown events, we just need to speak its language somehow but I have no idea how it works hence the workaround. We need LordAWOL or axeman or someone similar. (of course they are all busy developing hoverboards now) Link to comment Share on other sites More sharing options...
Didldadl Posted April 17, 2015 Report Share Posted April 17, 2015 I've got script restriction #53 Link to comment Share on other sites More sharing options...
mgm Posted April 17, 2015 Report Share Posted April 17, 2015 I've got script restriction #53 showing off, are we DirtySanchez 1 Link to comment Share on other sites More sharing options...
computermancer Posted April 17, 2015 Author Report Share Posted April 17, 2015 Sorry guys, lost a fair chunk of time trying t oget @mas stuff on my test server, once I am done, I will setup the vanilla server with vanilla BE filters to make an up-to-date list Link to comment Share on other sites More sharing options...
hurtz Posted April 18, 2015 Report Share Posted April 18, 2015 I'm getting #0 "cmEarplugs_hotkeyDIKCodeNumber" = 62 anyone know where i gotta add that + syntax Link to comment Share on other sites More sharing options...
hurtz Posted April 18, 2015 Report Share Posted April 18, 2015 Fixed Error 53 by adding !"cmKeyPress" to 7 displayAddEventHandler in scripts.txt. mgm 1 Link to comment Share on other sites More sharing options...
computermancer Posted April 19, 2015 Author Report Share Posted April 19, 2015 I'm getting #0 "cmEarplugs_hotkeyDIKCodeNumber" = 62 anyone know where i gotta add that + syntax at the end of the first line add this !="cmEarplugs_hotkeyDIKCodeNumber" at the end , on the first line of the txt file mentioned in the error (scripts, setvariable, etc) hurtz 1 Link to comment Share on other sites More sharing options...
hurtz Posted April 19, 2015 Report Share Posted April 19, 2015 I also add !="KeyDown" to a couple of lines in scripts.txt. This was to fix BE error 59 kick when AI kills you. added !="KeyDown" to: displayAddEventHandler displayRemoveEventhandler Also added !="cmEarplugs_hotkeyDIKCodeNumber" as mentioned by computermancer above. All sorted I hope Link to comment Share on other sites More sharing options...
computermancer Posted April 19, 2015 Author Report Share Posted April 19, 2015 I updated battleye stuff, files on github and install instrucitons BTW: It turns out that EPAH being enabled does not allow keydown stuff. But if you do have EPAH enabled, everything else still works. Edit these in your BE filters ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// scripts.txt (at the end of the line add the following) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// (BIS_fnc_) First Line: !"bis_fnc_initVehicle" !"BIS_fnc_setVehicleMass_fsm" !"BIS_fnc_arsenal_type" (displayAddEventHandler) Line 53 (54 on notepad++) : !"EP_LOOP" (displayAddEventHandler) Line 53 (54 on notepad++) !"cmKeyPress" ( exec ) Line 22 (23 on notepad++) : !"clock.sqf" ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// PublicVariable.txt (at the end of the line add the following) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// First Line: !"cmEarplugs_hotkeyDIKCodeNumber" ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Mates31cz 1 Link to comment Share on other sites More sharing options...
mgm Posted April 19, 2015 Report Share Posted April 19, 2015 I updated battleye stuff, files on github and install instrucitons BTW: It turns out that EPAH being enabled does not allow keydown stuff. But if you do have EPAH enabled, everything else still works. Edit these in your BE filters ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// scripts.txt (at the end of the line add the following) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// (BIS_fnc_) First Line: !"bis_fnc_initVehicle" !"BIS_fnc_setVehicleMass_fsm" !"BIS_fnc_arsenal_type" (displayAddEventHandler) Line 53 (54 on notepad++) : !"EP_LOOP" (displayAddEventHandler) Line 53 (54 on notepad++) !"cmKeyPress" ( exec ) Line 22 (23 on notepad++) : !"clock.sqf" ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// PublicVariable.txt (at the end of the line add the following) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// First Line: !"cmEarplugs_hotkeyDIKCodeNumber" ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// In my experience EPAH is blocking for players and working for admins - sorry I noticed this after suggesting the method.I got a workaround which is working for all players if you'd like to reuse that method let me know? Link to comment Share on other sites More sharing options...
dnk_paul Posted April 19, 2015 Report Share Posted April 19, 2015 Hey Guys, I'm getting the following when I die after implementing this script. Any ideas? I've added the !="KeyDown" as described in a previous post, but that hasn't helped: Script restriction #31. The log says: #31 "PlayerKilled.sqf" 5 fadeSound 1; earplugsout = true; removeAllActions inCaseofDeath; removeAllActions theOneTrueName; inCaseo" Paul Link to comment Share on other sites More sharing options...
mgm Posted April 19, 2015 Report Share Posted April 19, 2015 Hey Guys, I'm getting the following when I die after implementing this script. Any ideas?I've added the !="KeyDown" as described in a previous post, but that hasn't helped: Script restriction #31. The log says: #31 "PlayerKilled.sqf" 5 fadeSound 1;earplugsout = true;removeAllActions inCaseofDeath;removeAllActions theOneTrueName;inCaseo" PaulIs EPAH (Epoch AntiHack) enabled and if yes, are you an EPAH Admin? Evidently, only EPAH admins can use this 'KeyDown' and EPAH need to be enabled on the server. Link to comment Share on other sites More sharing options...
dnk_paul Posted April 19, 2015 Report Share Posted April 19, 2015 I believe that it is enabled, yes. OK though thanks, I'll remove this one :) Link to comment Share on other sites More sharing options...
mgm Posted April 19, 2015 Report Share Posted April 19, 2015 I believe that it is enabled, yes. OK though thanks, I'll remove this one :)This script is working brilliant overall except this last issue - I guess CM will fix it soon.Until then just use one of the older versions.If there is no 'older versions' in GitHub, maybe ask CM to provide one. computermancer 1 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