[Tutorial] Editing Heli Crashes - 1.7.6.1 (Simplified)

This keeps spawning stuff not in the custom loot entry that I haven't seen before... Mk17? and another that takes NATO rounds - Where do I remove these?

Also, for some reason it seems to have 3+ ammo crates at every heli :<
 
ive been having trouble with mine , ever since i followed this tutorial , heli crash sites dont show up , ive done a complealt step by step and gonna test again if not can someone help me please
 
19:07:54 Error in expression <_EP1","weapon"], ["M107_DZ","weapon"], [“BAF_AS50_scoped”,”weapon”], ["b>
19:07:54 Error position: <“BAF_AS50_scoped”,”weapon”], ["b>
19:07:54 Error Invalid number in expression
19:07:54 File z\addons\dayz_server\compile\server_spawnCrashSite.sqf, line 87
19:07:54 Error in expression <_EP1","weapon"], ["M107_DZ","weapon"], [“BAF_AS50_scoped”,”weapon”], ["b>
19:07:54 Error position: <“BAF_AS50_scoped”,”weapon”], ["b>
19:07:54 Error Invalid number in expression
19:07:54 File z\addons\dayz_server\compile\server_spawnCrashSite.sqf, line 87

_itemTypes = [["FN_FAL","weapon"], ["M14_EP1","weapon"], ["FN_FAL_ANPVS4","weapon"], ["Mk_48_DZ","weapon"], ["M249_DZ","weapon"], ["BAF_L85A2_RIS_SUSAT","weapon"], ["DMR","weapon"], ["G36C","weapon"], ["G36C_camo","weapon"], ["G36A_camo","weapon"], ["G36K_camo","weapon"], ["", "military"], ["MedBox0", "object"], ["AmmoBoxSmall_556", "object"], ["AmmoBoxSmall_762", "object"], ["Skin_Camo1_DZ", "magazine"], ["Skin_Soldier1_DZ", "magazine"], ["Skin_Sniper1_DZ", "magazine"], ["SVD_CAMO","weapon"], ["M24","weapon"], ["M4A1_AIM_SD_camo","weapon"], ["Sa58V_CCO_EP1","weapon"], ["Sa58V_RCO_EP1","weapon"], ["M4SPR","weapon"], ["M60A4_EP1", "weapon"], ["MG36", "weapon"], ["M40A3","weapon"], ["M240_DZ","weapon"], ["M4A1_HWS_GL_SD_Camo", "weapon"], ["M4A3_CCO_EP1","weapon"], ["M107_DZ","weapon"], [“BAF_AS50_scoped”,”weapon”], ["bizon_silenced",”weapon”]];
_itemChance = [0.1, 0.06, 0.01, 0.03, 0.05, 0.07, 0.04, 0.04, 0.03, 0.04, 0.02, 0.7, 0.15, 0.25, 0.25, 0.04, 0.01, 0.02, 0.04, 0.05, 0.06, 0.06, 0.06, 0.05, 0.01, 0.06, 0.04, 0.01, 0.04, 0.05, 0.02, 0.01, 0.12];


Any help here guys?
 
For the sake of knowing what you are customizing, here is the default loot table I found in dayz_code\config.cpp
Code:
          class HeliCrash: Default {
zombieChance = 0.4;
maxRoaming = 2;
zombieClass[] = {"z_soldier_pilot"};
lootChance = 0.5;
lootPos[] = {};
itemType[] ={
{"FN_FAL","weapon"},
{"bizon_silenced","weapon"},
{"M14_EP1","weapon"},
{"FN_FAL_ANPVS4","weapon"},
{"M107_DZ","weapon"},
{"BAF_AS50_scoped","weapon"},
{"Mk_48_DZ","weapon"},
{"M249_DZ","weapon"},
{"BAF_L85A2_RIS_SUSAT","weapon"},
{"DMR","weapon"},
{"","military"},
{"","medical"},
{"MedBox0","object"},
{"NVGoggles","weapon"},
{"AmmoBoxSmall_556","object"},
{"AmmoBoxSmall_762","object"},
{"Skin_Camo1_DZ","magazine"},
{"Skin_Sniper1_DZ","magazine"},
{"G36C","weapon"},
{"G36C_camo","weapon"},
//{"G36_C_SD_camo","weapon"},
{"G36A_camo","weapon"},
{"G36K_camo","weapon"},
{"100Rnd_762x54_PK","magazine"}
};
itemChance[] ={
0.02,//{"FN_FAL","weapon"},
0.05,//{"bizon_silenced","weapon"},
0.05,//{"M14_EP1","weapon"},
0.02,//{"FN_FAL_ANPVS4","weapon"},
0.02,//{"m107","weapon"},
0.01,//{"BAF_AS50_scoped","weapon"},
0.03,//{"Mk_48_DZ","weapon"},
0.05,//{"M249_DZ","weapon"},
0.01,//{"BAF_L85A2_RIS_SUSAT","weapon"},
0.06,//{"DMR","weapon"},
1,//{"","military"},
0.5,//{"","medical"},
0.1,//{"MedBox0","object"},
0.02,//{"NVGoggles","weapon"}
0.1,//AmmoBoxSmall_556
0.1,//AmmoBoxSmall_762
0.08,//Skin_Camo1_DZ
0.05,//Skin_Sniper1_DZ
0.03,//G36C"
0.02,//G36C_camo
//0.01,//G36_C_SD_camo
0.02,//G36A_camo
0.02,//G36K_camo
0.01//("100Rnd_762x54_PK","magazine"}
};
};
class Military: Default {
zombieChance = 0.3;
maxRoaming = 6;
zombieClass[] = {"z_soldier","z_soldier_heavy","z_policeman"};
lootChance = 0.4;
lootPos[] = {};
itemType[] ={
{"M9","weapon"},
{"M16A2","weapon"},
{"M16A2GL","weapon"},
{"M9SD","weapon"},
{"AK_74","weapon"},
{"M4A1_Aim","weapon"},
{"AKS_74_kobra","weapon"},
{"AKS_74_U","weapon"},
{"AK_47_M","weapon"},
{"M24","weapon"},
{"M1014","weapon"},
{"DMR","weapon"},
{"M4A1","weapon"},
{"M14_EP1","weapon"},
{"UZI_EP1","weapon"},
{"Remington870_lamp","weapon"},
{"glock17_EP1","weapon"},
{"MP5A5","weapon"},
{"MP5SD","weapon"},
{"M4A3_CCO_EP1","weapon"},
{"Binocular","weapon"},
{"ItemFlashlightRed","military"},
{"ItemKnife","military"},
{"ItemGPS","weapon"},
{"ItemMap","military"},
 
{"DZ_ALICE_Pack_EP1","object"}, // 16
{"DZ_TK_Assault_Pack_EP1","object"}, // 16
{"DZ_British_ACU","object"}, // 18
{"DZ_CivilBackpack_EP1","object"}, // 24
{"DZ_Backpack_EP1","object"}, // 24
 
//Normal
{"","medical"},
{"","generic"},
{"","military"},
//{"Body","object"},
{"ItemEtool","weapon"},
{"ItemSandbag","magazine"},
{"Sa58P_EP1","weapon"},
{"Sa58V_EP1","weapon"},
{"BAF_L85A2_RIS_Holo","weapon"}
};
itemChance[] ={
0.05,
0.05,
0.01,
0.02,
0.15,
0.01,
0.08,
0.05,
0.05,
0.01,
0.10,
0.01,
0.02,
0.01,
0.05,
0.08,
0.10,
0.04,
0.02,
0.01,
0.06,
0.10,
0.10,
0.01,
0.05,
//Bags
0.08, //16
0.08, //16
0.06, //18
0.01, //24
0.01, //DZ_Backpack_EP1 24
0.10, 
1.00,
2.50,
//0.20,
0.05,
0.02,
0.03,
0.03,
0.01
};
};
class MilitarySpecial: Default {
zombieChance = 0.4;
minRoaming = 2;
maxRoaming = 6;
zombieClass[] = {"z_soldier_heavy"};
lootChance = 0.4;
lootPos[] = {};
itemType[] ={
{"M16A2","weapon"},
{"M16A2GL","weapon"},
{"M249_DZ","weapon"},
{"M9SD","weapon"},
//{"M136","weapon"},
{"AK_74","weapon"},
{"M4A1_Aim","weapon"},
{"AKS_74_kobra","weapon"},
{"AKS_74_U","weapon"},
{"AK_47_M","weapon"},
{"M24","weapon"},
{"SVD_CAMO","weapon"},
{"M1014","weapon"},
{"M107_DZ","weapon"},
{"DMR","weapon"},
{"M4A1","weapon"},
{"M14_EP1","weapon"},
{"UZI_EP1","weapon"},
{"Remington870_lamp","weapon"},
{"glock17_EP1","weapon"},
{"M240_DZ","weapon"},
{"M4A1_AIM_SD_camo","weapon"},
{"M16A4_ACG","weapon"},
{"M4A1_HWS_GL_camo","weapon"},
{"Mk_48_DZ","weapon"},
{"M4A3_CCO_EP1","weapon"},
//Ammo
{"AmmoBoxSmall_556","object"},
{"AmmoBoxSmall_762","object"},
 
//{"NVGoggles","weapon"},
{"Binocular","weapon"},
{"ItemFlashlightRed","military"},
{"ItemKnife","military"},
{"ItemGPS","weapon"},
{"ItemMap","military"},
{"Binocular_Vector","military"},
 
{"DZ_ALICE_Pack_EP1","object"}, // 16
{"DZ_TK_Assault_Pack_EP1","object"}, // 16
{"DZ_British_ACU","object"}, // 18
{"DZ_CivilBackpack_EP1","object"}, // 24
{"DZ_Backpack_EP1","object"}, // 24
 
{"","medical"},
{"","generic"},
{"","military"},
//{"Body","object"},
{"PipeBomb","magazine"},
{"Sa58V_RCO_EP1","weapon"},
{"Sa58V_CCO_EP1","weapon"},
//{"G36_C_SD_camo","weapon"},
{"M40A3","weapon"},
{"100Rnd_762x54_PK","magazine"}
};
itemChance[] ={
0.10,
0.05,
0.01,
0.02,
//0.01, //m136
0.10,
0.02,
0.10,
0.10,
0.10,
0.01,
0.01,
0.20,
0.01,
0.02,
0.10,
0.03,
0.20,
0.10,
0.20,
0.01,
0.04,
0.05,
0.02,
0.01,
0.08,
0.04,
0.02,
//0.01, //NVGoggles
0.10,
0.05,
0.15,
0.01, //ItemGPS
0.03,
0.01,
//Bags
0.08, //16
0.08, //16
0.06, //18
0.01, //24
0.01, //DZ_Backpack_EP1 24
0.30,
1.00,
5.00, //military
//0.20,
0.01, //PipeBomb
0.01, //Sa58V_RCO_EP1
0.01, //Sa58V_CCO_EP1
//0.01, //{"G36_C_SD_camo","weapon"},
0.02, // M40A3
0.01//("100Rnd_762x54_PK","magazine"}
};
};
Hope it helps somebody like it did me.

Also, I'm looking to edit what is included in the ["","military"], I know it's located in the configloot.hpp but since I host with Dayz.st I can't access that. Would there be a way for me to overwrite it in my mission or server PBOs? And if so how might I do that?
 
I had this working for a while and was spawning everything correctly and now i get stuck on requesting authentication and then ticks over to something went wrong, do you see where i went wrong, Also w4ssp this has the correct Crashsite in it for you.
 

Attachments

  • server.pbo
    73.1 KB · Views: 13
Can anyone see anything wrong with my file? I get:
22:20:50 Error in expression <_EP1","weapon"], ["M107_DZ","weapon"], [“BAF_AS50_scoped”,”weapon”], ["b>
22:20:50 Error position: <“BAF_AS50_scoped”,”weapon”], ["b>
22:20:50 Error Invalid number in expression
22:20:50 File z\addons\dayz_server\compile\server_spawnCrashSite.sqf, line 87
22:20:50 Error in expression <_EP1","weapon"], ["M107_DZ","weapon"], [“BAF_AS50_scoped”,”weapon”], ["b>
22:20:50 Error position: <“BAF_AS50_scoped”,”weapon”], ["b>
22:20:50 Error Invalid number in expression

It is attached. Mucho thanks to whoever can help figure this out.
 

Attachments

  • server_spawnCrashSite.sqf
    5.6 KB · Views: 13
What about itemTent, and itemGPS?

["ItemTent","magazine"]????????
["ItemGPS","magazine"],????????

Would these be object, weapon, and/or magazine? I have admin tools that have custom weapon loadouts and tool belt items and the NVG, bino vectors are spawned with ----> GearAdd addWeapon 'itemGPS'

Also was wondering if I could delete this tid bit of code? Was there something missing on the military line?

["???????", "military"],
["MedBox0", "object"],
 
Sorry for asking already answered questions above!

["ItemTent","magazine"]//still wondering if the itemTent would be and object like the backpacks??
["ItemGPS","weapon"], //good to go

["","military"], //what does this line do?
 
["","military"] is the chance to spawn nothing or trash same with ["", "generic"], ["", "trash"], ["", "food"], ["", "hospital"] (im not 100% but the food one might spawn cans of food)

tents look like ["WeaponHolder_ItemTent", "object"]
 
The "" designates random and the second part designates the table.

So, that would pull random military gear.

Trash is just the "" trash
Random food is "" food
Random civil stuff is "" generic

Etc
 
hi, how can this work in taviana 2.0? i have been trying to read around for hours, and i cant find any help for it.
I just want some extra crash sites in my newly rented taviana server, thats all.

I would be very happy if someone could help me with this!

thx
 
For one every hour it would look like this:
Code:
// [_guaranteedLoot, _randomizedLoot, _frequency, _variance, _spawnChance, _spawnMarker, _spawnRadius, _spawnFire, _fadeFire]
nul = [4, 4, (60 * 60), (0 *1), 1, 'center', 4000, true, false] spawn server_spawnCrashSite;
[/quote]

i have a question what would happen if i was to change the variance for e.g
Code:
// [_guaranteedLoot, _randomizedLoot, _frequency, _variance, _spawnChance, _spawnMarker, _spawnRadius, _spawnFire, _fadeFire]
nul = [4, 4, (5 * 10), (0 *1), 1, 'center', 4000, true, false] spawn server_spawnCrashSite;
what would happen then :) ?
 
Back
Top