Request Help - Detailed kill messages for Overwatch

Also, I tried your fix for my server_playerdied.sqf by changing
Code:
_victim = _this select 2;
to
Code:
_victim = _this select 5;
but it doesn't work and I get this error
Code:
18:22:39 WARNING: Function 'name' - C. Blackburn  is dead
18:22:39 Error in expression <ect 3;
_playerName =     name _newObject;

_victim removeAllEventHandlers "MPHit";
>
18:22:39   Error position: <_victim removeAllEventHandlers "MPHit";
>
18:22:39   Error Undefined variable in expression: _victim
18:22:39 File z\addons\dayz_server\compile\server_playerDied.sqf, line 11

Im not sure what is going on I'm a bit confused on what files you are using and what not :p.

if you use the player_died in your original post try: _victim = _this select 9;
 
Yea everything I read said it's a bad server_monitor, and I've found a server_monitor that did update tents, just spawned vehicles wonky. I know about that code above, but placement in the "updated" server_monitor.sqf was what I don't know. It works fine in my current server_monitor.sqf however.

RPT error
Code:
diag_log ("HIVE: got>
18:19:54   Error Undefined variable in expression: _hiveresponse
18:19:54 File z\addons\dayz_server\system\server_monitor.sqf, line 77
18:19:54 Error in expression <,6,6,2,2,1,7,10,5,1,1,1,1,2,1,1,3,1,3,2,>
18:19:54   Error position: <>
18:19:54   Error Missing ]
18:19:54 Error in expression <,6,6,2,2,1,7,10,5,1,1,1,1,2,1,1,3,1,3,2,>
18:19:54   Error position: <>
18:19:54   Error Missing ]
18:19:54 Error in expression <ray = call compile format ["%1",_data];
_resultArray;
};

onPlayerDisconnected     >
18:19:54   Error position: <_resultArray;
};
http://pastebin.com/657a2j3A Server_monitor.sqf thanks dude.

These kinds of errors go above my knowledge of Arma/DayZ. I normally fix stuff like this by just trying stock files and see if it persist then one by one add my own code back.
 
These kinds of errors go above my knowledge of Arma/DayZ. I normally fix stuff like this by just trying stock files and see if it persist then one by one add my own code back.
ok no big deal. Thanks man.
as for the server_playerdied.sqf yes Im using the very original one I posted. When you gave me that correction tip, was the intended for the one you pasted or the one I pasted? I'll try changing it to 9 on the one Im using now.
 
Code:
22:29:30 WARNING: Function 'name' - Wayton is dead
22:29:30 Error in expression <ect 3;
_playerName =  name _newObject;


_victim removeAllEventHandlers "MPHit";
>
22:29:30  Error position: <_victim removeAllEventHandlers "MPHit";
>
22:29:30  Error Undefined variable in expression: _victim
22:29:30 File z\addons\dayz_server\compile\server_playerDied.sqf, line 11

No luck, maybe 6?
 
Nah something is messed up. I thought it was 9 since _victim is the 9th passed variable to that function but it seems like you got something else going on. And having a error in server_playerDied.sqf is really bad as it causes people to not die properly and respawn at their body.
 
Nah something is messed up. I thought it was 9 since _victim is the 9th passed variable to that function but it seems like you got something else going on. And having a error in server_playerDied.sqf is really bad as it causes people to not die properly and respawn at their body.
yea Ive had that happen before. It's weird that it works when it's 2, and when I change that to another number it stops working. And so far no one is spawning back at their bodies.

I was looking at yours, are you sure
#include "\z\addons\dayz_server\compile\server_toggle_debug.hpp"
doesn't need to be at the top? Not even sure what that does
 
Im looking at this RPT error that says error in position
Code:
 <_victim removeAllEventHandlers "MPHit";
and when I look at your playerdied.sqf it looks like
Code:
 _victim = _this select 2;
_victim removeAllEventHandlers "MPHit";
but mine is the opposite
Code:
_victim removeAllEventHandlers "MPHit";
_victim = _this select 2;
Yours doesn't work but gives me no errors, mine works and gives me an error. Hmmm
 
Yea I'll give it a go. I don't know how ANY of this works hahaha, Ive been "winging it" for the last year and a half.
 
Last edited:
ok sooo they kind of work now lol. I get an error in my RPT
Code:
10:24:55 Error in expression < 3;
_playerName =     name _newObject;

_victim removeAllEventHandlers "MPHit";
>
10:24:55   Error position: <_victim removeAllEventHandlers "MPHit";
>
10:24:55   Error Undefined variable in expression: _victim
10:24:55 File z\addons\dayz_server\compile\server_playerDied.sqf, line 12
but I only saw it work once, and I had someone kill me a few times. So they seem very very infrequent, which is sort of how mine work too.. So weird. I think it must have something to do with that fnc_plyerhit thing.. the format or something.
do you know if adding
#include "\z\addons\dayz_server\compile\server_toggle_debug.hpp"
to the top makes any difference? mine has it and yours does not.
 
Back
Top