Jump to content

dark dragon

Member
  • Posts

    1
  • Joined

  • Last visited

Posts posted by dark dragon

  1. On 1/21/2018 at 11:35 PM, victorks said:

    5a64965f8c796_Semttulo.png.696bed43c0e5a9057761ffdc2d27da2d.png

    5a64965df3a78_Semttulaao.png.ef0c054288e09dad8e3ee2f0ebb97fcc.png

    I started my server and gave this error there in the photo. could anyone help?

    sorry about my English :)

    hi i am having the same problem

    this is the rpt from when error starts and when closed rest is fine and normal

    Spoiler

    "Player_Death called from 'killed' event handler [[6329a040# 1063079: baf_soldier_officer_baf.p3d,6329a040# 1063079: baf_soldier_officer_baf.p3d],"find"]"
    "Player_Death: Body:6329a040# 1063079: baf_soldier_officer_baf.p3d BodyName:dm darkdragon Infected:0 SourceName:dm darkdragon SourceWeapon:BAF_AS50_scoped Distance:0 Method:bled"
    ["Scheduler terminated"]
    No owner
    No owner
    "Res3tting B!S effects..."
    "PRELOAD_ Functions\init [[L 1-1-A:1 REMOTE],any]"
    "MPframework inited"
    "dayz_preloadFinished reset"
    ["Sent to server: PVDZ_plr_Login1",["12345678900000000",B 1-1-A:1 (dm darkdragon)]]
    ["Sent to server: PVDZ_send",[B 1-1-A:1 (dm darkdragon),"dayzSetDate",[B 1-1-A:1 (dm darkdragon)]]]
    "PLAYER RESULT: true"
    [379.587,"z\addons\dayz_code\system\scheduler\sched_init.sqf","Scheduler started"]
    [379.786,"onPreloadStarted"]
    "z\addons\dayz_code\system\antihack.sqf: Plants libs tests done!"
    ["Sent to server: PVDZ_plr_Login2",["2",B 1-1-B:1 (dm darkdragon),"12345678900000000",9,[]]]
    ["Date & time received:",[2012,8,2,13,18]]
    ["Local date on this client:",[2012,8,2,13,18]]
    [381.662,"onPreloadFinished"]
    "<infiSTAR.de> randvar26 created (139.504)"
    "Sent to server PVDZ_plr_LoginRecord: [12345678900000000, 2, 0, dm darkdragon]"
    []
    Error in expression <DZ_plr_Login2 select 5;
    class_public = (spawn_config select 0) + class_public;
    s>
      Error position: <spawn_config select 0) + class_public;
    s>
      Error Undefined variable in expression: spawn_config
    File mpmissions\__CUR_MP.Chernarus\spawn\main.sqf, line 42
    "<infiSTAR.de> randvar1 started (139.621)"
    "player_forceSave called from fsm"
    "<infiSTAR.de> randvar1 created randvar27a (139.657)"
    "<infiSTAR.de> 24-01-2018 04-39-03-v1448 - Successfully Loaded on Client ID15838 (139.657)"
    "<infiSTAR.de> randvar1 created randvar27 (139.657)"
    Error in expression <efault {[.88,.88,.88,1]};
    }];
    } forEach class_public;>
      Error position: <class_public;>
      Error Undefined variable in expression: class_public
    File mpmissions\__CUR_MP.Chernarus\spawn\functions\class_fillList.sqf, line 39
    Error in expression < (_female) then {_class select 2} else {_class select 1};
    _weps = _class select >
      Error position: <_class select 1};
    _weps = _class select >
      Error Undefined variable in expression: _class
    File mpmissions\__CUR_MP.Chernarus\spawn\functions\class_preview.sqf, line 13
    String STR_EVAL_TYPENAN not found
    Error in expression <ffset;
    } else {
    spawn_camera setPosATL (ASLtoATL _offset);
    };>
      Error position: <ASLtoATL _offset);
    };>
      Error Type Number, expected Number
    File mpmissions\__CUR_MP.Chernarus\spawn\functions\class_preview.sqf, line 53
    Error in expression <weps"];
    disableSerialization;

    _class = class_public select 0;
    _name = lbText [8>
      Error position: <class_public select 0;
    _name = lbText [8>
      Error Undefined variable in expression: class_public
    File mpmissions\__CUR_MP.Chernarus\spawn\functions\class_preview.sqf, line 4
    String STR_FAL_Street_Sign not found
    String STR_FAL_Street_Sign not found
    String STR_FAL_Street_Sign not found
    String STR_FAL_Street_Sign not found
    String STR_FAL_Street_Sign not found
    String STR_FAL_Street_Sign not found
    String STR_FAL_Street_Sign not found
    String STR_FAL_Street_Sign not found
    String STR_FAL_Street_Sign not found
    String STR_FAL_Street_Sign not found
    String STR_FAL_Street_Sign not found
    String STR_FAL_Street_Sign not found
    String STR_FAL_Street_Sign not found
    String STR_FAL_Street_Sign not found
    String STR_FAL_Street_Sign not found
    String STR_FAL_Street_Sign not found
    String STR_FAL_Street_Sign not found
    String STR_FAL_Street_Sign not found
    String STR_FAL_Street_Sign not found
    String STR_FAL_Street_Sign not found
    Error in expression <unt _block,(_x select 0)];
    };
    } forEach spawn_public;
    if (_inGroup && spawn_near>
      Error position: <spawn_public;
    if (_inGroup && spawn_near>
      Error Undefined variable in expression: spawn_public
    File mpmissions\__CUR_MP.Chernarus\spawn\functions\spawn_fill.sqf, line 35
    Error in expression <ult {[.88,.88,.88,1]};
    }];
    };
    } forEach spawn_public;

    if (_inGroup && spawn_nea>
      Error position: <spawn_public;

    if (_inGroup && spawn_nea>
      Error Undefined variable in expression: spawn_public
    File mpmissions\__CUR_MP.Chernarus\spawn\functions\spawn_fill.sqf, line 82
    Error in expression <)) exitWith {
    _spawn = _x;
    };
    } forEach spawn_public;

    _grid = switch true do {
    >
      Error position: <spawn_public;

    _grid = switch true do {
    >
      Error Undefined variable in expression: spawn_public
    File mpmissions\__CUR_MP.Chernarus\spawn\functions\spawn_map.sqf, line 11
    "keyboard_keys reset"
    Warning: looped for animation: ca\anims\characters\data\anim\sdr\mov\erc\stp\non\non\amovpercmstpsnonwnondnon_amovpercmstpsraswpstdnon_end.rtm differs (looped now 0)! MoveName: amovpercmstpsnonwnondnon_amovpercmstpsraswpstdnon_end
    Cannot create non-ai vehicle c_grasstall,
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Unexpected control type
    Client: Object (id 2:6661, type Type_103) is local - update is ignored.
    Warning Message: Picture mine not found
    Warning Message: Picture mine not found
    Warning Message: Picture mine not found
    No owner

    this is main.sqf red is the error in rpt

    Spoiler

    spawn_camera setDir 180;

    sched_townGenerator_ready = {true};
    waitUntil {
        uiSleep 0.4;
        if (!dayz_displayGenderSelect) then {
            [format[localize "STR_AUTHENTICATING" + " %1",floor(diag_tickTime - dayz_loginTime)],1] call dayz_rollingMessages;
        };
        !isNil "Dayz_loginCompleted"
    };

    ["",1] call dayz_rollingMessages;

    //Exit if not a fresh spawn
    if !(PVCDZ_plr_Login2 select 4) exitWith {
        #include "functions\finish.sqf"
        #include "functions\cleanup.sqf"
    };

    _isPZombie = player isKindOf "PZombie_VB";

    //Add private classes and spawns this player has access to.
    spawn_config = PVCDZ_plr_Login2 select 5;
    class_public = (spawn_config select 0) + class_public;
    spawn_public = (spawn_config select 1) + spawn_public;

    //VIP levels this player has access to.
    class_levels = spawn_config select 2;
    spawn_levels = spawn_config select 3;

    waitUntil {uiSleep 0.1; !isNull findDisplay 46};
    0 fadeSound 0;
    0 fadeMusic 0;

    if (class_selection && !_isPZombie) then {
        class_bot = objNull;
        class_choice = [];
        
        // Make preview bot visible at night time
        spawn_light = "#lightpoint" createVehicleLocal [0,0,0];
        spawn_light setLightBrightness 300;
        spawn_light setLightAmbient [1,1,1];
        spawn_light setLightColor [1,1,1];
        
        createDialog "ClassDialog";
        call class_fillList;
        call class_preview;
        waitUntil {uiSleep 0.1; !dialog};
        
        _bag = "";
        _bmags = [];
        _bweps = [];
        _mags = [];
        _weps = [];
        _onBack = "";
        
        if (count class_choice > 0) then {
            player call class_wipeGear;
            _myModel = typeOf player;
            _female = _myModel isKindOf "SurvivorW2_DZ";
            _model = if (_female) then {class_choice select 2} else {class_choice select 1};
            _mags = class_choice select 3;
            _weps = class_choice select 4;
            _bag = class_choice select 5;
            _bmags = class_choice select 6;
            _bweps = class_choice select 7;
            _onBack = switch true do {
                case (count class_choice == 10): {class_choice select 9}; //Custom loadout by UID
                case (count class_choice == 12): {class_choice select 11}; //Normal private or public
                default {""}; //Not specified, may be V2 config
            };
        
            if (typeName _model == "ARRAY") then { //Random
                _model = if (_female) then {(class_choice select 1) select 1} else {(class_choice select 1) select 0};
                _model = _model call BIS_fnc_selectRandom;
                _weps = class_choice select 6;
                _pistol = class_choice select 8;
                _bag = class_choice select 10;
                _bweps = class_choice select 15;
                _bpistol = class_choice select 17;
                _onBack = if (count class_choice > 22) then {class_choice select 22} else {[]};
                _gMags = if (count class_choice > 23) then {class_choice select 23} else {[]};
                _gTools = if (count class_choice > 24) then {class_choice select 24} else {[]};
                _bag = if (count _bag > 0) then {_bag call BIS_fnc_selectRandom} else {""};
                _onBack = if (count _onBack > 0) then {_onBack call BIS_fnc_selectRandom} else {""};
                if (count _weps > 0) then {_weps = [(_weps call BIS_fnc_selectRandom)];};
                if (count _pistol > 0) then {_pistol = [(_pistol call BIS_fnc_selectRandom)];};
                if (count _bweps > 0) then {_bweps = [(_bweps call BIS_fnc_selectRandom)];};
                if (count _bpistol > 0) then {_bpistol = [(_bpistol call BIS_fnc_selectRandom)];};
                _tools = 4 call class_randomTools;
                _btools = 13 call class_randomTools;        
                _bmags = [(class_choice select 11),11,12] call class_randomMags;
                _bmags2 = [_bweps,16] call class_randomMags;
                _bmags3 = [_bpistol,18] call class_randomMags;
                _mags = [(class_choice select 2),2,3] call class_randomMags;
                _mags2 = [_weps,7] call class_randomMags;
                _mags3 = [_pistol,9] call class_randomMags;
                _mags = _mags + _mags2 + _mags3 + _gMags;
                _bmags = _bmags + _bmags2 + _bmags3;
                _bweps = _bweps + _btools + _bpistol;
                _weps = _weps + _pistol + _tools + _gTools;
            };

            if (_model != _myModel) then {
                gear_done = false;
                if (!isNil "player_countMagazinesWBackpack") then { //Skip ammo count. Player has no gear yet.
                    player_countMagazinesWBackpackOriginal = player_countMagazinesWBackpack;
                    player_countMagazinesWBackpack = {[[],[]]};
                };
                _handle = [dayz_playerUID,dayz_characterID,_model] spawn player_humanityMorph;
                uiSleep 0.2;
                waitUntil {scriptDone _handle};
                gear_done = true;
                player_countMagazinesWBackpack = player_countMagazinesWBackpackOriginal;
                player call class_wipeGear;
            };
        };
        
        [_mags,1,player] call class_fillItems;
        {player addWeapon _x} count _weps;
        
        if (_bag != "") then {
            player addBackpack _bag;
            _bag = unitBackpack player;
            [_bmags,2,_bag] call class_fillItems;
            [_bweps,3,_bag] call class_fillItems;
        };
        
        if (_onBack != "") then {dayz_onBack = _onBack;};
        
        _main = primaryWeapon player;
        if (_main == "") then {
            {
                if (getNumber (configFile >> "CfgWeapons" >> _x >> "type") == 2) then {_main = _x;};
            } count (weapons player);
        };
        
        _muzzle = getArray (configFile >> "CfgWeapons" >> _main >> "muzzles");
        if (count _muzzle > 1) then {
            player selectWeapon (_muzzle select 0);
        } else {
            player selectWeapon _main;
        };
        
        _coins = switch true do {
            case (count class_choice > 20): {class_choice select 21}; //Random
            case (count class_choice > 10): {class_choice select 10}; //Normal public or private
            case (count class_choice > 0): {class_choice select 8}; //Custom loadout by UID
            default {0};
        };

        _wealth = player getVariable [Z_MoneyVariable,0];
        if (_wealth < _coins) then {
            player setVariable [Z_MoneyVariable,(_wealth + _coins),true];
        };
    };

    if (spawn_selection) then {
        dayz_spawnselection = 1; //Set on now, so journal shows correct value
        spawn_choice = [];
        spawn_mapPos = [0,0,0];
        createDialog "SpawnDialog";
        call spawn_fill;
        [] spawn spawn_map;
        waitUntil {uiSleep 0.1; !dialog};
        if (count spawn_choice == 0) exitWith {};

        _grid = spawn_choice select 1;
        if (count spawn_choice > 3) then {
            _grid = switch true do {
                case (count spawn_choice > 4): {_grid call BIS_fnc_selectRandom};
                case (count _grid == 0): {getPosATL leader group player};
                case (count _grid == 1): {getPosATL spawn_plot};
                default {_grid};
            };
            if (surfaceIsWater _grid) then {_grid = ATLToASL _grid;};
            
            for "_i" from 0 to 99 do {
                _pos = [_grid,0,spawn_radius,10,0,2000,0] call BIS_fnc_findSafePos;
                _pos set [2,0];
                if (
                    ((ATLtoASL _pos) select 2) > 2.5
                    && {(_pos distance _grid) < spawn_radius}
                    && {({isPlayer _x} count (_pos nearEntities ["CAManBase",100])) == 0}
                    && {count (_pos nearEntities ["Plastic_Pole_EP1_DZ",45]) == 0}
                ) exitWith {_grid = _pos;};
            };
        };
    };

    preloadCamera _grid;
    player switchMove "";

    if ((halo_selection or halo_force) && !_isPZombie) then {
        halo_choice = -1;
        
        if (halo_force) then {
            halo_choice = 1;
        } else {
            createDialog "HaloDialog";
            waitUntil {uiSleep 0.1; !dialog};
        };
        
        if (halo_choice == 1) then {
            if (halo_type == "") then {
                player setPosATL [_grid select 0,_grid select 1,DZE_HaloSpawnHeight];
                [player,DZE_HaloSpawnHeight] spawn BIS_fnc_halo;
            } else {
                _haloJump = DZE_HaloJump; //Store original value
                DZE_HaloJump = false; //Disable temporarily so player can not jump early
                _pos = [(_grid select 0)+1000,(_grid select 1)+1000,DZE_HaloSpawnHeight];
                _plane = halo_type createVehicleLocal _pos;
                _plane engineOn true;
                _plane setPosATL _pos;
                clearWeaponCargo _plane;
                clearMagazineCargo _plane;
                _plane setVehicleLock "LOCKED";
                _plane flyInHeight DZE_HaloSpawnHeight;
                _dir = [_pos,_grid] call BIS_fnc_dirTo;
                _plane setDir (90 - _dir);
                _plane setVelocity [50*(sin _dir),50*(cos _dir),0];
                _unit = createAgent ["Survivor2_DZ",_grid,[],0,"CAN_COLLIDE"];
                _unit assignAsDriver _plane;
                _unit moveInDriver _plane;
                player reveal _plane;
                player moveInCargo [_plane,2];
                player action ["getInCargo",_plane,2];
                _pos = group player addWaypoint [_grid,0];
                [_grid,_plane,_unit,_pos,_haloJump] spawn {
                    _plane = _this select 1;
                    _plane setDamage .8;
                    waitUntil {_plane distance (_this select 0) < (DZE_HaloSpawnHeight + 200)};
                    player spawn BIS_fnc_halo;
                    player allowDamage false; //Block damage from clipping plane
                    player action ["eject",_plane];
                    player setVelocity [(velocity player) select 0,(velocity player) select 1,-15];
                    uiSleep 25;
                    player allowDamage true;
                    deleteVehicle _plane;
                    deleteVehicle (_this select 2);
                    deleteWayPoint (_this select 3);
                    DZE_HaloJump = _this select 4; //Reset to original value
                };
            };
        };
    };

    #include "functions\finish.sqf"
    3 fadeSound 1;
    3 fadeMusic 1;
    #include "functions\cleanup.sqf"
    call player_forceSave; //Save in case server shuts down or player is kicked before opening gear or abort menu

    this is class_fillList.sqf red is the error in rpt

    Spoiler

    private ["_hlevel","_humanity","_index","_level","_lock"];
    disableSerialization;

    _humanity = player getVariable ["humanity",0];

    lbClear 8888;
    {
        switch true do {
            case (count _x > 20): { // Random
                _level = _x select 19;
                _hlevel = _x select 20;
            };
            case (count _x > 10): { // Normal public or private
                _level = _x select 8;
                _hlevel = _x select 9;
            };
            default { // Custom loadout by UID
                _level = 0;
                _hlevel = 0;
            };
        };
        
        _lock = (_hlevel < 0 && _humanity >= _hlevel) or (_hlevel > 0 && _humanity <= _hlevel) or (_level > 0 && !(_level in class_levels));
        _index = lbAdd [8888,(_x select 0)];
        
        if (_lock) then {
            lbSetPicture [8888,_index,"\ca\ui\data\ui_task_failed_ca.paa"];
        } else {
            lbSetPicture [8888,_index,"\ca\ui\data\ui_task_done_ca.paa"];
        };
        
        lbSetColor [8888,_index, switch true do {
            case (_level > 0): {[0,1,0,.8]};
            case (_hlevel > 0): {[.38,.7,.9,1]};
            case (_hlevel < 0): {[1,0,0,1]};
            case (count _x > 20): {[.97,.87,.35,1]}; //Random
            default {[.88,.88,.88,1]};
        }];
    } forEach class_public;

    this is class_preview.sqf red is the error in rpt

    Spoiler

    private ["_bag","_class","_female","_model","_name","_offset","_pos","_weps"];
    disableSerialization;

    _class = class_public select 0;
    _name = lbText [8888,(lbCurSel 8888)];
    {

        if (_name == (_x select 0)) then {
            _class = _x;
        };
    } forEach class_public;

    _female = player isKindOf "SurvivorW2_DZ";
    _model = if (_female) then {_class select 2} else {_class select 1};
    _weps = _class select 4;
    _bag = _class select 5;

    if (count _class > 20) then { //Random
        _model = if (_female) then {(_class select 1) select 1} else {(_class select 1) select 0};
        _model = _model call BIS_fnc_selectRandom;
        _weps = _class select 6;
        if (count _weps > 0) then {_weps = [(_weps call BIS_fnc_selectRandom)];};
        _bag = _class select 10;
        _bag = if (count _bag > 0) then {_bag call BIS_fnc_selectRandom} else {""};
    };

    deleteVehicle class_bot;
    class_bot = _model createVehicleLocal [0,0,0];
    class_bot call class_wipeGear;
    {
        if !(_x in weapons class_bot) then {
            class_bot addWeapon _x;
        };
    } count _weps;

    if (primaryWeapon class_bot == "") then { //Need to use createAgent if no primary to prevent arms glitch
        deleteVehicle class_bot;
        class_bot = createAgent [_model,[0,0,0],[],0,"CAN_COLLIDE"];
        class_bot call class_wipeGear;
    };

    if (_bag != "") then {class_bot addBackpack _bag;};
    class_bot setFace "Face01";
    class_bot enableSimulation false;
    class_bot setPosATL spawn_cameraPos;
    spawn_light lightAttachObject [class_bot,[0,2,.1]];

    _pos = getPosASL class_bot;
    _offset = [(_pos select 0)+.4,(_pos select 1)+3,(_pos select 2)+.9];

    if (surfaceIsWater [_pos select 0,_pos select 1,0]) then {
        spawn_camera setPosASL _offset;
    } else {
        spawn_camera setPosATL (ASLtoATL _offset);
    };

    spawn_fill.sqf  the error is in red from rpt

    Spoiler

    private ["_block","_blockGroup","_blockPlot","_bodies","_body","_grid","_hlevel","_humanity","_index","_inGroup","_lb","_level","_name","_uid"];
    disableSerialization;

    _block = [];
    _blockGroup = false;
    _blockPlot = false;
    _lb = (findDisplay 88890) displayCtrl 8888;
    _humanity = player getVariable ["humanity",0];
    _inGroup = count units group player > 1;
    _uid = getPlayerUID player;
    spawn_plot = objNull;

    if (spawn_nearPlot) then {
        {
            if (_x getVariable ["ownerPUID","0"] == _uid) exitWith {
                spawn_plot = _x;
            };
        } count (entities "Plastic_Pole_EP1_DZ");
    };

    if (spawn_bodyCheck > 0) then {
        _bodies = [];
        {
            if (_x getVariable["bodyUID","0"] == _uid) then {
                _bodies set [count _bodies,(getPosATL _x)];
            };
        } count allDead;
        {
            _body = _x;
            {
                //Never block random or custom base
                if (count _x == 4 && {_body distance (_x select 1) < spawn_bodyCheck}) then {
                    _block set [count _block,(_x select 0)];
                };
            } forEach spawn_public;
            if (_inGroup && spawn_nearGroup) then {
                _grid = getPosATL leader group player;
                if (surfaceIsWater _grid) then {_grid = ATLToASL _grid;};
                if (_body distance _grid < spawn_bodyCheck) then {_blockGroup = true;};
            };

            if (!isNull spawn_plot) then {
                _grid = getPosATL spawn_plot;
                if (surfaceIsWater _grid) then {_grid = ATLToASL _grid;};
                if (_body distance _grid < spawn_bodyCheck) then {_blockPlot = true;};
            };
        } count _bodies;
        
        if (count _block > 0 or _blockGroup or _blockPlot) then {
            systemChat format[localize "STR_ESS_BLOCKED",spawn_bodyCheck];
        };
    };

    lbClear _lb;
    {
        _name = _x select 0;
        if !(_name in _block) then {
            if (count _x == 2) then { //Custom base by UID
                _level = 0;
                _hlevel = 0;
            } else {
                _level = _x select 2;
                _hlevel = _x select 3;
            };
            
            _index = _lb lbAdd _name;
            
            if ((_hlevel < 0 && _humanity >= _hlevel) or (_hlevel > 0 && _humanity <= _hlevel) or (_level > 0 && !(_level in spawn_levels))) then {
                _lb lbSetPicture [_index,"\ca\ui\data\ui_task_failed_ca.paa"];
            } else {
                _lb lbSetPicture [_index,"\ca\ui\data\ui_task_done_ca.paa"];
            };
            
            _lb lbSetColor [_index, switch true do {
                case (count _x == 2): {[1,1,0,1]}; //Custom base by UID
                case (_level > 0): {[0,1,0,.8]};
                case (_hlevel > 0): {[.38,.7,.9,1]};
                case (_hlevel < 0): {[1,0,0,1]};
                case (count _x > 4): {[.97,.87,.35,1]}; //Random
                default {[.88,.88,.88,1]};
            }];
        };
    } forEach spawn_public;

    if (_inGroup && spawn_nearGroup && !_blockGroup) then {
        _index = _lb lbAdd (localize "STR_ESS_GROUP");
        _lb lbSetColor [_index,[1,.7,.4,1]];
        _lb lbSetPicture [_index,"\ca\ui\data\ui_task_done_ca.paa"];
    };

    if (!isNull spawn_plot && !_blockPlot) then {
        _index = _lb lbAdd (localize "STR_ESS_PLOT");
        _lb lbSetColor [_index,[1,.7,.4,1]];
        _lb lbSetPicture [_index,"\ca\ui\data\ui_task_done_ca.paa"];
    };

    lbSort _lb;

    this is spawn_map.sqf the error is in red from rpt

    Spoiler

    private ["_ctrl","_grid","_name","_spawn","_zoom"];
    disableSerialization;

    _zoom = 0.35;
    _spawn = ["","","","",""];
    _name = lbText [8888,(lbCurSel 8888)];
    {
        if (_name == (_x select 0)) exitWith {
            _spawn = _x;
        };
    } forEach spawn_public;

    _grid = switch true do {
        case (_name == (localize "STR_ESS_GROUP")): {getPosATL leader group player};
        case (_name == (localize "STR_ESS_PLOT")): {getPosATL spawn_plot};
        case (count _spawn > 4): {_zoom = 4; getMarkerPos "center"}; //Random or nothing selected
        default {_spawn select 1};
    };

    if (spawn_mapPos distance _grid > 0) then {
        spawn_mapPos = _grid;
        _ctrl = (findDisplay 88890) displayCtrl 8890;
        
        // Zoom out first (avoids visible flashing)
        if (_grid distance getMarkerPos "center" > 0) then {
            ctrlMapAnimClear _ctrl;
            _ctrl ctrlMapAnimAdd [1,.6,_grid];
            ctrlMapAnimCommit _ctrl;
            waitUntil {ctrlMapAnimDone _ctrl};
        };

        // Zoom in to location
        ctrlMapAnimClear _ctrl;
        _ctrl ctrlMapAnimAdd [2,_zoom,_grid];
        ctrlMapAnimCommit _ctrl;
    };

     

×
×
  • Create New...