Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I've followed the tutorial for Vanilla DayZ to the T, but I'm getting no Right Click menu. Here's the files you want:
Extra rc from dayzmission\custom:
class ExtraRc {
class ItemRadio {
class GroupManagement {
text = "Group Management";
script = "execVM 'dzgm\loadGroupManagement.sqf'";
};
};
};
Description.ext from dayzmission:
#include "CfgBuildingLoot.hpp"
respawn = "BASE";
respawndelay = 5;
onLoadMission= "DayZ Chernarus";
OnLoadIntro = "Welcome to Chernarus";
OnLoadIntroTime = False;
OnLoadMissionTime = False;
disabledAI = true;
disableChannels[] = {0,2,4,6};
enableItemsDropping = 0;
onPauseScript = "";
briefing = 0;
debriefing = 0;
//loadScreen = "\z\addons\dayz_code\gui\loadingscreen.paa";
loadScreen = "loadingScreen-min.jpg";
class Header
{
gameType = COOP; //DM, Team, Coop, ...
minPlayers = 1; //Min # of players the mission supports
maxPlayers = 100; //Max # of players the mission supports
};
aiKills = 1;
diagRadio = 1;
diagHit = 1;
// ------------------ START OF DESCRIPTION.HPP -------------------------
class RscText
{
type = 0;
idc = -1;
x = 0;
y = 0;
h = 0.037;
w = 0.3;
style = 0x100;
font = Zeppelin32;
SizeEx = 0.03921;
colorText[] = {1,1,1,1};
colorBackground[] = {0, 0, 0, 0};
linespacing = 1;
};
class RscPicture
{
access=0;
type=0;
idc=-1;
style=48;
colorBackground[]={0,0,0,0};
colorText[]={1,1,1,1};
font="TahomaB";
sizeEx=0;
lineSpacing=0;
text="";
};
class RscLoadingText : RscText
{
style = 2;
x = 0.323532;
y = 0.666672;
w = 0.352944;
h = 0.039216;
sizeEx = 0.03921;
colorText[] = {0.543,0.5742,0.4102,1.0};
};
class RscProgress
{
x = 0.344;
y = 0.619;
w = 0.313726;
h = 0.0261438;
texture = "\ca\ui\data\loadscreen_progressbar_ca.paa";
colorFrame[] = {0,0,0,0};
colorBar[] = {1,1,1,1};
};
class RscProgressNotFreeze
{
idc = -1;
type = 45;
style = 0;
x = 0.022059;
y = 0.911772;
w = 0.029412;
h = 0.039216;
texture = "#(argb,8,8,3)color(0,0,0,0)";
};
//
// the loading screen itself
//
class DayZ_loadingScreen
{
idd = -1;
duration = 10e10;
fadein = 0;
fadeout = 0;
name = "loading screen";
class controlsBackground
{
class blackBG : RscText
{
x = safezoneX;
y = safezoneY;
w = safezoneW;
h = safezoneH;
text = "";
colorText[] = {0,0,0,0};
colorBackground[] = {0,0,0,1};
};
};
class controls
{
class Title1 : RscLoadingText
{
text = "$STR_LOADING"; // "Loading" text in the middle of the screen
};
class CA_Progress : RscProgress // progress bar, has to have idc 104
{
idc = 104;
type = 8; // CT_PROGRESS
style = 0; // ST_SINGLE
texture = "\ca\ui\data\loadscreen_progressbar_ca.paa";
};
class CA_Progress2 : RscProgressNotFreeze // progress bar that will go reverse
{
idc = 103;
};
class Name2: RscText // the text on the top-left
{
idc = 101;
x = 0.05;
y = 0.029412;
w = 0.9;
h = 0.04902;
text = "";
sizeEx = 0.05;
colorText[] = {0.543,0.5742,0.4102,1.0};
};
};
};
// logo watermark
#include "dzgm\defines.hpp"
class RscTitles {
#include "dzgm\icons.hpp"
class wm_disp {
idd = -1;
onLoad = "uiNamespace setVariable ['wm_disp', _this select 0]";
fadein = 0;
fadeout = 0;
duration = 10e10;
controlsBackground[] = {};
objects[] = {};
class controls {
class wm_text2 {
idc = 1;
x = safeZoneX+0.027;//safeZoneW*0.01;
y = safeZoneY+safeZoneH-0.16;
w = 0.151*safeZoneH;
h = 0.057*safeZoneH;
shadow = 2;
class Attributes
{
font = "EtelkaNarrowMediumPro";
color = "#24FFFFFF";
align = "left"; // put "center" here if you want some background
valign = "middle";
shadow = 2;
};
colorBackground[] = { 1, 0.3, 0, 0 }; // uncomment and increase 4th number to have a background
font = "EtelkaNarrowMediumPro";
size = 0.06*safeZoneH;
type = 13;
style = 0;
text="";
};
};
};
};
// -------------------------END OF DISCRIPTION.HPP-----------------------
#include "spawn\class.hpp"
#include "spawn\halo.hpp"
#include "spawn\spawn.hpp"
#include "dzgm\groupManagement.hpp"
#include "custom\extra_rc.hpp"
Relevant section from my ui_selectslot from dayzmission/custom:
//Populate Menu
for "_i" from 0 to (_numActions - 1) do
{
_menu = _parent displayCtrl (1600 + _i);
_menu ctrlShow true;
_config = (_cfgActions select _i);
_type = getText (_config >> "text");
_script = getText (_config >> "script");
_outputOriented = getNumber (_config >> "outputOriented") == 1;
_height = _height + (0.025 * safezoneH);
_compile = format["_id = '%2' %1;",_script,_item];
uiNamespace setVariable ['uiControl', _control];
if (_outputOriented) then {
/*
This flag means that the action is output oriented
the output class will then be transferred to the script
and the type used for the name
*/
_array = getArray (_config >> "output");
_outputClass = _array select 0;
_outputType = _array select 1;
_name = getText (configFile >> _outputType >> _outputClass >> "displayName");
_compile = format["_id = ['%2',%3] %1;",_script,_item,_array];
};
_erc_cfgActions = (missionConfigFile >> "ExtraRc" >> _item);
_erc_numActions = (count _erc_cfgActions);
if (isClass _erc_cfgActions) then {
for "_j" from 0 to (_erc_numActions - 1) do
{
_menu = _parent displayCtrl (1600 + _j + _numActions);
_menu ctrlShow true;
_config = (_erc_cfgActions select _j);
_text = getText (_config >> "text");
_script = getText (_config >> "script");
_height = _height + (0.025 * safezoneH);
uiNamespace setVariable ['uiControl', _control];
_menu ctrlSetText _text;
_menu ctrlSetEventHandler ["ButtonClick",_script];
};
};
_menu ctrlSetText format[_type,_name];
_menu ctrlSetEventHandler ["ButtonClick",_compile];
};
_pos set [3,_height];
I also can't get group managements to open with right control, even when I set the DIK code to DIK_RCONTROL in the dzgm/init.sqf.
I'm getting no errors in my server or client .RPT, but I will still post them if required.
My other existing mods include a custom loot table, self bloodbag, auto refuel, custom buildings and ESSV2.
EDIT: It's now working with right control, just not with the right click.
EDIT2: Only working if you're a fresh spawn.
That wouldn't work either. I created my own workaround by adding the following line to dzgm\init.sqf:Try using one of the ctrl buttons in game and see if that does anything.
_pUnits = units group p>
Error Undefined variable in expression: currentinvites
File mpmissions\__CUR_MP.Chernarus\dzgm\loadGroupManagement.sqf, line 36
currentInvites = [];
publicVariable "currentInvites";
"currentInvites" addPublicVariableEventHandler {publicVariable "currentInvites";};
hi i am in unable to find the
lbsetpicture='no';
lbSetData='no';
in my AH.sqf...everything else I located and deleted
on top of that nothing I seem to do has made the right click on radio work or the right control(which i set as my hot key). I have no errors in my report, as I've seen others on the thread mention. I also have the ESSv2 Spawn select, as others have said its caused an issue with group? Everything seems to load otherwise, I even get the message that tells users to right click radio for group. I'm at a loss, dont know what else to do.
Edit-
I'd also like to mention that the I am Here mark icon is working, so the script is running its just not letting me get to the actual menu.
["ItemRadio","Group Management","execVM 'dzgm\loadGroupManagement.sqf';","true"],
Are you using the Deploy Anything script or Maca's right click?
If you are using the Deploy Anything script, you need to add this to your overwrites\clickations\config.sqf :
Code:["ItemRadio","Group Management","execVM 'dzgm\loadGroupManagement.sqf';","true"],
If you add it as the last item in the list, make sure to remove the , at the end of the line.
Maybe you already got a custom ui_selectSlot.sqf for a deploy bike script? When I messed around with that to solve my problem it broke my rightclick on radio.i got it working. Found out the issue, I use snap build pro which shares a common dayz_spaceinterrupt file. Added DZGM info to the one snap build uses instead and set up a hot key. Right click still not working, but hot key does. Thanks.