DayZ Admin tools

Status
Not open for further replies.
this is what i did: (added a buildings folder, inside the folder is the buildingnamehere.sqf files. using same format as the vehicle spawns, with ID replaced with Land_Mil_Barracks_i (or whatever)

_pathtobuildings = "admintools\buildings\";
_EXECscript6 = 'player execVM "'+_pathtobuildings+'%1"';

BuildingMenu =
[
["",true],
["Barracks", [2], "", -5, [["expression", format[_EXECscript6,"Land_Mil_Barracks_i.sqf"]]], "1", "1"],
 
this is what i did: (added a buildings folder, inside the folder is the buildingnamehere.sqf files. using same format as the vehicle spawns, with ID replaced with Land_Mil_Barracks_i (or whatever)

_pathtobuildings = "admintools\buildings\";
_EXECscript6 = 'player execVM "'+_pathtobuildings+'%1"';

BuildingMenu =
[
["",true],
["Barracks", [2], "", -5, [["expression", format[_EXECscript6,"Land_Mil_Barracks_i.sqf"]]], "1", "1"],
Sorry I am half asleep. What do you have in the menu for the buildings? Like does it call BuildingMenu instae of VehicleMenu?
 
example, my Land_Mil_Barracks_i.sqf is:


_spawn = "Land_Mil_Barracks_i";
_posplr = [((getPos player) select 0) + 2, ((getPos player) select 1) + 2, 0];
_dirplr = getDir player;
_spwnveh = _spawn createVehicle (_posplr);
_spwnveh setVariable ["Sarge",1,true];

Ive already gotten buildings to spawn using the tools. but i added an extra menu, a buildings menu.. but when im in game when i go to access it, its taken me to vehicle menu.. but i dont get why because i have:

_pathtobuildings = "admintools\buildings\";
_EXECscript6 = 'player execVM "'+_pathtobuildings+'%1"';

cant test now, freaking dayz.st is getting hit hard with DDoS attacks
 
Hey guys ! ;) I was wondering if you have had any chance of looking into the "Seperate Unique ID" file that is not located in the missions file? :)

We really need that function hehe.. And we are waiting with updating the admin tool untill it works.. Have u guys got any idea how I can make this?

Kregme
 
example, my Land_Mil_Barracks_i.sqf is:


_spawn = "Land_Mil_Barracks_i";
_posplr = [((getPos player) select 0) + 2, ((getPos player) select 1) + 2, 0];
_dirplr = getDir player;
_spwnveh = _spawn createVehicle (_posplr);
_spwnveh setVariable ["Sarge",1,true];

Ive already gotten buildings to spawn using the tools. but i added an extra menu, a buildings menu.. but when im in game when i go to access it, its taken me to vehicle menu.. but i dont get why because i have:

_pathtobuildings = "admintools\buildings\";
_EXECscript6 = 'player execVM "'+_pathtobuildings+'%1"';

cant test now, freaking dayz.st is getting hit hard with DDoS attacks
Sry man building menu doesnt work as you said earlier

send from my Galaxy S2 using tapatalk
 
Okay Has the Hotkey Stuff been changed everthing was working until i updated so i guess i did something wrong or the hot key stuff has changed :S
 
example, my Land_Mil_Barracks_i.sqf is:


_spawn = "Land_Mil_Barracks_i";
_posplr = [((getPos player) select 0) + 2, ((getPos player) select 1) + 2, 0];
_dirplr = getDir player;
_spwnveh = _spawn createVehicle (_posplr);
_spwnveh setVariable ["Sarge",1,true];

Ive already gotten buildings to spawn using the tools. but i added an extra menu, a buildings menu.. but when im in game when i go to access it, its taken me to vehicle menu.. but i dont get why because i have:

_pathtobuildings = "admintools\buildings\";
_EXECscript6 = 'player execVM "'+_pathtobuildings+'%1"';

cant test now, freaking dayz.st is getting hit hard with DDoS attacks
Give us a download link for your mission.pbo, ill take a look
 
dont know if he'll devulge the info. but he does. --- OK HERE IS THE FIX for the admin tools with the building menu in it. The link i have up there is glitched, when you go to buildings menu it takes you to the vehicle menu. Fuze took a 2 second look at it and gave me the fix.

open up admintoolsmain.sqf -

line 47 should be: ["Building Menu", [8], "#USER:VehicleMenu", -5, [["expression", ""]], "1", "1"],
change it to : ["Building Menu", [8], "#USER:BuildingMenu", -5, [["expression", ""]], "1", "1"],

its always something stupid.
 
Okay I just want to make sure I am doing this part correct. I have just change my server_cleanup and my server_updateobjects to Sarge's way.

My server_cleanup.fsm part now looks like this:
Code:
"//Check for hackers" \n
      " {" \n
      "      if(vehicle _x != _x && (vehicle _x getVariable ["Sarge",0] != 1) && !(vehicle _x in _safety) && (typeOf vehicle _x) !=
      "        diag_log (""CLEANUP: KILLING A HACKER "" + (name _x) + "" "" + str(_x) + "" IN "" + (typeOf vehicle _x));" \n
      "          (vehicle _x) setDamage 1;" \n
      "          _x setDamage 1;" \n
      "    };" \n
      " } forEach allUnits;" \n

and my server_updateobject.sqf now looks like this:

Code:
if (!_parachuteWest) then {
    if (_objectID == "0" && _uid == "0" && (vehicle _object getVariable ["Sarge",0] != 1)) then
    {
        _object_position = getPosATL _object;
            diag_log(format["Deleting object %1 with invalid ID at pos [%2,%3,%4]",
            typeOf _object,
            _object_position select 0,
            _object_position select 1,
            _object_position select 2]);
            _isNotOk = true;
    };
};
 
if (_isNotOk) exitWith { deleteVehicle _object; };
 
_lastUpdate = _object getVariable ["lastUpdate",time];
_needUpdate = _object in needUpdate_objects;

Did I do this correctly? I was using the old way before but I had to use a new server pbo

=EDIT=

Well I went ahead and tried it on my test server and didn't work. It has something to do with the server_cleanup.fsm if anyone could show me where I messed up.
 
Okay I just want to make sure I am doing this part correct. I have just change my server_cleanup and my server_updateobjects to Sarge's way.

My server_cleanup.fsm part now looks like this:
Code:
"//Check for hackers" \n
      " {" \n
      "      if(vehicle _x != _x && (vehicle _x getVariable ["Sarge",0] != 1) && !(vehicle _x in _safety) && (typeOf vehicle _x) !=
      "        diag_log (""CLEANUP: KILLING A HACKER "" + (name _x) + "" "" + str(_x) + "" IN "" + (typeOf vehicle _x));" \n
      "          (vehicle _x) setDamage 1;" \n
      "          _x setDamage 1;" \n
      "    };" \n
      " } forEach allUnits;" \n

and my server_updateobject.sqf now looks like this:

Code:
if (!_parachuteWest) then {
    if (_objectID == "0" && _uid == "0" && (vehicle _object getVariable ["Sarge",0] != 1)) then
    {
        _object_position = getPosATL _object;
            diag_log(format["Deleting object %1 with invalid ID at pos [%2,%3,%4]",
            typeOf _object,
            _object_position select 0,
            _object_position select 1,
            _object_position select 2]);
            _isNotOk = true;
    };
};
 
if (_isNotOk) exitWith { deleteVehicle _object; };
 
_lastUpdate = _object getVariable ["lastUpdate",time];
_needUpdate = _object in needUpdate_objects;

Did I do this correctly? I was using the old way before but I had to use a new server pbo

=EDIT=

Well I went ahead and tried it on my test server and didn't work. It has something to do with the server_cleanup.fsm if anyone could show me where I messed up.
github cut off part of the line use this
Code:
"    if  (!(vehicle _x in _safety) && ((typeOf vehicle _x) != ""ParachuteWest"") && (vehicle _x getVariable [""Sarge"",0] != 1) ) then {" \n
 
Status
Not open for further replies.
Back
Top