Jump to content
Noster

Stuck at loading after modifying crashed heli loot

Recommended Posts

I rented a dayz.st server and wanted to add other ArmA 2 OA weapons. I enabled rmod and edited the crashed heli spawn to spawn the weapons I wanted. I get stuck at loading when I try to launch the server, and the only files available to me are the server.pbo and misson.pbo. I was wondering if it was possible to make your own loot spawn, such as the scar, in the dayz.st server?

I went through several tutorials and troubleshoot threads on this and could not find a solution for this specific problem. Any help would be highly appreciated!

The only text I edited was the following from the server.pbo

spawn_heliCrash = {

private["_position","_veh","_num","_config","_itemType","_itemChance","_weights","_index","_iArray"];

waitUntil{!isNil "BIS_fnc_selectRandom"};

if (isDedicated) then {

_position = [getMarkerPos "center",0,4000,10,0,2000,0] call BIS_fnc_findSafePos;

diag_log("DEBUG: Spawning a crashed helicopter at " + str(_position));

_veh = createVehicle ["UH1Wreck_DZ",_position, [], 0, "CAN_COLLIDE"];

dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_veh];

_veh setVariable ["ObjectID",1,true];

dayzFire = [_veh,2,time,false,false];

publicVariable "dayzFire";

if (isServer) then {

nul=dayzFire spawn BIS_Effects_Burn;

};

_num = round(random 4) + 3;

_config = configFile >> "CfgBuildingLoot" >> "HeliCrash";

_ItemType = [["SCAR_H_CQC_CCO", "weapon"], ["SCAR_H_CQC_CCO_SD", "weapon"], ["M4A1_HWS_GL_SD_Camo", "weapon"], ["M8_carbine", "weapon"], ["SCAR_H_LNG_Sniper", "weapon",], ["SCAR_H_LNG_Sniper_SD", "weapon"], ["BAF_L85A2_RIS_SUSAT", "weapon"], ["M40A3", "weapon"], ["Mk_48_DZ", "weapon"], ["M249_DZ weapon", "weapon"], ["SVD_CAMO", "weapon"], ["M32_EP1", "weapon"], ["MedBox0", "object"] , ["NVGoggles", "weapon"], ["AmmoBoxSmall_556", "object"], ["AmmoBoxSmall_762", "object"], ["Soldier1_DZ", "magazine"], ["Skin_Sniper1_DZ", "magazine"] , ["DZ_Backpack_EP1", "object"]];

//diag_log ("DW_DEBUG: _itemType: " + str(_itemType));

_itemChance = [0.05, 0.05, 0.02, 0.05, 0.05, 0.02, 0.01, 0.02, 0.03, 0.05, 0.01, 0.1, 1, 0.5, 0.1, 0.01, 0.1, 0.1, 0.03, 0.03];

//diag_log ("DW_DEBUG: _itemChance: " + str(_itemChance));

//diag_log ("DW_DEBUG: (isnil fnc_buildWeightedArray): " + str(isnil "fnc_buildWeightedArray"));

waituntil {!isnil "fnc_buildWeightedArray"};

_weights = [];

_weights = [_itemType,_itemChance] call fnc_buildWeightedArray;

//diag_log ("DW_DEBUG: _weights: " + str(_weights));

for "_x" from 1 to _num do {

//create loot

_index = _weights call BIS_fnc_selectRandom;

sleep 1;

if (count _itemType > _index) then {

//diag_log ("DW_DEBUG: " + str(count (_itemType)) + " select " + str(_index));

_iArray = _itemType select _index;

_iArray set [2,_position];

_iArray set [3,5];

_iArray call spawn_loot;

_nearby = _position nearObjects ["WeaponHolder",20];

{

_x setVariable ["permaLoot",true];

} forEach _nearBy;

};

};

};

};

Share this post


Link to post
Share on other sites

The problem is the scar dosen't exist in day z that might be your problem

Share this post


Link to post
Share on other sites

Here is a list of all guns not in the dayz game but can be spawned / loot set

AK_107_kobra.......................30Rnd_545x39_AK, 30Rnd_545x39_AKSD

AK_107_GL_kobra..................30Rnd_545x39_AK, 30Rnd_545x39_AKSD

AK_107_GL_pso....................30Rnd_545x39_AK, 30Rnd_545x39_AKSD

AK_107_pso.........................30Rnd_545x39_AK, 30Rnd_545x39_AKSD

AK_74_GL............................30Rnd_545x39_AK, 30Rnd_545x39_AKSD

AKS_74_pso.........................30Rnd_545x39_AK, 30Rnd_545x39_AKSD

AKS_74_U...........................30Rnd_545x39_AK, 30Rnd_545x39_AKSD

AKS_74_UN_kobra.................30Rnd_545x39_AK, 30Rnd_545x39_AKSD

Bizon..................................64Rnd_9x19_Bizon, 64Rnd_9x19_SD_Bizon

G36a..................................30Rnd_556x45_Stanag, 30Rnd_556x45_StanagSD, 30Rnd_556x45_G36, 30Rnd_556x45_G36SD

G36C.................................30Rnd_556x45_Stanag, 30Rnd_556x45_StanagSD, 30Rnd_556x45_G36, 30Rnd_556x45_G36SD

G36_c_SD_eotech................30Rnd_556x45_Stanag, 30Rnd_556x45_StanagSD, 30Rnd_556x45_G36, 30Rnd_556x45_G36SD

G36_camo...........................30Rnd_556x45_Stanag, 30Rnd_556x45_StanagSD, 30Rnd_556x45_G36, 30Rnd_556x45_G36SD

G36K..................................30Rnd_556x45_Stanag, 30Rnd_556x45_StanagSD, 30Rnd_556x45_G36, 30Rnd_556x45_G36SD

M16A4................................30Rnd_556x45_Stanag, 30Rnd_556x45_StanagSD

M16A4_GL...........................30Rnd_556x45_Stanag, 30Rnd_556x45_StanagSD

M16A4_ACG_GL....................30Rnd_556x45_Stanag, 30Rnd_556x45_StanagSD

M4A1_HWS_GL_camo............30Rnd_556x45_Stanag, 30Rnd_556x45_StanagSD

M4A1_HWS_GL_SD_camo.......30Rnd_556x45_Stanag, 30Rnd_556x45_StanagSD

M4A1_RCO_GL......................30Rnd_556x45_Stanag, 30Rnd_556x45_StanagSD

M4A1_Aim_camo..................30Rnd_556x45_Stanag, 30Rnd_556x45_StanagSD

Saiga12K.............................8Rnd_B_Saiga12_74Slug, 8Rnd_B_Saiga12_Pellets

Pecheneg...........................100Rnd_762x54_PK

PK.....................................100Rnd_762x54_PK

RPK_74...............................30Rnd_545x39_AK, 30Rnd_545x39_AKSD, 75Rnd_545x39_RPK

KSVK..................................5Rnd_127x108_KSVK

M40A3................................5Rnd_762x51_M24

M4SPR................................30Rnd_556x45_StanagSD

SVD...................................10Rnd_762x54_SVD

BAF_AS50_TWS...................5Rnd_127x99_as50

MakarovSD..........................8Rnd_9x18_MakarovSD

M4A3_RCO_GL_EP1...............30Rnd_556x45_Stanag, 30Rnd_556x45_StanagSD,

m240_scoped_EP1................100Rnd_762x51_M240

M249_EP1...........................200Rnd_556x45_M249

M249_m145_EP1..................200Rnd_556x45_M249

M60A4_EP1.........................100Rnd_762x51_M240

Mk_48_DES_EP1..................100Rnd_762x51_M240

M24_des_EP1......................5Rnd_762x51_M24

SVD_des_EP1......................10Rnd_762x54_SVD

SVD..................................10Rnd_762x54_SVD

SVD_NSPU_EP1...................10Rnd_762x54_SVD

revolver_gold_EP1................6Rnd_45ACP

Sa61_EP1...........................10Rnd_B_765x17_Ball, 20Rnd_B_765x17_Ball

UZI_SD_EP1.......................30Rnd_9x19_UZI_SD

M107................................10Rnd_127x99_m107

BAF_L110A1_Aim.................200Rnd_556x45_L110A1, 200Rnd_556x45_M249

BAF_L7A2_GPMG.................100Rnd_762x51_M240

BAF_L85A2_RIS_ACOG..........30Rnd_556x45_Stanag, 30Rnd_556x45_StanagSD,

BAF_L85A2_RIS_Holo...........30Rnd_556x45_Stanag, 30Rnd_556x45_StanagSD,

BAF_L85A2_RIS_SUSAT........30Rnd_556x45_Stanag, 30Rnd_556x45_StanagSD,

BAF_L85A2_UGL_ACOG.........30Rnd_556x45_Stanag, 30Rnd_556x45_StanagSD,

BAF_L85A2_UGL_Holo...........30Rnd_556x45_Stanag, 30Rnd_556x45_StanagSD,

BAF_L85A2_UGL_SUSAT.......30Rnd_556x45_Stanag, 30Rnd_556x45_StanagSD,

BAF_L86A2_ACOG...............30Rnd_556x45_Stanag, 30Rnd_556x45_StanagSD,

BAF_LRR_scoped................. 5Rnd_86x70_L115A1

BAF_LRR_scoped_W.............5Rnd_86x70_L115A1

Share this post


Link to post
Share on other sites

Doesn't rmod allow guns from AmA 2 and ArmA 2 OA?

Edited by Noster

Share this post


Link to post
Share on other sites

Don't think so, I think it's limited to the guns i listed, I never seen a scar in any private hive, and I might be wrong about it, but I think it's limited to the items/ guns i listed above.

Edit: I think the scar is the issue as it doesn't exist

EDIT: and the m8

No idea what the m32 is?

Edited by Gorski
  • Like 1

Share this post


Link to post
Share on other sites

Good luck, use that list for guns not in the dayz game itself, I don't think you can get the scar in, but lets see if someone with more experience can give you some light but I think it's limited to those guns, even check hackers, they can't even put the scar in, if they can't I doubt you can.

Edit

Heres the car list for DayZ that is spawnable in case you might be looking for it in the future

M1030 (Motorcycle)

Ikarus (Bus)

SkodaBlue

hilux1_civil_3_open (White Offroad Truck)

car_hatchback

V3S_Civ

car_sedan

Tractor

ATV_US_EP1

UAZ_Unarmed_TK_EP1

S1203_TK_CIV_EP1

Ural_TK_CIV_EP1

Old_bike_TK_INS_EP1

UH1H_DZ

Water:

PBX

Fishing_Boat

Smallboat_1

Smallboat_2

UAZ_CDF

Ural_CDF

UAZ_RU

TT650_Ins

Ural_INS

UralOpen_INS

TT650_Gue

SkodaGreen

SkodaRed

Skoda

VWGolf (Hatchback)

TT650_Civ

hilux1_civil_2_covered

hilux1_civil_1_open

datsun1_civil_1_open

datsun1_civil_2_covered

datsun1_civil_3_open

UralCivil

UralCivil2

Lada_base

LadaLM

Lada2

Lada1

ATV_CZ_EP1

LandRover_CZ_EP1 (Might be in game)

UAZ_Unarmed_UN_EP1

Lada1_TK_CIV_EP1

Lada2_TK_CIV_EP1

LandRover_TK_CIV_EP1

TT650_TK_CIV_EP1

Old_bike_TK_CIV_EP1

Old_moto_TK_CIV_EP1

hilux1_civil_3_open_EP1

SUV_TK_CIV_EP1

UAZ_Unarmed_TK_CIV_EP1

Volha_1_TK_CIV_EP1

Volha_2_TK_CIV_EP1

VolhaLimo_TK_CIV_EP1

Edited by Gorski

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×