I need help with maca134 right click

hi guys , I tried everthing but for some reason I can´t get this to work my server is a epoch server 1.0.5.1
I´ve infistar antihack I test with it enable and disabled and no right click option shows up I did everything this topic bellow says but doesn´t work for me , can somone help me with this maybe tell me some check list that I can looking for possible reasons it´s not working

http://epochservers.com/viewtopic.php?f=14&t=13

in my @DayZ_Epoch\addons\dayz_code\init\compiles.sqf
there is no player_selectSlot so I use the custom one I call it in my init.sqf file bellow the defalt
one the defalt options of bloodbag toolbox etc.. shows up but not the maca134 right click
it´s like this

call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions


call compile preprocessFileLineNumbers "custom\compiles.sqf";// custom com varios scripts


this my custom compiles : https://www.dropbox.com/s/54yoifriuckxt5h/compiles.sqf?dl=0

this my ui_selectslot: https://www.dropbox.com/s/f97v7vrs08mc7ov/ui_selectSlot.sqf?dl=0


I´ve the include in the description.ext for the extra_rc.hpp
like this bellow but when I click in the ploatpole the only options that shows is the normal one to put the ploat pole and not these bellow

class ExtraRc{
class 30m_plot_kit {
class Test1 {
text = "Test 1";
script = "hint ""Test 1 was clicked!"";";
};
class Test2 {
text = "Test 2";
script = "hint ""Test 1 was clicked!"";";
};
};
};
 
Last edited:
Can you post your
custom compiles file
ui_selectslot file
description.ext file
and your extra_rc.hpp
And ill look to see if they are all set up correctly you might have to use pastebin.com
 
Use the one maca134 made for the ui_selectslot.sqf and see if that works.

Code:
private ["_control","_button","_parent","_group","_pos","_item","_conf","_name","_cfgActions","_numActions","_height","_menu","_config","_type","_script","_outputOriented","_compile","_array","_outputClass","_outputType","_erc_cfgActions", "_erc_numActions"];
disableSerialization;
_control =     _this select 0;
_button =    _this select 1;
_parent =     findDisplay 106;

//if ((time - dayzClickTime) < 1) exitWith {};

if (_button == 1) then {
    //dayzClickTime = time;
    _group = _parent displayCtrl 6902;
   
    _pos =         ctrlPosition _group;
    _pos set [0,((_this select 2) + 0.48)];
    _pos set [1,((_this select 3) + 0.07)];
   
    _item = gearSlotData _control;
   
    _conf = configFile >> "cfgMagazines" >> _item;
    if (!isClass _conf) then {
        _conf = configFile >> "cfgWeapons" >> _item;
    };
    _name = getText(_conf >> "displayName");
   
    _cfgActions = _conf >> "ItemActions";
    _numActions = (count _cfgActions);
    _height = 0;
   
    //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];
        };
       
        _menu ctrlSetText format[_type,_name];
        _menu ctrlSetEventHandler ["ButtonClick",_compile];
    };
   
    // Add extra context menus
    _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];
        };
    };

    _pos set [3,_height];
    //hint format["Obj: %1 \nHeight: %2\nPos: %3",_item,_height,_grpPos];       

    _group ctrlShow true;
    ctrlSetFocus _group;
    _group ctrlSetPosition _pos;
    _group ctrlCommit 0;
};
 
Also you need to overwrite your compiles.sqf not just add it to a sqf file and call it after the originals already been called. So you will need to go in day_code and find compiles.sqf and call it from your mission file and replace the ui_selectslot in that.

Wrote that quick at college and need to get work done so might not be easy to follow.
 
Use the one maca134 made for the ui_selectslot.sqf and see if that works.

Code:
private ["_control","_button","_parent","_group","_pos","_item","_conf","_name","_cfgActions","_numActions","_height","_menu","_config","_type","_script","_outputOriented","_compile","_array","_outputClass","_outputType","_erc_cfgActions", "_erc_numActions"];
disableSerialization;
_control =     _this select 0;
_button =    _this select 1;
_parent =     findDisplay 106;

//if ((time - dayzClickTime) < 1) exitWith {};

if (_button == 1) then {
    //dayzClickTime = time;
    _group = _parent displayCtrl 6902;
  
    _pos =         ctrlPosition _group;
    _pos set [0,((_this select 2) + 0.48)];
    _pos set [1,((_this select 3) + 0.07)];
  
    _item = gearSlotData _control;
  
    _conf = configFile >> "cfgMagazines" >> _item;
    if (!isClass _conf) then {
        _conf = configFile >> "cfgWeapons" >> _item;
    };
    _name = getText(_conf >> "displayName");
  
    _cfgActions = _conf >> "ItemActions";
    _numActions = (count _cfgActions);
    _height = 0;
  
    //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];
        };
      
        _menu ctrlSetText format[_type,_name];
        _menu ctrlSetEventHandler ["ButtonClick",_compile];
    };
  
    // Add extra context menus
    _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];
        };
    };

    _pos set [3,_height];
    //hint format["Obj: %1 \nHeight: %2\nPos: %3",_item,_height,_grpPos];      

    _group ctrlShow true;
    ctrlSetFocus _group;
    _group ctrlSetPosition _pos;
    _group ctrlCommit 0;
};


it keep in the same ways , I took a screenshot of it

RIGHTCLICK.png
 
I think you need to overwrite the main compiles folder and change the ui_select in that instead of a new compiles file.
 
Also you need to overwrite your compiles.sqf not just add it to a sqf file and call it after the originals already been called. So you will need to go in day_code and find compiles.sqf and call it from your mission file and replace the ui_selectslot in that.

Wrote that quick at college and need to get work done so might not be easy to follow.

ok now I comment the custom compiles.sqf I was calling in the init.sqf and let just the original one
I went in the dayz_code and overwrite the ui_selectslot with the maca´s one and in the orginal compiles.sqf at line 113 it´s pointing to the maca´s ui_select slot but still it doesn´t work this the file http://pastebin.com/zCv0ZFGr

in my init.sqf it´s like this :

call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";
 
Ill have another look when I get home but this script is compatible with epoch 1.0.5.1 so it isn't a compatibility issue. Is there any errors in your rtp log.
 
ok now I comment the custom compiles.sqf I was calling in the init.sqf and let just the original one
I went in the dayz_code and overwrite the ui_selectslot with the maca´s one and in the orginal compiles.sqf at line 113 it´s pointing to the maca´s ui_select slot but still it doesn´t work this the file http://pastebin.com/zCv0ZFGr

in my init.sqf it´s like this :

call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";
In init .sqf instead of running a custom compiles move the one from dayz code and place it in your mission file and call it from there.
 
Ill have another look when I get home but this script is compatible with epoch 1.0.5.1 so it isn't a compatibility issue. Is there any errors in your rtp log.
ok , thank you for helping me I´m new to this only have my server for about one month so I don´t know so much about this file rtp log but I´ll let it here while you don´t get in home I´ll try find some erros on it and will let it here in case you wanna take look

https://www.dropbox.com/s/q62sdpfqv1r4wxk/arma2oaserver.RPT?dl=0
 
So have you got this working.
not yet I was hopen you find some thing in this rpt file I can´t undestand why it´s not working I´ve overwrite the orginal ui_select slot with maca´s one , I´ve comment my custom compiles and called only the orginal and still doesn´t work , can you take a look on my files and see if there is some thing wrong ?
 
You need to place the compiles in the mpmission folder and call it like this.

Code:
call compile preprocessFileLineNumbers "compiles.sqf";
 
You need to place the compiles in the mpmission folder and call it like this.

Code:
call compile preprocessFileLineNumbers "compiles.sqf";

ok , now I tried it you said I did copy the compiles from my dayz_code and place it in my mp_mission then
I change in the init.sqf to: call compile preprocessFileLineNumbers "compiles.sqf";

but it still doesn´t work only shows the normal option of the ploatpole , so I tried change the
player_selectSlot = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\ui_selectSlot.sqf";

to this:

player_selectSlot = compile preprocessFileLineNumbers "custom\ui_selectSlot.sqf";

but still keep the same thing showing only the normal option of the ploatpole

I´m with inifistar antihack disable, for testing it
 
I don´t know if it has anything to do , but I need this script working because I want to use this clan system on my server , I´ve installed it but when I try click in my radio anything happens , and when I press the keys that it needs to start up the window of the clan system it doesn´t shows up aswell but in the left coner of my screen says that the script was suceflly loaded but for some reaseon it doesn´t start

http://opendayz.net/threads/release-dzgm-dayz-group-management.20293/
 
ok so you want Epoch with
right click and DZGM
anything else?

if thats all you need i can set up a clean set of files for you that will make editing and adding stuff much easier :p

just let me and i will set i up and send it to you :)
 
Back
Top