Jump to content

FugitiveS

Member
  • Content Count

    8
  • Joined

  • Last visited

About FugitiveS

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Can someone plz let me know what is causing this problem it happened after i added "share PlotPole" im pretty sure it is something in the server_updateObject.sqf If you could help i would lave that all my players lost everything and im getting very overwhelmed... here is what is in my file. /* [_object,_type] spawn server_updateObject; */ private ["_object","_type","_objectID","_uid","_lastUpdate","_needUpdate","_object_position","_object_inventory","_object_damage","_isNotOk","_parachuteWest","_firstTime","_object_killed","_object_repair","_isbuildable"]; _object = _this select 0; if(isNull(_object)) exitWith { diag_log format["Skipping Null Object: %1", _object]; }; _type = _this select 1; _parachuteWest = ((typeOf _object == "ParachuteWest") || (typeOf _object == "ParachuteC")); _isbuildable = (typeOf _object) in dayz_allowedObjects; _isNotOk = false; _firstTime = false; _objectID = _object getVariable ["ObjectID","0"]; _uid = _object getVariable ["ObjectUID","0"]; if ((typeName _objectID != "string") || (typeName _uid != "string")) then { diag_log(format["Non-string Object: ID %1 UID %2", _objectID, _uid]); //force fail _objectID = "0"; _uid = "0"; }; if (!_parachuteWest && !(locked _object)) then { if (_objectID == "0" && _uid == "0") then { _object_position = getPosATL _object; _isNotOk = true; }; }; // added for custom missions if (_object getVariable "Mission" == 1) exitWith {}; if (_object getVariable "Sarge" == 1) exitWith {}; if (_object getVariable "DZMSUnitsMinor" == 1) exitWith {}; if (_object getVariable "DZMSUnitsMajor" == 1) exitWith {}; if (_object getVariable "MalSar" == 1) exitWith {}; // do not update if buildable && not ok if (_isNotOk && _isbuildable) exitWith { }; // delete if still not ok if (_isNotOk) exitWith { deleteVehicle _object; diag_log(format["Deleting object %1 with invalid ID at pos [%2,%3,%4]",typeOf _object,_object_position select 0,_object_position select 1, _object_position select 2]); }; _lastUpdate = _object getVariable ["lastUpdate",time]; _needUpdate = _object in needUpdate_objects; // TODO ---------------------- _object_position = { private["_position","_worldspace","_fuel","_key"]; _position = getPosATL _object; _worldspace = [ round(direction _object), _position ]; _fuel = 0; if (_object isKindOf "AllVehicles") then { _fuel = fuel _object; }; _key = format["CHILD:305:%1:%2:%3:",_objectID,_worldspace,_fuel]; //diag_log ("HIVE: WRITE: "+ str(_key)); _key call server_hiveWrite; }; _object_inventory = { private["_inventory","_previous","_key"]; if (typeOf (_object) == "Plastic_Pole_EP1_DZ") then{ _inventory = _object getVariable ["AddedPUIDS", []]; //We're replacing the inventory with UIDs for this item } else { _inventory = [ getWeaponCargo _object, getMagazineCargo _object, getBackpackCargo _object ]; }; _previous = str(_object getVariable["lastInventory",[]]); if (str(_inventory) != _previous) then { _object setVariable["lastInventory",_inventory]; if (_objectID == "0") then { _key = format["CHILD:309:%1:%2:",_uid,_inventory]; } else { _key = format["CHILD:303:%1:%2:",_objectID,_inventory]; }; //diag_log ("HIVE: WRITE: "+ str(_key)); _key call server_hiveWrite; }; }; _object_damage = { private["_hitpoints","_array","_hit","_selection","_key","_damage"]; _hitpoints = _object call vehicle_getHitpoints; _damage = damage _object; _array = []; { _hit = [_object,_x] call object_getHit; _selection = getText (configFile >> "CfgVehicles" >> (typeOf _object) >> "HitPoints" >> _x >> "name"); if (_hit > 0) then {_array set [count _array,[_selection,_hit]]}; _object setHit ["_selection", _hit]; } count _hitpoints; _key = format["CHILD:306:%1:%2:%3:",_objectID,_array,_damage]; //diag_log ("HIVE: WRITE: "+ str(_key)); _key call server_hiveWrite; _object setVariable ["needUpdate",false,true]; }; _object_killed = { private["_hitpoints","_array","_hit","_selection","_key","_damage"]; _hitpoints = _object call vehicle_getHitpoints; //_damage = damage _object; _damage = 1; _array = []; { _hit = [_object,_x] call object_getHit; _selection = getText (configFile >> "CfgVehicles" >> (typeOf _object) >> "HitPoints" >> _x >> "name"); if (_hit > 0) then {_array set [count _array,[_selection,_hit]]}; _hit = 1; _object setHit ["_selection", _hit]; } count _hitpoints; if (_objectID == "0") then { _key = format["CHILD:306:%1:%2:%3:",_uid,_array,_damage]; } else { _key = format["CHILD:306:%1:%2:%3:",_objectID,_array,_damage]; }; //diag_log ("HIVE: WRITE: "+ str(_key)); _key call server_hiveWrite; _object setVariable ["needUpdate",false,true]; if ((count _this) > 2) then { _killer = _this select 2; _charID = _object getVariable ['CharacterID','0']; _objID = _object getVariable['ObjectID','0']; _objUID = _object getVariable['ObjectUID','0']; _worldSpace = getPosATL _object; if (getPlayerUID _killer != "") then { _name = if (alive _killer) then { name _killer; } else { format["OBJECT %1", _killer]; }; diag_log format["Vehicle killed: Vehicle %1 (TYPE: %2), CharacterID: %3, ObjectID: %4, ObjectUID: %5, Position: %6, Killer: %7 (UID: %8)", _object, (typeOf _object), _charID, _objID, _objUID, _worldSpace, _name, (getPlayerUID _killer)]; } else { diag_log format["Vehicle killed: Vehicle %1 (TYPE: %2), CharacterID: %3, ObjectID: %4, ObjectUID: %5, Position: %6", _object, (typeOf _object), _charID, _objID, _objUID, _worldSpace]; }; }; }; _object_repair = { private["_hitpoints","_array","_hit","_selection","_key","_damage"]; _hitpoints = _object call vehicle_getHitpoints; _damage = damage _object; _array = []; { _hit = [_object,_x] call object_getHit; _selection = getText (configFile >> "CfgVehicles" >> (typeOf _object) >> "HitPoints" >> _x >> "name"); if (_hit > 0) then {_array set [count _array,[_selection,_hit]]}; _object setHit ["_selection", _hit]; } count _hitpoints; _key = format["CHILD:306:%1:%2:%3:",_objectID,_array,_damage]; //diag_log ("HIVE: WRITE: "+ str(_key)); _key call server_hiveWrite; _object setVariable ["needUpdate",false,true]; }; // TODO ---------------------- _object setVariable ["lastUpdate",time,true]; switch (_type) do { case "all": { call _object_position; call _object_inventory; call _object_damage; }; case "position": { if (!(_object in needUpdate_objects)) then { //diag_log format["DEBUG Position: Added to NeedUpdate=%1",_object]; needUpdate_objects set [count needUpdate_objects, _object]; }; }; case "gear": { call _object_inventory; }; case "damage": { if ( (time - _lastUpdate) > 5) then { call _object_damage; } else { if (!(_object in needUpdate_objects)) then { //diag_log format["DEBUG Damage: Added to NeedUpdate=%1",_object]; needUpdate_objects set [count needUpdate_objects, _object]; }; }; }; case "killed": { call _object_killed; }; case "repair": { call _object_damage; }; };
  2. Every time I add some kind of plot pole management to my server it starts deleting items from all safes and cars on the server does anyone have any idea why this is happening? I would really appreciate some help with this i have tried everything and im reaching my breaking point....
  3. I tried to do that plenty of times but no overpoch weapons spawn im use the GTX gaming dashboard so my configs are not iin the init.sqf it is in a seperate folder.

     

    /*Mission Loading*/
    startLoadingScreen ["","RscDisplayLoadCustom"];
    cutText ["","BLACK OUT"];
    enableSaving [false, false];

    //REALLY IMPORTANT VALUES
    dayZ_instance =    11;                    //The instance
    dayZ_serverName = "Overpoch";
    dayzHiveRequest = [];
    initialized = false;
    dayz_previousID = 0;

    //disable greeting menu 
    player setVariable ["BIS_noCoreConversations", true];
    //disable radio messages to be heard and shown in the left lower corner of the screen

    //disable radio messages
    enableRadio true;

    // Prevent messages from NPC
    enableSentences false;

    // DayZ Epoch config
    spawnShoremode = 1; // Default = 1 (on shore)
    spawnArea= 2500;
    dayz_MapArea = 22000;
    dayz_minpos = -1000; 
    dayz_maxpos = 17000;
        

    //Load in compiled functions
    diag_log "Loading Server Options";
    execVM "OPTIONS\EpochConfig.sqf";
    call compile preprocessFileLineNumbers "OPTIONS\Loader.sqf";
    diag_log "Server Options Loaded";

    // Dayz Epoch Events
    EpochEvents = [["any","any","any","any",5,"crash_spawner"],["any","any","any","any",10,"crash_spawner"],["any","any","any","any",15,"supply_drop"],["any","any","any","any",25,"ikea"],["any","any","any","any",35,"supply_drop"],
    ["any","any","any","any",40,"crash_spawner"],["any","any","any","any",45,"supply_drop"],["any","any","any","any",50,"ikea"]];

    //Load in compiled functions
    call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";
    call compile preprocessFileLineNumbers "dayz_code\init\variables.sqf";              //Custom Variables and overrides
    progressLoadingScreen 0.1;
    call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";
    progressLoadingScreen 0.2;
    call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";
    progressLoadingScreen 0.4;
    call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";
    call compile preprocessFileLineNumbers "custom\compiles.sqf";
    call compile preprocessFileLineNumbers "addons\bike\init.sqf"; 
    progressLoadingScreen 0.6;
    call compile preprocessFileLineNumbers "DAYZ_CODE\INIT\compiles.sqf";
    call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";             //Compile regular functions
    call compile preprocessFileLineNumbers "dayz_code\init\compiles.sqf";                       //Compile custom functions and overrides
    progressLoadingScreen 0.7;
    call compile preprocessFileLineNumbers "DAYZ_CODE\COMPILE\player_traderMenu.sqf";
    progressLoadingScreen 0.8;
    call compile preprocessFileLineNumbers "TRADERS\server_traders.sqf";
    call compile preprocessFileLineNumbers "logistic\init.sqf"; 
    progressLoadingScreen 1.0;

    "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";

    diag_log "Loading Server Monitor & Server Executions!";
    if (isServer) then {
        call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\dynamic_vehicle.sqf";
        
        // Add trader citys
        _nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\mission.sqf";
        _serverMonitor =     [] execVM "\z\addons\dayz_server\system\server_monitor.sqf";

    };

    diag_log "Loading Dedicated Executions!";
    if (!isDedicated) then {
        //Conduct map operations
        0 fadeSound 0;
        waitUntil {!isNil "dayz_loadScreenMsg"};
        dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
        
        //Run the player monitor
        _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
        _playerMonitor =     [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
        
        //Remote Messages
        _nil = [] execVM "DAYZ_CODE\COMPILE\remote_message.sqf";

        //Mod Loader
        execVM "OPTIONS\ModConfig.sqf";
    };

    execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";

    if (!isNil "dayZ_serverName") then {
        [] spawn {
            waitUntil {(!isNull Player) and (alive Player) and (player == player)};
            waituntil {!(isNull (findDisplay 46))};
            5 cutRsc ["wm_disp","PLAIN"];
            ((uiNamespace getVariable "wm_disp") displayCtrl 1) ctrlSetText dayZ_serverName;
        };
    };

    diag_log "Finalizing Server Startup, Loading BIS_Effects";
    #include "\z\addons\dayz_code\system\BIS_Effects\init.sqf";

    //safe zone commander
    [] execvm 'AGN\agn_SafeZoneCommander.sqf';

    //Auto-Refuel
    execVM "service_point\service_point.sqf";

    //new balota map
    [] execVM "map\balota.sqf";     

    1. Infinity

      Infinity

      // DayZ Epoch config
      spawnShoremode = 1; // Default = 1 (on shore)
      spawnArea= 2500;
      dayz_MapArea = 22000;
      dayz_minpos = -1000; 
      dayz_maxpos = 17000;

      DZE_MissionLootTable = true;

       

      You've added it like this?

    2. FugitiveS

      FugitiveS

      yes i have i did every steep in the tutorials i have seen

       

  4. I am having problems getting overpoch weapons to spawn anywhere i am only getting epoch weapons i have tried everything from changing loot chance and even adding more spawns for weapons if anyone could please help that would be great. I am not stengy I want a high loot server
  5. I am having problems getting overpoch weapons to spawn anywhere i am only getting epoch weapons i have tried everything from changing loot chance and even adding more spawns for weapons if anyone could please help that would be great. I am not stengy I want a high loot server
×
×
  • Create New...