DayZ Admin tools

Status
Not open for further replies.
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.
Okay it worked, don't know why it didn't work for me the first time but thanks anyway
 
If you teleport vehicles, it will revert back to their old positions.

I've not touched anything with vehicles menu; I just joined the server after it restarted and all vehicles went back to the same position as they were this morning (just before the mod got added)
 
I've not touched anything with vehicles menu; I just joined the server after it restarted and all vehicles went back to the same position as they were this morning (just before the mod got added)
Interesting... I am not sure on what is causing it but hopefully BluePhoenix might know.
 
I have just updated to the latest version and keep getting this error in the RPT:

16:22:38 File z\addons\dayz_server\compile\server_objectUpdate.sqf, line 16
16:22:50 Error in expression < "0" && (vehicle _object getVariable [""Sarge"",0] != 1)) then {
_object_positio>
16:22:50 Error position: <Sarge"",0] != 1)) then {
_object_positio>
16:22:50 Error Missing ]

This is the line:

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;
    };
};

From the instructions I gathered this is correct?
 
I have just updated to the latest version and keep getting this error in the RPT:

16:22:38 File z\addons\dayz_server\compile\server_objectUpdate.sqf, line 16
16:22:50 Error in expression < "0" && (vehicle _object getVariable [""Sarge"",0] != 1)) then {
_object_positio>
16:22:50 Error position: <Sarge"",0] != 1)) then {
_object_positio>
16:22:50 Error Missing ]

This is the line:

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;
    };
};

From the instructions I gathered this is correct?
Read this
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".
 
One other issue I am having is that they work the first time you go on the server, but when you leave/rejoin nothing shows up on the scroll wheel? It then takes a server restart to fix it.
 
FYI: the Vehicles folder name is capitalised in the latest release, I have renamed it to vehicles too see if that fixes it.

Edit: No it doesn't lol
 
First of all thank you for your work in this addon.
I'm here because the addon doesn't work on my server.

when i scroll down i can see only the voice Tools Menu...and clicking on it no others menu shows up.

any advice?

i have various addon in my mission.pbo:
Halo spawn and halo jump
sarge ai
street lights
building light
base building
Selfblood

Are there compatibility problem?

looking forward to receiving an answer.

thank you guys
 
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?

Check if that is still happening after you applied the changes that i stated. Given that the error caused the whole script to fail, as long as it was in there, positions weren't saved. They should be from now on.
 
Check if that is still happening after you applied the changes that i stated. Given that the error caused the whole script to fail, as long as it was in there, positions weren't saved. They should be from now on.

It appears to be working now, just one last issue left!

It only works the first time entering the server. If I leave/rejoin it will not work until the next server restart - Any ideas?

Thanks for the help.
 
looks to me like the classical JIP (join in progress) problem. This is something that the mod needs to be tailored to and fixed from the mod author's side.
 
looks to me like the classical JIP (join in progress) problem. This is something that the mod needs to be tailored to and fixed from the mod author's side.

Thanks for the help,

Is this bug easily fixable? I take it there isn't much I can do without waiting for an update? I didn't see anyone else with the same problem :<
 
Hey, I have a bug report and a suggestion, firstly with the suggestion maybe add a previous page command on like the vehicles page and weapons page? The bug is the Heal command, whenever I heal myself when I relog im back to how I was before when I was injured. Great set of tools though :)
all of the heal/ repair scripts are meant to be temporary. as for going back a page press backspace
 
I have the tools menu but when I click it, nothing shows up... I've entered the proper GUID's in the #### spaces. Using the No Debug version Chernarus.

EDIT: Fixed it.. just had to add GUID in Super admin as well as the regular places and take out the ### in mod/admin places.
 
Status
Not open for further replies.
Back
Top