-
Posts
859 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Articles
Posts posted by ReDBaroN
-
-
Since upgrading to build 0429 food & drink and power don't seem to be reducing. Also, power doesn't go back up if you drive around or from solar panels.
-
Thanks for the reply. Still haven't got round to Eden editor yet but, sounds like I need to catch up.
Whats the advantage of binarization? Does it increase performance?
-
Thanks vbawol. I'm happy to ignore it if that's all it is. As you say, one hit per player is not going to break the bank in terms of extra logging.
-
+1. I'm seeing this as well but, not sure of any negative knock on effects or if it's stopping anything...
-
Hey vbawol, thanks for this. Is there any advantage in using the new format since the old format seems to work fine.....?
-
7 hours ago, BetterDeadThanZed said:
Thanks for the reply. Is that all the new weapons items they added? The changelog made it look like so much more.
if you look closer at that changelog, you can see that the bulk of the update was changes to existing in the 'Edit' section.
-
Thanks vbawol. Which pbo or file are we looking in to check for the brackets? Just searched on:
EPOCH_arr_interactedObjs
in all the server pbo's and mission file and nothing was returned...
-
4 hours ago, 82ndAB_Bravo17 said:
You can also change respawnOnStart = -1; in epoch_config/sandbox_config.hpp to respawnOnStart = 0; and the respawn script will run again as before.
What's the advantage of that though?
-
Don't think anything to do with custom vehicles or mission vehicles either.
Just tested by constantly tabbing into the server rpt while interacting with added, mission and default epoch vehicles and nothing. Server locked, just me in it.
Then later on, without anything noticeable going on, it appears again....
-
definitely updated server side from scratch for 038. odd thing is that vehicles are saving across restarts, both bought and found and no complaints from players yet of missing vehicles. Just periodically get hit with this error in the rpt.....
I'm wondering whether it's something to do with custom vehicles I have added......?
-
Triffic, thanks guys. Moved it to the bottom of the init and now all is working. Well, all except the hotkey F4.... but, I'll take that! :)
-
I'm wondering if this could be the order of the init problem....
Can anyone remind me which blocks should go where in the init? if (isServer) then , if(hasInterface)then etc
Thanks for the help
-
I pulled the onPlayerKilled.sqf from the mission and restarted without it but, still no earplugs. Auto or F4....
Any more ideas?
-
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
-
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?
Spoiler//============================================
// cmEarplugs Script
// written by computermancer
// superfunserver.com
//switch technique inspired by mgm
//============================================////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// CONFIG : CHOOSE YOUR BEHAVIOR
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////DO YOU WANT EARPLUGS HOTKEY TO WORK?
// if you are using EPAH you should disable for peace of mind.
cmEarplugsKeyPressEnabled = true;////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// HOTKEY CONFIGURATION FOR: TOGGLE EARPLUG IN/OUT VIA KEYPRESS FUNCTION
// List of Available Hotkey Options
// To use INSERT as your hotkey, please choose: 1 in the variable below
// To use NumPadMultiply as your hotkey, please choose: 2 in the variable below
// To use NumPadDivide as your hotkey, please choose: 3 in the variable below
// To use F4 as your hotkey, please choose: 4 in the variable below
// To use F5 as your hotkey, please choose: 5 in the variable below
cmEarplugs_myHotkeyChoice = 4;//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// CHOOSE INSERT & REMOVE BEHAVIOR
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// FIRST NUMBER : Choose how LONG it takes until sound is REDUCED
// SECOND NUMBER:" Choose how LOUD the sound is when it is REDUCED
cmManMuteSound = {1 fadeSound 0.25;};//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//FIRST NUMBER : Choose how LONG it takes until sound RETURNS
//SECOND NUMBER:" Choose how LOUD the sound is when it is done RETUNRNING
cmManReturnSound = {1 fadeSound 1;};//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//CHOOSE YOUR INSERT MESSAGE:
cmManMuteMessage = {
hint "You have inserted your earplugs.";
systemchat "You have inserted your earplugs.";
};//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//CHOOSE YOUR REMOVE MESSAGE:
cmManReturnSoundMsg = {
hint "You have removed your earplugs.";
systemchat "You have removed your earplugs.";
};//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// CHOOSE IF YOU WANT AUTOINSERT & AUTOREMOVE OF EARPLUGS:
InsertAutoEarplugs=true;
RemoveAutoEarplugs=true;//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// CHOOSE AUTO-INSERT & REMOVE BEHAVIOR
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// FIRST NUMBER : Choose how LONG it takes until sound is REDUCED
// SECOND NUMBER:" CHoose how LOUD the sound is when it is REDUCED
cmMuteSound = {5 fadeSound 0.25;};//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//FIRST NUMBER : Choose how LONG it takes until sound RETURNS
//SECOND NUMBER:" CHoose how LOUD the sound is when it is done RETUNRNING
cmReturnSound = {10 fadeSound 1;};//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//CHOOSE YOUR AUTO-INSERT MESSAGE
cmMuteMessage = {
hint "Earplugs have been auto-inserted...";
systemchat "Earplugs have been auto-inserted...";
};//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//CHOOSE YOUR AUTO-REMOVE MESSAGE
cmReturnSoundMsg = {
hint "Earplugs have been auto-removed.";
systemchat "Earplugs have been auto-removed.";
};///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// END CONFIGURABLES
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////EP_req_1 = {
private ["_cm_trigger2"];
_cm_trigger2 = vehicle player != player;
_cm_trigger2
};cm_EP_LOOP = {
while {true} do {
waitUntil {uisleep 0.5; vehicle player != player};
_cm_whatImInATM = vehicle player;
inCaseofDeath = _cm_whatImInATM;
if (InsertAutoEarplugs) then {
if (earplugsout) then {
[] call cmMuteSound;
[] call cmMuteMessage;
earplugsout=false;
};
};//_cm_whatImInATM addEventHandler ["GetOut", {[_this] call cmGetOut}];
if (isNil {_cm_whatImInATM getVariable "HasEarplugMenu"}) then {_cm_whatImInATM setVariable["HasEarplugMenu", "hasNoMenu"];};
_checkington = (_cm_whatImInATM getVariable "HasEarplugMenu");
if (_checkington == "hasNoMenu") then {
_null = _cm_whatImInATM addaction ["<img image='cmEarplugs\earplugs.paa' /><t color=""#38eeff""> Earplugs</t>","[] call cm_Earplugs_FUNc","",0,false,false,"","[] call EP_req_1"];
_cm_whatImInATM setVariable ["HasEarplugMenu","hasMenu"];
systemChat "Earplugs menu has been added.";
};
waitUntil {uisleep 0.5; vehicle player == player};
//_feedME = _this select 0;
//_fedTrueName = _feedME select 0;
theOneTrueName = _cm_whatImInATM;
theOneTrueName setVariable ["HasEarplugMenu","hasMenu"];
if (RemoveAutoEarplugs) then {
if (!earplugsout) then {
[] call cmReturnSound;
[] call cmReturnSoundMsg;
earplugsout=true;
};
};};
};
cm_Earplugs_FUNc = {if (earplugsout) then {
[] call cmManMuteMessage;
[] call cmManMuteSound;
earplugsout=false;
} else {
[] call cmManReturnSoundMsg;
[] call cmManReturnSound;
earplugsout=true;
};
};
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// DO NOT CHANGE THE VALUES BELOW
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////cmEarplugs_hotkeyDIKCodeNumberINSERT = 210;
cmEarplugs_hotkeyDIKCodeNumberNUMPADMULTIPLY = 55;
cmEarplugs_hotkeyDIKCodeNumberNUMPADDIVIDE = 181;
cmEarplugs_hotkeyDIKCodeNumberF4 = 62;
cmEarplugs_hotkeyDIKCodeNumberF5 = 63;switch cmEarplugs_myHotkeyChoice do {
case 1: { cmEarplugs_hotkeyDIKCodeNumber = cmEarplugs_hotkeyDIKCodeNumberINSERT};
case 2: { cmEarplugs_hotkeyDIKCodeNumber = cmEarplugs_hotkeyDIKCodeNumberNUMPADMULTIPLY};
case 3: { cmEarplugs_hotkeyDIKCodeNumber = cmEarplugs_hotkeyDIKCodeNumberNUMPADDIVIDE};
case 4: { cmEarplugs_hotkeyDIKCodeNumber = cmEarplugs_hotkeyDIKCodeNumberF4};
case 5: { cmEarplugs_hotkeyDIKCodeNumber = cmEarplugs_hotkeyDIKCodeNumberF5};
case 0;
default { cmEarplugs_hotkeyDIKCodeNumber = cmEarplugs_hotkeyDIKCodeNumberINSERT};
};
publicVariable "cmEarplugs_hotkeyDIKCodeNumber";
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//END ALL
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -
Nice, thanks for your help :)
-
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 :)
-
2 minutes ago, 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
Thanks Brian, will give it a go :)
-
Hi He-Man, sorry I didn't get back on here yet... In the end I just used my old mission.sqm from the older version as that has some custom stuff in there as well for safezones etc.
Thanks for your post above, I was going to go down the road of adding separate block for sensors, markers and groups (for the HC). Had no idea if that would work though as didn't get that far before having the idea of using the old mission.sqm.
I'll try your as soon as the dust has settled a bit more.... :)
-
+1 not working since 038 update.
-
This has me stumped too. The f4 shortcut key seemed to break some time ago, I think in line with an arma update...not sure.. But, since the 038 update they don't work at all...
Maybe we should hop on that thread though.... ;)
-
He-Man, so sorry! For some reason, as I have two of Halvs scripts that call this file, I had made it so they both call the same one but, for some crazy reason left the old one in another folder and have spent all this time editing that wrong one. I have now made your first reply's changes in the called version and all is good.
Really appreciate your help :)
-
Thanks He-Man.
Sorry, I somehow missed the second half of your earlier reply so, more than likely that's it.
I'll try that first and revert.
Thanks again for your help.
-
Hey He-man,
Sorry but, this did clear the last error but, now there is a new one and the traders still don't credit or debit crypto. Here is the whole file below:
/* HALV_takegive_crypto.sqf by Halv Copyright (C) 2015 Halvhjearne & Suppe This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. Contact : [email protected] */ _player = _this select 0; _nr = _this select 1; _cIndex=EPOCH_customVars find 'Crypto'; _vars = _player getVariable['VARS', call EPOCH_defaultVars_SEPXVar];_curcrypt = _vars select _cIndex; _newcrypt = _curcrypt+_nr; [['effectCrypto',_newcrypt],(owner _player)]call EPOCH_sendPublicVariableClient; _vars set[_cIndex,_newcrypt]; _player setVariable["VARS",_vars];
This is the new error:
3:13:45 Error in expression <'; _vars = _player getVariable['VARS',[]+EPOCH_defaultVars_SEPXVar]; _curcrypt => 3:13:45 Error position: <+EPOCH_defaultVars_SEPXVar]; _curcrypt => 3:13:45 Error +: Type code, expected Number,Array,String,Not a Number 3:13:45 File mpmissions\__cur_mp.Altis\custom\HALV_takegive_crypto.sqf, line 9
Any ideas.....?
Thanks for your help
EDIT: Sorry reposted old error message before, have edited to show the new error message
Server Build 429 - Problems with Hunger, Thirst & Power
in Bug Reports
Posted
Thanks. Is the only change in the masterloop file? (can't ever remember to work the compare builds in github.... :/ )