Axe Cop Posted November 13, 2013 Report Share Posted November 13, 2013 I have a DayZ.ST server and I'm not sure I can access the dayz_code folder. Is there a way to get the folder I don't know about or is there another way to add this mod to the towing script? The folder/file is on your machine, in the epoch installation! :D It is also on the server, but you don't need access to that because you should have the same on your PC, try here if you use steam: "C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead\@DayZ_Epoch\addons\dayz_code.pbo" (need to be extracted first, search the forums or the internet on how to) Btw: why are always DayZ.st customers asking those kind of questions, I am just curious lol Dridge118 1 Link to comment Share on other sites More sharing options...
captgentry Posted November 14, 2013 Report Share Posted November 14, 2013 jeez. I didn't even think about looking at my client files for that. Thanks. it works great! Link to comment Share on other sites More sharing options...
Adminlaststand Posted November 14, 2013 Report Share Posted November 14, 2013 Superb Job - works a treat +1 from me A Link to comment Share on other sites More sharing options...
Firefly Posted November 16, 2013 Report Share Posted November 16, 2013 And fixed. Link to comment Share on other sites More sharing options...
Nsgguy Posted November 16, 2013 Report Share Posted November 16, 2013 so im using this and after restart i can tow locked stuff untill its unlocked / lock agint then it works perfect. Any ideas? Link to comment Share on other sites More sharing options...
Axe Cop Posted November 16, 2013 Report Share Posted November 16, 2013 so im using this and after restart i can tow locked stuff untill its unlocked / lock agint then it works perfect. Any ideas? Looks like you missed the server side changes or there is an error if you did that, check your server log for syntax errors maybe Link to comment Share on other sites More sharing options...
peipo118 Posted November 18, 2013 Report Share Posted November 18, 2013 I have a question : is the variable "disable" specific to the R3F loading script or is it an arma specific command i could use with my loading script too as i am not using R3F. thanks in adavnce ;) Link to comment Share on other sites More sharing options...
peipo118 Posted November 18, 2013 Report Share Posted November 18, 2013 In my script..i use BTK cargodrop... I found this : Object Setvariable["R3F_Log_Disabled",false]; So maybe it will work with your tutorial just like that? Link to comment Share on other sites More sharing options...
Axe Cop Posted November 18, 2013 Report Share Posted November 18, 2013 I have a question : is the variable "disable" specific to the R3F loading script or is it an arma specific command i could use with my loading script too as i am not using R3F. thanks in adavnce ;) The variable is called R3F_LOG_disabled" and NOT "disable" where do you see that? so yeah it is specific and has to be handled in the R3F logistics code of course.. :) Link to comment Share on other sites More sharing options...
MrTesla Posted November 18, 2013 Author Report Share Posted November 18, 2013 BTK Cargo Drop uses the "R3F_LOG_disabled" variable so R3F's functions don't interfere with its own. So, for example, no one can tow a vehicle that's already loaded into your vehicle via BTK. The "R3F_LOG_disabled" variable, not a command. It's "made up" by the scripts, and used to check whether R3F's functions should be performed. Certain actions will set the variable to true, while others will set it back to false. If you look in the scripts like heliporter.sqf, it looks something like this: if !(_objet getVariable "R3F_LOG_disabled") then { if (isNull (_objet getVariable "R3F_LOG_est_transporte_par")) then { if (count crew _objet == 0) then { if (isNull (_objet getVariable "R3F_LOG_est_deplace_par") || (!alive (_objet getVariable "R3F_LOG_est_deplace_par"))) then { private ["_ne_remorque_pas", "_remorque"]; _ne_remorque_pas = true; _remorque = _objet getVariable "R3F_LOG_remorque"; if !(isNil "_remorque") then { if !(isNull _remorque) then { _ne_remorque_pas = false; }; }; if (_ne_remorque_pas) then { _heliporteur setVariable ["R3F_LOG_heliporte", _objet, true]; _objet setVariable ["R3F_LOG_est_transporte_par", _heliporteur, true]; _objet attachTo [_heliporteur, [ 0, 0, (boundingBox _heliporteur select 0 select 2) - (boundingBox _objet select 0 select 2) - (getPos _heliporteur select 2) + 0.5 ]]; player globalChat format [STR_R3F_LOG_action_heliporter_fait, getText (configFile >> "CfgVehicles" >> (typeOf _objet) >> "displayName")]; } else {player globalChat format [STR_R3F_LOG_action_heliporter_objet_remorque, getText (configFile >> "CfgVehicles" >> (typeOf _objet) >> "displayName")]}; } else {player globalChat format [STR_R3F_LOG_action_heliporter_deplace_par_joueur, getText (configFile >> "CfgVehicles" >> (typeOf _objet) >> "displayName")]}; } else {player globalChat format [STR_R3F_LOG_action_heliporter_joueur_dans_objet, getText (configFile >> "CfgVehicles" >> (typeOf _objet) >> "displayName")]}; } else {player globalChat format [STR_R3F_LOG_action_heliporter_deja_transporte, getText (configFile >> "CfgVehicles" >> (typeOf _objet) >> "displayName")]}; }; The line "if !(_objet getVariable "R3F_LOG_disabled") then {" means the code between the "{" and the "};" all the way at the end will only be performed if the "R3F_LOG_disabled" variable is not set to true. So when a script sets the variable to true, it's essentially disabling this function. Link to comment Share on other sites More sharing options...
BetterDeadThanZed Posted November 19, 2013 Report Share Posted November 19, 2013 In step 9, where you say edit this section in "server_monitor.sqf": if(_ownerID != "0") then { _object setvehiclelock "locked"; }; That doesn't exist in Epoch 1.0.2.5. Instead, it's: if(_ownerID != "0" and !(_object isKindOf "Bicycle")) then { _object setvehiclelock "locked"; }; Should I change THAT section? if(_ownerID != "0" and !(_object isKindOf "Bicycle")) then { _object setvehiclelock "locked"; _object setVariable ["R3F_LOG_disabled",true,true]; }; Link to comment Share on other sites More sharing options...
Axe Cop Posted November 19, 2013 Report Share Posted November 19, 2013 Yes you have to change that like the last section, it was changed with the last epoch patch since you can't lock bicycles anymore.. :D You can't just go around and do a search & replace because the code of epoch always changes with the updates, so learn the basics of programming/scriping, that would make this much easier and you learn something useful with it (maybe?) Link to comment Share on other sites More sharing options...
calamity Posted November 19, 2013 Report Share Posted November 19, 2013 anyone know how to stop choppers from lifting vehicles through buildings like I have a locked garage but someone can just lift the vehicle out of the roof no problem unless its locked then it cant but what about found vehicles in a building Link to comment Share on other sites More sharing options...
peipo118 Posted November 19, 2013 Report Share Posted November 19, 2013 So do you see any possibibility of allowing me to the same thing on the BTK script? Or should is use R3F instead?... have to say i always had a bit of trouble when it comes to that one....(and i have a lot of scripts running correctly...) Thx for your answers lads! this community is awesome :D Link to comment Share on other sites More sharing options...
Torndeco Posted November 19, 2013 Report Share Posted November 19, 2013 U will need to add code to detect if object is is between the heli & vehicle to stop it lifting through a building https://community.bistudio.com/wiki/lineIntersects As for where in the R3F sorry the french variable names are to much for me, never studied / learned french. Using a modifed BTK script myself Link to comment Share on other sites More sharing options...
peipo118 Posted November 20, 2013 Report Share Posted November 20, 2013 Actually i do speak french :p besides a couple of other languages .. Well if you would be willing to share your modified version with me if you got the locked lifting working for you thatwould be awesome !!! Actually i understand the code when i see it and i can modify stuff myself but when it comes to writing something myself i don't have the knowledge.. Well thx for the help it is much appreciated :D Link to comment Share on other sites More sharing options...
captgentry Posted November 20, 2013 Report Share Posted November 20, 2013 Well, I messed up something.. I think I turned on the debug options. It shows on the game map large yellow circles and red static spawn points. It also shows where each AI are on the game map. Now I can't find where to turn these off. Link to comment Share on other sites More sharing options...
captgentry Posted November 21, 2013 Report Share Posted November 21, 2013 nevermind... lol Link to comment Share on other sites More sharing options...
Dridge118 Posted December 11, 2013 Report Share Posted December 11, 2013 (edited) In the dayz_code folder, copy the "local_lockunlock.sqf" from the "compile" folder i dont have that in the folder to begin with :( Found it lol My bad but i tested the lift tow before adding this and it worked came up on the scroll menu but after adding this it doesn't come up at all on any vehicle :( Sorry long night has taken it's toll forgot to select the files for the server lol but after just me testing it atm the locked cars can still be towed is it because i bought the cars that im trying to tow? even tho i put the key in a different vehicle. Thanks Edited December 11, 2013 by Dridge118 Link to comment Share on other sites More sharing options...
iFear Posted December 11, 2013 Report Share Posted December 11, 2013 Hi, I have a problem that i don't get tow/or lift option for bought and not locked vehicles, when i use this Tutorial. Normaly this should only be for locked vehicles... but when i unlock my cars i still get no tow/lift option :( I've explained my problem more detailed in this thread: http://dayzepoch.com/forum/index.php?/topic/4767-r3f-towlift-epoch-103-dont-get-towlift-option-on-bought-vehicles/?p=29707 Maybe anyone could help me? Link to comment Share on other sites More sharing options...
ImNotMike Posted December 11, 2013 Report Share Posted December 11, 2013 Can't unlock any vehicles. Followed the steps to the letter and already checked the suggestions to solve it in this thread - was all good. Anything I missed here? Link to comment Share on other sites More sharing options...
Nsgguy Posted December 11, 2013 Report Share Posted December 11, 2013 @ imnotmike Are you using a self blood bag script? Link to comment Share on other sites More sharing options...
ImNotMike Posted December 11, 2013 Report Share Posted December 11, 2013 @ imnotmike Are you using a self blood bag script? I am in fact yes. Link to comment Share on other sites More sharing options...
Nsgguy Posted December 11, 2013 Report Share Posted December 11, 2013 Get rid of it. Fixed mine when I did Link to comment Share on other sites More sharing options...
ImNotMike Posted December 11, 2013 Report Share Posted December 11, 2013 Get rid of it. Fixed mine when I did I'll try it! 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