SgtStone Posted October 29, 2014 Report Share Posted October 29, 2014 I have a little problem. This Script don't work: http://epochservers.com/viewtopic.php?f=14&t=13 When the script Admin-tool is off, it's work, how i can fix this? :) After this i will add two other scripts, But when the right click script does not work, I need the rest do not even try. is there a solution? Must not be all done, some food for thought would be enough, you want to learn, too :) I hope everyone can help me :) Link to comment Share on other sites More sharing options...
0 jahangir13 Posted October 30, 2014 Report Share Posted October 30, 2014 Your 1st link does not work. What is it? Link to comment Share on other sites More sharing options...
0 SgtStone Posted October 30, 2014 Author Report Share Posted October 30, 2014 it was the original right click options TuT. here is the link: http://epochservers.com/viewtopic.php?f=14&t=13 Link to comment Share on other sites More sharing options...
0 jahangir13 Posted October 30, 2014 Report Share Posted October 30, 2014 Then you need to control all the steps you did again. Maca's right click options method works for me. Any errors in your server log (player rpt log) regarding these changes? If everything doesn't help, post you ui_selectSlot.sqf. Link to comment Share on other sites More sharing options...
0 SgtStone Posted October 30, 2014 Author Report Share Posted October 30, 2014 the rpt says nothing. The problem is the Epoch Admin Tool, sry forgot it >.< when its off all works fine: if I knew what I need to edit as it would bring me to the front lot. 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 >> "ExtraRcRechtsklick" >> _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; }; Link to comment Share on other sites More sharing options...
0 jahangir13 Posted October 30, 2014 Report Share Posted October 30, 2014 Do you use an old ui_selectSlot.sqf (that's the file in the spoiler?)? I will have a look this evening. I'm now at work and cannot look into my mission from here. I also use admin tools...so this does not interfere with the right click stuff for me so far. Link to comment Share on other sites More sharing options...
0 SgtStone Posted October 30, 2014 Author Report Share Posted October 30, 2014 I'm using the epoch 1.0.5.1 ui_selectSlot I have test the two sqf's but dont work. am somewhat perplexed Link to comment Share on other sites More sharing options...
Question
SgtStone
I have a little problem. This Script don't work: http://epochservers.com/viewtopic.php?f=14&t=13
When the script Admin-tool is off, it's work, how i can fix this? :)
After this i will add two other scripts, But when the right click script does not work, I need the rest do not even try.
is there a solution? Must not be all done, some food for thought would be enough, you want to learn, too :)
I hope everyone can help me :)
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now