DayZ Admin tools

Status
Not open for further replies.
Code:
11:54:17 File z\addons\dayz_server\compile\server_updateObject.sqf, line 23
11:54:17 Error in expression < "0" && (vehicle _object getVariable [""Sarge"",0] != 1)) then {
_object_positio>
11:54:17  Error position: <Sarge"",0] != 1)) then {
_object_positio>
11:54:17  Error Missing ]

I keep getting that in the logs... Here is what I have it set as...

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

Am I missing something obvious?
 
Meh, I tried didnt seem to work
add this in above next page in each vehiclemenu, you need to change the #USER:VehicleMenu portion to link to the correct one tho:
Code:
 ["Previous page", [11], "#USER:VehicleMenu", -5, [["expression", ""]], "1", "1"],

as an example here is what the vehicle menu could look like.
Code:
VehicleMenu =
[
    ["",true],
        ["A10", [2],  "", -5, [["expression", format[EXECscript5,"A10.sqf"]]], "1", "1"],
        ["Little Bird", [3],  "", -5, [["expression", format[EXECscript5,"AH64.sqf"]]], "1", "1"],
        ["an2", [4],  "", -5, [["expression", format[EXECscript5,"an2_prop.sqf"]]], "1", "1"],
        ["Apache", [5],  "", -5, [["expression", format[EXECscript5,"APACHE.sqf"]]], "1", "1"],
        ["MTVR fors", [6],  "", -5, [["expression", format[EXECscript5,"MTVRf.sqf"]]], "1", "1"],
        ["MTVR des", [7],  "", -5, [["expression", format[EXECscript5,"MTVR.sqf"]]], "1", "1"],
        ["ATV", [8],  "", -5, [["expression", format[EXECscript5,"ATV.sqf"]]], "1", "1"],
        ["Bike", [9],  "", -5, [["expression", format[EXECscript5,"Bike.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Next page(2)", [12], "#USER:VehicleMenu2", -5, [["expression", ""]], "1", "1"],
                ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
VehicleMenu2 =
[
["",true],
        ["Bus", [2],  "", -5, [["expression", format[EXECscript5,"bus.sqf"]]], "1", "1"],
        ["C130", [3],  "", -5, [["expression", format[EXECscript5,"C130.sqf"]]], "1", "1"],
        ["Chinook", [4],  "", -5, [["expression", format[EXECscript5,"chinook.sqf"]]], "1", "1"],
        ["Su39", [5],  "", -5, [["expression", format[EXECscript5,"F35.sqf"]]], "1", "1"],
        ["Boat 1", [6],  "", -5, [["expression", format[EXECscript5,"FISH.sqf"]]], "1", "1"],
        ["Boat 2", [7],  "", -5, [["expression", format[EXECscript5,"FISH2.sqf"]]], "1", "1"],
        ["Boat 3", [8],  "", -5, [["expression", format[EXECscript5,"FISH3.sqf"]]], "1", "1"],
        ["Gaz", [9],  "", -5, [["expression", format[EXECscript5,"Gaz.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Previous page", [11], "#USER:VehicleMenu", -5, [["expression", ""]], "1", "1"],
            ["Next page (3)", [12], "#USER:VehicleMenu3", -5, [["expression", ""]], "1", "1"],
                ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
VehicleMenu3 =
[
["",true],
        ["Hatchback", [2],  "", -5, [["expression", format[EXECscript5,"Hatchback.sqf"]]], "1", "1"],
        ["HMMV fors", [3],  "", -5, [["expression", format[EXECscript5,"HMMV.sqf"]]], "1", "1"],
        ["HMMV des", [4],  "", -5, [["expression", format[EXECscript5,"HMMV_Fallu.sqf"]]], "1", "1"],
        ["KA60 Namal", [5],  "", -5, [["expression", format[EXECscript5,"KA60_namalsk.sqf"]]], "1", "1"],
        ["Red Lada", [6],  "", -5, [["expression", format[EXECscript5,"ladared.sqf"]]], "1", "1"],
        ["White Lada", [7],  "", -5, [["expression", format[EXECscript5,"Ladawhite.sqf"]]], "1", "1"],
        ["Little Bird", [8],  "", -5, [["expression", format[EXECscript5,"littleBird.sqf"]]], "1", "1"],
        ["MI17", [9],  "", -5, [["expression", format[EXECscript5,"MI17civ.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Previous page (2)", [11], "#USER:VehicleMenu2", -5, [["expression", ""]], "1", "1"],
            ["Next page (4)", [12], "#USER:VehicleMenu4", -5, [["expression", ""]], "1", "1"],
                ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
VehicleMenu4 =
[
["",true],
        ["MI24", [2],  "", -5, [["expression", format[EXECscript5,"MI24.sqf"]]], "1", "1"],
        ["Mill Offroad", [3],  "", -5, [["expression", format[EXECscript5,"militrayOffroad.sqf"]]], "1", "1"],
        ["UH60", [4],  "", -5, [["expression", format[EXECscript5,"UH60.sqf"]]], "1", "1"],
        ["VW Golf", [5],  "", -5, [["expression", format[EXECscript5,"miniHB.sqf"]]], "1", "1"],
        ["Moto", [6],  "", -5, [["expression", format[EXECscript5,"Moto.sqf"]]], "1", "1"],
        ["Moto 2", [7],  "", -5, [["expression", format[EXECscript5,"Moto2.sqf"]]], "1", "1"],
        ["Moto 3", [8],  "", -5, [["expression", format[EXECscript5,"Moto3.sqf"]]], "1", "1"],
        ["Moto 4", [9],  "", -5, [["expression", format[EXECscript5,"Moto4.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Previous page (3)", [11], "#USER:VehicleMenu3", -5, [["expression", ""]], "1", "1"],
            ["Next page (5)", [12], "#USER:VehicleMenu5", -5, [["expression", ""]], "1", "1"],
                ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
...
Can be done with all of the menus that have pages.
 
Hi, first things first. Script is pretty awesome. Using a modified version on my Emita Island Life server with everything dayz related commented. Everything works great but the esp/tele seems to completely jack up the hotkeys for the mod (tab, 1-0, e, t) so I just disabled that script.

It's pretty much perfect except on death after you respawn the mouse menu is gone and never comes back. (mod adjusts respawn time on different variables.)

for activate.sqf im using
Code:
waituntil {!isnull (finddisplay 46)};
if ((getPlayerUID player) in ["5531584","5603520"]) then {
sleep 120;
player addaction [("<t color=""#0074E8"">" + ("Tools Menu") +"</t>"),"admintools\Eexcute.sqf","",5,false,true,"",""];
}

Any ideas?


//edit

seems reslotting gives you the mouse menu back. but of course you lose it on death. woe is me
Change
Code:
waituntil {!isnull (finddisplay 46)};
to
Code:
waituntil {!alive player ; !isnull (finddisplay 46)};
 
  • Like
Reactions: Fox
Code:
11:54:17 File z\addons\dayz_server\compile\server_updateObject.sqf, line 23
11:54:17 Error in expression < "0" && (vehicle _object getVariable [""Sarge"",0] != 1)) then {
_object_positio>
11:54:17  Error position: <Sarge"",0] != 1)) then {
_object_positio>
11:54:17  Error Missing ]

I keep getting that in the logs... Here is what I have it set as...

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

Am I missing something obvious?

remove the double quotes. Might have been my bad, just copying over the code from the fsm file. so instead of ""Sarge"" use "Sarge".
 
add this in above next page in each vehiclemenu, you need to change the #USER:VehicleMenu portion to link to the correct one tho:
Code:
 ["Previous page", [11], "#USER:VehicleMenu", -5, [["expression", ""]], "1", "1"],

as an example here is what the vehicle menu could look like.
Code:
VehicleMenu =
[
    ["",true],
        ["A10", [2],  "", -5, [["expression", format[EXECscript5,"A10.sqf"]]], "1", "1"],
        ["Little Bird", [3],  "", -5, [["expression", format[EXECscript5,"AH64.sqf"]]], "1", "1"],
        ["an2", [4],  "", -5, [["expression", format[EXECscript5,"an2_prop.sqf"]]], "1", "1"],
        ["Apache", [5],  "", -5, [["expression", format[EXECscript5,"APACHE.sqf"]]], "1", "1"],
        ["MTVR fors", [6],  "", -5, [["expression", format[EXECscript5,"MTVRf.sqf"]]], "1", "1"],
        ["MTVR des", [7],  "", -5, [["expression", format[EXECscript5,"MTVR.sqf"]]], "1", "1"],
        ["ATV", [8],  "", -5, [["expression", format[EXECscript5,"ATV.sqf"]]], "1", "1"],
        ["Bike", [9],  "", -5, [["expression", format[EXECscript5,"Bike.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Next page(2)", [12], "#USER:VehicleMenu2", -5, [["expression", ""]], "1", "1"],
                ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
VehicleMenu2 =
[
["",true],
        ["Bus", [2],  "", -5, [["expression", format[EXECscript5,"bus.sqf"]]], "1", "1"],
        ["C130", [3],  "", -5, [["expression", format[EXECscript5,"C130.sqf"]]], "1", "1"],
        ["Chinook", [4],  "", -5, [["expression", format[EXECscript5,"chinook.sqf"]]], "1", "1"],
        ["Su39", [5],  "", -5, [["expression", format[EXECscript5,"F35.sqf"]]], "1", "1"],
        ["Boat 1", [6],  "", -5, [["expression", format[EXECscript5,"FISH.sqf"]]], "1", "1"],
        ["Boat 2", [7],  "", -5, [["expression", format[EXECscript5,"FISH2.sqf"]]], "1", "1"],
        ["Boat 3", [8],  "", -5, [["expression", format[EXECscript5,"FISH3.sqf"]]], "1", "1"],
        ["Gaz", [9],  "", -5, [["expression", format[EXECscript5,"Gaz.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Previous page", [11], "#USER:VehicleMenu", -5, [["expression", ""]], "1", "1"],
            ["Next page (3)", [12], "#USER:VehicleMenu3", -5, [["expression", ""]], "1", "1"],
                ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
VehicleMenu3 =
[
["",true],
        ["Hatchback", [2],  "", -5, [["expression", format[EXECscript5,"Hatchback.sqf"]]], "1", "1"],
        ["HMMV fors", [3],  "", -5, [["expression", format[EXECscript5,"HMMV.sqf"]]], "1", "1"],
        ["HMMV des", [4],  "", -5, [["expression", format[EXECscript5,"HMMV_Fallu.sqf"]]], "1", "1"],
        ["KA60 Namal", [5],  "", -5, [["expression", format[EXECscript5,"KA60_namalsk.sqf"]]], "1", "1"],
        ["Red Lada", [6],  "", -5, [["expression", format[EXECscript5,"ladared.sqf"]]], "1", "1"],
        ["White Lada", [7],  "", -5, [["expression", format[EXECscript5,"Ladawhite.sqf"]]], "1", "1"],
        ["Little Bird", [8],  "", -5, [["expression", format[EXECscript5,"littleBird.sqf"]]], "1", "1"],
        ["MI17", [9],  "", -5, [["expression", format[EXECscript5,"MI17civ.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Previous page (2)", [11], "#USER:VehicleMenu2", -5, [["expression", ""]], "1", "1"],
            ["Next page (4)", [12], "#USER:VehicleMenu4", -5, [["expression", ""]], "1", "1"],
                ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
VehicleMenu4 =
[
["",true],
        ["MI24", [2],  "", -5, [["expression", format[EXECscript5,"MI24.sqf"]]], "1", "1"],
        ["Mill Offroad", [3],  "", -5, [["expression", format[EXECscript5,"militrayOffroad.sqf"]]], "1", "1"],
        ["UH60", [4],  "", -5, [["expression", format[EXECscript5,"UH60.sqf"]]], "1", "1"],
        ["VW Golf", [5],  "", -5, [["expression", format[EXECscript5,"miniHB.sqf"]]], "1", "1"],
        ["Moto", [6],  "", -5, [["expression", format[EXECscript5,"Moto.sqf"]]], "1", "1"],
        ["Moto 2", [7],  "", -5, [["expression", format[EXECscript5,"Moto2.sqf"]]], "1", "1"],
        ["Moto 3", [8],  "", -5, [["expression", format[EXECscript5,"Moto3.sqf"]]], "1", "1"],
        ["Moto 4", [9],  "", -5, [["expression", format[EXECscript5,"Moto4.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Previous page (3)", [11], "#USER:VehicleMenu3", -5, [["expression", ""]], "1", "1"],
            ["Next page (5)", [12], "#USER:VehicleMenu5", -5, [["expression", ""]], "1", "1"],
                ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
...
Can be done with all of the menus that have pages.
Thats what I did, Ill try again and let you know
 
remove the double quotes. Might have been my bad, just copying over the code from the fsm file. so instead of ""Sarge"" use "Sarge".

Thanks! That seems to work...

However, it isn't saving the vehicles when the server reset - They just go back to how they were before the mod was added? Any ideas?
 
Status
Not open for further replies.
Back
Top