Jump to content

chargedlight1

Member
  • Posts

    22
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by chargedlight1

  1. Dear reader,

    I have a question for anyone who is intereseted in helping me with an idea.

    The big idea is to build a "black market" where players can trade their stuff with eatother. 
    i have been thinking of several methods that could be a solution because there are alot of problems in the idea.

    The first problem i encounterd is that: How do i update the players inventory ? 
    i have come up with these 2 solutions:
    While restarting insert a cached array after that. restart the server.
    API method to the server? Which i dont know how to setup if anyone can provive me a link would be great.

    The second problem:
    What if the server doesn't have coin based economy?
    A: Does the player has to have the gold bars inside their safe? 

    ... will continue to write but can't right now. you get the big picture.

    Can someone help me a little bit here? if it is even possible?

    - Chargedlight1

     

  2. I've noticed dayz epoch arma 2 mod uses hives to connect to mysql databases
    I want to create a custom table in the MySQL database, will i be able to use the custom table if i create a new hive.. or is there another way?
     
     
     
    or is it even possible to create a custom hive?
  3. If you dont want to use: http://opendayz.net/threads/release-essv2-enhanced-spawn-selection-v2.21547/
    As you want a random spawn location for player who join your server just like me.

    One thing to notice is that i didn't test this without anti-hack. ( I've used infistar on server side with a reason. PM me if you want to know that reason and why i did it in this specific way. ) 


    Without Antihack on server side* NOT TESTED, NEED RESPONSE IF WORKS OR SOLUTION! :

    First add this in init:

    execVM "Custom\loadout.sqf"; 

    Above:

    dayz_paraSpawn = false; // Halo spawn
    DZE_BackpackAntiTheft = false; // Prevent stealing from backpacks in trader zones



    in Custom\loadout.sqf:

    //change loadout on spawn,
    // added by: Stijnkluiters github: https://github.com/stijnkluiters
    
    // default array = [
    //"ItemBandage",
    //"ItemBandage",
    //"17Rnd_9x19_glock17",
    //"17Rnd_9x19_glock17",
    //"ItemMorphine",
    private ["_isHero","_humanity","_isBandit"];
    
    
    _humanity = player getVariable["humanity",0]; // This is where my own server failed because of my anti-hack
    
    _isBandit = _humanity < -5000;
    _isHero = _humanity > 5000;
    
    if (_isHero) then {
    //hero
        diag_log format["LOADOUT: Hero"];
        DefaultMagazines = ["ItemMap","HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
        DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
        DefaultBackpack = "DZ_Patrol_Pack_EP1";
        DefaultBackpackItems = []; // Can include both weapons and magazines i.e. ["PDW_DZ","30Rnd_9x19_UZI"];
    };    
    if (_isBandit) then {
    //bndit
        diag_log format["LOADOUT: Bandit"];
        DefaultMagazines = ["ItemMap","HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
        DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
        DefaultBackpack = "DZ_Patrol_Pack_EP1";
        DefaultBackpackItems = []; // Can include both weapons and magazines i.e. ["PDW_DZ","30Rnd_9x19_UZI"];
    };    

    With Antihack on server side* TESTED, WORKS! :

    Go to /z/addons/dayz_server/compile/server_playerLogin.sqf

    And add:

    "_primcharvar",
    "_humanity"
    // Line 1 in code.
    to private[];


    after doing so.

    Add this:
     

    //Do Connection Attempt
    // humanity
    _doLoop = 0;
    while {_doLoop < 5} do {
    	_key = format["CHILD:102:%1:",_charID];
    	_primcharvar = _key call server_hiveReadWrite;
    	if (count _primcharvar > 0) then {
    		if ((_primcharvar select 0) != "ERROR") then {
    			_doLoop = 9;
    		};
    	};
    	_doLoop = _doLoop + 1;
    };
    
    _humanity = _primcharvar select 5;

    after:
     

    //Process request
    _newPlayer = _primary select 1;
    _isNew = count _primary < 10; //_result select 1;
    _charID = _primary select 2;
    
    // NEW CODE HERE!


    find: PVCDZ_plr_Login

    add this under that.
     

    /* Humanity */
    Humanity = _humanity;
    (owner _playerObj) publicVariableClient "Humanity";

    Go to: 
    Init.sqf

    Add: execVM "Custom\loadout.sqf"; 

    above:

    dayz_paraSpawn = false; // Halo spawn
    DZE_BackpackAntiTheft = false; // Prevent stealing from backpacks in trader zones


    in Custom\loadout.sqf
     

    //change loadout on spawn,
    // added by: Stijnkluiters github: https://github.com/stijnkluiters
    
    // default array = [
    //"ItemBandage",
    //"ItemBandage",
    //"17Rnd_9x19_glock17",
    //"17Rnd_9x19_glock17",
    //"ItemMorphine",
    private ["_isHero","_humanity","_isBandit"];
    
    
    waitUntil {uiSleep 1; !isNil ("PVCDZ_plr_Login")};
    waitUntil {uiSleep 1; !isNil ("Humanity")};
    
    _humanity = Humanity;
    
    diag_log format["CHARGEDLIGHT1: humanity: %1",_humanity];
    _isBandit = _humanity < -5000;
    _isHero = _humanity > 5000;
    
    if (_isHero) then {
    //hero
        diag_log format["LOADOUT: Hero"];
        DefaultMagazines = ["ItemMap","HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
        DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
        DefaultBackpack = "DZ_Patrol_Pack_EP1";
        DefaultBackpackItems = []; // Can include both weapons and magazines i.e. ["PDW_DZ","30Rnd_9x19_UZI"];
    };    
    if (_isBandit) then {
    //bandit
        diag_log format["LOADOUT: Bandit"];
        DefaultMagazines = ["ItemMap","HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
        DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
        DefaultBackpack = "DZ_Patrol_Pack_EP1";
        DefaultBackpackItems = []; // Can include both weapons and magazines i.e. ["PDW_DZ","30Rnd_9x19_UZI"];
    };  







     

  4. First of all i fixed this problem. 

     I've installed infistar on the server side. the reason i did this is because orther people can see the code which is an security issue. I thaught.. Ill do it right. since infistar tells you to install things client side. Now, Infistar blocks the player object/variable! Which means normal variable wont work
    Now i still used the fix from gathering data from the database. Since the Default... Weapons/Backpack/Magazines are defined CLIENTSIDE. and the code i was using was: SERVERSIDE. i made the humanity variable from the server side. PUBLIC. which means it can be called on the clientside & serverside. 

     

    /* Humanity */
    Humanity = _humanity;
    (owner _playerObj) publicVariableClient "Humanity";


    and in the init:


     

    // Uncomment the lines below to change the default loadout
    execVM "Custom\loadout.sqf"; // Don't remove this line
    dayz_paraSpawn = false; // Halo spawn



    And in the loadout:

     

    //change loadout on spawn,
    
    // default array = [
    //"ItemBandage",
    //"ItemBandage",
    //"17Rnd_9x19_glock17",
    //"17Rnd_9x19_glock17",
    //"ItemMorphine",
    private ["_isHero","_humanity","_isBandit"];
    
    
    waitUntil {uiSleep 1; !isNil ("PVCDZ_plr_Login")};
    waitUntil {uiSleep 1; !isNil ("Humanity")};
    _humanity = Humanity;
    
    _isBandit = _humanity < -5000;
    _isHero = _humanity > 5000;
    
    if (_isHero) then {
    //hero
        diag_log format["LOADOUT: Hero"];
        DefaultMagazines = ["ItemMap","HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
        DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
        DefaultBackpack = "DZ_Patrol_Pack_EP1";
        DefaultBackpackItems = []; // Can include both weapons and magazines i.e. ["PDW_DZ","30Rnd_9x19_UZI"];
    };    
    if (_isBandit) then {
    //bndit
        diag_log format["LOADOUT: Bandit"];
        DefaultMagazines = ["ItemMap","HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
        DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
        DefaultBackpack = "DZ_Patrol_Pack_EP1";
        DefaultBackpackItems = []; // Can include both weapons and magazines i.e. ["PDW_DZ","30Rnd_9x19_UZI"];
    }


    I hope i cleared some things up.

    TESTED AND WORKING!

    - Chargedlight.

  5. For those who tried to help me and are qurious how i fixed this problem:

    In the z/dayz_server/compile/server_playerLogin.sqf i pasted this piece of code underneath the _charID which is important. 
    I created another connection attempt in hive 102.. no idea what it exactly does ( I assume just a simple querry like :(SELECT * FROM Character_DATA where CharachterID = _charID (example: 15) ). but here you go. The variable humanity comes out of the database!
     

    
    //Process request
    _newPlayer = _primary select 1;
    _isNew = count _primary < 10; //_result select 1;
    _charID = _primary select 2;
    
    //Do Connection Attempt
    // humanity
    _doLoop = 0;
    while {_doLoop < 5} do {
    	_key = format["CHILD:102:%1:",_charID];
    	_primcharvar = _key call server_hiveReadWrite;
    	if (count _primcharvar > 0) then {
    		if ((_primcharvar select 0) != "ERROR") then {
    			_doLoop = 9;
    		};
    	};
    	_doLoop = _doLoop + 1;
    };
    
    _humanity = _primcharvar select 5;
    
    diag_log format["_humanity var: %1",_humanity];

    # DONT FORGET TO ADD: __humanity & _primcharvar to the PRIVATE on top of this file.
    if i add the if statements from @juandayz i did like so:
     

    /* PROCESS */
    _hiveVer = 0;
    
    if (!_isNew) then {
    	//RETURNING CHARACTER
    	_inventory = _primary select 4;
    	_backpack = _primary select 5;
    	_survival = _primary select 6;
    	_CharacterCoins = _primary select 7;
    	_model = _primary select 8;
    	_group = _primary select 9;
    	_playerCoins = _primary select 10;
    	_BankCoins = _primary select 11;
    	_hiveVer = _primary select 12;
    	if !(_model in AllPlayers) then {_model = "Survivor2_DZ";};
    } else {
    	_isInfected = if (DZE_PlayerZed) then {_primary select 3} else {0};
    	_model = _primary select 4;
    	_group = _primary select 5;
    	_playerCoins = _primary select 6;
    	_BankCoins = _primary select 7;
    	_hiveVer = _primary select 8;	
    	if (isNil "_model") then {
    		_model = "Survivor2_DZ";
    	} else {
    		if (_model == "") then {_model = "Survivor2_DZ";};
    	};
    	
    	//Record initial inventory only if not player zombie 
    	if (_isInfected != 1) then {
    		_config = configFile >> "CfgSurvival" >> "Inventory" >> "Default";
    		_mags = getArray (_config >> "magazines");
    		_wpns = getArray (_config >> "weapons");
    		_bcpk = getText (_config >> "backpack");
    		
    		_isBandit = _humanity < -5000;
    		_isHero = _humanity > 5000;
    
    		if (_humanity > 5000) then {
    			DefaultMagazines = ["ItemMap","HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
    			DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
    			DefaultBackpack = "DZ_Patrol_Pack_EP1";
    			DefaultBackpackItems = []; // Can include both weapons and magazines i.e. ["PDW_DZ","30Rnd_9x19_UZI"];
    			};	
    			
    		if (_humanity < -5000) then {
    
    			DefaultMagazines = ["ItemMap","HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
    			DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
    			DefaultBackpack = "DZ_Patrol_Pack_EP1";
    			DefaultBackpackItems = []; // Can include both weapons and magazines i.e. ["PDW_DZ","30Rnd_9x19_UZI"];
    			}else{
    			DefaultMagazines = ["ItemMap","HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
    			DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
    			DefaultBackpack = "DZ_Patrol_Pack_EP1";
    			DefaultBackpackItems = []; // Can include both weapons and magazines i.e. ["PDW_DZ","30Rnd_9x19_UZI"];
    		
    		};
    		if (!isNil "DefaultMagazines") then {_mags = DefaultMagazines;};
    		if (!isNil "DefaultWeapons") then {_wpns = DefaultWeapons;};
    		if (!isNil "DefaultBackpack") then {_bcpk = DefaultBackpack;};
    	
    		//Wait for HIVE to be free
    		_key = format["CHILD:203:%1:%2:%3:",_charID,[_wpns,_mags],[_bcpk,[],[]]];
    		_key call server_hiveWrite;
    	};
    };

    You should be glad that you dont life right next to me. All the birds flew out of the trees of my succes scream.

    - Chargedlight1

     

  6. Back to the old error again @juandayz

    16:08:37 Error in expression <getVariable ["humanity",0];
    _isBandit = _humanity < -5000;
    _isHero = _humanity >>
    16:08:37   Error position: <_humanity < -5000;
    _isHero = _humanity >>
    16:08:37   Error Undefined variable in expression: _humanity


    maybe i can like check if a player is a freshspawn. then remove all his old contents. then replace it with new ones. Missions are getting spawned with: Add_magazine "Type of ammo for gun." Right? Because i think that these variables are getting adjusted toolate, Everything has loaded in. Loadouts are getting configured in the server. not on the client side. 
    Removing all of their content and replacing it with the decired contents solved this problem. 

    Not the fact that my code cant find my humanity.. which is very odd in my opinion. I see other posts where that is getting used aswell.

  7. 7 minutes ago, juandayz said:

    @chargedlight1

    go to your init.sqf

    remove this lines

    
    // Uncomment the lines below to change the default loadout
    //DefaultMagazines = ["ItemMap","HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
    //DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
    //DefaultBackpack = "DZ_Patrol_Pack_EP1";
    //DefaultBackpackItems = []; // Can include both weapons and magazines i.e. ["PDW_DZ","30Rnd_9x19_UZI"];

    at bottom of init.sqf paste:

    
    [] ExecVM "custom\startloadouts.sqf";

     

    create the path mpmissions\your instance\custom\

    now place into this new path

    startloadouts.sqf

    
    private ["_isHero","_humanity","_isBandit"};
    _humanity = player getVariable ["humanity",0];
    _isBandit = _humanity < -5000;
    _isHero = _humanity > 5000;
    adminsandmodersList= ["7656119825757****"];  //An array of adms replace with your admins ids
    
    
    if((getPlayerUID player) in adminsandmodersList) then {
    DefaultMagazines = ["ItemMap","HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
        DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
        DefaultBackpack = "DZ_Patrol_Pack_EP1";
        DefaultBackpackItems = []; // Can include both weapons and magazines i.e. ["PDW_DZ","30Rnd_9x19_UZI"];
    	};
    
    if (_isHero) then {
        DefaultMagazines = ["ItemMap","HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
        DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
        DefaultBackpack = "DZ_Patrol_Pack_EP1";
        DefaultBackpackItems = []; // Can include both weapons and magazines i.e. ["PDW_DZ","30Rnd_9x19_UZI"];
    	};	
        
    if (_isBandit) then {
    
        DefaultMagazines = ["ItemMap","HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
        DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
        DefaultBackpack = "DZ_Patrol_Pack_EP1";
        DefaultBackpackItems = []; // Can include both weapons and magazines i.e. ["PDW_DZ","30Rnd_9x19_UZI"];
        }else{
        DefaultMagazines = ["ItemMap","HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
        DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
        DefaultBackpack = "DZ_Patrol_Pack_EP1";
        DefaultBackpackItems = []; // Can include both weapons and magazines i.e. ["PDW_DZ","30Rnd_9x19_UZI"];

     

    Isn't it: 

    private ["_isHero","_humanity","_isBandit"};
    ->
    private ["_isHero","_humanity","_isBandit"];
    Didn't notice since my server gave an error
    
  8. Spoiler

    =====================================================================
    == D:\my epoch server\arma2oaserver.exe
    == arma2oaserver.exe  -port=2302 "-config=instance_11_Chernarus\config.cfg" "-cfg=instance_11_Chernarus\basic.cfg" "-profiles=instance_11_Chernarus" -name=instance_11_Chernarus "-mod=@DayZ_Epoch;@DayZ_Epoch_Server;"
    =====================================================================
    Exe timestamp: 2016/11/04 19:59:06
    Current time:  2017/01/12 15:41:09

    Version 1.63.131129
    Updating base class ->NonStrategic, by ca\config.bin/CfgVehicles/HouseBase/
    Updating base class ->HouseBase, by ca\config.bin/CfgVehicles/Ruins/
    Updating base class ->DestructionEffects, by ca\config.bin/CfgVehicles/House/DestructionEffects/
    Updating base class ->FlagCarrierCore, by ca\ca_pmc\config.bin/CfgVehicles/FlagCarrier/
    Updating base class ->VehicleMagazine, by ca\weapons\config.bin/CfgMagazines/14Rnd_FFAR/
    Updating base class Default->RifleCore, by ca\weapons\config.bin/cfgWeapons/Rifle/
    Updating base class ->LauncherCore, by ca\weapons\config.bin/cfgWeapons/RocketPods/
    Updating base class ->RocketPods, by ca\weapons\config.bin/cfgWeapons/FFARLauncher/
    Updating base class ->UH60_Base, by ca\air\config.bin/CfgVehicles/MH60S/
    Updating base class ->Car, by ca\wheeled2\lada\config.bin/CfgVehicles/Lada_base/
    Updating base class Small_items->ReammoBox, by dayz_equip\config.cpp/CfgVehicles/CardboardBox/
    Updating base class StreetLamp_EP1->StreetLamp, by z\addons\dayz_code\config.bin/CfgNonAIVehicles/Land_Lamp_Small_EP1/
    Updating base class StreetLamp_EP1->StreetLamp, by z\addons\dayz_code\config.bin/CfgNonAIVehicles/Land_Lamp_Street1_EP1/
    Updating base class StreetLamp_EP1->StreetLamp, by z\addons\dayz_code\config.bin/CfgNonAIVehicles/Land_Lamp_Street2_EP1/
    Updating base class StreetLamp_EP1->StreetLamp, by z\addons\dayz_code\config.bin/CfgNonAIVehicles/Land_Lampa_Ind_EP1/
    Updating base class StreetLamp_EP1->StreetLamp, by z\addons\dayz_code\config.bin/CfgNonAIVehicles/Land_PowLines_Conc2L_EP1/
    Updating base class StreetLamp_BaseMediumOrange->StreetLamp, by z\addons\dayz_code\config.bin/CfgNonAIVehicles/Land_lampa_sidl/
    Updating base class StreetLamp_BaseMediumOrange->StreetLamp, by z\addons\dayz_code\config.bin/CfgNonAIVehicles/Land_lampa_sidl_2/
    Updating base class StreetLamp_BaseMediumOrange->StreetLamp, by z\addons\dayz_code\config.bin/CfgNonAIVehicles/Land_lampa_sidl_3/
    Updating base class StreetLamp_BaseWeakYellow->StreetLamp, by z\addons\dayz_code\config.bin/CfgNonAIVehicles/Land_lampa_ind/
    Updating base class StreetLamp_BaseWeakYellow->StreetLamp, by z\addons\dayz_code\config.bin/CfgNonAIVehicles/Land_lampa_ind_zebr/
    Updating base class RscStandardDisplay->, by z\addons\dayz_code\config.bin/RscDisplayStart/
    Updating base class RscShortcutButton->RscShortcutButtonMain, by z\addons\dayz_code\config.bin/RscDisplayMain/controls/CA_Exit/
    Updating base class CA_IGUI_Title->RscText, by z\addons\dayz_code\config.bin/RscDisplayGear/Controls/Gear_Title/
    Updating base class Available_items_Text->RscText, by z\addons\dayz_code\config.bin/RscDisplayGear/Controls/CA_ItemName/
    Updating base class CA_Gear_slot_item7->CA_Gear_slot_item1, by z\addons\dayz_code\config.bin/RscDisplayGear/Controls/G_GearItems/Controls/CA_Gear_slot_item8/
    Updating base class CA_Gear_slot_item7->CA_Gear_slot_item1, by z\addons\dayz_code\config.bin/RscDisplayGear/Controls/G_GearItems/Controls/CA_Gear_slot_item9/
    Updating base class CA_Gear_slot_item7->CA_Gear_slot_item1, by z\addons\dayz_code\config.bin/RscDisplayGear/Controls/G_GearItems/Controls/CA_Gear_slot_item10/
    Updating base class CA_Gear_slot_item7->CA_Gear_slot_item1, by z\addons\dayz_code\config.bin/RscDisplayGear/Controls/G_GearItems/Controls/CA_Gear_slot_item11/
    Updating base class CA_Gear_slot_item7->CA_Gear_slot_item1, by z\addons\dayz_code\config.bin/RscDisplayGear/Controls/G_GearItems/Controls/CA_Gear_slot_item12/
    Updating base class CA_Gear_slot_handgun_item5->CA_Gear_slot_handgun_item1, by z\addons\dayz_code\config.bin/RscDisplayGear/Controls/G_GearItems/Controls/CA_Gear_slot_handgun_item6/
    Updating base class CA_Gear_slot_handgun_item5->CA_Gear_slot_handgun_item1, by z\addons\dayz_code\config.bin/RscDisplayGear/Controls/G_GearItems/Controls/CA_Gear_slot_handgun_item7/
    Updating base class CA_Gear_slot_handgun_item5->CA_Gear_slot_handgun_item1, by z\addons\dayz_code\config.bin/RscDisplayGear/Controls/G_GearItems/Controls/CA_Gear_slot_handgun_item8/
    Updating base class CA_Gear_slot_special1->CA_Gear_slot_handgun_item1, by z\addons\dayz_code\config.bin/RscDisplayGear/Controls/G_GearItems/Controls/CA_Gear_slot_inventory1/
    Updating base class CA_Gear_slot_inventory7->CA_Gear_slot_inventory1, by z\addons\dayz_code\config.bin/RscDisplayGear/Controls/G_GearItems/Controls/CA_Gear_slot_inventory8/
    Updating base class CA_Gear_slot_inventory7->CA_Gear_slot_inventory1, by z\addons\dayz_code\config.bin/RscDisplayGear/Controls/G_GearItems/Controls/CA_Gear_slot_inventory9/
    Updating base class CA_Gear_slot_inventory7->CA_Gear_slot_inventory1, by z\addons\dayz_code\config.bin/RscDisplayGear/Controls/G_GearItems/Controls/CA_Gear_slot_inventory10/
    Updating base class CA_Gear_slot_inventory7->CA_Gear_slot_inventory1, by z\addons\dayz_code\config.bin/RscDisplayGear/Controls/G_GearItems/Controls/CA_Gear_slot_inventory11/
    Updating base class CA_Gear_slot_inventory7->CA_Gear_slot_inventory1, by z\addons\dayz_code\config.bin/RscDisplayGear/Controls/G_GearItems/Controls/CA_Gear_slot_inventory12/
    Updating base class CA_Gear_slot_item1->CA_Gear_slot_handgun, by z\addons\dayz_code\config.bin/RscDisplayGear/Controls/G_GearItems/Controls/CA_Gear_slot_special1/
    Updating base class RscIGUIShortcutButton->RscActiveText, by z\addons\dayz_code\config.bin/RscDisplayGear/Controls/ButtonClose/
    Updating base class RscText->, by z\addons\dayz_code\config.bin/RscTitles/Default/
    Updating base class ->RadioProtocolEmpty, by z\addons\dayz_code\config.bin/RadioProtocolBase/
    Updating base class RadioProtocolBase->RadioProtocolEmpty, by z\addons\dayz_code\config.bin/RadioProtocol_EP1_EN/
    Updating base class RadioProtocolBase->RadioProtocolEmpty, by z\addons\dayz_code\config.bin/RadioProtocol_EP1_TK/
    Updating base class RadioProtocolBase->RadioProtocolEmpty, by z\addons\dayz_code\config.bin/RadioProtocol_WMN_EP1_TK/
    Updating base class RadioProtocolBase->RadioProtocolEmpty, by z\addons\dayz_code\config.bin/RadioProtocolEN/
    Updating base class RadioProtocolBase->RadioProtocolEmpty, by z\addons\dayz_code\config.bin/RadioProtocolRU/
    Updating base class RadioProtocolBase->RadioProtocolEmpty, by z\addons\dayz_code\config.bin/RadioProtocolCZ/
    Updating base class RadioProtocolBase->RadioProtocolEmpty, by z\addons\dayz_code\config.bin/RadioProtocol_BAF/
    Updating base class ->ViewOptics, by z\addons\dayz_code\config.bin/CfgVehicles/Mi17_base/Turrets/MainTurret/ViewOptics/
    Updating base class ->ViewOptics, by z\addons\dayz_code\config.bin/CfgVehicles/UH1H_base/Turrets/MainTurret/ViewOptics/
    Updating base class ->ViewOptics, by z\addons\dayz_code\config.bin/CfgVehicles/UH1_Base/Turrets/MainTurret/ViewOptics/
    Updating base class Strategic->, by z\addons\dayz_code\config.bin/CfgVehicles/Bomb/
    Updating base class HighCommand->Logic, by z\addons\dayz_code\config.bin/CfgVehicles/HighCommandSubordinate/
    Updating base class ReammoBox->House, by z\addons\dayz_code\config.bin/CfgVehicles/RUBasicAmmunitionBox/
    Updating base class NonStrategic->BuiltItems, by z\addons\dayz_code\config.bin/CfgVehicles/Fort_RazorWire/
    Updating base class ->DefaultEventhandlers, by z\addons\dayz_code\config.bin/CfgVehicles/CSJ_GyroP/EventHandlers/
    Updating base class AnimationSources->AnimationSources, by z\addons\dayz_code\config.bin/CfgVehicles/CSJ_GyroC/AnimationSources/
    Updating base class ->DefaultEventhandlers, by z\addons\dayz_code\config.bin/CfgVehicles/CSJ_GyroC/EventHandlers/
    Updating base class BuiltItems->Generator_Base, by z\addons\dayz_code\config.bin/CfgVehicles/Generator_DZ/
    Updating base class VehicleMagazine->CA_Magazine, by z\addons\dayz_code\config.bin/CfgMagazines/29Rnd_30mm_AGS30/
    Updating base class VehicleMagazine->CA_Magazine, by z\addons\dayz_code\config.bin/CfgMagazines/48Rnd_40mm_MK19/
    Updating base class 4000Rnd_762x51_M134->CA_Magazine, by z\addons\dayz_code\config.bin/CfgMagazines/2000Rnd_762x51_M134/
    Updating base class VehicleMagazine->CA_Magazine, by z\addons\dayz_code\config.bin/CfgMagazines/100Rnd_127x99_M2/
    Updating base class VehicleMagazine->CA_Magazine, by z\addons\dayz_code\config.bin/CfgMagazines/50Rnd_127x107_DSHKM/
    Updating base class 4000Rnd_762x51_M134->CA_Magazine, by z\addons\dayz_code\config.bin/CfgMagazines/pook_1300Rnd_762x51_M60/
    Updating base class 100Rnd_762x51_M240->CA_Magazine, by z\addons\dayz_code\config.bin/CfgMagazines/pook_250Rnd_762x51/
    Updating base class 6Rnd_Grenade_Camel->CA_Magazine, by z\addons\dayz_code\config.bin/CfgMagazines/pook_12Rnd_Grenade_Camel/
    Updating base class VehicleMagazine->CA_Magazine, by z\addons\dayz_code\config.bin/CfgMagazines/3Rnd_GyroGrenade/
    Updating base class DropWeapon->None, by z\addons\dayz_code\config.bin/CfgActions/PutWeapon/
    Updating base class DropMagazine->None, by z\addons\dayz_code\config.bin/CfgActions/PutMagazine/
    Updating base class Land_HouseV_1I2->House, by zero_buildings\config.cpp/CfgVehicles/Land_HouseV_1L2/
    Updating base class Land_HouseV_1I2->House, by zero_buildings\config.cpp/CfgVehicles/Land_HouseV_3I3/
    Updating base class House->DZE_OpenHouse, by warehouse\config.bin/CfgVehicles/Land_Ind_Pec_03/
    15:41:14 Initializing Steam server - Game Port: 2302, Steam Query Port: 2303
    15:41:15 Connected to Steam servers
    15:41:28 Server error: Player without identity Chargedlight1 (id 327551275)
    15:41:28 Server error: Player without identity Chargedlight1 (id 327551275)
    15:41:28 Server error: Player without identity Chargedlight1 (id 327551275)
    15:41:28 Server error: Player without identity Chargedlight1 (id 327551275)
    15:41:28 Server error: Player without identity Chargedlight1 (id 327551275)
    15:41:28 Server error: Player without identity Chargedlight1 (id 327551275)
    15:41:28 Server error: Player without identity Chargedlight1 (id 327551275)
    15:41:28 Server error: Player without identity Chargedlight1 (id 327551275)
    15:41:28 Server error: Player without identity Chargedlight1 (id 327551275)
    15:41:28 Server error: Player without identity Chargedlight1 (id 327551275)
    15:41:28 Server error: Player without identity Chargedlight1 (id 327551275)
    15:41:28 Server error: Player without identity Chargedlight1 (id 327551275)
    15:41:28 Server error: Player without identity Chargedlight1 (id 327551275)
    15:41:28 Server error: Player without identity Chargedlight1 (id 327551275)
    15:41:28 Server error: Player without identity Chargedlight1 (id 327551275)
    15:41:29 Server error: Player without identity Chargedlight1 (id 327551275)
    15:41:29 Server error: Player without identity Chargedlight1 (id 327551275)
    15:41:29 Server error: Player without identity Chargedlight1 (id 327551275)
    15:41:29 Server error: Player without identity Chargedlight1 (id 327551275)
    15:41:29 Server error: Player without identity Chargedlight1 (id 327551275)
    15:41:29 Server error: Player without identity Chargedlight1 (id 327551275)
    15:41:34 Strange convex component81 in zero_buildings\models\housev_3i3_i.p3d:geometryFire
    15:41:42 Strange convex component288 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component289 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component290 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component291 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component292 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component293 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component294 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component295 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component296 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component297 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component298 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component299 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component300 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component301 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component302 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component303 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component304 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component305 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component306 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component307 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component308 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component309 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component310 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component311 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component312 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component313 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component314 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component315 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component316 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component317 in warehouse\models\warehouse.p3d:geometry
    15:41:42 Strange convex component252 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component253 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component254 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component255 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component256 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component257 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component258 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component259 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component260 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component261 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component262 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component263 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component264 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component265 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component266 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component267 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component268 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component269 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component270 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component271 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component272 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component273 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component274 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component275 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component276 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component277 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component278 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component279 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component280 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component281 in warehouse\models\warehouse.p3d:geometryFire
    15:41:42 Strange convex component249 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component250 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component251 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component252 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component253 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component254 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component255 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component256 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component257 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component258 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component259 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component260 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component261 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component262 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component263 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component264 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component265 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component266 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component267 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component268 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component269 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component270 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component271 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component272 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component273 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component274 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component275 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component276 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component277 in warehouse\models\warehouse.p3d:geometryView
    15:41:42 Strange convex component278 in warehouse\models\warehouse.p3d:geometryView
    15:41:50 "PRELOAD_ Functions\init [[<No group>:0 (FunctionsManager)],any]"
    15:41:50 "MPframework inited"
    15:41:50 "dayz_preloadFinished reset"
    15:41:51 "infiSTAR.de - Waiting for BIS_fnc_init..."
    15:41:51 "Epoch detected"
    15:41:51 "infiSTAR.de - BIS_fnc_init done - AntiHack STARTING...!"
    15:41:51 Warning Message: Script low_admins.sqf not found
    15:41:51 Warning Message: Script normal_admins.sqf not found
    15:41:51 Warning Message: Script super_admins.sqf not found
    15:41:51 Warning Message: Script blacklist.sqf not found
    15:41:51 "infiSTAR.de - iproductVersion: 08-Jan-2017 16-03-03-v1437 | Server productVersion: ["ArmA 2 OA","ArmA2OA",163,131129] | worldName: Chernarus | dayz_instance: 11 | missionName: DayZ_Epoch_11"
    15:41:51 "infiSTAR.de - _fnc_RandomGen: {
    _abc = ['z','y','x','w','v','u','t','s','r','q','p','o','n','m','l','k','j','i','h','g','f','e','d','c','b','a'];
    _gen = _abc select (random ((count _abc)-1));
    _arr = ['H','g','H','s','D','N','d','W','j','8','I','j','2','7','F','v','Z','R','y','2','n','T','X','v','L','S','5','h','y','g'];
    for '_i' from 0 to (8+(round(random 3))) do {_gen = _gen + str(round(random 9)) + (_arr select (random ((count _arr)-1)));};
    _gen
    }"
    15:41:51 "infiSTAR.de - _simple: u481d8W4S8W1h9H9D0Z3j2S52"
    15:41:51 "infiSTAR.de - _dialogIds: i2j5v3h873T2D9S3j6s1F"
    15:41:51 "infiSTAR.de - _badtxts: r121X8I3Z6v5H1T3n1n"
    15:41:51 "infiSTAR.de - _randvar1: w3D970S8L6I7X6H0H1Z1H1g"
    15:41:51 "infiSTAR.de - _randvar2: t3X6j6h7j9L1D9H273Z1v"
    15:41:51 "infiSTAR.de - _randvar0: b671j5g0W328j7v4d6Z0Z454j"
    15:41:51 "infiSTAR.de - _randvar3: j6T674v7g7Z8W5L7y9H4D"
    15:41:51 "infiSTAR.de - _randvar4: u5n683d578I5d8h376v72752R"
    15:41:51 "infiSTAR.de - _randvar5: p350g9j5T654g8j7g5H7S3H"
    15:41:51 "infiSTAR.de - _randvar6: i2N8n3Z7R4y1n873X5v7y7j87"
    15:41:51 "infiSTAR.de - _randvar8: y5n8h027R6n4g4T3L5n"
    15:41:51 "infiSTAR.de - _randvar9: b3v2N8h7Z5T6T8d8n6j"
    15:41:51 "infiSTAR.de - _randvar11: g4F1v6X457D570v2y285T"
    15:41:51 "infiSTAR.de - _randvar12: a8W6X0g371j3D0n689N2R956n"
    15:41:51 "infiSTAR.de - _randvar13: z1F8n3j5R1D2g7h2H3d9F45"
    15:41:51 "infiSTAR.de - _randvar19: f8g6g4F2H8X525y4j8R3L5Z"
    15:41:51 "infiSTAR.de - _randvar20: q3n8H7s271y2n1H2n3L5d3H5g"
    15:41:51 "infiSTAR.de - _randvar27: y6h9W1j0H7X4j2D5I1h5D9R"
    15:41:51 "infiSTAR.de - _randvar26: n7v3y6Z8H3h2L627D6N9d3R22"
    15:41:51 "infiSTAR.de - _randvar25: s4n1j7X5g0D1S8h4T4D0R276H"
    15:41:51 "infiSTAR.de - _randvar31: g773T3I2v8h2j026y873R423y"
    15:41:51 "infiSTAR.de - _randvar33: i3S1v9N2D6h3T189v674Z55"
    15:41:51 "infiSTAR.de - _randvar34: k4y8j8H5F4n4T6s8T2s2g3S"
    15:41:51 "infiSTAR.de - _randvar35: h7g2g4S2N7D3S4g4X1T8N8s"
    15:41:51 "infiSTAR.de - _randvar36: b3R0j9S1L3272485y6R"
    15:41:51 "infiSTAR.de - _randvar372637: t5T5j3j1v3F7T6D1N7y6H4j8W"
    15:41:51 "infiSTAR.de - _randvar38: a9I2H4j4T6T5H724Z55"
    15:41:51 "infiSTAR.de - _randvar39: o5h3L5N7y1v7v322g77322g4I"
    15:41:51 "infiSTAR.de - _clickOnMapTimer: l9v828v7F4H4T922F0I1H8I"
    15:41:51 "infiSTAR.de - _clickOnMapCaught: t9N3d9X3g8y128v4L2W6y4s"
    15:41:51 "infiSTAR.de - _fnc_handlerandvar10: v1I3L4F7j3X6L4v8H6H2832"
    15:41:51 "infiSTAR.de - _remark: c1h3S5R7j8F9y7I478y2W"
    15:41:51 "infiSTAR.de - _AHpos: g4n8S6X728H926D3j3D4j"
    15:41:51 "infiSTAR.de - _loadedcheckpos: y8j5N3I9v8S957j459T2g7S"
    15:41:51 "infiSTAR.de - _loadedchecktime: a8h6D4y5d2g3T88371D6L"
    15:41:51 "infiSTAR.de - _MenuChecksRunningx: i3j1y6H3g8D8S3n5S926y"
    15:41:51 "infiSTAR.de - _oneachframe: v6I274g8y2D6d4R1d2R7L25"
    15:41:51 "infiSTAR.de - _anotherloop: n1Z3I3L527L3L6g85721n"
    15:41:51 "infiSTAR.de - _clientoncetwo: a7L85452N5S3d3S5v2d1D72"
    15:41:51 "infiSTAR.de - _lastUnlock: n3v5h2778525I3Z372d"
    15:41:51 "infiSTAR.de - _AdminReqCheck: o1Z3y6D223h5n5h651y32"
    15:41:51 "infiSTAR.de - _antidupeCheckVar: e3j6L559Z377X626v7y3X9n"
    15:41:51 "infiSTAR.de - _antiantihack1_rndvar: n7F3j4j853y0F3D5I8S47"
    15:41:51 "infiSTAR.de - _antiantihack2_rndvar: v1y1j852F7F6y1y3H1y2n65"
    15:41:51 "infiSTAR.de - _antidupePVResVar: v6N7y476y085N4d1h2S1D"
    15:41:51 "infiSTAR.de - _antidupePVCheckVar: PVAHR_0_o5S0j62480S453N2N324v"
    15:41:51 "infiSTAR.de - _randvar3726372610: PVAHR_0_z1W8j7v35628v2v2s8Z3g"
    15:41:51 "infiSTAR.de - AntiHack LOADED!"
    15:41:51 "infiSTAR.de - CREATING AdminMenu"
    15:41:51 "infiSTAR.de - AdminMenu LOADED!"
    15:41:51 "infiSTAR.de - ADDING PublicVariableEventHandlers"
    15:41:51 "infiSTAR.de - AntiHack FULLY LOADED"
    15:41:52 "Res3tting B!S effects..."
    15:41:53 "infiSTAR.de PlayerConnected: ["76561198011895990","Chargedlight1"]"
    15:41:53 "infiSTAR.de - Player-Log: Chargedlight1(76561198011895990) - 3h 04min | ******ADMIN******"
    15:41:53 "infiSTAR.de PlayerConnected: ["","__SERVER__"]"
    15:41:54 Warning Message: No entry 'bin\config.bin/CfgMagazines.ItemTunaCooked'.
    15:41:54 Warning Message: No entry '.picture'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.scope'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: Error: creating magazine ItemTunaCooked with scope=private
    15:41:54 Warning Message: No entry '.displayName'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.displayNameShort'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.nameSound'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.Library'.
    15:41:54 Warning Message: No entry '.libTextDesc'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.type'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.count'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.maxLeadSpeed'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.initSpeed'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.reloadAction'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.modelSpecial'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.ammo'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry 'bin\config.bin/CfgMagazines.cinder_wall_kit'.
    15:41:54 Warning Message: No entry '.picture'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.scope'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: Error: creating magazine cinder_wall_kit with scope=private
    15:41:54 Warning Message: No entry '.displayName'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.displayNameShort'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.nameSound'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.Library'.
    15:41:54 Warning Message: No entry '.libTextDesc'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.type'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.count'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.maxLeadSpeed'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.initSpeed'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.reloadAction'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.modelSpecial'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.ammo'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry 'bin\config.bin/CfgMagazines.Bandit2_DZ'.
    15:41:54 Warning Message: No entry '.picture'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.scope'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: Error: creating magazine Bandit2_DZ with scope=private
    15:41:54 Warning Message: No entry '.displayName'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.displayNameShort'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.nameSound'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.Library'.
    15:41:54 Warning Message: No entry '.libTextDesc'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.type'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.count'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.maxLeadSpeed'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.initSpeed'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.reloadAction'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.modelSpecial'.
    15:41:54 Warning Message: '/' is not a value
    15:41:54 Warning Message: No entry '.ammo'.
    15:41:54 Warning Message: '/' is not a value
    15:41:55 Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.
    mbg_buildings_3
    15:41:56 "z\addons\dayz_code\system\REsec.sqf:Monitoring Remote Exe..."
    15:41:58 "HIVE: Starting"
    15:41:58 ["TIME SYNC: Local Time set to:",[2012,8,2,13,41],"Fullmoon:",true,"Date given by HiveExt.dll:",[2017,1,12,13,41]]
    15:41:58 "SERVER FPS: 19  PLAYERS: 1"
    15:41:58 "HIVE: Request sent"
    15:41:58 "HIVE: Streamed 101 objects"
    15:42:04 "HIVE: BENCHMARK - Server_monitor.sqf finished streaming 101 objects in 5.74001 seconds (unscheduled)"
    15:42:04 "Total Number of spawn locations 6"
    15:42:04 "[DZAI] Initializing DZAI version 2.2.1 Release Build 20141208 using base path z\addons\dayz_server\DZAI."
    15:42:04 "CLEANUP: INITIALIZING Vehicle SCRIPT"
    15:42:04 "[DZAI] Reading DZAI configuration file."
    15:42:04 "[DZAI] DZAI configuration file loaded."
    15:42:04 "[DZAI] Compiling DZAI functions."
    15:42:04 ["z\addons\dayz_server\system\scheduler\sched_sync.sqf","TIME SYNC: Local Time set to:",[2012,8,2,13,42],"Fullmoon:",true,"Date given by HiveExt.dll:",[2017,1,12,13,42]]
    15:42:04 Warning Message: Script z\addons\dayz_server\WAI\customsettings.sqf not found
    15:42:04 "WAI: AI Config File Loaded"
    15:42:04 "WAI: Initialising static missions"
    15:42:04 "WAI: AI Monitor Started"
    15:42:04 "WAI: Initialising missions"
    15:42:04 "WAI: Static mission loaded"
    15:42:05 "[DZAI] DZAI functions compiled."
    15:42:05 "[DZAI] Epoch classnames loaded."
    15:42:05 "[DZAI] DZAI settings: Debug Level: 0. DebugMarkers: false. WorldName: chernarus. ModName: epoch (Ver: dayz epoch 1.0.6). DZAI_dynamicWeaponList: true. VerifyTables: true."
    15:42:05 "[DZAI] AI spawn settings: Static: false. Dynamic: false. Random: false. Air: false. Land: false."
    15:42:05 "[DZAI] AI settings: DZAI_findKiller: true. DZAI_useHealthSystem: true. DZAI_weaponNoise: false. DZAI_zombieEnemy: false."
    15:42:05 "[DZAI] DZAI loading completed in 1.171 seconds."
    15:42:07 Strange convex component93 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component94 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component95 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component96 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component99 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component100 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component101 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component102 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component103 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component104 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component105 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component106 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component107 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component108 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component109 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component110 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component111 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component112 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component113 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component114 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component115 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component116 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component117 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component118 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component119 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component120 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component121 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component122 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component123 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component124 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component125 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component126 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component127 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component128 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component129 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component130 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component131 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component132 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component133 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:07 Strange convex component134 in zero_buildings\models\mil_house_i.p3d:geometryView
    15:42:19 "EPOCH EVENTS INIT"
    15:42:19 "CRASHSPAWNER: Starting crash site spawner. Frequency: 25±20 min. Spawn chance: 0.75"
    15:42:20 "INFO - Player: PID#3(Chargedlight1)(UID:76561198011895990/CID:26) Status: LOGGING IN"
    15:42:20 "DEBUG: Spawning a care package (Misc_cargo_cont_net3) at [13116.2,11263.9,0] with 10 items."
    15:42:20 "INFO - Player: PID#3(Chargedlight1)(UID:76561198011895990/CID:26) Status: LOGGING IN"
    15:42:20 "CRASHSPAWNER: Spawning crash site (CrashSite_EU) at [8218.46,9737.68,0] with 6 items."
    15:42:20 "Spawning an infected camp (Camp2_Small) at [6781.19,10583.5,0]"
    15:42:22 "DEBUG: Spawning a care package (Misc_cargo_cont_net1) at [11727,12422.5,0] with 5 items."
    15:42:23 "DEBUG: Spawning a care package (Misc_cargo_cont_net2) at [8360.63,6881.78,0] with 5 items."
    15:42:23 "[DZAI] Verified 153 unique classnames in 2.14 seconds."
    15:42:24 "DEBUG: Spawning a care package (Misc_cargo_cont_net1) at [5641.85,8022.34,0] with 3 items."
    15:42:24 "Spawning an infected camp (Camp2_Small) at [4273.84,13674.1,0]"
    15:42:24 "DEBUG: Spawning a care package (Misc_cargo_cont_net2) at [5491.36,10454.1,0] with 6 items."
    15:42:24 "Chernarus static spawn configuration loaded."
    15:42:24 "DEBUG: Spawning a care package (Misc_cargo_cont_net1) at [10706,8377.25,0] with 5 items."
    15:42:26 "Spawning an infected camp (Camp3_Small) at [1668.44,4767.43,0]"
    15:42:26 "INFO: Chosen waterholes to be infectious - ["Stary","Gvozdno","Vysota","Sosnovy","NorthNadezdinho","NorthPusta","Topolka","NorthTopolka","Pogorevka","PobedaDam"]"
    15:42:29 "HIVE: Vehicle Spawn limit reached!"
    15:42:29 "HIVE: Spawning # of Debris: 15"
    15:42:33 No owner
    15:42:35 "Humanity variable right here: 50000"
    15:42:35 "THIS FIRST? OR ... HUMANITY"
    15:42:35 "INFO - Player: PID#3(Chargedlight1)(UID:76561198011895990/CID:26) Status: LOGIN PUBLISHING, Location Nizhnoye [131:74]"
    15:42:36 "HIVE: Spawning # of Ammo Boxes: 3"
    15:42:37 Server: Object 3:16 not found (message 70)
    15:42:37 Server: Object 3:14 not found (message 70)
    15:42:37 Server: Object 3:15 not found (message 70)
    15:42:37 Server: Object 3:17 not found (message 70)
    15:42:37 "infiSTAR.de fnc_AdminFirstReq: [1234,B 1-1-B:1 (Chargedlight1) REMOTE,"76561198011895990"]"
    15:42:37 "infiSTAR.de ******ADMIN-LOGIN******: Chargedlight1(76561198011895990)"
    15:42:37 "infiSTAR.de fnc_AdminReqProceed: [1234,B 1-1-B:1 (Chargedlight1) REMOTE,"76561198011895990"]"
    15:42:37 "INFO - Player: Chargedlight1(UID:76561198011895990/CID:26) Status: CLIENT LOADED & PLAYING"
    15:42:38 "HIVE: Spawning # of Veins: 50"
    15:42:39 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
    15:42:42 "HIVE: BENCHMARK - Server finished spawning 0 DynamicVehicles, 15 Debris, 3 SupplyCrates and 50 MineVeins in 36.834 seconds (scheduled)"
    15:43:21 [DZMS]: Starting DayZ Mission System.
    15:43:21 [DZMS]: DZAI Found! Using DZAI's Relations!
    15:43:21 [DZMS]: WickedAI Found! Using WickedAI's Relations!
    15:43:21 [DZMS]: Multiple Relations Detected! Unwanted AI Behaviour May Occur!
    15:43:21 [DZMS]: If Issues Arise, Decide on a Single AI System! (DayZAI, SargeAI, or WickedAI)
    15:43:21 [DZMS]: Currently Running Version: 1.1FIN
    15:43:21 [DZMS]: Mission and Extended Configuration Loaded!
    15:43:21 [DZMS]: chernarus Detected. Map Specific Settings Adjusted!
    15:43:21 [DZMS]: Loading ExecVM Functions.
    15:43:21 [DZMS]: Loading Compiled Functions.
    15:43:21 [DZMS]: Loading All Other Functions.
    15:43:21 [DZMS]: Mission Functions Script Loaded!
    15:43:21 [DZMS]: Mission Marker Loop for JIPs Starting!
    15:43:21 [DZMS]: Minor Mission Clock Starting!
    15:43:21 [DZMS]: Major Mission Clock Starting!

    Still doesnt work.. the rules.sqf ist getting executed at all it seems like. Or atleast it doesn't log into the RPT.

    Here is my code

     

    Spoiler

    private ["_messages","_timeout","_isHero","_humanity","_isBandit"];

    diag_log format["Dayz_loginCompleted! ******************************"];
    waitUntil {uiSleep 1; !isNil ("Dayz_loginCompleted")};

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

    diag_log format["HUMANITY! ****************************** : %1",_humanity];

    _isBandit = _humanity < -5000;
    _isHero = _humanity > 5000;

    if (_isHero) then {

    diag_log format["hero!****************************** : %1",_humanity];
        DefaultMagazines = ["ItemMap","HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
        DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
        DefaultBackpack = "DZ_Patrol_Pack_EP1";
        DefaultBackpackItems = []; // Can include both weapons and magazines i.e. ["PDW_DZ","30Rnd_9x19_UZI"];
        };    
        
    if (_isBandit) then {

        diag_log format["bandit!****************************** : %1",_humanity];
        DefaultMagazines = ["ItemMap","HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
        DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
        DefaultBackpack = "DZ_Patrol_Pack_EP1";
        DefaultBackpackItems = []; // Can include both weapons and magazines i.e. ["PDW_DZ","30Rnd_9x19_UZI"];
        }else{
        
        diag_log format["default!****************************** : %1",_humanity];
        DefaultMagazines = ["ItemMap","HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
        DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
        DefaultBackpack = "DZ_Patrol_Pack_EP1";
        DefaultBackpackItems = []; // Can include both weapons and magazines i.e. ["PDW_DZ","30Rnd_9x19_UZI"];
        };    


    _messages = [
        ["DayZ Epoch", "Welcome "+(name player)],
        ["World", worldName],
        ["Teamspeak", "some TS info"],
        ["Website/Forums", "some website info"],
        ["Server Rules", "Duping, glitching or using any<br />exploit will result in a<br />permanent ban."],
        ["Server Rules", "No talking in side."],
        ["Server Rules", "Hackers will be banned permanently<br />Respect others"],
        ["News", "Some random new info!<br />Random news<br />"]
    ];
     
    _timeout = 5;
    {
        private ["_title","_content","_titleText"];
        uiSleep 2;
        _title = _x select 0;
        _content = _x select 1;
        _titleText = format[("<t font='TahomaB' size='0.40' color='#a81e13' align='right' shadow='1' shadowColor='#000000'>%1</t><br /><t shadow='1'shadowColor='#000000' font='TahomaB' size='0.60' color='#FFFFFF' align='right'>%2</t>"), _title, _content];
        [
            _titleText,
            [safezoneX + safezoneW - 0.8,0.50],     //DEFAULT: 0.5,0.35
            [safezoneY + safezoneH - 0.8,0.7],      //DEFAULT: 0.8,0.7
            _timeout,
            0.5
        ] spawn BIS_fnc_dynamicText;
        uiSleep (_timeout * 1.1);
    } forEach _messages;

    i dont really understand why it doesn't load.

    I moved the previous from the init.sqf to a seperate file.

    Here is my init.sqf:

     

    Spoiler

    /*    
        For DayZ Epoch
        Addons Credits: Jetski Yanahui by Kol9yN, Zakat, Gerasimow9, YuraPetrov, zGuba, A.Karagod, IceBreakr, Sahbazz
    */

    //Server settings
    dayZ_instance = 11; //Instance ID of this server
    dayZ_serverName = ""; //Shown to all players in the bottom left of the screen (country code + server number)

    //Game settings
    dayz_antihack = 0; // DayZ Antihack / 1 = enabled // 0 = disabled
    dayz_antiWallHack = 1; //DayZ AntiWallhack / 1 = enabled // 0 = disabled, Adds items to the map to plug holes.
    dayz_REsec = 1; // DayZ RE Security / 1 = enabled // 0 = disabled
    dayz_enableRules = true; //Enables a nice little news/rules feed on player login (make sure to keep the lists quick).
    dayz_quickSwitch = false; //Turns on forced animation for weapon switch. (hotkeys 1,2,3) False = enable animations, True = disable animations
    dayz_POIs = true;
    dayz_infectiousWaterholes = true;
    dayz_ForcefullmoonNights = true; // Forces night time to be full moon.
    dayz_randomMaxFuelAmount = 500; //Puts a random amount of fuel in all fuel stations.

    //DayZMod presets
    dayz_presets = "Custom"; //"Custom","Classic","Vanilla","Elite"

    //Only need to edit if you are running a custom server.
    if (dayz_presets == "Custom") then {
        dayz_enableGhosting = false; //Enable disable the ghosting system.
        dayz_ghostTimer = 60; //Sets how long in seconds a player must be disconnected before being able to login again.
        dayz_spawnselection = 1; //(Chernarus only) Turn on spawn selection 0 = random only spawns, 1 = spawn choice based on limits
        dayz_spawncarepkgs_clutterCutter = 0; //0 = loot hidden in grass, 1 = loot lifted, 2 = no grass
        dayz_spawnCrashSite_clutterCutter = 0;    // heli crash options 0 = loot hidden in grass, 1 = loot lifted, 2 = no grass
        dayz_spawnInfectedSite_clutterCutter = 0; // infected base spawn 0 = loot hidden in grass, 1 = loot lifted, 2 = no grass 
        dayz_bleedingeffect = 3; //1 = blood on the ground, 2 = partical effect, 3 = both
        dayz_OpenTarget_TimerTicks = 60 * 10; //how long can a player be freely attacked for after attacking someone unprovoked
        dayz_nutritionValuesSystem = true; //true, Enables nutrition system, false, disables nutrition system.
        dayz_classicBloodBagSystem = true; // disable blood types system and use the single classic ItemBloodbag
    };

    //Temp settings
    dayz_DamageMultiplier = 2; //1 - 0 = Disabled, anything over 1 will multiply damage. Damage Multiplier for Zombies.
    dayz_maxGlobalZeds = 150; //Limit the total zeds server wide.
    dayz_temperature_override = false; // Set to true to disable all temperature changes.

    enableRadio false;
    enableSentences false;

    // EPOCH CONFIG VARIABLES START //
    #include "\z\addons\dayz_code\configVariables.sqf"; // Don't remove this line
    // See the above file for a full list including descriptions and default values
    // Uncomment the lines below to change the default loadout

    dayz_paraSpawn = false; // Halo spawn
    DZE_BackpackAntiTheft = false; // Prevent stealing from backpacks in trader zones
    DZE_noRotate = [];
    DZE_PlayerZed = false; // Enable spawning as a player zombie when players die with infected status
    DZE_R3F_WEIGHT = false; // Enable R3F weight. Players carrying too much will be overburdened and forced to move slowly.
    DZE_slowZombies = true; // Force zombies to always walk
    DZE_StaticConstructionCount = 0; // Steps required to build. If greater than 0 this applies to all objects.
    DZE_GodModeBase = false; // Make player built base objects indestructible
    DZE_requireplot = 1; // Require a plot pole to build  0 = Off, 1 = On
    DZE_PlotPole = [30,45]; // Radius owned by plot pole [Regular objects,Other plotpoles]. Difference between them is the minimum buffer between bases.
    DZE_BuildingLimit = 150; // Max number of built objects allowed in DZE_PlotPole radius
    DZE_SelfTransfuse = true; // Allow players to bloodbag themselves
    DZE_selfTransfuse_Values = [4000,15,120]; // [blood amount given, infection chance %, cooldown in seconds]
    MaxDynamicDebris = 15; // Max number of random road blocks to spawn around the map
    MaxVehicleLimit = 100; // Max number of random vehicles to spawn around the map
    spawnArea = 1400; // Distance around markers to find a safe spawn position
    spawnShoremode = 1; // Random spawn locations  1 = on shores, 0 = inland
    EpochUseEvents = true; //Enable event scheduler. Define custom scripts in dayz_server\modules to run on a schedule.
    EpochEvents = [["any","any","any","any",5,"crash_spawner"],["any","any","any","any",30,"bombcrate"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]];


    // EPOCH CONFIG VARIABLES END //


    diag_log 'dayz_preloadFinished reset';
    dayz_preloadFinished=nil;
    onPreloadStarted "diag_log [diag_tickTime,'onPreloadStarted']; dayz_preloadFinished = false;";
    onPreloadFinished "diag_log [diag_tickTime,'onPreloadFinished']; dayz_preloadFinished = true;";
    with uiNameSpace do {RscDMSLoad=nil;}; // autologon at next logon

    if (!isDedicated) then {
        enableSaving [false, false];
        startLoadingScreen ["","RscDisplayLoadCustom"];
        progressLoadingScreen 0;
        dayz_loadScreenMsg = localize 'str_login_missionFile';
        progress_monitor = [] execVM "\z\addons\dayz_code\system\progress_monitor.sqf";
        0 cutText ['','BLACK',0];
        0 fadeSound 0;
        0 fadeMusic 0;
    };

    initialized = false;
    call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";
    progressLoadingScreen 0.05;
    call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";
    progressLoadingScreen 0.1;
    call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";
    progressLoadingScreen 0.15;
    call compile preprocessFileLineNumbers "Custom\compiles.sqf";
    progressLoadingScreen 0.2;
    call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\init.sqf";
    progressLoadingScreen 0.25;
    call compile preprocessFileLineNumbers "server_traders.sqf";
    call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\chernarus11.sqf"; //Add trader city objects locally on each machine early
    initialized = true;

    setTerrainGrid 50; //grass draw distance (50=no grass, 25=normal, 12.5=far)
    if (dayz_REsec == 1) then {call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\REsec.sqf";};
    execVM "\z\addons\dayz_code\system\DynamicWeatherEffects.sqf";

    if (isServer) then {
        call compile preprocessFileLineNumbers "\z\addons\dayz_server\system\dynamic_vehicle.sqf";
        call compile preprocessFileLineNumbers "\z\addons\dayz_server\traders\chernarus11.sqf"; //Add trader agents
        call compile preprocessFileLineNumbers "\z\addons\dayz_server\system\server_monitor.sqf";
        //Must be global spawned, so players don't fall through buildings (might be best to spilt these to important, not important)
        if (dayz_POIs && (toLower worldName == "chernarus")) then { execVM "\z\addons\dayz_code\system\mission\chernarus\poi\init.sqf"; };
        //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\LegacyTownGenerator\MainLootableObjects.sqf"; };

    if (!isDedicated) then {

        if (dayz_antiWallHack != 0) then {
            //Enables Map Plug items
            execVM "\z\addons\dayz_code\system\mission\chernarus\security\init.sqf";
            //Enables Plant lib fixes
            call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\antihack.sqf";
        };
        
        if (toLower(worldName) == "chernarus") then {
            diag_log "WARNING: Clearing annoying benches from Chernarus";
            ([4654,9595,0] nearestObject 145259) setDamage 1;
            ([4654,9595,0] nearestObject 145260) setDamage 1;
        };
        
        if (dayz_enableRules && (profileNamespace getVariable ["streamerMode",0] == 0)) then { dayz_rulesHandle = execVM "rules.sqf"; };
        if (!isNil "dayZ_serverName") then { execVM "\z\addons\dayz_code\system\watermark.sqf"; };
        execVM "\z\addons\dayz_code\compile\client_plantSpawner.sqf";
        execFSM "\z\addons\dayz_code\system\player_monitor.fsm";
        //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
        _nil = [] execVM "custom\remote\remote.sqf";
        if (DZE_R3F_WEIGHT) then {execVM "\z\addons\dayz_code\external\R3F_Realism\R3F_Realism_Init.sqf";};
        waitUntil {scriptDone progress_monitor};
        cutText ["","BLACK IN", 3];
        3 fadeSound 1;
        3 fadeMusic 1;
        endLoadingScreen;
    };


    Isnt it also the case that in the rules.sqf the loaded variables already have been used by then? Since in the init.sqf the server loads the rules.sqf as almost the last file.
    - Chargedlight1

  9. as Init.sqf Requested:


    init.sqf:

    Spoiler

    /*    
        For DayZ Epoch
        Addons Credits: Jetski Yanahui by Kol9yN, Zakat, Gerasimow9, YuraPetrov, zGuba, A.Karagod, IceBreakr, Sahbazz
    */

    //Server settings
    dayZ_instance = 11; //Instance ID of this server
    dayZ_serverName = ""; //Shown to all players in the bottom left of the screen (country code + server number)

    //Game settings
    dayz_antihack = 0; // DayZ Antihack / 1 = enabled // 0 = disabled
    dayz_antiWallHack = 1; //DayZ AntiWallhack / 1 = enabled // 0 = disabled, Adds items to the map to plug holes.
    dayz_REsec = 1; // DayZ RE Security / 1 = enabled // 0 = disabled
    dayz_enableRules = true; //Enables a nice little news/rules feed on player login (make sure to keep the lists quick).
    dayz_quickSwitch = false; //Turns on forced animation for weapon switch. (hotkeys 1,2,3) False = enable animations, True = disable animations
    dayz_POIs = true;
    dayz_infectiousWaterholes = true;
    dayz_ForcefullmoonNights = true; // Forces night time to be full moon.
    dayz_randomMaxFuelAmount = 500; //Puts a random amount of fuel in all fuel stations.

    //DayZMod presets
    dayz_presets = "Custom"; //"Custom","Classic","Vanilla","Elite"

    //Only need to edit if you are running a custom server.
    if (dayz_presets == "Custom") then {
        dayz_enableGhosting = false; //Enable disable the ghosting system.
        dayz_ghostTimer = 60; //Sets how long in seconds a player must be disconnected before being able to login again.
        dayz_spawnselection = 1; //(Chernarus only) Turn on spawn selection 0 = random only spawns, 1 = spawn choice based on limits
        dayz_spawncarepkgs_clutterCutter = 0; //0 = loot hidden in grass, 1 = loot lifted, 2 = no grass
        dayz_spawnCrashSite_clutterCutter = 0;    // heli crash options 0 = loot hidden in grass, 1 = loot lifted, 2 = no grass
        dayz_spawnInfectedSite_clutterCutter = 0; // infected base spawn 0 = loot hidden in grass, 1 = loot lifted, 2 = no grass 
        dayz_bleedingeffect = 3; //1 = blood on the ground, 2 = partical effect, 3 = both
        dayz_OpenTarget_TimerTicks = 60 * 10; //how long can a player be freely attacked for after attacking someone unprovoked
        dayz_nutritionValuesSystem = true; //true, Enables nutrition system, false, disables nutrition system.
        dayz_classicBloodBagSystem = true; // disable blood types system and use the single classic ItemBloodbag
    };

    //Temp settings
    dayz_DamageMultiplier = 2; //1 - 0 = Disabled, anything over 1 will multiply damage. Damage Multiplier for Zombies.
    dayz_maxGlobalZeds = 150; //Limit the total zeds server wide.
    dayz_temperature_override = false; // Set to true to disable all temperature changes.

    enableRadio false;
    enableSentences false;

    // EPOCH CONFIG VARIABLES START //
    #include "\z\addons\dayz_code\configVariables.sqf" // Don't remove this line
    // See the above file for a full list including descriptions and default values
    // Uncomment the lines below to change the default loadout
    private ["_isHero","_humanity","_isBandit"];


    _humanity = player getVariable ["humanity",0];
    _isBandit = _humanity < -5000;
    _isHero = _humanity > 5000;

    // console.log js xD
    diag_log format["Variable PlayerHumanity %1",_humanity];
    if (_isHero) then {
    //hero
        diag_log format["LOADOUT: Hero"];
        DefaultMagazines = ["ItemMap","HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
        DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
        DefaultBackpack = "DZ_Patrol_Pack_EP1";
        DefaultBackpackItems = []; // Can include both weapons and magazines i.e. ["PDW_DZ","30Rnd_9x19_UZI"];
    };    
    if (_isBandit) then {
    //bndit
        diag_log format["LOADOUT: Bandit"];
        DefaultMagazines = ["ItemMap","HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
        DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
        DefaultBackpack = "DZ_Patrol_Pack_EP1";
        DefaultBackpackItems = []; // Can include both weapons and magazines i.e. ["PDW_DZ","30Rnd_9x19_UZI"];
    }else{
        diag_log format["LOADOUT: DEFAULT! ERROR!"];
        DefaultMagazines = ["ItemMap","HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
        DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
        DefaultBackpack = "DZ_Patrol_Pack_EP1";
        DefaultBackpackItems = []; // Can include both weapons and magazines i.e. ["PDW_DZ","30Rnd_9x19_UZI"];
    };    

    dayz_paraSpawn = false; // Halo spawn
    DZE_BackpackAntiTheft = false; // Prevent stealing from backpacks in trader zones
    DZE_noRotate = [];
    DZE_PlayerZed = false; // Enable spawning as a player zombie when players die with infected status
    DZE_R3F_WEIGHT = false; // Enable R3F weight. Players carrying too much will be overburdened and forced to move slowly.
    DZE_slowZombies = true; // Force zombies to always walk
    DZE_StaticConstructionCount = 0; // Steps required to build. If greater than 0 this applies to all objects.
    DZE_GodModeBase = false; // Make player built base objects indestructible
    DZE_requireplot = 1; // Require a plot pole to build  0 = Off, 1 = On
    DZE_PlotPole = [30,45]; // Radius owned by plot pole [Regular objects,Other plotpoles]. Difference between them is the minimum buffer between bases.
    DZE_BuildingLimit = 150; // Max number of built objects allowed in DZE_PlotPole radius
    DZE_SelfTransfuse = true; // Allow players to bloodbag themselves
    DZE_selfTransfuse_Values = [4000,15,120]; // [blood amount given, infection chance %, cooldown in seconds]
    MaxDynamicDebris = 15; // Max number of random road blocks to spawn around the map
    MaxVehicleLimit = 100; // Max number of random vehicles to spawn around the map
    spawnArea = 1400; // Distance around markers to find a safe spawn position
    spawnShoremode = 1; // Random spawn locations  1 = on shores, 0 = inland
    EpochUseEvents = true; //Enable event scheduler. Define custom scripts in dayz_server\modules to run on a schedule.
    EpochEvents = [["any","any","any","any",5,"crash_spawner"],["any","any","any","any",30,"bombcrate"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]];


    // EPOCH CONFIG VARIABLES END //


    diag_log 'dayz_preloadFinished reset';
    dayz_preloadFinished=nil;
    onPreloadStarted "diag_log [diag_tickTime,'onPreloadStarted']; dayz_preloadFinished = false;";
    onPreloadFinished "diag_log [diag_tickTime,'onPreloadFinished']; dayz_preloadFinished = true;";
    with uiNameSpace do {RscDMSLoad=nil;}; // autologon at next logon

    if (!isDedicated) then {
        enableSaving [false, false];
        startLoadingScreen ["","RscDisplayLoadCustom"];
        progressLoadingScreen 0;
        dayz_loadScreenMsg = localize 'str_login_missionFile';
        progress_monitor = [] execVM "\z\addons\dayz_code\system\progress_monitor.sqf";
        0 cutText ['','BLACK',0];
        0 fadeSound 0;
        0 fadeMusic 0;
    };

    initialized = false;
    call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";
    progressLoadingScreen 0.05;
    call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";
    progressLoadingScreen 0.1;
    call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";
    progressLoadingScreen 0.15;
    call compile preprocessFileLineNumbers "Custom\compiles.sqf";
    progressLoadingScreen 0.2;
    call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\init.sqf";
    progressLoadingScreen 0.25;
    call compile preprocessFileLineNumbers "server_traders.sqf";
    call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\chernarus11.sqf"; //Add trader city objects locally on each machine early
    initialized = true;

    setTerrainGrid 50; //grass draw distance (50=no grass, 25=normal, 12.5=far)
    if (dayz_REsec == 1) then {call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\REsec.sqf";};
    execVM "\z\addons\dayz_code\system\DynamicWeatherEffects.sqf";

    if (isServer) then {
        call compile preprocessFileLineNumbers "\z\addons\dayz_server\system\dynamic_vehicle.sqf";
        call compile preprocessFileLineNumbers "\z\addons\dayz_server\traders\chernarus11.sqf"; //Add trader agents
        call compile preprocessFileLineNumbers "\z\addons\dayz_server\system\server_monitor.sqf";
        //Must be global spawned, so players don't fall through buildings (might be best to spilt these to important, not important)
        if (dayz_POIs && (toLower worldName == "chernarus")) then { execVM "\z\addons\dayz_code\system\mission\chernarus\poi\init.sqf"; };
        //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\LegacyTownGenerator\MainLootableObjects.sqf"; };

    if (!isDedicated) then {

        if (dayz_antiWallHack != 0) then {
            //Enables Map Plug items
            execVM "\z\addons\dayz_code\system\mission\chernarus\security\init.sqf";
            //Enables Plant lib fixes
            call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\antihack.sqf";
        };
        
        if (toLower(worldName) == "chernarus") then {
            diag_log "WARNING: Clearing annoying benches from Chernarus";
            ([4654,9595,0] nearestObject 145259) setDamage 1;
            ([4654,9595,0] nearestObject 145260) setDamage 1;
        };
        
        if (dayz_enableRules && (profileNamespace getVariable ["streamerMode",0] == 0)) then { dayz_rulesHandle = execVM "rules.sqf"; };
        if (!isNil "dayZ_serverName") then { execVM "\z\addons\dayz_code\system\watermark.sqf"; };
        execVM "\z\addons\dayz_code\compile\client_plantSpawner.sqf";
        execFSM "\z\addons\dayz_code\system\player_monitor.fsm";
        //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
        _nil = [] execVM "custom\remote\remote.sqf";
        if (DZE_R3F_WEIGHT) then {execVM "\z\addons\dayz_code\external\R3F_Realism\R3F_Realism_Init.sqf";};
        waitUntil {scriptDone progress_monitor};
        cutText ["","BLACK IN", 3];
        3 fadeSound 1;
        3 fadeMusic 1;
        endLoadingScreen;
    };

     

  10. @coresync No i did not.. 

    After i added those like this:

     

    Spoiler

    private ["_isHero","_humanity","_isBandit"];


    _humanity = player getVariable ["humanity",0];
    _isBandit = _humanity < -5000;
    _isHero = _humanity > 5000;

    // console.log js xD
    diag_log format["Variable PlayerHumanity %1",_humanity];
    if (_isHero) then {
    //hero
        diag_log format["LOADOUT: Hero"];
        DefaultMagazines = ["ItemMap","HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
        DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
        DefaultBackpack = "DZ_Patrol_Pack_EP1";
        DefaultBackpackItems = []; // Can include both weapons and magazines i.e. ["PDW_DZ","30Rnd_9x19_UZI"];
    };    
    if (_isBandit) then {
    //bndit
        diag_log format["LOADOUT: Bandit"];
        DefaultMagazines = ["ItemMap","HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
        DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
        DefaultBackpack = "DZ_Patrol_Pack_EP1";
        DefaultBackpackItems = []; // Can include both weapons and magazines i.e. ["PDW_DZ","30Rnd_9x19_UZI"];
    }else{
        diag_log format["LOADOUT: DEFAULT! ERROR!"];
        DefaultMagazines = ["ItemMap","HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
        DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
        DefaultBackpack = "DZ_Patrol_Pack_EP1";
        DefaultBackpackItems = []; // Can include both weapons and magazines i.e. ["PDW_DZ","30Rnd_9x19_UZI"];
    };    

    The error is still the same. 

    15:12:14 Error in expression <getVariable ["humanity",0];
    _isBandit = _humanity < -5000;
    _isHero = _humanity >>
    15:12:14   Error position: <_humanity < -5000;
    _isHero = _humanity >>
    15:12:14   Error Undefined variable in expression: _humanity
    15:12:14 File mpmissions\DayZ_Epoch_11.Chernarus\init.sqf, line 51


    Now i also need to know what this: "_private" does. Is it simmular to this: http://stackoverflow.com/questions/4361553/what-is-the-difference-between-public-private-and-protected ?

  11. Same error: 

    15:02:41 Error in expression <getVariable ["humanity",0];
    _isBandit = _humanity < -5000;
    _isHero = _humanity >>
    15:02:41   Error position: <_humanity < -5000;
    _isHero = _humanity >>
    15:02:41   Error Undefined variable in expression: _humanity

    This was the reason i went deeper into the code to write the solution there. Same problem there. 
    ( Deeper file was:  z\dayz_server\compile\server_playerLogin.sqf )

    However i did found out that in the file  z\dayz_server\compile\server_playerSetup.sqf
    That the variable is getting set over there. 
    _playerObj setVariable ["humanity",_humanity,true];

    But then the variables (

     DefaultMagazines = ["ItemMap","HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
        DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
        DefaultBackpack = "DZ_Patrol_Pack_EP1";
        DefaultBackpackItems = []; // Can include both weapons and magazines i.e. ["PDW_DZ","30Rnd_9x19_UZI"];

    are already have been used to create the model. So these aren't getting used anymore from that point.

  12. Spoiler

    PlayerHumanity = (player getVariable "humanity");
    // console.log js xD
    diag_log format["Variable PlayerHumanity %1",PlayerHumanity];
    if (PlayerHumanity >= 5000) then {
    //hero
        diag_log format["LOADOUT: Hero"];
        DefaultMagazines = ["ItemMap","HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
        DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
        DefaultBackpack = "DZ_Patrol_Pack_EP1";
        DefaultBackpackItems = []; // Can include both weapons and magazines i.e. ["PDW_DZ","30Rnd_9x19_UZI"];
    };    
    if (PlayerHumanity < 2500) then {
    //bndit
        diag_log format["LOADOUT: Bandit"];
        DefaultMagazines = ["ItemMap","HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
        DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
        DefaultBackpack = "DZ_Patrol_Pack_EP1";
        DefaultBackpackItems = []; // Can include both weapons and magazines i.e. ["PDW_DZ","30Rnd_9x19_UZI"];
    }else{
        diag_log format["LOADOUT: DEFAULT! ERROR!"];
        DefaultMagazines = ["ItemMap","HandRoadFlare","ItemBandage","ItemPainkiller","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov"];
        DefaultWeapons = ["Makarov_DZ","ItemFlashlight"];
        DefaultBackpack = "DZ_Patrol_Pack_EP1";
        DefaultBackpackItems = []; // Can include both weapons and magazines i.e. ["PDW_DZ","30Rnd_9x19_UZI"];
    };    

    Currently this is my code... The PlayerHumanity variable is undifined ;(


    this is the error

     

    Spoiler

    14:50:10 Error in expression <log format["Variable PlayerHumanity %1",PlayerHumanity];
    if (PlayerHumanity >= 5>
    14:50:10   Error position: <PlayerHumanity];
    if (PlayerHumanity >= 5>
    14:50:10   Error Undefined variable in expression: playerhumanity
    14:50:10 File mpmissions\DayZ_Epoch_11.Chernarus\init.sqf, line 50

     

  13. https://epochmod.com/forum/topic/43153-released-custom-spawn-loadout-dependend-on-humanity/#comment-285478

    -- OLD THREAT -- SOLVED!

    Hello guys,

    I have a question about spawning my gear on login. I want my default gear dependend on the amount of humanity. i'm currently working in the file: z\dayz_server\compile\server_playerLogin.sqf
    But i cant get a reach on how to get that variable in the server. I dont know how to atleast. I've tried alot of variables like:
    player getVariable['humanity',0]; which gives me <NULL>
    and trying to debug _playerObj and_primary without luck.. server just crashes without any notification.
    Here was my line of code to debug that:

    diag_log format["object _playerObj: %1",_playerObj];
    
    diag_log format["object _primary: %1",_primary];

    does anyone know how to get that humanity variable ? i want to make a switch statement in the if statement here:

     

    if (!_isNew) then {
    	//RETURNING CHARACTER
    	_inventory = _primary select 4;
    	_backpack = _primary select 5;
    	_survival = _primary select 6;
    	_CharacterCoins = _primary select 7;
    	_model = _primary select 8;
    	_group = _primary select 9;
    	_playerCoins = _primary select 10;
    	_BankCoins = _primary select 11;
    	_hiveVer = _primary select 12;
    	if !(_model in AllPlayers) then {_model = "Survivor2_DZ";};
    } else {
    	_isInfected = if (DZE_PlayerZed) then {_primary select 3} else {0};
    	_model = _primary select 4;
    	_group = _primary select 5;
    	_playerCoins = _primary select 6;
    	_BankCoins = _primary select 7;
    	_hiveVer = _primary select 8;	
    	if (isNil "_model") then {
    		_model = "Survivor2_DZ";
    	} else {
    		if (_model == "") then {_model = "Survivor2_DZ";};
    	};
    	//Record initial inventory only if not player zombie 
    	if (_isInfected != 1) then {
    		_config = configFile >> "CfgSurvival" >> "Inventory" >> "Default";
    		_mags = getArray (_config >> "magazines");
    		_wpns = getArray (_config >> "weapons");
    		_bcpk = getText (_config >> "backpack");
    		// Switch statement right here
    		if (!isNil "DefaultMagazines") then {_mags = DefaultMagazines;};
    		if (!isNil "DefaultWeapons") then {_wpns = DefaultWeapons;};
    		if (!isNil "DefaultBackpack") then {_bcpk = DefaultBackpack;};
    	
    		//Wait for HIVE to be free
    		_key = format["CHILD:203:%1:%2:%3:",_charID,[_wpns,_mags],[_bcpk,[],[]]];
    		_key call server_hiveWrite;
    	};

    Something like:
     

    if (!_isNew) then {
    	//RETURNING CHARACTER
    	_inventory = _primary select 4;
    	_backpack = _primary select 5;
    	_survival = _primary select 6;
    	_CharacterCoins = _primary select 7;
    	_model = _primary select 8;
    	_group = _primary select 9;
    	_playerCoins = _primary select 10;
    	_BankCoins = _primary select 11;
    	_hiveVer = _primary select 12;
    	if !(_model in AllPlayers) then {_model = "Survivor2_DZ";};
    } else {
    	_isInfected = if (DZE_PlayerZed) then {_primary select 3} else {0};
    	_model = _primary select 4;
    	_group = _primary select 5;
    	_playerCoins = _primary select 6;
    	_BankCoins = _primary select 7;
    	_hiveVer = _primary select 8;	
    	if (isNil "_model") then {
    		_model = "Survivor2_DZ";
    	} else {
    		if (_model == "") then {_model = "Survivor2_DZ";};
    	};
    	
    	//Record initial inventory only if not player zombie 
    	if (_isInfected != 1) then {
    		_config = configFile >> "CfgSurvival" >> "Inventory" >> "Default";
    		_mags = getArray (_config >> "magazines");
    		_wpns = getArray (_config >> "weapons");
    		_bcpk = getText (_config >> "backpack");
    		// * CUSTOM LOADOUT SWITCHCASE! *
    		switch (true) do {
    			case(_humanity >= 5000): {
    				DefaultMagazines = ["itemMap" //etc...];
    			};
    		};
    		if (!isNil "DefaultMagazines") then {_mags = DefaultMagazines;};
    		if (!isNil "DefaultWeapons") then {_wpns = DefaultWeapons;};
    		if (!isNil "DefaultBackpack") then {_bcpk = DefaultBackpack;};
    	
    		//Wait for HIVE to be free
    		_key = format["CHILD:203:%1:%2:%3:",_charID,[_wpns,_mags],[_bcpk,[],[]]];
    		_key call server_hiveWrite;
    	};
    };


     

  14. Hey guys, i cant seem to find my problem, everything works. deploy bike works. but the packing part doesn't work.

    When you look at the bike you just spawned it doesnt give an option to re(pack) it again.

     

    he is my FN_selfActions.sqf. pretty sure here lays the problem.

    scriptName "Functions\misc\fn_selfActions.sqf";
    /***********************************************************
    	ADD ACTIONS FOR SELF
    	- Function
    	- [] call fnc_usec_selfActions;
    ************************************************************/
    private ["_isWreckBuilding","_temp_keys","_magazinesPlayer","_isPZombie","_vehicle","_inVehicle","_hasFuelE","_hasRawMeat","_hasKnife","_hasToolbox","_onLadder","_nearLight","_canPickLight","_canDo","_text","_isHarvested","_isVehicle","_isVehicletype","_isMan","_traderType","_ownerID","_isAnimal","_isDog","_isZombie","_isDestructable","_isTent","_isFuel","_isAlive","_Unlock","_lock","_buy","_dogHandle","_lieDown","_warn","_hastinitem","_allowedDistance","_menu","_menu1","_humanity_logic","_low_high","_cancel","_metals_trader","_traderMenu","_isWreck","_isRemovable","_isDisallowRepair","_rawmeat","_humanity","_speed","_dog","_hasbottleitem","_isAir","_isShip","_playersNear","_findNearestGens","_findNearestGen","_IsNearRunningGen","_cursorTarget","_isnewstorage","_itemsPlayer","_ownerKeyId","_typeOfCursorTarget","_hasKey","_oldOwner","_combi","_key_colors","_player_deleteBuild","_player_flipveh","_player_lockUnlock_crtl","_player_butcher","_player_studybody","_player_cook","_player_boil","_hasFuelBarrelE","_hasHotwireKit","_player_SurrenderedGear","_isSurrendered","_isModular","_isModularDoor","_ownerKeyName","_temp_keys_names","_hasAttached","_allowTow","_liftHeli","_found","_posL","_posC","_height","_liftHelis","_attached"];
    
    if (DZE_ActionInProgress) exitWith {}; // Do not allow if any script is running.
    
    _vehicle = vehicle player;
    _isPZombie = player isKindOf "PZombie_VB";
    _inVehicle = (_vehicle != player);
    
    _onLadder =		(getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
    _canDo = (!r_drag_sqf && !r_player_unconscious && !_onLadder);
    
      // Krixes Self Bloodbag
    	_mags = magazines player;
        if ("ItemBloodbag" in _mags) then {
            hasBagItem = true;
        } else { hasBagItem = false;};
        if((speed player <= 1) && hasBagItem && _canDo) then {
            if (s_player_selfBloodbag < 0) then {
                s_player_selfBloodbag = player addaction[("<t color=""#c70000"">" + ("Self Bloodbag") +"</t>"),"custom\player_selfbloodbag.sqf","",5,false,true,"", ""];
            };
        } else {
            player removeAction s_player_selfBloodbag;
            s_player_selfBloodbag = -1;
    
    
        };
    
    _nearLight = 	nearestObject [player,"LitObject"];
    _canPickLight = false;
    if (!isNull _nearLight) then {
    	if (_nearLight distance player < 4) then {
    		_canPickLight = isNull (_nearLight getVariable ["owner",objNull]);
    	};
    };
    
    _weapons = [currentWeapon player] + (weapons player) + (magazines player);
    _isBike = typeOf cursorTarget in ["Old_bike_TK_INS_EP1","Old_bike_TK_CIV_EP1"];
     
    //Grab Flare
    if (_canPickLight && !dayz_hasLight && !_isPZombie) then {
    	if (s_player_grabflare < 0) then {
    		_text = getText (configFile >> "CfgAmmo" >> (typeOf _nearLight) >> "displayName");
    		s_player_grabflare = player addAction [format[localize "str_actions_medical_15",_text], "\z\addons\dayz_code\actions\flare_pickup.sqf",_nearLight, 1, false, true, "", ""];
    		s_player_removeflare = player addAction [format[localize "str_actions_medical_17",_text], "\z\addons\dayz_code\actions\flare_remove.sqf",_nearLight, 1, false, true, "", ""];
    	};
    } else {
    	player removeAction s_player_grabflare;
    	player removeAction s_player_removeflare;
    	s_player_grabflare = -1;
    	s_player_removeflare = -1;
    };
    
    if (DZE_HeliLift) then {
    	_hasAttached = _vehicle getVariable["hasAttached",false];
    	if(_inVehicle && (_vehicle isKindOf "Air") && ((([_vehicle] call FNC_getPos) select 2) < 30) && (speed _vehicle < 5) && (typeName _hasAttached == "OBJECT")) then {
    		if (s_player_heli_detach < 0) then {
    			dayz_myLiftVehicle = _vehicle;
    			s_player_heli_detach = dayz_myLiftVehicle addAction ["Detach Vehicle","\z\addons\dayz_code\actions\player_heliDetach.sqf",[dayz_myLiftVehicle,_hasAttached],2,false,true,"",""];
    		};
    	} else {
    		dayz_myLiftVehicle removeAction s_player_heli_detach;
    		s_player_heli_detach = -1;
    	};
    };
    
    if(DZE_HaloJump) then {
    	if(_inVehicle && (_vehicle isKindOf "Air") && ((([_vehicle] call FNC_getPos) select 2) > 400)) then {
    		if (s_halo_action < 0) then {
    			DZE_myHaloVehicle = _vehicle;
    			s_halo_action = DZE_myHaloVehicle addAction [localize "STR_EPOCH_ACTIONS_HALO","\z\addons\dayz_code\actions\halo_jump.sqf",[],2,false,true,"",""];
    		};
    	} else {
    		DZE_myHaloVehicle removeAction s_halo_action;
    		s_halo_action = -1;
    	};
    };
    
    if (!DZE_ForceNameTagsOff) then {
    	if (s_player_showname < 0 && !_isPZombie) then {
    		if (DZE_ForceNameTags) then {
    			s_player_showname = 1;
    			player setVariable["DZE_display_name",true,true];
    		} else {
    			s_player_showname = player addAction [localize "STR_EPOCH_ACTIONS_NAMEYES", "\z\addons\dayz_code\actions\display_name.sqf",true, 0, true, false, "",""];
    			s_player_showname1 = player addAction [localize "STR_EPOCH_ACTIONS_NAMENO", "\z\addons\dayz_code\actions\display_name.sqf",false, 0, true, false, "",""];
    		};
    	};
    };
    
    if(_isPZombie) then {
    	if (s_player_callzombies < 0) then {
    		s_player_callzombies = player addAction [localize "STR_EPOCH_ACTIONS_RAISEHORDE", "\z\addons\dayz_code\actions\call_zombies.sqf",player, 5, true, false, "",""];
    	};
    	if (DZE_PZATTACK) then {
    		call pz_attack;
    		DZE_PZATTACK = false;
    	};
    	if (s_player_pzombiesvision < 0) then {
    		s_player_pzombiesvision = player addAction [localize "STR_EPOCH_ACTIONS_NIGHTVIS", "\z\addons\dayz_code\actions\pzombie\pz_vision.sqf", [], 4, false, true, "nightVision", "_this == _target"];
    	};
    	if (!isNull cursorTarget && (player distance cursorTarget < 3)) then {	//Has some kind of target
    		_isAnimal = cursorTarget isKindOf "Animal";
    		_isZombie = cursorTarget isKindOf "zZombie_base";
    		_isHarvested = cursorTarget getVariable["meatHarvested",false];
    		_isMan = cursorTarget isKindOf "Man";
    		// Pzombie Gut human corpse || animal
    		if (!alive cursorTarget && (_isAnimal || _isMan) && !_isZombie && !_isHarvested) then {
    			if (s_player_pzombiesfeed < 0) then {
    				s_player_pzombiesfeed = player addAction [localize "STR_EPOCH_ACTIONS_FEED", "\z\addons\dayz_code\actions\pzombie\pz_feed.sqf",cursorTarget, 3, true, false, "",""];
    			};
    		} else {
    			player removeAction s_player_pzombiesfeed;
    			s_player_pzombiesfeed = -1;
    		};
    	} else {
    		player removeAction s_player_pzombiesfeed;
    		s_player_pzombiesfeed = -1;
    	};
    };
    
    // Increase distance only if AIR || SHIP
    _allowedDistance = 4;
    _isAir = cursorTarget isKindOf "Air";
    _isShip = cursorTarget isKindOf "Ship";
    if(_isAir || _isShip) then {
    	_allowedDistance = 8;
    };
    
    if (!isNull cursorTarget && !_inVehicle && !_isPZombie && (player distance cursorTarget < _allowedDistance) && _canDo) then {	//Has some kind of target
    
    	// set cursortarget to variable
    	_cursorTarget = cursorTarget;
    
    	// get typeof cursortarget once
    	_typeOfCursorTarget = typeOf _cursorTarget;
    
    	// hintsilent _typeOfCursorTarget;
    
    	_isVehicle = _cursorTarget isKindOf "AllVehicles";
    	_isVehicletype = _typeOfCursorTarget in ["ATV_US_EP1","ATV_CZ_EP1"];
    	_isnewstorage = _typeOfCursorTarget in DZE_isNewStorage;
    	
    	// get items && magazines only once
    	_magazinesPlayer = magazines player;
    
    	//boiled Water
    	_hasbottleitem = "ItemWaterbottle" in _magazinesPlayer;
    	_hastinitem = false;
    	{
    		if (_x in _magazinesPlayer) then {
    			_hastinitem = true;
    		};
    	} count boil_tin_cans;
    	_hasFuelE = 	"ItemJerrycanEmpty" in _magazinesPlayer;
    	_hasFuelBarrelE = 	"ItemFuelBarrelEmpty" in _magazinesPlayer;
    	_hasHotwireKit = 	"ItemHotwireKit" in _magazinesPlayer;
    
    	_itemsPlayer = items player;
    	
    	_temp_keys = [];
    	_temp_keys_names = [];
    	// find available keys
    	_key_colors = ["ItemKeyYellow","ItemKeyBlue","ItemKeyRed","ItemKeyGreen","ItemKeyBlack"];
    	{
    		if (configName(inheritsFrom(configFile >> "CfgWeapons" >> _x)) in _key_colors) then {
    			_ownerKeyId = getNumber(configFile >> "CfgWeapons" >> _x >> "keyid");
    			_ownerKeyName = getText(configFile >> "CfgWeapons" >> _x >> "displayName");
    			_temp_keys_names set [_ownerKeyId,_ownerKeyName];
    			_temp_keys set [count _temp_keys,str(_ownerKeyId)];
    		};
    	} count _itemsPlayer;
    
    	_hasKnife = 	"ItemKnife" in _itemsPlayer;
    	_hasToolbox = 	"ItemToolbox" in _itemsPlayer;
    
    	_isMan = _cursorTarget isKindOf "Man";
    	_traderType = _typeOfCursorTarget;
    	_ownerID = _cursorTarget getVariable ["CharacterID","0"];
    	_isAnimal = _cursorTarget isKindOf "Animal";
    	_isDog =  (_cursorTarget isKindOf "DZ_Pastor" || _cursorTarget isKindOf "DZ_Fin");
    	_isZombie = _cursorTarget isKindOf "zZombie_base";
    	_isDestructable = _cursorTarget isKindOf "BuiltItems";
    	_isWreck = _typeOfCursorTarget in DZE_isWreck;
    	_isWreckBuilding = _typeOfCursorTarget in DZE_isWreckBuilding;
    	_isModular = _cursorTarget isKindOf "ModularItems";
    	_isModularDoor = _typeOfCursorTarget in ["Land_DZE_WoodDoor","Land_DZE_LargeWoodDoor","Land_DZE_GarageWoodDoor","CinderWallDoor_DZ","CinderWallDoorSmall_DZ"];
    
    	_isRemovable = _typeOfCursorTarget in DZE_isRemovable;
    	_isDisallowRepair = _typeOfCursorTarget in ["M240Nest_DZ"];
    
    	_isTent = _cursorTarget isKindOf "TentStorage";
    	
    	_isAlive = alive _cursorTarget;
    	
    	_text = getText (configFile >> "CfgVehicles" >> _typeOfCursorTarget >> "displayName");
    	
    	_rawmeat = meatraw;
    	_hasRawMeat = false;
    	{
    		if (_x in _magazinesPlayer) then {
    			_hasRawMeat = true;
    		};
    	} count _rawmeat; 
    	
    	_isFuel = false;
    	if (_hasFuelE || _hasFuelBarrelE) then {
    		{
    			if(_cursorTarget isKindOf _x) exitWith {_isFuel = true;};
    		} count dayz_fuelsources;
    	};
    
    	// diag_log ("OWNERID = " + _ownerID + " CHARID = " + dayz_characterID + " " + str(_ownerID == dayz_characterID));
    	
    	// logic vars
    	_player_flipveh = false;
    	_player_deleteBuild = false;
    	_player_lockUnlock_crtl = false;
    
    	 if (_canDo && (speed player <= 1) && (_cursorTarget isKindOf "Plastic_Pole_EP1_DZ")) then {
    		 if (s_player_maintain_area < 0) then {
    		  	s_player_maintain_area = player addAction [format["<t color='#ff0000'>%1</t>",localize "STR_EPOCH_ACTIONS_MAINTAREA"], "\z\addons\dayz_code\actions\maintain_area.sqf", "maintain", 5, false];
    		 	s_player_maintain_area_preview = player addAction [format["<t color='#ff0000'>%1</t>",localize "STR_EPOCH_ACTIONS_MAINTPREV"], "\z\addons\dayz_code\actions\maintain_area.sqf", "preview", 5, false];
    		 };
    	 } else {
        		player removeAction s_player_maintain_area;
        		s_player_maintain_area = -1;
        		player removeAction s_player_maintain_area_preview;
        		s_player_maintain_area_preview = -1;
    	 };
    
    	// CURSOR TARGET ALIVE
    	if(_isAlive) then {
    		
    		//Allow player to delete objects
    		if(_isDestructable || _isWreck || _isRemovable || _isWreckBuilding) then {
    			if(_hasToolbox && "ItemCrowbar" in _itemsPlayer) then {
    				_player_deleteBuild = true;
    			};
    		};
    		
    		//Allow owners to delete modulars
                    if(_isModular && (dayz_characterID == _ownerID)) then {
                            if(_hasToolbox && "ItemCrowbar" in _itemsPlayer) then {
                                    _player_deleteBuild = true;
                            };
                    };
    		//Allow owners to delete modular doors without locks
    				if(_isModularDoor && (dayz_characterID == _ownerID)) then {
                            if(_hasToolbox && "ItemCrowbar" in _itemsPlayer) then {
                                    _player_deleteBuild = true;
                            };		
    				};	
    		// CURSOR TARGET VEHICLE
    		if(_isVehicle) then {
    			
    			//flip vehicle small vehicles by your self && all other vehicles with help nearby
    			if (!(canmove _cursorTarget) && (player distance _cursorTarget >= 2) && (count (crew _cursorTarget))== 0 && ((vectorUp _cursorTarget) select 2) < 0.5) then {
    				_playersNear = {isPlayer _x} count (player nearEntities ["CAManBase", 6]);
    				if(_isVehicletype || (_playersNear >= 2)) then {
    					_player_flipveh = true;	
    				};
    			};
    
    
    			if(!_isMan && _ownerID != "0" && !(_cursorTarget isKindOf "Bicycle")) then {
    				_player_lockUnlock_crtl = true;
    			};
    
    		};
    	
    	};
    
    	if(_player_deleteBuild) then {
    		if (s_player_deleteBuild < 0) then {
    			s_player_deleteBuild = player addAction [format[localize "str_actions_delete",_text], "\z\addons\dayz_code\actions\remove.sqf",_cursorTarget, 1, true, true, "", ""];
    		};
    	} else {
    		player removeAction s_player_deleteBuild;
    		s_player_deleteBuild = -1;
    	};
    	
    	if (DZE_HeliLift) then {
    		_liftHeli = objNull;
    		_found = false;
    	
    		_allowTow = false;
    		if ((count (crew _cursorTarget)) == 0) then {
    			{
    				if(!_allowTow) then {
    					_allowTow = _cursorTarget isKindOf _x;
    				};
    			} count DZE_HeliAllowToTow;
    		};
    
    		//diag_log format["CREW: %1 ALLOW: %2",(count (crew _cursorTarget)),_allowTow];
    
    		if (_allowTow) then {
    			_liftHelis = nearestObjects [player, DZE_HeliAllowTowFrom, 15];
    			{
    				if(!_found) then {
    					_posL = [_x] call FNC_getPos;
    					_posC = [_cursorTarget] call FNC_getPos;
    					_height = (_posL select 2) - (_posC select 2);
    					_hasAttached = _x getVariable["hasAttached",false];
    					if(_height < 15 && _height > 5 && (typeName _hasAttached != "OBJECT")) then {
    						if(((abs((_posL select 0) - (_posC select 0))) < 10) && ((abs((_posL select 1) - (_posC select 1))) < 10)) then {
    							_liftHeli = _x;
    							_found = true;
    						};
    					};
    				};
    			} count _liftHelis;
    		};
    
    		//diag_log format["HELI: %1 TARGET: %2",_found,_cursorTarget];
    
    		_attached = _cursorTarget getVariable["attached",false];
    		if(_found && _allowTow && _canDo && !locked _cursorTarget && !_isPZombie && (typeName _attached != "OBJECT")) then {
    			if (s_player_heli_lift < 0) then {
    				s_player_heli_lift = player addAction ["Attach to Heli", "\z\addons\dayz_code\actions\player_heliLift.sqf",[_liftHeli,_cursorTarget], -10, false, true, "",""];
    			};
    		} else {
    			player removeAction s_player_heli_lift;
    			s_player_heli_lift = -1;
    		};
    	};
    	
    	// Allow Owner to lock && unlock vehicle  
    	if(_player_lockUnlock_crtl) then {
    		if (s_player_lockUnlock_crtl < 0) then {
    			_hasKey = _ownerID in _temp_keys;
    			_oldOwner = (_ownerID == dayz_playerUID);
    			if(locked _cursorTarget) then {
    				if(_hasKey || _oldOwner) then {
    					_Unlock = player addAction [format[localize "STR_EPOCH_ACTIONS_UNLOCK",_text], "\z\addons\dayz_code\actions\unlock_veh.sqf",[_cursorTarget,(_temp_keys_names select (parseNumber _ownerID))], 2, true, true, "", ""];
    					s_player_lockunlock set [count s_player_lockunlock,_Unlock];
    					s_player_lockUnlock_crtl = 1;
    				} else {
    					if(_hasHotwireKit) then {
    						_Unlock = player addAction [format[localize "STR_EPOCH_ACTIONS_HOTWIRE",_text], "\z\addons\dayz_code\actions\hotwire_veh.sqf",_cursorTarget, 2, true, true, "", ""];
    					} else {
    						_Unlock = player addAction [format["<t color='#ff0000'>%1</t>",localize "STR_EPOCH_ACTIONS_VEHLOCKED"], "",_cursorTarget, 2, true, true, "", ""];
    					};
    					s_player_lockunlock set [count s_player_lockunlock,_Unlock];
    					s_player_lockUnlock_crtl = 1;
    				};
    			} else {
    				if(_hasKey || _oldOwner) then {
    					_lock = player addAction [format[localize "STR_EPOCH_ACTIONS_LOCK",_text], "\z\addons\dayz_code\actions\lock_veh.sqf",_cursorTarget, 1, true, true, "", ""];
    					s_player_lockunlock set [count s_player_lockunlock,_lock];
    					s_player_lockUnlock_crtl = 1;
    				};
    			};
    		};
    		 
    	} else {
    		{player removeAction _x} count s_player_lockunlock;s_player_lockunlock = [];
    		s_player_lockUnlock_crtl = -1;
    	};
    
    	if(DZE_AllowForceSave) then {
    		//Allow player to force save
    		if((_isVehicle || _isTent) && !_isMan) then {
    			if (s_player_forceSave < 0) then {
    				s_player_forceSave = player addAction [format[localize "str_actions_save",_text], "\z\addons\dayz_code\actions\forcesave.sqf",_cursorTarget, 1, true, true, "", ""];
    			};
    		} else {
    			player removeAction s_player_forceSave;
    			s_player_forceSave = -1;
    		};
    	};
    
    	
    	
    	If(DZE_AllowCargoCheck) then {
    		if((_isVehicle || _isTent || _isnewstorage) && _isAlive && !_isMan && !locked _cursorTarget) then {
    			if (s_player_checkGear < 0) then {
    				s_player_checkGear = player addAction [localize "STR_EPOCH_PLAYER_CARGO", "\z\addons\dayz_code\actions\cargocheck.sqf",_cursorTarget, 1, true, true, "", ""];
    			};
    		} else {
    			player removeAction s_player_checkGear;
    			s_player_checkGear = -1;
    		};
    	};
    	
    	
    	//flip vehicle small vehicles by your self && all other vehicles with help nearby
    	if(_player_flipveh) then {
    		if (s_player_flipveh  < 0) then {
    			s_player_flipveh = player addAction [format[localize "str_actions_flipveh",_text], "\z\addons\dayz_code\actions\player_flipvehicle.sqf",_cursorTarget, 1, true, true, "", ""];		
    		};
    	} else {
    		player removeAction s_player_flipveh;
    		s_player_flipveh = -1;
    	}; 
    	
    	//Allow player to fill jerrycan
    	if((_hasFuelE || _hasFuelBarrelE) && _isFuel) then {
    		if (s_player_fillfuel < 0) then {
    			s_player_fillfuel = player addAction [localize "str_actions_self_10", "\z\addons\dayz_code\actions\jerry_fill.sqf",[], 1, false, true, "", ""];
    		};
    	} else {
    		player removeAction s_player_fillfuel;
    		s_player_fillfuel = -1;
    	};
    	
    	// logic vars for addactions
    	_player_butcher = false;
    	_player_studybody = false;
    	_player_SurrenderedGear = false;
    
    	// CURSOR TARGET NOT ALIVE
    	if (!_isAlive) then {
    
    		// Gut animal/zed
    		if((_isAnimal || _isZombie) && _hasKnife) then {
    			_isHarvested = _cursorTarget getVariable["meatHarvested",false];
    			if (!_isHarvested) then {
    				_player_butcher = true;
    			};
    		};
    
    		// Study body
    		if (_isMan && !_isZombie && !_isAnimal) then {
    			_player_studybody = true;
    		}
    	} else {
    		// unit alive
    
    		// gear access on surrendered player
    		if(_isMan && !_isZombie && !_isAnimal) then {
    			_isSurrendered = _cursorTarget getVariable ["DZE_Surrendered",false];
    			if (_isSurrendered) then {
    				_player_SurrenderedGear = true;
    			};
    		};
    	};
    
    
    	// Human Gut animal || zombie
    	if (_player_butcher) then {
    		if (s_player_butcher < 0) then {
    			if(_isZombie) then {
    				s_player_butcher = player addAction [localize "STR_EPOCH_ACTIONS_GUTZOM", "\z\addons\dayz_code\actions\gather_zparts.sqf",_cursorTarget, 0, true, true, "", ""];
    			} else {
    				s_player_butcher = player addAction [localize "str_actions_self_04", "\z\addons\dayz_code\actions\gather_meat.sqf",_cursorTarget, 3, true, true, "", ""];
    			};
    		};
    	} else {
    		player removeAction s_player_butcher;
    		s_player_butcher = -1;
    	};
    
    	// Study Body
    	if (_player_studybody) then {
    		if (s_player_studybody < 0) then {
    			s_player_studybody = player addAction [localize "str_action_studybody", "\z\addons\dayz_code\actions\study_body.sqf",_cursorTarget, 0, false, true, "",""];
    		};
    	} else {
    		player removeAction s_player_studybody;
    		s_player_studybody = -1;
    	};
    
    	// logic vars
    	_player_cook = false;
    	_player_boil = false;
    
    	// CURSOR TARGET IS FIRE
    	if (inflamed _cursorTarget) then {
    		
    		//Fireplace Actions check
    		if (_hasRawMeat) then {
    			_player_cook = true;	
    		};
    		
    		// Boil water
    		if (_hasbottleitem && _hastinitem) then {
    			_player_boil = true;
    		};
    	};
    
    	if (_player_SurrenderedGear) then {
    		if (s_player_SurrenderedGear < 0) then {
    			s_player_SurrenderedGear = player addAction [localize "STR_EPOCH_ACTIONS_GEAR", "\z\addons\dayz_code\actions\surrender_gear.sqf",_cursorTarget, 1, true, true, "", ""];
    		};
    	} else {
    		player removeAction s_player_SurrenderedGear;
    		s_player_SurrenderedGear = -1;
    	};
    
    	//Fireplace Actions check
    	if (_player_cook) then {
    		if (s_player_cook < 0) then {
    			s_player_cook = player addAction [localize "str_actions_self_05", "\z\addons\dayz_code\actions\cook.sqf",_cursorTarget, 3, true, true, "", ""];
    		};
    	} else {
    		player removeAction s_player_cook;
    		s_player_cook = -1;
    	};
    	
    	// Boil water
    	if (_player_boil) then {
    		if (s_player_boil < 0) then {
    			s_player_boil = player addAction [localize "str_actions_boilwater", "\z\addons\dayz_code\actions\boil.sqf",_cursorTarget, 3, true, true, "", ""];
    		};
    	} else {
    		player removeAction s_player_boil;
    		s_player_boil = -1;
    	};
    	
    	if(_cursorTarget == dayz_hasFire) then {
    		if ((s_player_fireout < 0) && !(inflamed _cursorTarget) && (player distance _cursorTarget < 3)) then {
    			s_player_fireout = player addAction [localize "str_actions_self_06", "\z\addons\dayz_code\actions\fire_pack.sqf",_cursorTarget, 0, false, true, "",""];
    		};
    	} else {
    		player removeAction s_player_fireout;
    		s_player_fireout = -1;
    	};
    	
    	//Packing my tent
    	if(_isTent && (player distance _cursorTarget < 3)) then {
    		if (_ownerID == dayz_characterID) then {
    			if (s_player_packtent < 0) then {
    				s_player_packtent = player addAction [localize "str_actions_self_07", "\z\addons\dayz_code\actions\tent_pack.sqf",_cursorTarget, 0, false, true, "",""];
    			};
    		} else {
    			if(("ItemJerrycan" in _magazinesPlayer) && ("ItemMatchbox_DZE" in weapons player)) then {
    				if (s_player_packtent < 0) then {
    					s_player_packtent = player addAction [localize "STR_EPOCH_ACTIONS_DESTROYTENT", "\z\addons\dayz_code\actions\remove.sqf",_cursorTarget, 1, true, true, "", ""];
    				};
    			};
    		};
    	} else {
    		player removeAction s_player_packtent;
    		s_player_packtent = -1;
    	};
    
    	//Allow owner to unlock vault
    	if((_typeOfCursorTarget in DZE_LockableStorage) && _ownerID != "0" && (player distance _cursorTarget < 3)) then {
    		if (s_player_unlockvault < 0) then {
    			if(_typeOfCursorTarget in DZE_LockedStorage) then {
    				if(_ownerID == dayz_combination || _ownerID == dayz_playerUID) then {
    					_combi = player addAction [format[localize "STR_EPOCH_ACTIONS_OPEN",_text], "\z\addons\dayz_code\actions\vault_unlock.sqf",_cursorTarget, 0, false, true, "",""];
    					s_player_combi set [count s_player_combi,_combi];
    				} else {
    					_combi = player addAction [format[localize "STR_EPOCH_ACTIONS_UNLOCK",_text], "\z\addons\dayz_code\actions\vault_combination_1.sqf",_cursorTarget, 0, false, true, "",""];
    					s_player_combi set [count s_player_combi,_combi];
    				};
    				s_player_unlockvault = 1;
    			} else {
    				if(_ownerID != dayz_combination && _ownerID != dayz_playerUID) then {
    					_combi = player addAction [localize "STR_EPOCH_ACTIONS_RECOMBO", "\z\addons\dayz_code\actions\vault_combination_1.sqf",_cursorTarget, 0, false, true, "",""];
    					s_player_combi set [count s_player_combi,_combi];
    					s_player_unlockvault = 1;
    				};
    			};
    		};
    	} else {
    		{player removeAction _x} count s_player_combi;s_player_combi = [];
    		s_player_unlockvault = -1;
    	};
    
    	//Allow owner to pack vault
    	if(_typeOfCursorTarget in DZE_UnLockedStorage && _ownerID != "0" && (player distance _cursorTarget < 3)) then {
    
    		if (s_player_lockvault < 0) then {
    			if(_ownerID == dayz_combination || _ownerID == dayz_playerUID) then {
    				s_player_lockvault = player addAction [format[localize "STR_EPOCH_ACTIONS_LOCK",_text], "\z\addons\dayz_code\actions\vault_lock.sqf",_cursorTarget, 0, false, true, "",""];
    			};
    		};
    		if (s_player_packvault < 0 && (_ownerID == dayz_combination || _ownerID == dayz_playerUID)) then {
    			s_player_packvault = player addAction [format["<t color='#ff0000'>%1</t>",(format[localize "STR_EPOCH_ACTIONS_PACK",_text])], "\z\addons\dayz_code\actions\vault_pack.sqf",_cursorTarget, 0, false, true, "",""];
    		};
    	} else {
    		player removeAction s_player_packvault;
    		s_player_packvault = -1;
    		player removeAction s_player_lockvault;
    		s_player_lockvault = -1;
    	};
    
    	
    
        //Player Deaths
    	if(_typeOfCursorTarget == "Info_Board_EP1") then {
    		if (s_player_information < 0) then {
    			s_player_information = player addAction [localize "STR_EPOCH_ACTIONS_MURDERS", "\z\addons\dayz_code\actions\list_playerDeaths.sqf",[], 7, false, true, "",""];
    		};
    	} else {
    		player removeAction s_player_information;
    		s_player_information = -1;
    	};
    	
    	//Fuel Pump
    	if(_typeOfCursorTarget in dayz_fuelpumparray) then {	
    		if (s_player_fuelauto < 0) then {
    			
    			// check if Generator_DZ is running within 30 meters
    			_findNearestGens = nearestObjects [player, ["Generator_DZ"], 30];
    			_findNearestGen = [];
    			{
    				if (alive _x && (_x getVariable ["GeneratorRunning", false])) then {
    					_findNearestGen set [(count _findNearestGen),_x];
    				};
    			} count _findNearestGens;
    			_IsNearRunningGen = count (_findNearestGen);
    			
    			// show that pump needs power if no generator nearby.
    			if(_IsNearRunningGen > 0) then {
    				s_player_fuelauto = player addAction [localize "STR_EPOCH_ACTIONS_FILLVEH", "\z\addons\dayz_code\actions\fill_nearestVehicle.sqf",objNull, 0, false, true, "",""];
    			} else {
    				s_player_fuelauto = player addAction [format["<t color='#ff0000'>%1</t>",localize "STR_EPOCH_ACTIONS_NEEDPOWER"], "",[], 0, false, true, "",""];
    			};
    		};
    	} else {
    		player removeAction s_player_fuelauto;
    		s_player_fuelauto = -1;
    	};
    
    	//Fuel Pump on truck
    	if(_typeOfCursorTarget in DZE_fueltruckarray && alive _cursorTarget) then {	
    		if (s_player_fuelauto2 < 0) then {
    			// show that fuel truck pump needs power.
    			if(isEngineOn _cursorTarget) then {
    				s_player_fuelauto2 = player addAction [localize "STR_EPOCH_ACTIONS_FILLVEH", "\z\addons\dayz_code\actions\fill_nearestVehicle.sqf",_cursorTarget, 0, false, true, "",""];
    			} else {
    				s_player_fuelauto2 = player addAction [format["<t color='#ff0000'>%1</t>",localize "STR_EPOCH_ACTIONS_NEEDPOWER"], "",[], 0, false, true, "",""];
    			};
    		};
    	} else {
    		player removeAction s_player_fuelauto2;
    		s_player_fuelauto2 = -1;
    	};
    
    	// inplace upgrade tool
    	if ((_cursorTarget isKindOf "ModularItems") || (_cursorTarget isKindOf "Land_DZE_WoodDoor_Base") || (_cursorTarget isKindOf "CinderWallDoor_DZ_Base")) then {
    		if ((s_player_lastTarget select 0) != _cursorTarget) then {
    			if (s_player_upgrade_build > 0) then {
    				player removeAction s_player_upgrade_build;
    				s_player_upgrade_build = -1;
    			};
    		};
    		if (s_player_upgrade_build < 0) then {
    			// s_player_lastTarget = _cursorTarget;
    			s_player_lastTarget set [0,_cursorTarget];
    			s_player_upgrade_build = player addAction [format[localize "STR_EPOCH_ACTIONS_UPGRADE",_text], "\z\addons\dayz_code\actions\player_upgrade.sqf",_cursorTarget, -1, false, true, "",""];
    		};
    	} else {
    		player removeAction s_player_upgrade_build;
    		s_player_upgrade_build = -1;
    	};
    	
    	// downgrade system
    	if((_isDestructable || _cursorTarget isKindOf "Land_DZE_WoodDoorLocked_Base" || _cursorTarget isKindOf "CinderWallDoorLocked_DZ_Base") && (DZE_Lock_Door == _ownerID)) then {
    		if ((s_player_lastTarget select 1) != _cursorTarget) then {
    			if (s_player_downgrade_build > 0) then {	
    				player removeAction s_player_downgrade_build;
    				s_player_downgrade_build = -1;
    			};
    		};
    
    		if (s_player_downgrade_build < 0) then {
    			s_player_lastTarget set [1,_cursorTarget];
    			s_player_downgrade_build = player addAction [format[localize "STR_EPOCH_ACTIONS_REMLOCK",_text], "\z\addons\dayz_code\actions\player_buildingDowngrade.sqf",_cursorTarget, -2, false, true, "",""];
    		};
    	} else {
    		player removeAction s_player_downgrade_build;
    		s_player_downgrade_build = -1;
    	};
    
    	// inplace maintenance tool
    	if((_cursorTarget isKindOf "ModularItems" || _cursorTarget isKindOf "DZE_Housebase" || _typeOfCursorTarget == "LightPole_DZ") && (damage _cursorTarget >= DZE_DamageBeforeMaint)) then {
    		if ((s_player_lastTarget select 2) != _cursorTarget) then {
    			if (s_player_maint_build > 0) then {	
    				player removeAction s_player_maint_build;
    				s_player_maint_build = -1;
    			};
    		};
    
    		if (s_player_maint_build < 0) then {
    			s_player_lastTarget set [2,_cursorTarget];
    			s_player_maint_build = player addAction [format[localize "STR_EPOCH_ACTIONS_MAINTAIN",_text], "\z\addons\dayz_code\actions\player_buildingMaint.sqf",_cursorTarget, -2, false, true, "",""];
    		};
    	} else {
    		player removeAction s_player_maint_build;
    		s_player_maint_build = -1;
    	};
    
    
    	//Start Generator
    	if(_cursorTarget isKindOf "Generator_DZ") then {
    		if (s_player_fillgen < 0) then {
    			
    			// check if not running 
    			if((_cursorTarget getVariable ["GeneratorRunning", false])) then {
    				s_player_fillgen = player addAction [localize "STR_EPOCH_ACTIONS_GENERATOR1", "\z\addons\dayz_code\actions\stopGenerator.sqf",_cursorTarget, 0, false, true, "",""];				
    			} else {
    			// check if not filled && player has jerry.
    				if((_cursorTarget getVariable ["GeneratorFilled", false])) then {
    					s_player_fillgen = player addAction [localize "STR_EPOCH_ACTIONS_GENERATOR2", "\z\addons\dayz_code\actions\fill_startGenerator.sqf",_cursorTarget, 0, false, true, "",""];
    				} else {
    					if("ItemJerrycan" in _magazinesPlayer) then {
    						s_player_fillgen = player addAction [localize "STR_EPOCH_ACTIONS_GENERATOR3", "\z\addons\dayz_code\actions\fill_startGenerator.sqf",_cursorTarget, 0, false, true, "",""];
    					};
    				};
    			};
    		};
    	} else {
    		player removeAction s_player_fillgen;
    		s_player_fillgen = -1;
    	};
    
    	//Towing with tow truck
    	/*
    	if(_typeOfCursorTarget == "TOW_DZE") then {
    		if (s_player_towing < 0) then {
    			if(!(_cursorTarget getVariable ["DZEinTow", false])) then {
    				s_player_towing = player addAction [localize "STR_EPOCH_ACTIONS_ATTACH" "\z\addons\dayz_code\actions\tow_AttachStraps.sqf",_cursorTarget, 0, false, true, "",""];				
    			} else {
    				s_player_towing = player addAction [localize "STR_EPOCH_ACTIONS_DETACH", "\z\addons\dayz_code\actions\tow_DetachStraps.sqf",_cursorTarget, 0, false, true, "",""];				
    			};
    		};
    	} else {
    		player removeAction s_player_towing;
    		s_player_towing = -1;
    	};
    	*/
    
    
        //Sleep
    	if(_isTent && _ownerID == dayz_characterID) then {
    		if ((s_player_sleep < 0) && (player distance _cursorTarget < 3)) then {
    			s_player_sleep = player addAction [localize "str_actions_self_sleep", "\z\addons\dayz_code\actions\player_sleep.sqf",_cursorTarget, 0, false, true, "",""];
    		};
    	} else {
    		player removeAction s_player_sleep;
    		s_player_sleep = -1;
    	};
    	
    	//Repairing Vehicles
    	if ((dayz_myCursorTarget != _cursorTarget) && _isVehicle && !_isMan && _hasToolbox && (damage _cursorTarget < 1) && !_isDisallowRepair) then {
    		if (s_player_repair_crtl < 0) then {
    			dayz_myCursorTarget = _cursorTarget;
    			_menu = dayz_myCursorTarget addAction [localize "STR_EPOCH_PLAYER_REPAIRV", "\z\addons\dayz_code\actions\repair_vehicle.sqf",_cursorTarget, 0, true, false, "",""];
    			_menu1 = dayz_myCursorTarget addAction [localize "STR_EPOCH_PLAYER_SALVAGEV", "\z\addons\dayz_code\actions\salvage_vehicle.sqf",_cursorTarget, 0, true, false, "",""];
    			s_player_repairActions set [count s_player_repairActions,_menu];
    			s_player_repairActions set [count s_player_repairActions,_menu1];
    			s_player_repair_crtl = 1;
    		} else {
    			{dayz_myCursorTarget removeAction _x} count s_player_repairActions;s_player_repairActions = [];
    			s_player_repair_crtl = -1;
    		};
    	};
    
    	// All Traders
    	if (_isMan && !_isPZombie && _traderType in serverTraders) then {
    	
    	//Pack Vehicles
    	if (_typeOfCursorTarget in spawnBikeVehicleArray && !(locked _cursorTarget) &&  (damage _cursorTarget < 1) &&   (_cursorTarget distance player <= 3)) then {
    		if (s_player_packvehicle < 0) then {
    			s_player_packvehicle = player addAction [("<t color=""#C86700"">" + ("Pack Vehicle") +"</t>"),"custom\EVD_pack.sqf",_cursorTarget,0,false,true,"",""];
    		};
    	} else {
    		player removeAction s_player_packvehicle;
    		s_player_packvehicle = -1;
    	};
    		
    		if (s_player_parts_crtl < 0) then {
    
    			// get humanity
    			_humanity = player getVariable ["humanity",0];
    			_traderMenu = call compile format["menu_%1;",_traderType];
    
    			// diag_log ("TRADER = " + str(_traderMenu));
    			
    			_low_high = "low";
    			_humanity_logic = false;
    			if((_traderMenu select 2) == "friendly") then {
    				_humanity_logic = (_humanity < -5000);
    			};
    			if((_traderMenu select 2) == "hostile") then {
    				_low_high = "high";
    				_humanity_logic = (_humanity > -5000);
    			};
    			if((_traderMenu select 2) == "hero") then {
    				_humanity_logic = (_humanity < 5000);
    			};
    			if(_humanity_logic) then {
    				_cancel = player addAction [format[localize "STR_EPOCH_ACTIONS_HUMANITY",_low_high], "\z\addons\dayz_code\actions\trade_cancel.sqf",["na"], 0, true, false, "",""];
    				s_player_parts set [count s_player_parts,_cancel];
    			} else {
    				
    				// Static Menu
    				{
    					//diag_log format["DEBUG TRADER: %1", _x];
    					_buy = player addAction [format["Trade %1 %2 for %3 %4",(_x select 3),(_x select 5),(_x select 2),(_x select 6)], "\z\addons\dayz_code\actions\trade_items_wo_db.sqf",[(_x select 0),(_x select 1),(_x select 2),(_x select 3),(_x select 4),(_x select 5),(_x select 6)], (_x select 7), true, true, "",""];
    					s_player_parts set [count s_player_parts,_buy];
    				
    				} count (_traderMenu select 1);
    				// Database menu
    				_buy = player addAction [localize "STR_EPOCH_PLAYER_289", "\z\addons\dayz_code\actions\show_dialog.sqf",(_traderMenu select 0), 999, true, false, "",""];
    				s_player_parts set [count s_player_parts,_buy];
    
    			};
    			s_player_parts_crtl = 1;
    			
    		};
    	} else {
    		{player removeAction _x} count s_player_parts;s_player_parts = [];
    		s_player_parts_crtl = -1;
    	};
    
    	
    	if(dayz_tameDogs) then {
    		
    		//Dog
    		if (_isDog && _isAlive && (_hasRawMeat) && _ownerID == "0" && player getVariable ["dogID", 0] == 0) then {
    			if (s_player_tamedog < 0) then {
    				s_player_tamedog = player addAction [localize "str_actions_tamedog", "\z\addons\dayz_code\actions\tame_dog.sqf", _cursorTarget, 1, false, true, "", ""];
    			};
    		} else {
    			player removeAction s_player_tamedog;
    			s_player_tamedog = -1;
    		};
    		if (_isDog && _ownerID == dayz_characterID && _isAlive) then {
    			_dogHandle = player getVariable ["dogID", 0];
    			if (s_player_feeddog < 0 && _hasRawMeat) then {
    				s_player_feeddog = player addAction [localize "str_actions_feeddog","\z\addons\dayz_code\actions\dog\feed.sqf",[_dogHandle,0], 0, false, true,"",""];
    			};
    			if (s_player_waterdog < 0 && "ItemWaterbottle" in _magazinesPlayer) then {
    				s_player_waterdog = player addAction [localize "str_actions_waterdog","\z\addons\dayz_code\actions\dog\feed.sqf",[_dogHandle,1], 0, false, true,"",""];
    			};
    			if (s_player_staydog < 0) then {
    				_lieDown = _dogHandle getFSMVariable "_actionLieDown";
    				if (_lieDown) then { _text = "str_actions_liedog"; } else { _text = "str_actions_sitdog"; };
    				s_player_staydog = player addAction [localize _text,"\z\addons\dayz_code\actions\dog\stay.sqf", _dogHandle, 5, false, true,"",""];
    			};
    			if (s_player_trackdog < 0) then {
    				s_player_trackdog = player addAction [localize "str_actions_trackdog","\z\addons\dayz_code\actions\dog\track.sqf", _dogHandle, 4, false, true,"",""];
    			};
    			if (s_player_barkdog < 0) then {
    				s_player_barkdog = player addAction [localize "str_actions_barkdog","\z\addons\dayz_code\actions\dog\speak.sqf", _cursorTarget, 3, false, true,"",""];
    			};
    			if (s_player_warndog < 0) then {
    				_warn = _dogHandle getFSMVariable "_watchDog";
    				if (_warn) then { _text = (localize "str_epoch_player_247"); _warn = false; } else { _text = (localize "str_epoch_player_248"); _warn = true; };
    				s_player_warndog = player addAction [format[localize "str_actions_warndog",_text],"\z\addons\dayz_code\actions\dog\warn.sqf",[_dogHandle, _warn], 2, false, true,"",""];		
    			};
    			if (s_player_followdog < 0) then {
    				s_player_followdog = player addAction [localize "str_actions_followdog","\z\addons\dayz_code\actions\dog\follow.sqf",[_dogHandle,true], 6, false, true,"",""];
    			};
    		} else {
    			player removeAction s_player_feeddog;
    			s_player_feeddog = -1;
    			player removeAction s_player_waterdog;
    			s_player_waterdog = -1;
    			player removeAction s_player_staydog;
    			s_player_staydog = -1;
    			player removeAction s_player_trackdog;
    			s_player_trackdog = -1;
    			player removeAction s_player_barkdog;
    			s_player_barkdog = -1;
    			player removeAction s_player_warndog;
    			s_player_warndog = -1;
    			player removeAction s_player_followdog;
    			s_player_followdog = -1;
    		};
    	};
    
    } else {
    	//Engineering
    	{dayz_myCursorTarget removeAction _x} count s_player_repairActions;s_player_repairActions = [];
    	s_player_repair_crtl = -1;
    
    	{player removeAction _x} count s_player_combi;s_player_combi = [];
    		
    	dayz_myCursorTarget = objNull;
    	s_player_lastTarget = [objNull,objNull,objNull,objNull,objNull];
    
    	{player removeAction _x} count s_player_parts;s_player_parts = [];
    	s_player_parts_crtl = -1;
    
    	{player removeAction _x} count s_player_lockunlock;s_player_lockunlock = [];
    	s_player_lockUnlock_crtl = -1;
    
    	player removeAction s_player_checkGear;
    	s_player_checkGear = -1;
    
    	player removeAction s_player_SurrenderedGear;
    	s_player_SurrenderedGear = -1;
    
    	//Others
    	player removeAction s_player_forceSave;
    	s_player_forceSave = -1;
    	player removeAction s_player_flipveh;
    	s_player_flipveh = -1;
    	player removeAction s_player_sleep;
    	s_player_sleep = -1;
    	player removeAction s_player_deleteBuild;
    	s_player_deleteBuild = -1;
    	player removeAction s_player_butcher;
    	s_player_butcher = -1;
    	player removeAction s_player_cook;
    	s_player_cook = -1;
    	player removeAction s_player_boil;
    	s_player_boil = -1;
    	player removeAction s_player_fireout;
    	s_player_fireout = -1;
    	player removeAction s_player_packtent;
    	s_player_packtent = -1;
    	player removeAction s_player_fillfuel;
    	s_player_fillfuel = -1;
    	player removeAction s_player_studybody;
    	s_player_studybody = -1;
    	//Dog
    	player removeAction s_player_tamedog;
    	s_player_tamedog = -1;
    	player removeAction s_player_feeddog;
    	s_player_feeddog = -1;
    	player removeAction s_player_waterdog;
    	s_player_waterdog = -1;
    	player removeAction s_player_staydog;
    	s_player_staydog = -1;
    	player removeAction s_player_trackdog;
    	s_player_trackdog = -1;
    	player removeAction s_player_barkdog;
    	s_player_barkdog = -1;
    	player removeAction s_player_warndog;
    	s_player_warndog = -1;
    	player removeAction s_player_followdog;
    	s_player_followdog = -1;
        
        // vault
    	player removeAction s_player_unlockvault;
    	s_player_unlockvault = -1;
    	player removeAction s_player_packvault;
    	s_player_packvault = -1;
    	player removeAction s_player_lockvault;
    	s_player_lockvault = -1;
    
    	player removeAction s_player_information;
    	s_player_information = -1;
    	player removeAction s_player_fillgen;
    	s_player_fillgen = -1;
    	player removeAction s_player_upgrade_build;
    	s_player_upgrade_build = -1;
    	player removeAction s_player_maint_build;
    	s_player_maint_build = -1;
    	player removeAction s_player_downgrade_build;
    	s_player_downgrade_build = -1;
    	player removeAction s_player_towing;
    	s_player_towing = -1;
    	player removeAction s_player_fuelauto;
    	s_player_fuelauto = -1;
    	player removeAction s_player_fuelauto2;
    	s_player_fuelauto2 = -1;
    };
    
    
    
    //Dog actions on player self
    _dogHandle = player getVariable ["dogID", 0];
    if (_dogHandle > 0) then {
    	_dog = _dogHandle getFSMVariable "_dog";
    	_ownerID = "0";
    	if (!isNull cursorTarget) then { _ownerID = cursorTarget getVariable ["CharacterID","0"]; };
    	if (_canDo && !_inVehicle && alive _dog && _ownerID != dayz_characterID) then {
    		if (s_player_movedog < 0) then {
    			s_player_movedog = player addAction [localize "str_actions_movedog", "\z\addons\dayz_code\actions\dog\move.sqf", player getVariable ["dogID", 0], 1, false, true, "", ""];
    		};
    		if (s_player_speeddog < 0) then {
    			_text = (localize "str_epoch_player_249");
    			_speed = 0;
    			if (_dog getVariable ["currentSpeed",1] == 0) then { _speed = 1; _text = (localize "str_epoch_player_250"); };
    			s_player_speeddog = player addAction [format[localize "str_actions_speeddog", _text], "\z\addons\dayz_code\actions\dog\speed.sqf",[player getVariable ["dogID", 0],_speed], 0, false, true, "", ""];
    		};
    		if (s_player_calldog < 0) then {
    			s_player_calldog = player addAction [localize "str_actions_calldog", "\z\addons\dayz_code\actions\dog\follow.sqf", [player getVariable ["dogID", 0], true], 2, false, true, "", ""];
    		};
    	};
    } else {
    	player removeAction s_player_movedog;		
    	s_player_movedog =		-1;
    	player removeAction s_player_speeddog;
    	s_player_speeddog =		-1;
    	player removeAction s_player_calldog;
    	s_player_calldog = 		-1;
    };
    
    // Drink Water
    private["_playerPos","_canDrink","_isPond","_isWell","_pondPos","_objectsWell","_objectsPond","_display"];
     
    _playerPos = getPosATL player;
    _canDrink = count nearestObjects [_playerPos, ["Land_pumpa","Land_water_tank"], 4] > 0;
    _isPond = false;
    _isWell = false;
    _pondPos = [];
    _objectsWell = [];
     
    if (!_canDrink) then {
        _objectsWell = nearestObjects [_playerPos, [], 4];
        {
            //Check for Well
            _isWell = ["_well",str(_x),false] call fnc_inString;
            if (_isWell) then {_canDrink = true};
        } forEach _objectsWell;
    };
     
    if (!_canDrink) then {
        _objectsPond = nearestObjects [_playerPos, [], 50];
        {
            //Check for pond
            _isPond = ["pond",str(_x),false] call fnc_inString;
            if (_isPond) then {
                _pondPos = (_x worldToModel _playerPos) select 2;
                if (_pondPos < 0) then {
                    _canDrink = true;
                };
            };
        } forEach _objectsPond;
    };
     
    if (_canDrink) then {
            if (s_player_drinkWater < 0) then {
                s_player_drinkWater = player addaction[("<t color=""#0000c7"">" + ("Drink water") +"</t>"),"scripts\drink_water.sqf"];
            };
        } else {
            player removeAction s_player_drinkWater;
            s_player_drinkWater = -1;
        };
     
    //-------------------------Drink Water End ----------------------------------------------
    
    
  15. @striker, i get this problem in the RPT. do you know this problem? i have snapbuilding v4 and precise base building updated

     1:15:52 "infiSTAR.de - AntiHack FULLY LOADED"
     1:15:53 "Res3tting B!S effects..."
     1:15:54 Error in expression <{
    _ownerID = format["00%1", _ownerID];!
    };
    if(_codeCount == 1) then {
    _ownerID =>
     1:15:54   Error position: <};
    if(_codeCount == 1) then {
    _ownerID =>
     1:15:54   Error Missing {
     1:15:54 File z\addons\dayz_server\system\server_monitor.sqf, line 205
     1:15:54 Error in expression <{
    _ownerID = format["00%1", _ownerID];!
    };
    if(_codeCount == 1) then {
    _ownerID =>
     1:15:54   Error position: <};
    if(_codeCount == 1) then {
    _ownerID =>
     1:15:54   Error Missing {
     1:15:54 File z\addons\dayz_server\system\server_monitor.sqf, line 205
    

    this is my server _monitor

    private ["_nul","_result","_pos","_wsDone","_dir","_isOK","_countr","_objWpnTypes","_objWpnQty","_dam","_selection","_totalvehicles","_object","_idKey","_type","_ownerID","_worldspace","_intentory","_hitPoints","_fuel","_damage","_key","_vehLimit","_hiveResponse","_objectCount","_codeCount","_data","_status","_val","_traderid","_retrader","_traderData","_id","_lockable","_debugMarkerPosition","_vehicle_0","_bQty","_vQty","_BuildingQueue","_objectQueue","_superkey","_shutdown","_res","_hiveLoaded"];
    
    dayz_versionNo = 		getText(configFile >> "CfgMods" >> "DayZ" >> "version");
    dayz_hiveVersionNo = 	getNumber(configFile >> "CfgMods" >> "DayZ" >> "hiveVersion");
    
    _hiveLoaded = false;
    
    waitUntil{initialized}; //means all the functions are now defined
    
    diag_log "HIVE: Starting";
    
    waituntil{isNil "sm_done"}; // prevent server_monitor be called twice (bug during login of the first player)
    	
    // Custom Configs
    if(isnil "MaxVehicleLimit") then {
    	MaxVehicleLimit = 50;
    };
    
    if(isnil "MaxDynamicDebris") then {
    	MaxDynamicDebris = 100;
    };
    if(isnil "MaxAmmoBoxes") then {
    	MaxAmmoBoxes = 3;
    };
    if(isnil "MaxMineVeins") then {
    	MaxMineVeins = 50;
    };
    // Custon Configs End
    
    if (isServer && isNil "sm_done") then {
    
    	serverVehicleCounter = [];
    	_hiveResponse = [];
    
    	for "_i" from 1 to 5 do {
    		diag_log "HIVE: trying to get objects";
    		_key = format["CHILD:302:%1:", dayZ_instance];
    		_hiveResponse = _key call server_hiveReadWrite;  
    		if ((((isnil "_hiveResponse") || {(typeName _hiveResponse != "ARRAY")}) || {((typeName (_hiveResponse select 1)) != "SCALAR")})) then {
    			if ((_hiveResponse select 1) == "Instance already initialized") then {
    				_superkey = profileNamespace getVariable "SUPERKEY";
    				_shutdown = format["CHILD:400:%1:", _superkey];
    				_res = _shutdown call server_hiveReadWrite;
    				diag_log ("HIVE: attempt to kill.. HiveExt response:"+str(_res));
    			} else {
    				diag_log ("HIVE: connection problem... HiveExt response:"+str(_hiveResponse));
    			
    			};
    			_hiveResponse = ["",0];
    		} 
    		else {
    			diag_log ("HIVE: found "+str(_hiveResponse select 1)+" objects" );
    			_i = 99; // break
    		};
    	};
    	
    	_BuildingQueue = [];
    	_objectQueue = [];
    	
    	if ((_hiveResponse select 0) == "ObjectStreamStart") then {
    	
    		// save superkey
    		profileNamespace setVariable ["SUPERKEY",(_hiveResponse select 2)];
    		
    		_hiveLoaded = true;
    	
    		diag_log ("HIVE: Commence Object Streaming...");
    		_key = format["CHILD:302:%1:", dayZ_instance];
    		_objectCount = _hiveResponse select 1;
    		_bQty = 0;
    		_vQty = 0;
    		for "_i" from 1 to _objectCount do {
    			_hiveResponse = _key call server_hiveReadWriteLarge;
    			//diag_log (format["HIVE dbg %1 %2", typeName _hiveResponse, _hiveResponse]);
    			if ((_hiveResponse select 2) isKindOf "ModularItems") then {
    				_BuildingQueue set [_bQty,_hiveResponse];
    				_bQty = _bQty + 1;
    			} else {
    				_objectQueue set [_vQty,_hiveResponse];
    				_vQty = _vQty + 1;
    			};
    		};
    		diag_log ("HIVE: got " + str(_bQty) + " Epoch Objects and " + str(_vQty) + " Vehicles");
    	};
    	
    	// # NOW SPAWN OBJECTS #
    	_totalvehicles = 0;
    	{
    		_idKey = 		_x select 1;
    		_type =			_x select 2;
    		_ownerID = 		_x select 3;
    
    		_worldspace = 	_x select 4;
    		_intentory =	_x select 5;
    		_hitPoints =	_x select 6;
    		_fuel =			_x select 7;
    		_damage = 		_x select 8;
    		
    		_dir = 0;
    		_pos = [0,0,0];
    		_wsDone = false;
    		if (count _worldspace >= 2) then
    		{
    			if(count _worldspace == 3) then{
    				_vector = _worldspace select 2;
    				if(typename _vector == "ARRAY")then{
    					if(count _vector == 2)then{
    						if(((count (_vector select 0)) == 3) && ((count (_vector select 1)) == 3))then{
    							_vecExists = true;
    						};
    					};
    
    				};
    
    			};
    			_dir = _worldspace select 0;
    			if (count (_worldspace select 1) == 3) then {
    				_pos = _worldspace select 1;
    				_wsDone = true;
    			}
    		};
    		
    		if (!_wsDone) then {
    			if (count _worldspace >= 1) then { _dir = _worldspace select 0; };
    			_pos = [getMarkerPos "center",0,4000,10,0,2000,0] call BIS_fnc_findSafePos;
    			if (count _pos < 3) then { _pos = [_pos select 0,_pos select 1,0]; };
    			diag_log ("MOVED OBJ: " + str(_idKey) + " of class " + _type + " to pos: " + str(_pos));
    		};
    		_vector = [[0,0,0],[0,0,0]];
    _vecExists = false;
    _ownerPUID = "0";   
    if (count _worldspace >= 3) then{
        if(count _worldspace == 3) then{
                if(typename (_worldspace select 2) == "STRING")then{
                    _ownerPUID = _worldspace select 2;
                }else{
                     if(typename (_worldspace select 2) == "ARRAY")then{
                        _vector = _worldspace select 2;
                        if(count _vector == 2)then{
                            if(((count (_vector select 0)) == 3) && ((count (_vector select 1)) == 3))then{
                                _vecExists = true;
                            };
                        };
                    };                  
                };
    
        }else{
            //Was not 3 elements, so check if 4 or more
            if(count _worldspace == 4) then{
                if(typename (_worldspace select 3) == "STRING")then{
                    _ownerPUID = _worldspace select 3;
                }else{
                    if(typename (_worldspace select 2) == "STRING")then{
                        _ownerPUID = _worldspace select 2;
                    };
                };
    
    
                if(typename (_worldspace select 2) == "ARRAY")then{
                    _vector = _worldspace select 2;
                    if(count _vector == 2)then{
                        if(((count (_vector select 0)) == 3) && ((count (_vector select 1)) == 3))then{
                            _vecExists = true;
                        };
                    };
                }else{
                    if(typename (_worldspace select 3) == "ARRAY")then{
                        _vector = _worldspace select 3;
                        if(count _vector == 2)then{
                            if(((count (_vector select 0)) == 3) && ((count (_vector select 1)) == 3))then{
                                _vecExists = true;
                            };
                        };
                    };
                };
    
            }else{
                //More than 3 or 4 elements found
                //Might add a search for the vector, ownerPUID will equal 0
            };
        };
    }; 
    
    		if (_damage < 1) then {
    			//diag_log format["OBJ: %1 - %2", _idKey,_type];
    			
    			//Create it
    			_object = createVehicle [_type, _pos, [], 0, "CAN_COLLIDE"];
    			_object setVariable ["lastUpdate",time];
    			_object setVariable ["ObjectID", _idKey, true];
    			_object setVariable ["ownerPUID", _ownerPUID, true];
    			_lockable = 0;
    			if(isNumber (configFile >> "CfgVehicles" >> _type >> "lockable")) then {
    				_lockable = getNumber(configFile >> "CfgVehicles" >> _type >> "lockable");
    			};
    
    			// fix for leading zero issues on safe codes after restart
    			if (_lockable == 4) then {
    				_codeCount = (count (toArray _ownerID));!
    				if(_codeCount == 3) then {
    					_ownerID = format["0%1", _ownerID];
    				};
    				if(_codeCount == 2) then {
    					_ownerID = format["00%1", _ownerID];!
    				};
    				if(_codeCount == 1) then {
    					_ownerID = format["000%1", _ownerID];
    				};
    			};
    
    			if (_lockable == 3) then {
    				_codeCount = (count (toArray _ownerID));
    				if(_codeCount == 2) then {
    					_ownerID = format["0%1", _ownerID];
    				};
    				if(_codeCount == 1) then {
    					_ownerID = format["00%1", _ownerID];
    				};
    			};
    
    			_object setVariable ["CharacterID", _ownerID, true];
    			
    			clearWeaponCargoGlobal  _object;
    			clearMagazineCargoGlobal  _object;
    			// _object setVehicleAmmo DZE_vehicleAmmo;
    			
    			_object setdir _dir;
    			if(_vecExists)then{
    			_object setVectorDirAndUp _vector;
    					}; 
    			_object setposATL _pos;
    			_object setDamage _damage;
    			
    			if ((typeOf _object) in dayz_allowedObjects) then {
    				_object setVariable["memDir",_dir,true]
    				if (DZE_GodModeBase) then {
    					_object addEventHandler ["HandleDamage", {false}];
    				} else {
    					_object addMPEventHandler ["MPKilled",{_this call object_handleServerKilled;}];
    				};
    				// Test disabling simulation server side on buildables only.
    				_object enableSimulation false;
    				// used for inplace upgrades && lock/unlock of safe
    				_object setVariable ["OEMPos", _pos, true];
    				
    			};
    
    			if (count _intentory > 0) then {
    				if (_type in DZE_LockedStorage) then {
    					// Fill variables with loot
    					_object setVariable ["WeaponCargo", (_intentory select 0),true];
    					_object setVariable ["MagazineCargo", (_intentory select 1),true];
    					_object setVariable ["BackpackCargo", (_intentory select 2),true];
    				} else {
    
    					//Add weapons
    					_objWpnTypes = (_intentory select 0) select 0;
    					_objWpnQty = (_intentory select 0) select 1;
    					_countr = 0;					
    					{
    						if(_x in (DZE_REPLACE_WEAPONS select 0)) then {
    							_x = (DZE_REPLACE_WEAPONS select 1) select ((DZE_REPLACE_WEAPONS select 0) find _x);
    						};
    						_isOK = 	isClass(configFile >> "CfgWeapons" >> _x);
    						if (_isOK) then {
    							_object addWeaponCargoGlobal [_x,(_objWpnQty select _countr)];
    						};
    						_countr = _countr + 1;
    					} count _objWpnTypes; 
    				
    					//Add Magazines
    					_objWpnTypes = (_intentory select 1) select 0;
    					_objWpnQty = (_intentory select 1) select 1;
    					_countr = 0;
    					{
    						if (_x == "BoltSteel") then { _x = "WoodenArrow" }; // Convert BoltSteel to WoodenArrow
    						if (_x == "ItemTent") then { _x = "ItemTentOld" };
    						_isOK = 	isClass(configFile >> "CfgMagazines" >> _x);
    						if (_isOK) then {
    							_object addMagazineCargoGlobal [_x,(_objWpnQty select _countr)];
    						};
    						_countr = _countr + 1;
    					} count _objWpnTypes;
    
    					//Add Backpacks
    					_objWpnTypes = (_intentory select 2) select 0;
    					_objWpnQty = (_intentory select 2) select 1;
    					_countr = 0;
    					{
    						_isOK = 	isClass(configFile >> "CfgVehicles" >> _x);
    						if (_isOK) then {
    							_object addBackpackCargoGlobal [_x,(_objWpnQty select _countr)];
    						};
    						_countr = _countr + 1;
    					} count _objWpnTypes;
    				};
    			};	
    			
    			if (_object isKindOf "AllVehicles") then {
    				{
    					_selection = _x select 0;
    					_dam = _x select 1;
    					if (_selection in dayZ_explosiveParts && _dam > 0.8) then {_dam = 0.8};
    					[_object,_selection,_dam] call object_setFixServer;
    				} count _hitpoints;
    
    				_object setFuel _fuel;
    
    				if (!((typeOf _object) in dayz_allowedObjects)) then {
    					
    					//_object setvelocity [0,0,1];
    					_object call fnc_veh_ResetEH;		
    					
    					if(_ownerID != "0" && !(_object isKindOf "Bicycle")) then {
    						_object setvehiclelock "locked";
    					};
    					
    					_totalvehicles = _totalvehicles + 1;
    
    					// total each vehicle
    					serverVehicleCounter set [count serverVehicleCounter,_type];
    				};
    			};
    
    			//Monitor the object
    			PVDZE_serverObjectMonitor set [count PVDZE_serverObjectMonitor,_object];
    		};
    	} count (_BuildingQueue + _objectQueue);
    	// # END SPAWN OBJECTS #
    
    	// preload server traders menu data into cache
    	if !(DZE_ConfigTrader) then {
    		{
    			// get tids
    			_traderData = call compile format["menu_%1;",_x];
    			if(!isNil "_traderData") then {
    				{
    					_traderid = _x select 1;
    
    					_retrader = [];
    
    					_key = format["CHILD:399:%1:",_traderid];
    					_data = "HiveEXT" callExtension _key;
    
    					//diag_log "HIVE: Request sent";
    			
    					//Process result
    					_result = call compile format ["%1",_data];
    					_status = _result select 0;
    			
    					if (_status == "ObjectStreamStart") then {
    						_val = _result select 1;
    						//Stream Objects
    						//diag_log ("HIVE: Commence Menu Streaming...");
    						call compile format["ServerTcache_%1 = [];",_traderid];
    						for "_i" from 1 to _val do {
    							_data = "HiveEXT" callExtension _key;
    							_result = call compile format ["%1",_data];
    							call compile format["ServerTcache_%1 set [count ServerTcache_%1,%2]",_traderid,_result];
    							_retrader set [count _retrader,_result];
    						};
    						//diag_log ("HIVE: Streamed " + str(_val) + " objects");
    					};
    
    				} forEach (_traderData select 0);
    			};
    		} forEach serverTraders;
    	};
    
    	if (_hiveLoaded) then {
    		//  spawn_vehicles
    		_vehLimit = MaxVehicleLimit - _totalvehicles;
    		if(_vehLimit > 0) then {
    			diag_log ("HIVE: Spawning # of Vehicles: " + str(_vehLimit));
    			for "_x" from 1 to _vehLimit do {
    				[] spawn spawn_vehicles;
    			};
    		} else {
    			diag_log "HIVE: Vehicle Spawn limit reached!";
    		};
    	};
    	
    	//  spawn_roadblocks
    	diag_log ("HIVE: Spawning # of Debris: " + str(MaxDynamicDebris));
    	for "_x" from 1 to MaxDynamicDebris do {
    		[] spawn spawn_roadblocks;
    	};
    	//  spawn_ammosupply at server start 1% of roadblocks
    	diag_log ("HIVE: Spawning # of Ammo Boxes: " + str(MaxAmmoBoxes));
    	for "_x" from 1 to MaxAmmoBoxes do {
    		[] spawn spawn_ammosupply;
    	};
    	// call spawning mining veins
    	diag_log ("HIVE: Spawning # of Veins: " + str(MaxMineVeins));
    	for "_x" from 1 to MaxMineVeins do {
    		[] spawn spawn_mineveins;
    	};
    
    	if(isnil "dayz_MapArea") then {
    		dayz_MapArea = 10000;
    	};
    	if(isnil "HeliCrashArea") then {
    		HeliCrashArea = dayz_MapArea / 2;
    	};
    	if(isnil "OldHeliCrash") then {
    		OldHeliCrash = false;
    	};
    
    	// [_guaranteedLoot, _randomizedLoot, _frequency, _variance, _spawnChance, _spawnMarker, _spawnRadius, _spawnFire, _fadeFire]
    	if(OldHeliCrash) then {
    		_nul = [3, 4, (50 * 60), (15 * 60), 0.75, 'center', HeliCrashArea, true, false] spawn server_spawnCrashSite;
    	};
    	if (isDedicated) then {
    		// Epoch Events
    		_id = [] spawn server_spawnEvents;
    		// server cleanup
    		[] spawn {
    			private ["_id"];
    			sleep 200; //Sleep Lootcleanup, don't need directly cleanup on startup + fix some performance issues on serverstart
    			waitUntil {!isNil "server_spawnCleanAnimals"};
    			_id = [] execFSM "\z\addons\dayz_server\system\server_cleanup.fsm";
    		};
    
    		// spawn debug box
    		_debugMarkerPosition = getMarkerPos "respawn_west";
    		_debugMarkerPosition = [(_debugMarkerPosition select 0),(_debugMarkerPosition select 1),1];
    		_vehicle_0 = createVehicle ["DebugBox_DZ", _debugMarkerPosition, [], 0, "CAN_COLLIDE"];
    		_vehicle_0 setPos _debugMarkerPosition;
    		_vehicle_0 setVariable ["ObjectID","1",true];
    
    		// max number of spawn markers
    		if(isnil "spawnMarkerCount") then {
    			spawnMarkerCount = 10;
    		};
    		actualSpawnMarkerCount = 0;
    		// count valid spawn marker positions
    		for "_i" from 0 to spawnMarkerCount do {
    			if (!([(getMarkerPos format["spawn%1", _i]), [0,0,0]] call BIS_fnc_areEqual)) then {
    				actualSpawnMarkerCount = actualSpawnMarkerCount + 1;
    			} else {
    				// exit since we did not find any further markers
    				_i = spawnMarkerCount + 99;
    			};
    			
    		};
    		diag_log format["Total Number of spawn locations %1", actualSpawnMarkerCount];
    		
    		endLoadingScreen;
    	};
    
    	[] ExecVM "\z\addons\dayz_server\WAI\init.sqf";
    	allowConnection = true;	
    	sm_done = true;
    	publicVariable "sm_done";
    };
    
    

    i`m kindof stuck at my server because of this error. i tried to read all the comments. didnt helped much since i`m the only 1 with this error.

×
×
  • Create New...