Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
  • 0
Sign in to follow this  
ripdok

custom spawn

До сегодняшнего дня было все нормально, но после внесения очредных изменений в файл кастомного спавна ботов wai появились "пенки" от сервера

 

22:47:15 Error Undefined variable in expression: ai_skill_medium
22:47:15 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 24
22:47:15 Error in expression if(_skill == "hard")>
22:47:15 Error position: if(_skill == "hard")>
22:47:15 Error Undefined variable in expression: ai_skill_medium
22:47:15 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 24
22:47:15 Error in expression if(_skill == "hard")>
22:47:15 Error position: if(_skill == "hard")>
22:47:15 Error Undefined variable in expression: ai_skill_medium
22:47:15 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 24
22:47:16 Error in expression < [(_x select 0),(_x select 1)];
} count _aicskill;

ai_vehicle_units = (ai_vehic>
22:47:16 Error position: <_aicskill;

ai_vehicle_units = (ai_vehic>
22:47:16 Error Undefined variable in expression: _aicskill
22:47:16 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 86
22:47:17 Error in expression < [(_x select 0),(_x select 1)];
} count _aicskill;

ai_vehicle_units = (ai_vehic>
22:47:17 Error position: <_aicskill;

ai_vehicle_units = (ai_vehic>
22:47:17 Error Undefined variable in expression: _aicskill
22:47:17 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 86
22:47:17 Error in expression < [(_x select 0),(_x select 1)];
} count _aicskill;

ai_vehicle_units = (ai_vehic>
22:47:17 Error position: <_aicskill;

ai_vehicle_units = (ai_vehic>
22:47:17 Error Undefined variable in expression: _aicskill
22:47:17 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 86
22:47:17 Error in expression < [(_x select 0),(_x select 1)];
} count _aicskill;

ai_vehicle_units = (ai_vehic>

;>;>

 

как лечить? кучу вариантов уже перепробывал....

Edited by ripdok (see edit history)

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts








  • 0

 

22:47:15 Error in expression <l == "medium")         exitWith { _aicskill = ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error position: <ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error Undefined variable in expression: ai_skill_medium
22:47:15 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 24
22:47:15 Error in expression <l == "medium")         exitWith { _aicskill = ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error position: <ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error Undefined variable in expression: ai_skill_medium
22:47:15 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 24
22:47:15 Error in expression <l == "medium")         exitWith { _aicskill = ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error position: <ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error Undefined variable in expression: ai_skill_medium
22:47:15 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 24
22:47:15 Error in expression <l == "medium")         exitWith { _aicskill = ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error position: <ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error Undefined variable in expression: ai_skill_medium
22:47:15 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 24
22:47:15 Error in expression <l == "medium")         exitWith { _aicskill = ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error position: <ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error Undefined variable in expression: ai_skill_medium
22:47:15 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 24
22:47:15 Error in expression <l == "medium")         exitWith { _aicskill = ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error position: <ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error Undefined variable in expression: ai_skill_medium
22:47:15 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 24
22:47:15 Error in expression <l == "medium")         exitWith { _aicskill = ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error position: <ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error Undefined variable in expression: ai_skill_medium
22:47:15 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 24
22:47:15 Error in expression <l == "medium")         exitWith { _aicskill = ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error position: <ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error Undefined variable in expression: ai_skill_medium
22:47:15 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 24
22:47:15 Error in expression <l == "medium")         exitWith { _aicskill = ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error position: <ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error Undefined variable in expression: ai_skill_medium
22:47:15 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 24
22:47:15 Error in expression <l == "medium")         exitWith { _aicskill = ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error position: <ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error Undefined variable in expression: ai_skill_medium
22:47:15 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 24
22:47:15 Error in expression <l == "medium")         exitWith { _aicskill = ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error position: <ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error Undefined variable in expression: ai_skill_medium
22:47:15 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 24
22:47:15 Error in expression <loadSpeed","commanding","general"];

if(debug_mode) then { diag_log "WAI: Paradr>
22:47:15   Error position: <debug_mode) then { diag_log "WAI: Paradr>
22:47:15   Error Undefined variable in expression: debug_mode
22:47:15 File z\addons\dayz_server\WAI\compile\heli_para.sqf, line 34
22:47:15 Error in expression <l == "medium")         exitWith { _aicskill = ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error position: <ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error Undefined variable in expression: ai_skill_medium
22:47:15 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 24
22:47:15 Error in expression <loadSpeed","commanding","general"];

if(debug_mode) then { diag_log "WAI: Paradr>
22:47:15   Error position: <debug_mode) then { diag_log "WAI: Paradr>
22:47:15   Error Undefined variable in expression: debug_mode
22:47:15 File z\addons\dayz_server\WAI\compile\heli_para.sqf, line 34
22:47:15 Error in expression <l == "medium")         exitWith { _aicskill = ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error position: <ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error Undefined variable in expression: ai_skill_medium
22:47:15 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 24
22:47:15 Error in expression <l == "medium")         exitWith { _aicskill = ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error position: <ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error Undefined variable in expression: ai_skill_medium
22:47:15 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 24
22:47:15 Error in expression <l == "medium")         exitWith { _aicskill = ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error position: <ai_skill_medium; };
if(_skill == "hard")>
22:47:15   Error Undefined variable in expression: ai_skill_medium
22:47:15 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 24
22:47:16 Error in expression < [(_x select 0),(_x select 1)];
} count _aicskill;

ai_vehicle_units = (ai_vehic>
22:47:16   Error position: <_aicskill;

ai_vehicle_units = (ai_vehic>
22:47:16   Error Undefined variable in expression: _aicskill
22:47:16 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 86
22:47:17 Error in expression < [(_x select 0),(_x select 1)];
} count _aicskill;

ai_vehicle_units = (ai_vehic>
22:47:17   Error position: <_aicskill;

ai_vehicle_units = (ai_vehic>
22:47:17   Error Undefined variable in expression: _aicskill
22:47:17 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 86
22:47:17 Error in expression < [(_x select 0),(_x select 1)];
} count _aicskill;

ai_vehicle_units = (ai_vehic>
22:47:17   Error position: <_aicskill;

ai_vehicle_units = (ai_vehic>
22:47:17   Error Undefined variable in expression: _aicskill
22:47:17 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 86
22:47:17 Error in expression < [(_x select 0),(_x select 1)];
} count _aicskill;

ai_vehicle_units = (ai_vehic>
22:47:17   Error position: <_aicskill;

ai_vehicle_units = (ai_vehic>
22:47:17   Error Undefined variable in expression: _aicskill
22:47:17 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 86
22:47:17 Error in expression < [(_x select 0),(_x select 1)];
} count _aicskill;

ai_vehicle_units = (ai_vehic>
22:47:17   Error position: <_aicskill;

ai_vehicle_units = (ai_vehic>
22:47:17   Error Undefined variable in expression: _aicskill
22:47:17 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 86
22:47:17 Error in expression < [(_x select 0),(_x select 1)];
} count _aicskill;

ai_vehicle_units = (ai_vehic>
22:47:17   Error position: <_aicskill;

ai_vehicle_units = (ai_vehic>
22:47:17   Error Undefined variable in expression: _aicskill
22:47:17 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 86
22:47:18 Error in expression < [(_x select 0),(_x select 1)];
} count _aicskill;

ai_vehicle_units = (ai_vehic>
22:47:18   Error position: <_aicskill;

ai_vehicle_units = (ai_vehic>
22:47:18   Error Undefined variable in expression: _aicskill
22:47:18 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 86
22:47:18 Error in expression < [(_x select 0),(_x select 1)];
} count _aicskill;

ai_vehicle_units = (ai_vehic>
22:47:18   Error position: <_aicskill;

ai_vehicle_units = (ai_vehic>
22:47:18   Error Undefined variable in expression: _aicskill
22:47:18 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 86
22:47:18 Error in expression < [(_x select 0),(_x select 1)];
} count _aicskill;

ai_vehicle_units = (ai_vehic>
22:47:18   Error position: <_aicskill;

ai_vehicle_units = (ai_vehic>
22:47:18   Error Undefined variable in expression: _aicskill
22:47:18 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 86
22:47:18 Error in expression < [(_x select 0),(_x select 1)];
} count _aicskill;

ai_vehicle_units = (ai_vehic>
22:47:18   Error position: <_aicskill;

ai_vehicle_units = (ai_vehic>
22:47:18   Error Undefined variable in expression: _aicskill
22:47:18 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 86
22:47:18 Error in expression < [(_x select 0),(_x select 1)];
} count _aicskill;

ai_vehicle_units = (ai_vehic>
22:47:18   Error position: <_aicskill;

ai_vehicle_units = (ai_vehic>
22:47:18   Error Undefined variable in expression: _aicskill
22:47:18 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 86
22:47:18 Error in expression < [(_x select 0),(_x select 1)];
} count _aicskill;

ai_vehicle_units = (ai_vehic>
22:47:18   Error position: <_aicskill;

ai_vehicle_units = (ai_vehic>
22:47:18   Error Undefined variable in expression: _aicskill
22:47:18 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 86
22:47:18 Error in expression < [(_x select 0),(_x select 1)];
} count _aicskill;

ai_vehicle_units = (ai_vehic>
22:47:18   Error position: <_aicskill;

ai_vehicle_units = (ai_vehic>
22:47:18   Error Undefined variable in expression: _aicskill
22:47:18 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 86
22:47:18 Error in expression < [(_x select 0),(_x select 1)];
} count _aicskill;

ai_vehicle_units = (ai_vehic>
22:47:18   Error position: <_aicskill;

ai_vehicle_units = (ai_vehic>
22:47:18   Error Undefined variable in expression: _aicskill
22:47:18 File z\addons\dayz_server\WAI\compile\vehicle_patrol.sqf, line 86

 

 

файл

 

if(isServer) then {
   
    [[14255.0,17025.0,0],[14255.0,17025.0,0],50,2,"Pickup_PK_TK_GUE_EP1_DZE","Medium","GUE_Soldier_2_DZ","Bandit"] spawn vehicle_patrol;
    [[14270.0,17025.0,0],[14270.0,17025.0,0],50,2,"UAZ_MG_TK_EP1","Medium","GUE_Soldier_2_DZ","Bandit"] spawn vehicle_patrol;

    [[10110.0,7570.0,0],[10110.0,7570.0,0],50,2,"HMMWV_Armored","Medium","GUE_Soldier_2_DZ","Bandit"] spawn vehicle_patrol;

    [[4975.0,4440.0,0],[5200.0,4450.0,0],50,2,"Pickup_PK_TK_GUE_EP1_DZE","Medium","GUE_Soldier_2_DZ","Bandit"] spawn vehicle_patrol;
    [[5100.0,4550.0,0],[5200.0,4550.0,0],50,2,"Pickup_PK_TK_GUE_EP1_DZE","Medium","GUE_Soldier_2_DZ","Bandit"] spawn vehicle_patrol;

    [[18206.0,2583.0,0],[18206.0,2583.0,0],50,2,"Pickup_PK_GUE_DZE","Medium","GUE_Soldier_2_DZ","Bandit"] spawn vehicle_patrol;

    [[18206.0,2583.0,0],[18206.0,2583.0,0],50,2,"UAZ_MG_TK_EP1","Medium","GUE_Soldier_2_DZ","Bandit"] spawn vehicle_patrol;

    [
        [14270.0, 16880.0, 0],
        [11270.0, 16380.0, 0],
        200,
        "Mi17_DZ",
        6,
        "Medium",
        1,
        2,
        "DZ_Patrol_Pack_EP1",
        "Soldier1_DZ",
        0,
        "Hero",
        True
    ] spawn heli_para;

    [
        [10165.0,7430.0,0],
        [6165.0,3430.0,0],
        100,
        "UH1H_DZ",
        6,
        "Medium",
        1,
        2,
        "DZ_Patrol_Pack_EP1",
        "Bandit2_DZ",
        0,
        "Bandit",
        True
    ] spawn heli_para;

 


    [[3100.0,13520.0,87.0],[3100.0,13520.0,87.0],3000,2,"RHIB","Medium","GUE_Soldier_2_DZ","Bandit"] spawn vehicle_patrol;
    [[7480.0,17380.0,35.0],[7480.0,17380.0,35.0],3000,2,"RHIB","Medium","GUE_Soldier_2_DZ","Bandit"] spawn vehicle_patrol;
    [[14250.0,14950.0,12.0],[14250.0,14950.0,12.0],3000,2,"RHIB","Medium","GUE_Soldier_2_DZ","Bandit"] spawn vehicle_patrol;
    [[17660.0,13160.0,82.0],[17660.0,13160.0,82.0],3000,2,"RHIB","Medium","GUE_Soldier_2_DZ","Bandit"] spawn vehicle_patrol;
    [[17170.0,6340.0,46.0],[17170.0,6340.0,46.0],3000,2,"RHIB","Medium","GUE_Soldier_2_DZ","Bandit"] spawn vehicle_patrol;
    [[2100.0,5220.0,92.0],[2100.0,5220.0,92.0],3000,2,"RHIB","Medium","GUE_Soldier_2_DZ","Bandit"] spawn vehicle_patrol;
    [[14720.0,19400.0,92.0],[14720.0,19400.0,92.0],3000,2,"RHIB","Medium","GUE_Soldier_2_DZ","Bandit"] spawn vehicle_patrol;
    [[12900.0,2450.0,76.0],[12900.0,2450.0,76.0],3000,2,"RHIB","Medium","GUE_Soldier_2_DZ","Bandit"] spawn vehicle_patrol;

 

 

Раньше все было тоже самое и без проблем, попытался добавить кастом пулеметы - полетели ошибки, закомментил блок пулеметов, а спавн все равно не идет - ошибки....

Пробывал по разному строить скрипт, но толку нет...

Почему перестало идти чтение готового конфига в ....\vehicle_patrol.sqf ?

Edited by ripdok (see edit history)

Share this post


Link to post
Share on other sites
  • 0

У вас стандартные переменные не объявляются. Что делали с WAI?

Share this post


Link to post
Share on other sites
  • 0

добавил миссии для героев методом копирования =)

 

wai_hero_missions            = [                                 // ["mission filename",% chance of picking this mission],Make sure the chances add up to 100,or it will not be accurate percentages
                                        ["helicopter_crash",8],
                                        ["armed_vehicle",6],
                                        ["bandit_base",2],
                                        ["captured_mv22",4],
                                        ["ikea_convoy",5],
                                        ["destroyed_ural",8],
                                        ["disabled_milchopper",6],
                                        ["mayors_mansion",3],
                                        ["angry_axeman's",6],
                                        ["bandit_firebase",4],
                                        ["stash_house",7],
                                        ["humvee_crash",8],
                                        ["armed_party",8],
                                        ["weapons_truck",6],
                                        ["c-130_crash",5],
                                        ["hillbillies",8],
                                        ["weapon_cache",6]
                                    ];
                                    
        wai_hero2_missions            = [                                 // ["mission filename",% chance of picking this mission],Make sure the chances add up to 100,or it will not be accurate percentages
                                        ["helicopter_crash",8],
                                        ["armed_vehicle",6],
                                        ["bandit_base",2],
                                        ["captured_mv22",4],
                                        ["ikea_convoy",5],
                                        ["destroyed_ural",8],
                                        ["disabled_milchopper",6],
                                        ["mayors_mansion",3],
                                        ["angry_axeman's",6],
                                        ["bandit_firebase",4],
                                        ["stash_house",7],
                                        ["humvee_crash",8],
                                        ["armed_party",8],
                                        ["weapons_truck",6],
                                        ["c-130_crash",5],
                                        ["hillbillies",8],
                                        ["weapon_cache",6]
                                    ];

    

 

    // Start mission monitor
    while {true} do
    {
        _cnt         = {alive _x} count playableUnits;
        _currTime     = floor(time);

        if (isNil "_h_missionTime") then { _h_missionTime = ((wai_mission_timer select 0) + random((wai_mission_timer select 1) - (wai_mission_timer select 0))); };
        if (isNil "_h2_missionTime") then { _h2_missionTime = ((wai_mission_timer select 0) + random((wai_mission_timer select 1) - (wai_mission_timer select 0))); };
        //if (isNil "_b_missionTime") then { _b_missionTime = ((wai_mission_timer select 0) + random((wai_mission_timer select 1) - (wai_mission_timer select 0))); };
        //if (isNil "_s_missionTime") then { _s_missionTime = ((wai_mission_timer select 0) + random((wai_mission_timer select 1) - (wai_mission_timer select 0))); };

        if((_currTime - _h_startTime >= _h_missionTime) && (!h_missionrunning)) then { _result = 1; };
        if((_currTime - _h2_startTime >= _h2_missionTime) && (!h2_missionrunning)) then { _result = 4; };
        //if((_currTime - _b_startTime >= _b_missionTime) && (!b_missionrunning)) then { _result = 2; };
        //if((_currTime - _s_startTime >= _s_missionTime) && (!s_missionrunning)) then { _result = 3; };

        if(h_missionrunning) then { _h_startTime = floor(time); };
        if(h2_missionrunning) then { _h2_startTime = floor(time); };
        //if(b_missionrunning) then { _b_startTime = floor(time); };
        //if(s_missionrunning) then { _s_startTime = floor(time); };

        if((_cnt >= wai_players_online) && (markerready) && ((diag_fps) >= wai_server_fps)) then {
            
            
            if (_result == 1) then {
                h_missionrunning     = true;
                _h_startTime         = floor(time);
                _h_missionTime        = nil;
                _result             = 0;

                _mission             = wai_hero_mission call BIS_fnc_selectRandom;
                execVM format ["\z\addons\dayz_server\WAI\missions\hero\%1.sqf",_mission];
            };
            
            if (_result == 4) then {
                h2_missionrunning     = true;
                _h2_startTime         = floor(time);
                _h2_missionTime        = nil;
                _result             = 0;

                _mission             = wai_hero2_mission call BIS_fnc_selectRandom;
                execVM format ["\z\addons\dayz_server\WAI\missions\hero2\%1.sqf",_mission];
            };

 

 

и добавил новые наподобие:

if(isServer) then {

    private            ["_complete","_crate","_mission","_position","_num_guns","_num_tools","_num_items","_rndnum","_crate_type"];

    _hint = parseText format["<t align=center' color='#f2cb0b' shadow='2' shadowColor='#000000' size='1.50'>Новая миссия!</t><br/><t align='center' color='#f2cb0b' shadow='2' shadowColor='#000000' size='1.00'>____________________________</t><br/><t align='center' color='#ffffff' size='1.25'>Замечена группа мясников-педофилов!</t&gt];
    customRemoteMessage = ['hint', _hint];
    publicVariable "customRemoteMessage";
    
    _position        = [30] call find_position;
    _mission        = [_position,"Medium","Angry Axeman's","MainHero",true] call mission_init;
    
    diag_log         format["WAI: [Mission:[Hero] Angry Axeman's]: Starting... %1",_position];

    //Setup the crate
    _crate_type     = crates_medium call BIS_fnc_selectRandom;
    _crate             = createVehicle [_crate_type,[(_position select 0) + 5,(_position select 1) + 5,0], [], 0, "CAN_COLLIDE"];

    //Base

    
    //Troops
    _rndnum     = 3 + round (random 2);

    [[_position select 0,_position select 1,0],_rndnum,"Hard","Random",2,"","Bandit","Random","Bandit",_mission] call spawn_group;
    [[_position select 0,_position select 1,0],3,"Hard","Random",2,"","Bandit","Random","Bandit",_mission] call spawn_group;
    [[_position select 0,_position select 1,0],3,"Hard","Random",2,"","Bandit","Random","Bandit",_mission] call spawn_group;
    [[_position select 0,_position select 1,0],3,"Hard","Random",2,"","Bandit","Random","Bandit",_mission] call spawn_group;

    //Angry Axeman's
    [[_position select 0,_position select 1,0],3,"Hard","MeleeHatchet_DZE",0,"","Bandit","Random","Bandit",_mission] call spawn_group;
    [[_position select 0,_position select 1,0],3,"Hard","MeleeHatchet_DZE",0,"","Bandit","Random","Bandit",_mission] call spawn_group;
    
    
    //Condition
    _complete = [
        [_mission,_crate],        // mission number and crate
        ["kill"],                    // ["crate"], or ["kill"], or ["assassinate", _unitGroup],
        [],                        // cleanup objects
        "Angry Axeman's party! Watch out before they catch you!",            // mission announcement
        "Finally! THEY died! Check the bodies for some supplies!",            // mission success
        "Survivors didn't kill the Axeman's party in time..."                // mission fail
    ] call mission_winorfail;

    if(_complete) then {
        [_crate,2,3,18,1,[1,crate_items_high_value]] call dynamic_crate;
    };

    diag_log format["WAI: [Mission:[Hero] Angry Axeman's]: Ended at %1",_position];
    
    h2_missionrunning = false;
};

 

 

Причем по началу (вчера) все работало, а сегодня добавил в кастомспавн спавн турелей

/*
    [[10304.0,7987.0,0],[10304.0,7987.0,0],"M2StaticMG","Medium","Bandit2_DZ","Bandit"] call spawn_static;
    
    [[6472.0,14535.0,0],[6472.0,14535.0,0],"M2StaticMG","Medium","Bandit2_DZ","Bandit"] call spawn_static;
    
    [[12754.0,14667.0,0],[12754.0,14667.0,0],"M2StaticMG","Medium","Bandit2_DZ","Bandit"] call spawn_static;
    
    [[14363.0,17041.0,0],[14363.0,17041.0,0],"M2StaticMG","Medium","Bandit2_DZ","Bandit"] call spawn_static;
*/

  

  и все раком встало и трындец хз что делать...... =)))

 

Мысли??

Edited by ripdok (see edit history)

Share this post


Link to post
Share on other sites
  • 0

Перезалив wai в dayz_server не помогает. куда копать?

Share this post


Link to post
Share on other sites
  • 0

другой вопрос: что делать если стандартные переменные ботов не объявляются? что перезалить накрайняк?

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Similar Content

    • By ZizionarD
      Описание:
      Данный скрипт добавляет HUD в левый нижний угол. В нем вы можете увидеть 5 или 4 предмета (в зависимости от конфигурации) с основным оружием, вашем вторичным оружием, обезболивающим и бинтом, так же используются горячих клавиш которые можно использовать чтобы активировать каждый предмет.
       
       
      Установка:
      На чистый сервер
      1. Скачать архив CUSTOMWEAPONHUD-MASTER.ZIP
      2. Разархивировать скаченный архив
      3. Папки dayz_code и rlnt, а так же файлы description.ext и init.sqf поместить в корень папки миссии
      4. Если у вас не стоит InfiStar, то шаг 4 и 5, если у вас стоит InfiStar, то в файле AHconfig.sqf добавить 7000,7001,7002,7003 в массиве "_ALLOWED_Dialogs"
      5. В файле AT.sqf найдите:
      if(_key == 0x05)then{call admin_fly_up;}; if(_key == 0x06)then{call admin_tpdirection;}; и замените их на:
      if(_key == 0x09)then{call admin_fly_up;}; if(_key == 0x0A)then{call admin_tpdirection;}; Найдите:
      adminadd = adminadd + [" 4 - Fly Up","","0","1","0","0",[]]; adminadd = adminadd + [" 5 - TP LookingDirection","","0","1","0","0",[]]; и замените на:
      adminadd = adminadd + [" 8 - Fly Up","","0","1","0","0",[]]; adminadd = adminadd + [" 9 - TP LookingDirection","","0","1","0","0",[]]; 6. Вот и все.
       
      На измененный сервер
      1. Скачать архив CUSTOMWEAPONHUD-MASTER.ZIP
      2. Разархивировать скаченный архив
      3. В корне миссии открыть файл init.sqf и найти:
      DZE_selfTransfuse_Values = [12000,15,120]; после этой строки добавить:
      DZE_TwoPrimaries = 2; //Copy this only if you don't have it yet DZE_weaponHUD = true; /* RLNT - WeaponHUD */ Далее найти:
      call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; После добавить:
      call compile preprocessFileLineNumbers "dayz_code\init\compiles.sqf"; call compile preprocessFileLineNumbers "rlnt\client\init\compiles.sqf"; /* RLNT - Relentless */ Далее найти:
      if (isServer) then { if (dayz_POIs && (toLower worldName == "chernarus")) then {call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\chernarus\poi\init.sqf";}; call compile preprocessFileLineNumbers "\z\addons\dayz_server\system\dynamic_vehicle.sqf"; call compile preprocessFileLineNumbers "\z\addons\dayz_server\system\server_monitor.sqf"; execVM "\z\addons\dayz_server\traders\chernarus11.sqf"; //Add trader agents //Get the server to setup what waterholes are going to be infected and then broadcast to everyone. if (dayz_infectiousWaterholes && (toLower worldName == "chernarus")) then {execVM "\z\addons\dayz_code\system\mission\chernarus\infectiousWaterholes\init.sqf";}; // Lootable objects from CfgTownGeneratorDefault.hpp if (dayz_townGenerator) then { execVM "\z\addons\dayz_code\system\mission\chernarus\MainLootableObjects.sqf"; }; }; после добавить:
      if (!isServer) then { //RLNT - Relentless execVM "rlnt\scripts\Weapon HUD\weaponhud_init.sqf"; /* RLNT - WeaponHUD */ }; 4. Открыть файл description.ext и найти:
      #include "\z\addons\dayz_code\gui\description.hpp" заменить ее на:
      #include "dayz_code\gui\description.hpp" #include "rlnt\dialogs\rlnt_defines.hpp" /* RLNT - WeaponHUD */ class RscTitles { #include "rlnt\dialogs\rlnt_weaponhud.hpp" /* RLNT - WeaponHUD */ 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; y = safeZoneY+safeZoneH-0.16; w = 0.151*safeZoneH; h = 0.057*safeZoneH; shadow = 2; class Attributes { font = "EtelkaNarrowMediumPro"; color = "#24FFFFFF"; align = "left"; valign = "middle"; shadow = 2; }; colorBackground[] = { 1, 0.3, 0, 0 }; font = "EtelkaNarrowMediumPro"; size = 0.06*safeZoneH; type = 13; style = 0; text=""; }; }; }; }; 5. Папки dayz_code и rlnt залить в корень миссии
      6. Если у вас уже используется кастомный файл keyboard.sqf то найдите в нем:
      _rifle = { 2 call dz_fn_switchWeapon; _handled = true; }; _pistol = { 3 call dz_fn_switchWeapon; _handled = true; }; _melee = { // Also works for rifle on back if DZE_TwoPrimaries = 2; 4 call dz_fn_switchWeapon; _handled = true; }; _throwable = { // select next non empty throwable weapon if (vehicle player == player) then { _ammo_throwable = []; _muzzles_throwable = []; _weapon_throwable = []; { _weapon = _x; _muzzles = getArray(configFile >> "cfgWeapons" >> _weapon >> "muzzles"); if (count _muzzles == 0) then { _muzzles = [_weapon ]; }; { _muzz = _x; { if (_x in magazines player) then { _ammo_throwable set [ count _ammo_throwable, getText(configFile >> "cfgMagazines" >> _x >> "ammo") ]; _muzzles_throwable set [ count _muzzles_throwable, _muzz ]; _weapon_throwable set [ count _weapon_throwable, _weapon ]; }; } forEach getArray(configFile >> "cfgWeapons" >> _weapon >> _muzz >> "magazines"); } forEach _muzzles; } forEach ["Throw"]; _magCount = count _ammo_throwable; if (_magCount > 0) then { if (isNil "KB_CurrentThrowable") then { KB_CurrentThrowable = -1; }; _currentAmmo = (weaponState player) select 3; _idx = _ammo_throwable find _currentAmmo; if (_idx >= 0) then { KB_CurrentThrowable = _idx; }; KB_CurrentThrowable = (KB_CurrentThrowable + 1) mod _magCount; player selectWeapon (_muzzles_throwable select KB_CurrentThrowable); _handled = true; }; }; }; и замените на:
      _rifle1 = { 2 call dz_fn_switchWeapon; _handled = true; }; _rifle2 = { 4 call dz_fn_switchWeapon; _handled = true; }; _pistol = { 3 call dz_fn_switchWeapon; _handled = true; }; _painkiller = { [0,0,0,[player]] execVM "rlnt\scripts\Weapon HUD\actions\rlnt_painkiller.sqf"; _handled = true; }; _bandage = { [0,0,0,[player]] execVM "rlnt\scripts\Weapon HUD\actions\rlnt_bandage.sqf"; _handled = true; }; найдите:
      DIK_8,DIK_7,DIK_6,DIK_5,DIK_4], _block] call _addArray; и замените на:
      DIK_8,DIK_7,DIK_6], _block] call _addArray; найдите строчку:
      if (!isNil "bis_fnc_halo_keydown_eh") then {bis_fnc_halo_keydown_eh = (finddisplay 46) displayaddeventhandler ["keydown","_this call bis_fnc_halo_keydown;"];}; // halo in progress и удалите ее.
      7. Если у вас не стоит InfiStar, то шаг 4 и 5, если у вас стоит InfiStar, то в файле AHconfig.sqf добавить 7000,7001,7002,7003 в массиве "_ALLOWED_Dialogs"
      8. В файле AT.sqf найдите:
      if(_key == 0x05)then{call admin_fly_up;}; if(_key == 0x06)then{call admin_tpdirection;}; и замените их на:
      if(_key == 0x09)then{call admin_fly_up;}; if(_key == 0x0A)then{call admin_tpdirection;}; Найдите:
      adminadd = adminadd + [" 4 - Fly Up","","0","1","0","0",[]]; adminadd = adminadd + [" 5 - TP LookingDirection","","0","1","0","0",[]]; и замените на:
      adminadd = adminadd + [" 8 - Fly Up","","0","1","0","0",[]]; adminadd = adminadd + [" 9 - TP LookingDirection","","0","1","0","0",[]]; 9. Вот и все.
       
      TODO:
      18.06.18 - Обновление ссылок
    • By Alex39
      [4.4R4] (5.0)Tanoa/Altis Life Spawn Menu

      Пожалуйста, Войдите или Зарегистрируйтесь, чтобы увидеть это: Вложение.
       
      В вашей мисии Tanoa найти файл spawnSelection.hpp и заменить содержимое на это:
       
      /* Author: Deadlesszombie / Neil Smith made for www.altisliferpg, tanoalife spawn menu, something basic, enjoy. https://www.altisliferpg.com/topic/4103-44r4-tanoa-life-spawn-menu/ */ class life_spawn_selection { idd = 38500; movingEnable = 0; enableSimulation = 1; class ControlsBackground { class Background: Life_RscText { type = 0; idc = -1; x = safeZoneX + safeZoneW * -0.00125; y = safeZoneY + safeZoneH * -0.00111111; w = safeZoneW * 1.011875; h = safeZoneH * 1.01333334; style = 0+48; text = "textures\Spawn_Menu.paa"; colorBackground[] = {0,0,0,1}; colorText[] = {1,1,1,0.7765}; font = "PuristaMedium"; sizeEx = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1); }; }; class Controls { class MapView: Life_RscMapControl { idc = 38502; x = safeZoneX + safeZoneW * 0.360625; y = safeZoneY + safeZoneH * 0.30222223; w = safeZoneW * 0.509375; h = safeZoneH * 0.45666667; maxSatelliteAlpha = 0.75;//0.75; alphaFadeStartScale = 1.15;//0.15; alphaFadeEndScale = 1.29;//0.29; sizeEx = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1); }; class SpawnPointList: Life_RscListNBox { idc = 38510; text = ""; x = safeZoneX + safeZoneW * 0.135; y = safeZoneY + safeZoneH * 0.29444445; w = safeZoneW * 0.16125; h = safeZoneH * 0.47; drawSideArrows = 0; idcLeft = -1; idcRight = -1; rowHeight = 0.050; sizeEx = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1); onLBSelChanged = "_this call life_fnc_spawnPointSelected;"; }; class spawnButton: Life_RscButton { type = 1; idc = -1; x = safeZoneX + safeZoneW * 0.364375; y = safeZoneY + safeZoneH * 0.86888889; w = safeZoneW * 0.18625; h = safeZoneH * 0.03666667; style = 0; text = "$STR_Spawn_Spawn"; colorBackground[] = {0.2,0.4,0.2,1}; colorBackgroundActive[] = {1,1,1,1}; colorBackgroundDisabled[] = {0.2,0.2,0.2,1}; colorBorder[] = {0,0,0,0}; colorDisabled[] = {0.2,0.2,0.2,1}; colorFocused[] = {0.2,0.2,0.2,1}; colorShadow[] = {0,0,0,0}; colorText[] = {1,1,1,1}; font = "PuristaMedium"; sizeEx = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1); soundClick[] = {"\A3\ui_f\data\sound\RscButton\soundClick",0.09,1.0}; soundEnter[] = {"\A3\ui_f\data\sound\RscButton\soundEnter",0.09,1.0}; soundEscape[] = {"\A3\ui_f\data\sound\RscButton\soundEscape",0.09,1.0}; soundPush[] = {"\A3\ui_f\data\sound\RscButton\soundPush",0.09,1.0}; onButtonClick = "[] call life_fnc_spawnConfirm"; }; }; };  
    • By ZizionarD
      Ребят прошу помощи, как сделать платные точки спавна?
    • By MisaAmane
      Собсна поставил я сообщения об убийствах и перестал работать нормально спавн. А точнее не проверяет где умер персонаж. Исправил, но перестали показываться сообщения об убийствах :D Проблема в файле serverPlayer_died.sqf.
       
      Файл, который требует система сообщений об убийствах:
       
      То, что у меня сейчас:
       
      То, что нужно добавить для нормальной работы спавна и из-за чего не работает система сообщений:
       
       
      Как совместить это дело всё? Оба скрипта очень нужны.
    • By Golf777
      Custom hud работает при возрождения игроков после смерти,при релоге игроков периодически пропадает.При этом стандартный дебаг монитор во всех случаях работает.Ошибок в РПТ логи не выдаёт.
  • Our picks

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.