Jump to content

computermancer

Recommended Posts

I get this when I join my server, what did I do wrong? I dont completely understand your instructions for editing scripts.txt...do they go before or after anything specifically? I put them on the line specified for notepad++

 

  Quote

BattlEye Server: ScriptLog: #1 me(uid) - #48 "bled) then {

[] spawn {csKeyPress = (findDisplay 46) displayAddEventHandler ["KeyDown","if ((_this select 1) == cmEarplugs_hotke"
Player me kicked off by BattEye: Script Restriction #48

 

Link to comment
Share on other sites

 (displayAddEventHandler        )  Line 53 (54 on notepad++) :               !"EP_LOOP"

 

Basically what that says is look in scripts.txt for the line that starts with displayAddEventHandler. Should be around line 53/54. Just add !"EP_LOOP" to the end of that line. Repeat for the rest of them.

Link to comment
Share on other sites

so i could add that ep_loop part to the end of the line that is somewhere around 53/54? and if its not there? do i just add it to any line that begins with displayaddeventhandler?

thanks

edit: looks like line 49 for me. lets try this out.. i put all the commands in, the only one that doesn't have a line that starts with exec, so thats just sitting at the end of line 23 as (exec) !"clock.sqf"

Link to comment
Share on other sites

last 4 times i tried to connect  

18.08.2015 20:15:01: Me (xxx.xxx.xxx.xxx) UID - #48 "bled) then {
[] spawn {cmKeyPress = (findDisplay 46) displayAddEventHandler ["KeyDown","if ((_this select 1) == cmEarplugs_hotke"
18.08.2015 21:05:36: Me (xxx.xxx.xxx.xxx) UID - #48 "bled) then {
[] spawn {cmKeyPress = (findDisplay 46) displayAddEventHandler ["KeyDown","if ((_this select 1) == cmEarplugs_hotke"
18.08.2015 22:26:54: Me (xxx.xxx.xxx.xxx) UID - #48 "bled) then {
[] spawn {cmKeyPress = (findDisplay 46) displayAddEventHandler ["KeyDown","if ((_this select 1) == cmEarplugs_hotke"
18.08.2015 22:34:45: Me (xxx.xxx.xxx.xxx) UID - #48 "bled) then {
[] spawn {cmKeyPress = (findDisplay 46) displayAddEventHandler ["KeyDown","if ((_this select 1) == cmEarplugs_hotke"

Link to comment
Share on other sites

  • 3 weeks later...
 6:44:26 Error in expression < ((_hasEPEH == "NEVER")) then {[] spawn cm_EP_LOOP;};	

if (cmEarplugsKeyPressEn>
 6:44:26   Error position: <cm_EP_LOOP;};	

if (cmEarplugsKeyPressEn>
 6:44:26   Error Nicht definierte Variable in Ausdruck: cm_ep_loop
 6:44:26 File mpmissions\__CUR_MP.altis\onPlayerRespawn.sqf, line 40
 6:44:26 Error in expression <R")) then {[] spawn cm_EP_LOOP;};	

if (cmEarplugsKeyPressEnabled) then {
[] spa>
 6:44:26   Error position: <cmEarplugsKeyPressEnabled) then {
[] spa>
 6:44:26   Error Nicht definierte Variable in Ausdruck: cmearplugskeypressenabled
 6:44:26 File mpmissions\__CUR_MP.altis\onPlayerRespawn.sqf, line 42

 

Link to comment
Share on other sites

  • 2 weeks later...
  On 4/10/2015 at 7:23 AM, Zombie Pacifier said:

'...Actions inCaseofDeath;

removeAllActions |#|theOneTrueName;

inCaseofDeath setVariabl...'

File mpmissions\__CUR_MP.Bornholm\onPlayerKilled.sqf, line 6

Error Undefined variable in expression: theonetruename

I'm getting this same error, well except Altis not Bornholm, did anybody ever figure our to fix?

Edited by blue00
Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

Strange issue... on the server I play, most people it seems to be working fine. But for a few players and myself its not working at all since the latest update. Anyone know why it would work for some but not all players? Prior to this last update it was working for me about 60% of the time and now I have to scroll to put them in and take them out all the time which becomes very annoying.

Edited by HarryNutz
Link to comment
Share on other sites

  • 3 weeks later...

I can not have that script working at all, I have script restriction over and over whatever I'm doing, Script is very simple to install but that BE crap make it complicated.

Kick are publicvariable  #0 "cmEarplugs_hotkeyDIKCodeNumber" = 62

script restriction         #24 "ltis\init.sqf"

[] execVM "custom\PlayerMarker.sqf";


call compile preProcessFileLineNumbers "cmEarplugs\config.sqf";

"

 

There is my actual script.text  http://pastebin.com/X4tupUnG

My init.swf

// Player Marker
[] execVM "custom\PlayerMarker.sqf";

//EARPLUGS
call compile preProcessFileLineNumbers "cmEarplugs\config.sqf";

 

 

Don't know what to do there.

Link to comment
Share on other sites

  • 5 months later...

This script was working fine till 0.3.4.0

After that, players where nomore able to manual use earplugs (admin was),  but they worked automatic by joining vehicles.

since 0.3.8.0 earplugs are nomore working at all, no option also shown in vehicle menu.

any idea someone ?

Link to comment
Share on other sites

  On 4/10/2016 at 6:28 PM, Brian Soanes said:

Ok here's how to fix

Create a new file in your mission root called earplugsfix.sqf and copy in this content http://pastebin.com/PC9FS2DJ
In your init.sqf (if you don't have one make a file called init.sqf in your mission root) paste this
 

if(isServer)then {}
	execVM "earplugsfix.sqf";

Repack mission file

Expand  

Thanks Brian, will give it a go :)

Link to comment
Share on other sites

Do we need to keep or edit this code as well that was in the instructions to add to onPlayerRespawn.sqf? Or should we overwrite this code with yours as well?

//////////////////////////////////////////////////////////////////////////
//START EARPLUGS CODE

waitUntil {vehicle player == player};
waituntil {!isnull (finddisplay 46)};

//////////////////////////////////////////////////////////////////////////
		_OPRbreathing = alive player;
		_OPRtrig=true;
		_OPRdude = player;

			while {_OPRtrig} do {

				sleep 0.001;

					if (_OPRbreathing) then {
						_OPRstartingpos = position player;
						sleep 0.001;
						_OPRposition = position _OPRdude;

						_OPRstationary = _OPRstartingpos select 0 == _OPRposition select 0 && _OPRstartingpos select 1 == _OPRposition select 1;

						if (_OPRstationary) then {} else {_OPRtrig=false;};
						
					};
			};

uisleep 1;

if (isNil {player getVariable "Has_EPEH_Loop"}) then {player setVariable["Has_EPEH_Loop", "NEVER"];};

//////////////////////////////////////////////////////////////////////////
5 fadeSound 1;
earplugsout=true;	
SuperFunEPEHVariable = false;
/////////////////////////////////////////////////////////////////////////
uisleep 1;
_hasEPEH = player getVariable "Has_EPEH_Loop";
uisleep 1;
if ((_hasEPEH == "NEVER")) then {[] spawn cm_EP_LOOP;};	

if (cmEarplugsKeyPressEnabled) then {
	[] spawn {cmKeyPress = (findDisplay 46) displayAddEventHandler ["KeyDown","if ((_this select 1) == cmEarplugs_hotkeyDIKCodeNumber) then {[] call cm_Earplugs_FUNc;};"];};
};
//cmEARPLUGS CODE END
//////////////////////////////////////////////////////////////////////////

Thanks for your help :)

Link to comment
Share on other sites

Hey Brian, this doesn't seem to have worked.... I have posted the OP's config.sqf earplug script below. Does this need to be reworked as well?

  Reveal hidden contents

 

Link to comment
Share on other sites

  On 4/10/2016 at 7:54 PM, ReDBaroN said:

Hey Brian, this doesn't seem to have worked.... I have posted the OP's config.sqf earplug script below. Does this need to be reworked as well?

  Reveal hidden contents

 

Expand  

No, that should work how it always has, make sure you still have call compile preProcessFileLineNumbers "cmEarplugs\config.sqf"; in  your init.sqf (I use that instead of execVM)

Link to comment
Share on other sites

me too, haven't touched the call line in the init..... just get nothing...

I also have the following in onPlayerKilled.sqf as per the OP:

//////////////////////////////////////////////////////////////////////////
//START EARPLUGS CODE

5 fadeSound 1;
earplugsout = true;
removeAllActions inCaseofDeath;
removeAllActions theOneTrueName;
inCaseofDeath setVariable ["HasEarplugMenu","hasNoMenu"];
theOneTrueName setVariable ["HasEarplugMenu","hasNoMenu"];
player setVariable ["Has_EPEH_Loop", "Yep"];
systemChat "Diablo's minions grow stronger...";

(findDisplay 46) displayRemoveEventHandler ["KeyDown", cmKeyPress];

//cmEARPLUGS CODE END
//////////////////////////////////////////////////////////////////////////

Could this be affecting it?

Thanks 

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...