Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
_config = (configFile >> "CfgSurvival" >> "Inventory" >> "Default");
_mags = getArray (_config >> "magazines");
_wpns = getArray (_config >> "weapons");
_bcpk = getText (_config >> "backpack");
_randomSpot = true;
_key = format["CHILD:203:%1:%2:%3:",_charID,[_wpns,_mags],[_bcpk,[],[]]];
_key call server_hiveWrite;
_randomSpot = true;
_inventory = [["ItemFlashlight","ItemMap","ItemGPS","NVGoggles","AK_74"],["ItemBandage","ItemPainkiller","30Rnd_545x39_AK"]];
_backpack = ["DZ_ALICE_Pack_EP1",[],[]];
_key = format["CHILD:203:%1:%2:%3:",_charID,_inventory,_backpack];
_key call server_hiveWrite;
Here is a working example for modifying the initial loadout and backpack for all players.
1. Unpack @Server_DayZ.../AddOns/dayz_server.pbo
2. Open compile/server_playerLogin.sqf with an text editor.
3. Replace following lines (84-90)
withCode:_config = (configFile >> "CfgSurvival" >> "Inventory" >> "Default"); _mags = getArray (_config >> "magazines"); _wpns = getArray (_config >> "weapons"); _bcpk = getText (_config >> "backpack"); _randomSpot = true; _key = format["CHILD:203:%1:%2:%3:",_charID,[_wpns,_mags],[_bcpk,[],[]]]; _key call server_hiveWrite;
4. Modify _inventory and _backpack to your needs. The format is the same as in the database fields of character_data.Code:_randomSpot = true; _inventory = [["ItemFlashlight","ItemMap","ItemGPS","NVGoggles","AK_74"],["ItemBandage","ItemPainkiller","30Rnd_545x39_AK"]]; _backpack = ["DZ_ALICE_Pack_EP1",[],[]]; _key = format["CHILD:203:%1:%2:%3:",_charID,_inventory,_backpack]; _key call server_hiveWrite;
5. Save the file and pack the folder back to dayz_server.pbo.
Notice: On my test server my character's backpack was still displayed as Patrol Pack. I had to drop it on the ground to change it into the ALICE Pack. This is probably a bug in the client code of DayZ (I used Lingor Skaro).
---
I also implementing the feature that I suggested in my previous post (use default database values). But it requires a change in the HiveExt.dll. I will open a pull request as soon as I am able to compile and test my modified HiveExt.dll.
This only broke my server. do you delete everything in the first box, or just paste over from "_randomSpot=true" down? i tried both, and server would not start. Now i'm running a namalsk server, and this was in my @bliss --> addons folder. used nfo editor to edit the file and pbo manager to unpack/pack.
No.Any other way to make custom starter gear?
Is it still in development? Would be very nice to have it as feature?
Custom Loadouts are being worked on, i should have something out by the weekend.
That's the only thing stopping me from switching to this.. Would also like to know if Custom Loadouts are still being worked on?
Same here, been running nothing but DayzCC for almost a year, though now that the development stopped it's time to move on. Recently I've had some issues that may or may not have been caused by bugs in dayzcc, but I'm hoping that this will be more stable granted it's simple.Aye!! Looking to move hosts tomorrow and I need a new/better Hive as DayZCC is not pleasing me currently. this is also one thing stopping me form moving over
Here is a working example for modifying the initial loadout and backpack for all players.
1. Unpack @Server_DayZ.../AddOns/dayz_server.pbo
2. Open compile/server_playerLogin.sqf with an text editor.
3. Replace following lines (84-90)
withCode:_config = (configFile >> "CfgSurvival" >> "Inventory" >> "Default"); _mags = getArray (_config >> "magazines"); _wpns = getArray (_config >> "weapons"); _bcpk = getText (_config >> "backpack"); _randomSpot = true; _key = format["CHILD:203:%1:%2:%3:",_charID,[_wpns,_mags],[_bcpk,[],[]]]; _key call server_hiveWrite;
4. Modify _inventory and _backpack to your needs. The format is the same as in the database fields of character_data.Code:_randomSpot = true; _inventory = [["ItemFlashlight","ItemMap","ItemGPS","NVGoggles","AK_74"],["ItemBandage","ItemPainkiller","30Rnd_545x39_AK"]]; _backpack = ["DZ_ALICE_Pack_EP1",[],[]]; _key = format["CHILD:203:%1:%2:%3:",_charID,_inventory,_backpack]; _key call server_hiveWrite;
5. Save the file and pack the folder back to dayz_server.pbo.
Notice: On my test server my character's backpack was still displayed as Patrol Pack. I had to drop it on the ground to change it into the ALICE Pack. This is probably a bug in the client code of DayZ (I used Lingor Skaro).
---
I also implementing the feature that I suggested in my previous post (use default database values). But it requires a change in the HiveExt.dll. I will open a pull request as soon as I am able to compile and test my modified HiveExt.dll.
if(_playerID == ">>>YOURPLAYERIDHERE<<<") then {
_randomSpot = true;
_inventory = [["ItemFlashlight","ItemMap","ItemGPS","NVGoggles","AK_74"],["ItemBandage","ItemPainkiller","30Rnd_545x39_AK"]];
_backpack = ["DZ_ALICE_Pack_EP1",[],[]];
_key = format["CHILD:203:%1:%2:%3:",_charID,_inventory,_backpack];
_key call server_hiveWrite;
} else {
//Record initial inventory
_config = (configFile >> "CfgSurvival" >> "Inventory" >> "Default");
_mags = getArray (_config >> "magazines");
_wpns = getArray (_config >> "weapons");
_bcpk = getText (_config >> "backpack");
_randomSpot = true;
//Wait for HIVE to be free
_key = format["CHILD:203:%1:%2:%3:",_charID,[_wpns,_mags],[_bcpk,[],[]]];
_key call server_hiveWrite;
};