Jump to content

thekaboobie

Member
  • Posts

    65
  • Joined

  • Last visited

Posts posted by thekaboobie

  1. !!! Update !!!

     

    Changed the script to include ALL of the stuff we talked about here.

    The only thing you need to do is redownload the files and redo step 3.

    People that use blood loss instead of humanity, check the red letters further down the 1st thread.

     

    config.sqf includes everything in there now.

     

     

    Infection is a bit annoying....player coughs all the freaking time if he gets it...I dont know why...I am not adding it in a loop or something....so i didnt add it to the changes.

     

     

    The coughing bit is just how your player acts when infected.

  2. I am trying to fix this with your script but i have a feeling there is something wrong with it ...you have this :

    _erc_cfgActions = (dGrenade_West") then {
    

    that doesnt make sense....First there is just a single " (quote) out of nowhere and then there is no "if" to say "then".

    I think you messed up on a copy/paste or something.

    Anyways....i think i fix it now....i think it should say there:

    if (_item == "HandGrenade_West") then {

    Give this a try ui_selectSlot.sqf

    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","_text"];
    disableSerialization;
    _control  = _this select 0;
    _button  = _this select 1;
    _parent  = findDisplay 106;
     
    if (_button == 1) then {
    	_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;
    if (_item == "HandGrenade_West") then { 
    	_menu = _parent displayCtrl (1600);
    	_menu ctrlShow true;
    	_type = "Craft IED";
    	_script = "IED\ied.sqf";
    	_height = _height + (0.025 * safezoneH);
    	_compile = format["_id = '%2' execVM '%1';closeDialog 0;",_script,_item];
    	uiNamespace setVariable ['uiControl', _control];
    	_menu ctrlSetText format[_type,_name];
    	_menu ctrlSetEventHandler ["ButtonClick",_compile];
    }; 
    if (_item == "BAF_ied_v1") then { 
    	_menu = _parent displayCtrl (1600);
    	_menu ctrlShow true;
    	_type = "Craft Large IED";
    	_script = "IED\ied_large.sqf";
    	_height = _height + (0.025 * safezoneH);
    	_compile = format["_id = '%2' execVM '%1';closeDialog 0;",_script,_item];
    	uiNamespace setVariable ['uiControl', _control];
    	_menu ctrlSetText format[_type,_name];
    	_menu ctrlSetEventHandler ["ButtonClick",_compile];
    };
    if (_item == "BAF_ied_v2") then { 
    	_menu = _parent displayCtrl (1600);
    	_menu ctrlShow true;
    	_type = "Craft Extra Large IED";
    	_script = "IED\ied_xlarge.sqf";
    	_height = _height + (0.025 * safezoneH);
    	_compile = format["_id = '%2' execVM '%1';closeDialog 0;",_script,_item];
    	uiNamespace setVariable ['uiControl', _control];
    	_menu ctrlSetText format[_type,_name];
    	_menu ctrlSetEventHandler ["ButtonClick",_compile];
    };
    if (_item == "BAF_ied_v3") then { 
    	_menu = _parent displayCtrl (1600);
    	_menu ctrlShow true;
    	_type = "Craft XXL IED";
    	_script = "IED\ied_xxlarge.sqf";
    	_height = _height + (0.025 * safezoneH);
    	_compile = format["_id = '%2' execVM '%1';closeDialog 0;",_script,_item];
    	uiNamespace setVariable ['uiControl', _control];
    	_menu ctrlSetText format[_type,_name];
    	_menu ctrlSetEventHandler ["ButtonClick",_compile];
    };
    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 {
    		_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];
    };
    
    _erc_cfgActions = (missionConfigFile >> "WaTd" >> _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];
    _group ctrlShow true;
    ctrlSetFocus _group;
    _group ctrlSetPosition _pos;
    _group ctrlCommit 0;
     
    };
    

     

     

    Thanks So Much not sure how that ended up that way and still working lol but I appreciate your help. Also I have a suggestion. Perhaps the effect should wear off after a certain amount of time(maybe 20-30 minutes), otherwise you could pretty much log in kill 2 zombies and be zombie free until you log or die, as long as you don't care about your humanity and many players don't.

  3. question for you...I already have a custom ui_selectslot file and it is causing me headaches trying to get your change to play nice with what I already have. any chance you could have a look and see if you could see how to fit them together?

     

    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","_text"];
    disableSerialization;
    _control  = _this select 0;
    _button  = _this select 1;
    _parent  = findDisplay 106;
     
    if (_button == 1) then {
    _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;
    _erc_cfgActions = (dGrenade_West") then {
    _menu = _parent displayCtrl (1600);
    _menu ctrlShow true;
    _type = "Craft IED";
    _script = "IED\ied.sqf";
    _height = _height + (0.025 * safezoneH);
    _compile = format["_id = '%2' execVM '%1';closeDialog 0;",_script,_item];
    uiNamespace setVariable ['uiControl', _control];
    _menu ctrlSetText format[_type,_name];
    _menu ctrlSetEventHandler ["ButtonClick",_compile];
    }; 
    if (_item == "BAF_ied_v1") then { 
    _menu = _parent displayCtrl (1600);
    _menu ctrlShow true;
    _type = "Craft Large IED";
    _script = "IED\ied_large.sqf";
    _height = _height + (0.025 * safezoneH);
    _compile = format["_id = '%2' execVM '%1';closeDialog 0;",_script,_item];
    uiNamespace setVariable ['uiControl', _control];
    _menu ctrlSetText format[_type,_name];
    _menu ctrlSetEventHandler ["ButtonClick",_compile];
    };
    if (_item == "BAF_ied_v2") then { 
    _menu = _parent displayCtrl (1600);
    _menu ctrlShow true;
    _type = "Craft Extra Large IED";
    _script = "IED\ied_xlarge.sqf";
    _height = _height + (0.025 * safezoneH);
    _compile = format["_id = '%2' execVM '%1';closeDialog 0;",_script,_item];
    uiNamespace setVariable ['uiControl', _control];
    _menu ctrlSetText format[_type,_name];
    _menu ctrlSetEventHandler ["ButtonClick",_compile];
    };
    if (_item == "BAF_ied_v3") then { 
    _menu = _parent displayCtrl (1600);
    _menu ctrlShow true;
    _type = "Craft XXL IED";
    _script = "IED\ied_xxlarge.sqf";
    _height = _height + (0.025 * safezoneH);
    _compile = format["_id = '%2' execVM '%1';closeDialog 0;",_script,_item];
    uiNamespace setVariable ['uiControl', _control];
    _menu ctrlSetText format[_type,_name];
    _menu ctrlSetEventHandler ["ButtonClick",_compile];
    };
    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 {
    _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];
    };
    _pos set [3,_height];
    _group ctrlShow true;
    ctrlSetFocus _group;
    _group ctrlSetPosition _pos;
    _group ctrlCommit 0;
     
    };
    
    

     

    any help would be appreciated as I've been trying various things with no success. Thanks and this script is great if I can't get this worked out and no one can tell me what needs changing I'll just remove the thing I have that is using it at this point for your script. :D

  4. So I am looking to purchase a full dedicated box and I was just curious how many servers I could expect to run on a setup like this assuming something like 20-40 players connected on each server at any given time?

     

     

     

    • Intel Xeon E3-1270v3 processor (four physical 3.5ghz cores on QPI + hyperthreading + turbo->3.9ghz)
    • 32 GB DDR3-1600 ECC memory
    • 240 GB SSD and 2000 GB, 7200 RPM SATA hard drive
  5. Thanks a bunch this is really going to help me once I figure out one last thing. Any recommendation on where I put this inside the description?

     

    Also a tip to some who may be trying to utilize this. Make sure your server traders id's match up to any of the id's in those configs. If they do not you will not have any items displayed when you select your traders.

  6. Ok so ever since 1.0.4 my custom additions to the traders namely a couple apc's are unable to be purchased. When you start the trade everything go fine then it says that the item is out of stock. However, I have stock updating daily and have even gone in and manually set the stock to 200 and it still shows out of stock when trying to purchase them. Below you can find my db entries for them.

     

    INSERT INTO `epoch14`.`traders_data` (`id`, `item`, `qty`, `buy`, `sell`, `order`, `tid`, `afile`) VALUES ('7414', '[\"AAV\",2]', '200', '[10,\"ItemBriefcase100oz\",1]', '[5,\"ItemBriefcase100oz\",1]', '0', '562', 'trade_any_vehicle');
     
    
    INSERT INTO `epoch14`.`traders_data` (`id`, `item`, `qty`, `buy`, `sell`, `order`, `tid`, `afile`) VALUES ('7413', '[\"BTR60_TK_EP1\",2]', '200', '[10,\"ItemBriefcase100oz\",1]', '[5,\"ItemBriefcase100oz\",1]', '0', '569', 'trade_any_vehicle');
     
    
    INSERT INTO `epoch14`.`trader_items` (`id`, `classname`, `type`, `group`, `afile`) VALUES ('835', 'AAV', '2', 'Military Armed', 'trade_any_vehicle');
     
    
    
    INSERT INTO `epoch14`.`trader_items` (`id`, `classname`, `type`, `group`, `afile`) VALUES ('834', 'BTR60_TK_EP1', '2', 'Military Armed', 'trade_any_vehicle');
    

     

    These were working fine before the 1.0.4 update I am since on 1.0.4.2 and it is still not working properly. Has anyone else experienced this or have any idea what can be done about it. Do these need to use the _old method to work?

  7. So been running it on my test server and a minor mission loaded and was cleared by an admin and a player that we brought in for testing. AI having gear stripped when run over worked well btw, so thanks for that. However when it came time to load the major mission I got this error in my rpt and the mission did not load.

     

    15:09:50 "[DZMS]: Running Major Mission SM8."
    15:09:50 Error in expression <lect 1) - 5,0],[], 0, "NONE"];
    _crate = createVehicle ["USVehicleBox",[(_coords >
    15:09:50   Error position: <createVehicle ["USVehicleBox",[(_coords >
    15:09:50   Error Type Any, expected Number
    15:09:50 File z\addons\dayz_server\DZMS\Missions\Major\SM8.sqf, line 18
    15:09:50 Error in expression <;
    DZMSMajName = _this select 1;
     
    _nul = createMarker ["DZMSMajMarker", DZMSMajCo>
    15:09:50   Error position: <createMarker ["DZMSMajMarker", DZMSMajCo>
    15:09:50   Error 0 elements provided, 3 expected
    15:09:50 File z\addons\dayz_server\DZMS\Scripts\DZMSAddMajMarker.sqf, line 10
    15:09:50 Error in expression <_fnc_selectRandom;
     
     
    _unit = _unitGroup createUnit [_aiskin, [(_position select >
    15:09:50   Error position: <createUnit [_aiskin, [(_position select >
    15:09:50   Error Type Any, expected Number
    15:09:50 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 32
    15:09:50 Error in expression <_fnc_selectRandom;
     
     
    _unit = _unitGroup createUnit [_aiskin, [(_position select >
    15:09:50   Error position: <createUnit [_aiskin, [(_position select >
    15:09:50   Error Type Any, expected Number
    15:09:50 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 32
    15:09:50 Error in expression <_fnc_selectRandom;
     
     
    _unit = _unitGroup createUnit [_aiskin, [(_position select >
    15:09:50   Error position: <createUnit [_aiskin, [(_position select >
    15:09:50   Error Type Any, expected Number
    15:09:50 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 32
    15:09:50 Error in expression <_fnc_selectRandom;
     
     
    _unit = _unitGroup createUnit [_aiskin, [(_position select >
    15:09:50   Error position: <createUnit [_aiskin, [(_position select >
    15:09:50   Error Type Any, expected Number
    15:09:50 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 32
    15:09:50 Error in expression <_fnc_selectRandom;
     
     
    _unit = _unitGroup createUnit [_aiskin, [(_position select >
    15:09:50   Error position: <createUnit [_aiskin, [(_position select >
    15:09:50   Error Type Any, expected Number
    15:09:50 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 32
    15:09:50 Error in expression <_fnc_selectRandom;
     
     
    _unit = _unitGroup createUnit [_aiskin, [(_position select >
    15:09:50   Error position: <createUnit [_aiskin, [(_position select >
    15:09:50   Error Type Any, expected Number
    15:09:50 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 32
    15:09:50 Error in expression <xpos-20, _ypos, 0];
     
     
    _wp1 = _unitGroup addWaypoint [_wppos1, _wpRadius];
    _wp1 s>
    15:09:50   Error position: <addWaypoint [_wppos1, _wpRadius];
    _wp1 s>
    15:09:50   Error Type Any, expected Number
    15:09:50 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 109
    15:09:55 Error in expression <_fnc_selectRandom;
     
     
    _unit = _unitGroup createUnit [_aiskin, [(_position select >
    15:09:55   Error position: <createUnit [_aiskin, [(_position select >
    15:09:55   Error Type Any, expected Number
    15:09:55 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 32
    15:09:55 Error in expression <_fnc_selectRandom;
     
     
    _unit = _unitGroup createUnit [_aiskin, [(_position select >
    15:09:55   Error position: <createUnit [_aiskin, [(_position select >
    15:09:55   Error Type Any, expected Number
    15:09:55 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 32
    15:09:55 Error in expression <_fnc_selectRandom;
     
     
    _unit = _unitGroup createUnit [_aiskin, [(_position select >
    15:09:55   Error position: <createUnit [_aiskin, [(_position select >
    15:09:55   Error Type Any, expected Number
    15:09:55 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 32
    15:09:55 Error in expression <_fnc_selectRandom;
     
     
    _unit = _unitGroup createUnit [_aiskin, [(_position select >
    15:09:55   Error position: <createUnit [_aiskin, [(_position select >
    15:09:55   Error Type Any, expected Number
    15:09:55 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 32
    15:09:55 Error in expression <xpos-20, _ypos, 0];
     
     
    _wp1 = _unitGroup addWaypoint [_wppos1, _wpRadius];
    _wp1 s>
    15:09:55   Error position: <addWaypoint [_wppos1, _wpRadius];
    _wp1 s>
    15:09:55   Error Type Any, expected Number
    15:09:55 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 109
    15:10:00 Error in expression <_fnc_selectRandom;
     
     
    _unit = _unitGroup createUnit [_aiskin, [(_position select >
    15:10:00   Error position: <createUnit [_aiskin, [(_position select >
    15:10:00   Error Type Any, expected Number
    15:10:00 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 32
    15:10:00 Error in expression <_fnc_selectRandom;
     
     
    _unit = _unitGroup createUnit [_aiskin, [(_position select >
    15:10:00   Error position: <createUnit [_aiskin, [(_position select >
    15:10:00   Error Type Any, expected Number
    15:10:00 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 32
    15:10:00 Error in expression <_fnc_selectRandom;
     
     
    _unit = _unitGroup createUnit [_aiskin, [(_position select >
    15:10:00   Error position: <createUnit [_aiskin, [(_position select >
    15:10:00   Error Type Any, expected Number
    15:10:00 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 32
    15:10:00 Error in expression <_fnc_selectRandom;
     
     
    _unit = _unitGroup createUnit [_aiskin, [(_position select >
    15:10:00   Error position: <createUnit [_aiskin, [(_position select >
    15:10:00   Error Type Any, expected Number
    15:10:00 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 32
    15:10:00 Error in expression <xpos-20, _ypos, 0];
     
     
    _wp1 = _unitGroup addWaypoint [_wppos1, _wpRadius];
    _wp1 s>
    15:10:00   Error position: <addWaypoint [_wppos1, _wpRadius];
    _wp1 s>
    15:10:00   Error Type Any, expected Number
    15:10:00 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 109
    

     

    Also it will not work obviously with the folder being EMS if you don't change all the file paths in the every script to incorporate that.

     

    Also any chance of getting some of the WAI missions ported over here there were some really neat ones. Also turrets are awesome you should put in turrets.

  8. Got a player report of getting stuck in an infinite loop when trying to remove a wood floor 1/4. I did some testing this morning and found that wood wall 1/3, wood floor 1/2, and wood floor 1/4 all have this issue which suggests an error in their deconstruction total stage count, thus the scalar instead of a number like 3 or 4. This is after upgrading to 1.0.4.1 I tested a few concrete building materials and did not see similar results nor did I see this happening on full size wood walls or floors.

×
×
  • Create New...