Error Undefined variable in expression: _safety

herculys

Member
I'm having problems with safety errors, making helicopter and heli-crash appear in the wilderness on the left of Kamenka. (this is also making my animated helicrash not work)



arma2oaserver.rpt file

http://pastebin.com/hDGeunWH

(this is my last error) any tip?
 
Code:
[LIST=1]
[*]dayz_serverObjectMonitor set [count dayz>
[*] 8:20:22   Error position: <dayz_serverObjectMonitor set [count dayz>
[*] 8:20:22   Error Undefined variable in expression: dayz_serverobjectmonitor
[*] 8:20:22 File z\addons\dayz_server\compile\server_spawnCrashSite.sqf, line 219
[*] 8:20:24 Error in expression <;
[*]

[*]

[*]

[*]dayz_serverObjectMonitor = _safety;
[*] 8:20:24   Error position: <_safety;
[*] 8:20:24   Error Undefined variable in expression: _safety
[/LIST]

dayz_serverobjectmonitor is an array of objects. To assign it to _safety (line 9)is incorrect .. unless _safety was an array of allowed objects.
But dayz_serverobjectmonitor is also undefined in line 3 ... and that variable is defined in your variables.sqf so .. you have issues .. Are you running Dayz or Epoch? Epoch uses pvdze_serverobjectmonitor

We would need to see the spawn crash site script.
 
well there you go. that script is written for dayz, not epoch. change the serverobjectmonitor to the correct variable and see how it progresses from there
 
i found "dayz_serverobjectmonitor" in server_clenaup.fsm and replaced it too,
qPR931S.jpg

My rpt file, greatly diminished.

but, even heli-crashes fall in the desert.

this is my rpt file now.
http://pastebin.com/eKAxKAfN


Code:
1:53:07 "CRASHSPAWNER: Starting spawn logic for animated helicrashs - written by Grafzahl [SC:false||PW:1||CD:1]"
1:53:07 "CRASHSPAWNER: 100% chance to start a crashing Mi-17 with loot table 'HeliCrash' at -5"
1:53:07 "CRASHSPAWNER: Mi-17 started flying from [6993.7,173.053,300] to [-2484.66,-259.776] NOW!(TIME:0||LT:HeliCrash)"
1:53:07 "EPOCH EVENTS INIT"
1:54:21 "CRASHSPAWNER: Adding Pre-POC-Waypoint #1 on [-1881.71,1097.47]"
1:54:23 "TIME SYNC: Local Time set to [2014,12,6,12,54]"

Code:
 1:57:16 "CRASHSPAWNER: Mi-17 just exploded at [-2328.95,-43.7832,97.7695]!, "

I can not understand, because they are going to negative coordinates in the desert, and why dont has loot.
 
i also tried this one
http://epochmod.com/forum/index.php?/topic/14928-animated-heli-crashes/


*Using default server_spawnCrashSite.sqf
*And default config for helicrash in server_monitor.sqf
*just replaced crash_spawner.sqf with this code >> http://pastebin.com/MyZuw1zx

I also tried adding these lines to see if changing the start time of helicrashes
Code:
_variance                 = 300;
_frequency                = 300;
_startTime                = 300;
_timeToSpawn            = 300;
_timeAdjust                = 300;
rpt file, (when i tried this)
http://pastebin.com/1v9Kcdcm

but the spawn time on rpt file is over 2500 seconds, and i cant change that (idk if is working too)
Code:
 9:51:52 "CRASHSPAWNER: Starting spawn logic for Crash Spawner"
9:51:52 "CRASHSPAWNER: 75% chance to spawn 'Crashed UH-1Y' with loot table 'Military' in 2565.78 seconds"
 
Last edited:
when the crashspawner starts its a random time until the helicopter starts flying, in this instance its waiting 2500 seconds,(about 40 minutes), the next crash after that might be 30min or 50min. the random,times add realism.
i,dont see any reference in your new crashspawn script where it has a timer delay. that must be set in epoch events outside this file.

does epoch have blood types? i thought that was dayz 1.8 and > only. but you are trying to spawn this
bloodBagONEG
if that is true, then you have mixed up dayz and epoch installations.

if someone knowledgeable can comment on blood types please.


if you like you can upload your mission and server pbo and i can take a look. rename,them so i know they are yours and upload to here.
http://iaretechnician.com/owncloud/index.php/apps/files?dir=//Public Uploads
i like my owncloud because it automatically downloads to my computer.
 
Back
Top