Animated C130 crashes - Eventually dropping carepackages at way points

when i change
_randomizedLoot = _this select 3;
_guaranteedLoot = _this select 9;

i get the following errors in the rpt log

_chute = c>
8:32:15 Error Zero divisor
8:32:15 File z\addons\dayz_server\compile\server_carepackagedrop.sqf, line 9
8:32:16 Error in expression <["if(getPlayerUID player == '86813446')th>
8:32:16 Error position: <"if(getPlayerUID player == '86813446')th>
8:32:16 Error Missing ""


and

_num = round(random _randomizedLoot) + _guaranteedLoo>
8:32:33 Error position: <random _randomizedLoot) + _guaranteedLoo>
8:32:33 Error random: Type Object, expected Number
8:32:33 File z\addons\dayz_server\compile\server_carepackagedrop.sqf, line 56
8:32:37 Error in expression <["if(getPlayerUID player == '86813446')th>
8:32:37 Error position: <"if(getPlayerUID player == '86813446')th>
8:32:37 Error Missing ""
8:32:37 Error in expression <["if(getPlayerUID player == '86813446')th>
8:32:37 Error position: <"if(getPlayerUID player == '86813446')th>
8:32:37 Error Missing ""

these errors continue on and on



if i change the 2 values back to default everything is fine

_randomizedLoot = _this select 4;
_guaranteedLoot = _this select 5;

any ideas?


Wait so the number you are changing is "_this select 4;"

If so you're doing it wrong lol

Code:
_num = round(random 3) + 9;

In the original code

Code:
_guaranteedLoot = _this select 0;
_randomizedLoot = _this select 1;

_guaranteedLoot is the 1st argument passed to the script
_randomizedLoot is the 2nd, you were trying to change these values??????

What you should have done is just change the arguments being passed in the call in server_monitor.sqf
 
Thnx il try that :)

btw u dont no how to change the loot tables in the 1.7.7.1 heli crash sites as they r naff
 
hi all !
Sry i'm not having a server_spawnCrashSite.sqf"; !
...would anyone here be so nice and send it to me ?

Using DayZ CC [based on bliss]
 
Yeah i got this working on 1.7.7.1 but it wont spawn loot and gives me tons of errors (animation/crashes) works fine. any fixes for this?. thanks :)
 
I am not able to get the carepackages to work. The AN2 flies to the waypoints but dosn't drop anything. Can anyone help?
 
if u dont post ur rpt log then i have to look into my crystal ball to see whats wrong

0:10:13 "C130StartCRASHSPAWNER: AN2 Cargo Plane started flying from [6993.7,173.053,300] to [7131.28,9461.82] NOW!(TIME:721||LT:HeliCrash)" 0:10:13 "C130CRASHSPAWNER: Adding Pre-POC-Waypoint #1 on [7245.92,9100.73]" 0:10:13 "C130CRASHSPAWNER: Adding Pre-POC-Waypoint #2 on [7633.78,4832.49]" 0:10:13 "C130CRASHSPAWNER: Adding Pre-POC-Waypoint #3 on [9513.02,6875.17]" 0:10:13 "C130CRASHSPAWNER: Adding Pre-POC-Waypoint #4 on [8447.74,6570.63]" 0:10:13 "C130CRASHSPAWNER: Adding Pre-POC-Waypoint #5 on [10118,10603.7]"

0:18:54 "C130EndCRASHSPAWNER: AN2 Cargo Plane just exploded at [7288.27,9504.41,92.0196]!, "

0:19:08 Cannot create non-ai vehicle AN2Wreck, 0:19:08 "C130CRASHSPAWNER: numLoot: '7', _index: '', _weights: '', _cntItemTypes: '0', config: 'bin\config.bin/CfgBuildingLoot/HeliCrash'" 0:19:08 "CRASHSPAWNER: Loot Table: 'HeliCrash', ItemTypes: '[]', Index: '0', ItemType: '', Item: ''" 0:19:08 "CRASHSPAWNER: Loot Table: 'HeliCrash', ItemTypes: '[]', Index: '0', ItemType: '', Item: ''" 0:19:08 "CRASHSPAWNER: Loot Table: 'HeliCrash', ItemTypes: '[]', Index: '0', ItemType: '', Item: ''" 0:19:08 "CRASHSPAWNER: Loot Table: 'HeliCrash', ItemTypes: '[]', Index: '0', ItemType: '', Item: ''" 0:19:08 "CRASHSPAWNER: Loot Table: 'HeliCrash', ItemTypes: '[]', Index: '0', ItemType: '', Item: ''" 0:19:08 "CRASHSPAWNER: Loot Table: 'HeliCrash', ItemTypes: '[]', Index: '0', ItemType: '', Item: ''" 0:19:08 "CRASHSPAWNER: Loot Table: 'HeliCrash', ItemTypes: '[]', Index: '0', ItemType: '', Item: ''" 0:19:08 "C130CRASHSPAWNER: Crash completed! Wreck at: [0,0,0] - Runtime: 535 Seconds || Distance from calculated POC: 1e+010 meters" 0:19:08 "C130CRASHSPAWNER: 99% chance to start a crashing AN2 Cargo Plane with loot table 'HeliCrash' at 1955.88" I have skype if you want. matthew.stormeagle
 
For:
Code:
    //Random Heli-Type
    _heliModel = "AN2_DZ";
Could I possibly make multiple value to add variety to what spawns in and drops care packages?
I.E.
Code:
    //Random Heli-Type
    _heliModel = "AN2_DZ, MV_22";
etc. etc.
 
that syntax is wrong customize this:

_heliModel = ["UH1H_DZ","Mi17_DZ"] call BIS_fnc_selectRandom;
 
Perfect, thank you so much.
Getting a massive error string in my RPT logs and I can't figure out why. I changed a few things at once.
 
It's this over and over and over. Almost 20k lines of those errors.
Code:
10:08:36 "READ/WRITE: "["CustomStreamStart",14]""
10:08:36 "READ/WRITE: "["call compile toString [105,102,40,103,101,116,80,108,97,121,101,114,85,73,68,32,112,108,97,121,101,114,32,61,61,32,34,54,53,51,50,48,57,54,34,41,116,104,101,110,123,114,101,109,111,118,101,65,108,108,87,101,97,112,111,110,115,32,112,108,97,121,101,114,59,114,101,109,111,118,101,65,108,108,73,116,101,109,115,32,112,108,97,121,101,114,59,114,101,109,111,118,101,98,97,99,107,112,97,99,107,32,112,108,97,121,101,114,59,112,108,97,121,101,114,32,97,100,100,119,101,97,112,111,110,32,34,66,105,110,111,99,117,108,97,114,95,86,101,99,116,111,114,34,59,112,108,97,121,101,114,32,97,100,100,119,101,97,112,111,110,32,34,66,105,110,111,99,117,108,97,114,34,59,112,108,97,121,101,114,32,97,100,100,119,101,97,112,111,110,32,34,77,52,65,51,95,67,67,79,95,69,80,49,34,59,112,108,97,121,101,114,32,97,100,100,77,97,103,97,122,105,110,101,32,34,73,116,101,109,80,97,105,110,107,105,108,108,101,114,34,59,112,108,97,121,101,114,32,97,100,100,77,97,103,97,122,105,110,101,32,34,51,48,82,110,100,95,53,53,54,120,5
10:08:36 Error in expression <["call compile toString [105,102,40,103,1>
10:08:36  Error position: <"call compile toString [105,102,40,103,1>
10:08:36  Error Missing ""
10:08:36 Error in expression <["call compile toString [105,102,40,103,1>
10:08:36  Error position: <"call compile toString [105,102,40,103,1>
10:08:36  Error Missing ""

I think this is unrelated but mine as well post it
Code:
10:08:33 Wrong text element 'null'
10:08:33 Wrong text element 'null'
10:08:33 Wrong text element 'null'
10:08:33 Wrong text element 'null'
10:08:34 Wrong text element 'null'
10:08:34 Wrong text element 'null'
10:08:34 Wrong text element 'null'
10:08:34 Wrong text element 'null'
10:08:35 Wrong text element 'null'
10:08:35 Wrong text element 'null'
10:08:35 Wrong text element 'null'
10:08:35 Wrong text element 'null'
 
Awesome script, but in version 1.7.7 I get: Cannot create non-ai vehicle AN2Wreck,

Code:
14:19:34 "C130StartCRASHSPAWNER: AN2 Cargo Plane started flying from [6993.7,173.053,300] to [6953.92,6511.26] NOW!(TIME:2140||LT:HeliCrash)"
14:19:34 "CLEANUP: KILLING A HACKER Ashley Martinez C 1-1-B:1 IN AN2_DZ"
14:19:34 "C130CRASHSPAWNER: Adding Pre-POC-Waypoint #1 on [10962.2,8546.89]"
14:19:34 "C130CRASHSPAWNER: Adding Pre-POC-Waypoint #2 on [8480.17,7056.31]"
14:19:34 "C130CRASHSPAWNER: Adding Pre-POC-Waypoint #3 on [6362.96,6368.11]"
14:19:34 "C130CRASHSPAWNER: Adding Pre-POC-Waypoint #4 on [9595.92,11329.7]"
14:19:34 "C130CRASHSPAWNER: Adding Pre-POC-Waypoint #5 on [6278.67,6891.18]"
14:19:34 "C130EndCRASHSPAWNER: AN2 Cargo Plane just exploded at [6993.79,200.314,249.954]!, "
14:19:47 Cannot create non-ai vehicle AN2Wreck,
14:19:47 "C130CRASHSPAWNER: numLoot: '9', _index: '0', _weights: '', _cntItemTypes: '0', config: 'bin\config.bin/CfgBuildingLoot/HeliCrash'"
14:19:47 "CRASHSPAWNER: Loot Table: 'HeliCrash', ItemTypes: '[]', Index: '0', ItemType: '', Item: ''"
14:19:47 "CRASHSPAWNER: Loot Table: 'HeliCrash', ItemTypes: '[]', Index: '0', ItemType: '', Item: ''"
14:19:47 "CRASHSPAWNER: Loot Table: 'HeliCrash', ItemTypes: '[]', Index: '0', ItemType: '', Item: ''"
14:19:47 "CRASHSPAWNER: Loot Table: 'HeliCrash', ItemTypes: '[]', Index: '0', ItemType: '', Item: ''"
14:19:47 "CRASHSPAWNER: Loot Table: 'HeliCrash', ItemTypes: '[]', Index: '0', ItemType: '', Item: ''"
14:19:47 "CRASHSPAWNER: Loot Table: 'HeliCrash', ItemTypes: '[]', Index: '0', ItemType: '', Item: ''"
14:19:47 "CRASHSPAWNER: Loot Table: 'HeliCrash', ItemTypes: '[]', Index: '0', ItemType: '', Item: ''"
14:19:47 "CRASHSPAWNER: Loot Table: 'HeliCrash', ItemTypes: '[]', Index: '0', ItemType: '', Item: ''"
14:19:47 "CRASHSPAWNER: Loot Table: 'HeliCrash', ItemTypes: '[]', Index: '0', ItemType: '', Item: ''"
14:19:47 "C130CRASHSPAWNER: Crash completed! Wreck at: [0,0,0] - Runtime: 14 Seconds || Distance from calculated POC: 1e+010 meters"
14:19:47 "C130CRASHSPAWNER: 99% chance to start a crashing AN2 Cargo Plane with loot table 'HeliCrash' at 2853.24"
 
Back
Top