Animated Helicrashs 0.1 - Release

I really must say Grafzahl this is impressive, seems you're helping out lots of people with their issues too so bravo :)

While I'm on the subject of helping people out :( I've uploaded the files to our Hatchet Reloaded server and crashes are spawning in and doing their crashing animations but 2 things are troubling us... First the crashes are only routing to an off map location of chernarus (West of the map in the debug zone) and secondary the loot that appears on the ground is inactive, Basically we can't pick it up.

Any idea's why that would be?



p.s. Hopefully the static cords we just put in sort out the POC locations.



Thanks in advance, you've really done a stunning job here.

The Hatchet Reloaded Team.
 
I am running a Dayz.st Tavi 2.0

Just fired up the server and getting this:
] spawn server_spawnCrashSite;
};

>
14:31:52 Error position: <};

>
14:31:52 Error Missing {
14:31:52 File z\addons\dayz_server\system\server_monitor.sqf, line 240

Line 240 is mearly the close: };
I deleted this now? Is that the problem?
Also got this: 14:31:58 Cannot create non-ai vehicle MH6J_DZ,
this: _countr = _count>
14:31:58 Error Zero divisor
14:31:58 File z\addons\dayz_server\system\server_monitor.sqf, line 122
14:31:58 Error in expression < addMagazineCargoGlobal [_x,(_objWpnQty select _countr)];

and this: _countr = _count>
14:31:58 Error position: <select _countr)];
Any help would be great!
 
Removed it and still getting this:
_countr = _count>
15:00:51 Error Zero divisor
15:00:51 File z\addons\dayz_server\system\server_monitor.sqf, line 122
15:00:51 Error in expression < addMagazineCargoGlobal [_x,(_objWpnQty select _countr)];
 
One last question:
I made the possible mistake of installing Sycosis's AI instead of Sarge's. Could this be causeing a problem with this script?
 
Alright awesome! Yeah I've noticed it's mostly around mountains, and I'm only using hueys.

Zeveron, I am basically using what you have posted here. I inboxed you as well. I am still getting the above listed error. I have yet to see anything in the rpt.log that says there has been any type of crash spawned. Any advice? Thanks in advance

Graf, awesome work man! I look forward to getting this working!!
 
ok, update, above error is gone! Just had to delete to MH6J and whamo. However.....

I still cannot get this script to run :(

WHere in the server_functions.sqf should I have the call line? It is currently at the very bottom.

Ive attached my server PBO if someone could take a look at it please? Thanks!
 

Attachments

  • dayz_server_bb_3_custom.pbo
    87.6 KB · Views: 4
Server: Object 3:245 not found (message 91)

I am getting this error though. Dont know if it is related.?
 
Please disregard all above post by myself at the moment! I now have the spawned message in my RPT log! I moved the call line to right above the original Tavi crash site code and "bingo" :)
 
Below is what my RPT is showing now. Can anyone tell me if this is normal or what the deal is?

18:04:39 UH1Wreck_DZ: MainTurret - unknown animation source MainTurret
18:04:39 UH1Wreck_DZ: MainGun - unknown animation source mainGun
18:04:39 UH1Wreck_DZ: Gatling - unknown animation source Gatling
18:04:39 "CRASHSPAWNER: Loot spawn at '[10577.5,7845.2,0]' with loot table '15.3165'"
18:04:39 "CRASHSPAWNER: Loot spawn at '[10585.9,7844.53,0]' with loot table '15.3165'"
18:04:39 "CRASHSPAWNER: Loot spawn at '[10578.4,7846.55,0]' with loot table '15.3165'"
18:04:39 Error in expression <(random _cntWeights);
_index = _weights select _index;
_itemType = _itemTypes se>
18:04:39 Error position: <select _index;
_itemType = _itemTypes se>
18:04:39 Error Zero divisor
18:04:39 File z\addons\dayz_server\compile\server_spawnCrashSite.sqf, line 438
18:04:39 "CRASHSPAWNER: Loot spawn at '[10583.4,7846.4,0]' with loot table '15.3165'"
18:04:39 "CRASHSPAWNER: Loot spawn at '[10587.8,7841.69,0]' with loot table '15.3165'"
18:04:39 "CRASHSPAWNER: Loot spawn at '[10574.7,7839.27,0]' with loot table '15.3165'"
18:04:39 Error in expression <(random _cntWeights);
_index = _weights select _index;
_itemType = _itemTypes se>
18:04:39 Error position: <select _index;
_itemType = _itemTypes se>
18:04:39 Error Zero divisor
18:04:39 File z\addons\dayz_server\compile\server_spawnCrashSite.sqf, line 438
 
First of all, I have to say a big thanks to Zeveron for his assistance and to Grafzahl for this excellent script. It is working very nicely indeed. I am currently in the process of fine tuning it and have a few questions;

300, //Fixed-Time (in seconds) between each start of a new Chopper
300, //Random time (in seconds) added between each start of a new Chopper

At what point does the timer begin for these? Once the heli crash is marked as completed in the rpt log? It seems like it begins to count down as soon as the next heli spawns, but if the timer reaches 0 and the heli is still flying it waits until the instant the current heli crash is marked as completed in the rpt log, then instantly spawns a new heli.

5000, //Radius in Meters from the Center-Marker in which the Choppers can crash and get waypoints
1, //Amount of Random-Waypoints the Heli gets before he flys to his Point-Of-Crash
0.2 //Amount of Damage the Heli has to get while in-air to explode before the POC.

These 3 variables all seem to take a hit under a heavy load. Once the server is 20+ players there is no problem at all with the helis spawning, but they are flying incredibly slowly and seem to take more damage (hits being registered very slowly?). In the logs the time between 1 crash being completed and the next heli being spawned is minimal, but the time from spawn to crash increases a lot. I've personally witnessed a UH-1H flying at well under 40KPH.


My real issue here is getting a balance between having very few helis when lots of players are on and having too many with very few players on. I currently have the heli speed set to 250, meaning they are nigh on impossible to hit with few players on, but under a heavy load do not fly unnaturally slowly.
 
Ok, I am no longer getting any errors in my RPT. However, I have yet to see one flying and yet to find one crashed! It says spawned, in route, crash complete, loot, etc. but yet I cannot find it. Do they disappear once the next one spaws? Plz help, lol!
 
Grrrr, I can say with the most certainty that these things are NOT working! My first rpt code is:
Code:
4:46:00 "CRASHSPAWNER: Starting spawn logic for animated helicrashs - written by Grafzahl [SC:true||PW:1||CD:0.8]"
4:46:00 "CRASHSPAWNER: 55% chance to start a crashing UH-1H with loot table 'HeliCrash' at 488"
4:46:00 "CLEANUP: INITIALIZING CLEANUP SCRIPT"

And then I get:

Code:
4:54:53 "WRITE: ["PASS"]"
4:55:05 "WRITE: ["PASS"]"
4:55:15 "CRASHSPAWNER: UH-1H started flying from [8582.35,14077.7,0] to [5099.79,8499.33,0.000133514] NOW!(TIME:490||LT:HeliCrash)"
4:55:16 "CRASHSPAWNER: Adding Pre-POC-Waypoint #1 on [4899.28,8062.1,-7.62939e-006]"
4:55:18 "WRITE: ["PASS"]"
4:55:30 "WRITE: ["PASS"]"

and finally I get:

Code:
4:57:30 "CRASHSPAWNER: UH-1H just exploded at [5265.36,8528.76,93.9329]!, "
4:57:34 "WRITE: ["PASS"]"
4:57:39 "HIVE: WRITE: "CHILD:305:"417":[183,[17468.6,5186.99,0.00138855]]:0.768:""
4:57:39 "WRITE: ["PASS"]"
4:57:39 "HIVE: WRITE: "CHILD:303:"417":[[["NVGoggles","Binocular_Vector","ItemGPS","ItemToolbox","ItemCompass","Remington870_lamp","AK_74","M40A3","G36_C_SD_eotech","M136"],[15,6,8,2,1,1,1,1,1,1]],[["ItemSodaCoke","ItemBloodbag","ItemWaterbottle","ItemMorphine","PartVRotor","ItemPainkiller","ItemBandage","PartFueltank","FoodSteakCooked","FoodSteakRaw","ItemTent","PartGlass","ItemAntibiotic","PartWheel","ItemJerrycan","PartEngine","ItemSandbag","ItemWire","PartWoodPile"],[2,10,5,15,4,7,2,2,13,6,2,10,7,3,1,2,23,19,7]],[["DZ_ALICE_Pack_EP1"],[1]]]:""
4:57:39 "WRITE: ["PASS"]"
4:57:39 "HIVE: WRITE: "CHILD:305:"669":[182,[17472.7,5188.47,0.00163269]]:0.692:""
4:57:39 "WRITE: ["PASS"]"
4:57:39 "HIVE: WRITE: "CHILD:305:"42":[184,[17464.6,5188.84,-0.00151062]]:0.841:""
4:57:39 "WRITE: ["PASS"]"
4:57:39 "HIVE: WRITE: "CHILD:306:"417":[["glass1",0.514],["glass2",0.747],["glass3",0.842],["glass4",0.516],["wheel_1_1_steering",0.15],["wheel_2_1_steering",0.211],["wheel_1_3_steering",0.189],["wheel_2_3_steering",0.193],["wheel_1_2_steering",0.193],["wheel_2_2_steering",0.193],["motor",0.143],["karoserie",0.033],["palivo",0.038]]:0.016:""
4:57:39 "WRITE: ["PASS"]"
4:57:39 "HIVE: WRITE: "CHILD:306:"669":[]:0:""
4:57:39 "HIVE: WRITE: "CHILD:306:"42":[["glass1",1],["glass2",1],["glass3",0.937],["glass4",1],["wheel_1_1_steering",0.395],["wheel_2_1_steering",0.472],["wheel_1_3_steering",0.034],["wheel_2_3_steering",0.038],["wheel_1_2_steering",0.012],["wheel_2_2_steering",0.012],["karoserie",0.086],["palivo",0.09]]:0.024:""
4:57:39 "WRITE: ["PASS"]"
4:57:39 "WRITE: ["PASS"]"
4:57:43 UH1Wreck_DZ: MainTurret - unknown animation source MainTurret
4:57:43 UH1Wreck_DZ: MainGun - unknown animation source mainGun
4:57:43 UH1Wreck_DZ: Gatling - unknown animation source Gatling
4:57:43 "CRASHSPAWNER: Loot spawn at '[5160.79,8370.17,0]' with loot table '15.3165'"
4:57:43 "CRASHSPAWNER: Loot spawn at '[5161.6,8379.71,0]' with loot table '15.3165'"
4:57:43 "CRASHSPAWNER: Loot spawn at '[5150.59,8378.78,0]' with loot table '15.3165'"
4:57:43 "CRASHSPAWNER: Loot spawn at '[5151.67,8377.48,0]' with loot table '15.3165'"
4:57:43 "CRASHSPAWNER: Loot spawn at '[5152.2,8372.99,0]' with loot table '15.3165'"
4:57:43 "CRASHSPAWNER: Crash completed! Wreck at: [5157.08,8375.68,0.00171661] - Runtime: 148 Seconds || Distance from calculated POC: 137 meters"
4:57:43 "CRASHSPAWNER: 55% chance to start a crashing UH-1H with loot table 'HeliCrash' at 1140.6"
4:57:46 "WRITE: ["PASS"]"

Soooooo, is something in this code indicating a problem? It looks to me like its working here. In game I had myself and 2 others in seperate heli's looking for these things and none of us seen any flying and there are no crashes on the ground. Please tell me that theres someone that can help. Id hate to go back to the regular crashes :(
 
I have had it on my server a few days now and only seen 2. Its a big old map so just hard to see im guessing. I do have mone set to 100% chance and not 55% so know one spawns every time.

Im no scripter but your log looks ok to me.. its showing that it crashed and loot spawned
 
you should just teleport yourself to the exact position of the crash site, grafzahl left you the coordinates for a reason.
 
Grrrr, I can say with the most certainty that these things are NOT working! My first rpt code is:
Code:
4:46:00 "CRASHSPAWNER: Starting spawn logic for animated helicrashs - written by Grafzahl [SC:true||PW:1||CD:0.8]"
4:46:00 "CRASHSPAWNER: 55% chance to start a crashing UH-1H with loot table 'HeliCrash' at 488"
4:46:00 "CLEANUP: INITIALIZING CLEANUP SCRIPT"

And then I get:

Code:
4:54:53 "WRITE: ["PASS"]"
4:55:05 "WRITE: ["PASS"]"
4:55:15 "CRASHSPAWNER: UH-1H started flying from [8582.35,14077.7,0] to [5099.79,8499.33,0.000133514] NOW!(TIME:490||LT:HeliCrash)"
4:55:16 "CRASHSPAWNER: Adding Pre-POC-Waypoint #1 on [4899.28,8062.1,-7.62939e-006]"
4:55:18 "WRITE: ["PASS"]"
4:55:30 "WRITE: ["PASS"]"

and finally I get:

Code:
4:57:30 "CRASHSPAWNER: UH-1H just exploded at [5265.36,8528.76,93.9329]!, "
4:57:34 "WRITE: ["PASS"]"
4:57:39 "HIVE: WRITE: "CHILD:305:"417":[183,[17468.6,5186.99,0.00138855]]:0.768:""
4:57:39 "WRITE: ["PASS"]"
4:57:39 "HIVE: WRITE: "CHILD:303:"417":[[["NVGoggles","Binocular_Vector","ItemGPS","ItemToolbox","ItemCompass","Remington870_lamp","AK_74","M40A3","G36_C_SD_eotech","M136"],[15,6,8,2,1,1,1,1,1,1]],[["ItemSodaCoke","ItemBloodbag","ItemWaterbottle","ItemMorphine","PartVRotor","ItemPainkiller","ItemBandage","PartFueltank","FoodSteakCooked","FoodSteakRaw","ItemTent","PartGlass","ItemAntibiotic","PartWheel","ItemJerrycan","PartEngine","ItemSandbag","ItemWire","PartWoodPile"],[2,10,5,15,4,7,2,2,13,6,2,10,7,3,1,2,23,19,7]],[["DZ_ALICE_Pack_EP1"],[1]]]:""
4:57:39 "WRITE: ["PASS"]"
4:57:39 "HIVE: WRITE: "CHILD:305:"669":[182,[17472.7,5188.47,0.00163269]]:0.692:""
4:57:39 "WRITE: ["PASS"]"
4:57:39 "HIVE: WRITE: "CHILD:305:"42":[184,[17464.6,5188.84,-0.00151062]]:0.841:""
4:57:39 "WRITE: ["PASS"]"
4:57:39 "HIVE: WRITE: "CHILD:306:"417":[["glass1",0.514],["glass2",0.747],["glass3",0.842],["glass4",0.516],["wheel_1_1_steering",0.15],["wheel_2_1_steering",0.211],["wheel_1_3_steering",0.189],["wheel_2_3_steering",0.193],["wheel_1_2_steering",0.193],["wheel_2_2_steering",0.193],["motor",0.143],["karoserie",0.033],["palivo",0.038]]:0.016:""
4:57:39 "WRITE: ["PASS"]"
4:57:39 "HIVE: WRITE: "CHILD:306:"669":[]:0:""
4:57:39 "HIVE: WRITE: "CHILD:306:"42":[["glass1",1],["glass2",1],["glass3",0.937],["glass4",1],["wheel_1_1_steering",0.395],["wheel_2_1_steering",0.472],["wheel_1_3_steering",0.034],["wheel_2_3_steering",0.038],["wheel_1_2_steering",0.012],["wheel_2_2_steering",0.012],["karoserie",0.086],["palivo",0.09]]:0.024:""
4:57:39 "WRITE: ["PASS"]"
4:57:39 "WRITE: ["PASS"]"
4:57:43 UH1Wreck_DZ: MainTurret - unknown animation source MainTurret
4:57:43 UH1Wreck_DZ: MainGun - unknown animation source mainGun
4:57:43 UH1Wreck_DZ: Gatling - unknown animation source Gatling
4:57:43 "CRASHSPAWNER: Loot spawn at '[5160.79,8370.17,0]' with loot table '15.3165'"
4:57:43 "CRASHSPAWNER: Loot spawn at '[5161.6,8379.71,0]' with loot table '15.3165'"
4:57:43 "CRASHSPAWNER: Loot spawn at '[5150.59,8378.78,0]' with loot table '15.3165'"
4:57:43 "CRASHSPAWNER: Loot spawn at '[5151.67,8377.48,0]' with loot table '15.3165'"
4:57:43 "CRASHSPAWNER: Loot spawn at '[5152.2,8372.99,0]' with loot table '15.3165'"
4:57:43 "CRASHSPAWNER: Crash completed! Wreck at: [5157.08,8375.68,0.00171661] - Runtime: 148 Seconds || Distance from calculated POC: 137 meters"
4:57:43 "CRASHSPAWNER: 55% chance to start a crashing UH-1H with loot table 'HeliCrash' at 1140.6"
4:57:46 "WRITE: ["PASS"]"

Soooooo, is something in this code indicating a problem? It looks to me like its working here. In game I had myself and 2 others in seperate heli's looking for these things and none of us seen any flying and there are no crashes on the ground. Please tell me that theres someone that can help. Id hate to go back to the regular crashes :(

The logs look accurate. It shows the chopper crashing and spawning the loot and then another chopper loaded ready to go at 1140.6.

If it helps, I use BluePhoenix's Admin Tools to monitor these choppers. There is an ESP map feature in the tools that shows you vehicles on your map live, so I can see when a chopper appears over the water to the South and I can watch it take its path to its crash site. I have static sites in Chernarus setup so I like to make sure they are doing what they should be doing. I found that tool incredibly helpful for this and all sorts of script monitoring actually. :)

Hope that was helpful! First post on here and all... haha!

Also, thanks to Grafzahl for an amazing addon feature and also to everyone who has contributed to it. This truly adds a whole new level to the game. I know players on my server love it!
 
I've been getting this error lately and can't figure out where it's coming from.

Code:
14:04:37 "CRASHSPAWNER: Starting spawn logic for animated helicrashs - written by Grafzahl [SC:false||PW:1||CD:1]"
14:04:37 Error in expression <t table '%4' at %5", round(_spawnChance * 100), '%', _crashName, _lootTable, _ti>
14:04:37  Error position: <* 100), '%', _crashName, _lootTable, _ti>
14:04:37  Error *: Type String, expected Number

I am using Corsire's CC and I followed cryq's guide...not sure where I screwed up..lol

EDIT:

Found it in server_spawncrashsite

I have this set up:

Code:
        _config =        configFile >> "CfgBuildingLoot" >> _lootTable;
        _itemType =    [["FN_FAL", "weapon"], ["M8_SAW", "weapon"], ["M14_EP1", "weapon"], ["SCAR_L_CQC_EGLM_Holo", "weapon"], ["m8_carbineGL", "weapon"], ["SCAR_H_LNG_Sniper", "weapon"], ["Mk_48_DZ", "weapon"], ["M249_DZ", "weapon"], ["BAF_L85A2_RIS_Holo", "weapon"], ["DMR", "weapon"], ["", "military"], ["", "medical"], ["MedBox0", "object"], ["binocular_vector", "weapon"], ["AmmoBoxSmall_556", "object"], ["AmmoBoxSmall_762", "object"], ["Skin_Camo1_DZ", "magazine"], ["Skin_Sniper1_DZ", "magazine"], ["DZ_Backpack_EP1", "object"], ["SVD", "weapon"], ["M4A1_AIM_SD_camo", "weapon"]];
        _itemChance = [0.05, 0.02, 0.03, 0.02, 0.03, 0.01, 0.03, 0.03, 0.03, 0.01, 0.65, 0.65, 0.25, 0.03, 0.3, 0.3, 0.05, 0.05, 0.2, 0.01, 0.01];
        _index =        dayz_CBLBase  find "HeliCrash";
        _weights =        dayz_CBLChances select _index;
        _cntWeights = count _weights;

I was getting the error because I had _itemtype as _itemtypeS

lol amazing what one little letter can cause.

One thing I am wondering though, is I was having issues with a specific weapon seeminly taking up most of the loot piles even though its chance wasn't any higher than other weapons. Any have an idea why that could be?

This is my current code and I am waiting for my heli crash to go down to see if it has fixed the above issue.
 
Back
Top