[Support] ESSV2

It looks like you are executing it on the server. It should be ran on the clients only. This step in the OP:


The execVM "spawn\start.sqf"; should be inside the if (!isDedicated) then { ... }; block so it only runs on clients, not the server. If you are using a headless client you do not want to execute this on him either.


Yep, I was using some old init from another time. the cmd was

Code:
waitUntil {!isNil ("PVDZE_plr_LoginRecord")}; if (dayzPlayerLogin2 select 2) then { [] execVM "custom\spawn\start.sqf";};

This is not going to work with this im guessing.
 
The death message code is in server_playerDied.sqf. The only modification to that file needed for this is adding the one line to setVariable the UID on the dead body. Make sure you added that line in the right place and there are no other errors in that file. If there were it would show in the server RPT. Other than that I doubt it is related.

ebay I want to show my gratitude but mention that with your script my kill messages fire once per restart, without them they work correctly more often than not. I'm thinking for now I'll just have to kill the kill messages... Forgive me, have only been looking at A2OA code for a few months. If you happen to have them working on a server that also has ESSv2 I'd love an easy fix.

my server_playerDied (thanks to
0verHeaT)
from

http://epochmod.com/forum/index.php?/topic/18327-release-custom-kill-messages/
Code:
private ["_characterID","_minutes","_newObject","_playerID","_infected","_victim","_victimName","_killer","_killerName","_weapon","_distance","_message","_loc_message","_key","_death_record","_pic","_kill_txt"];
//[unit, weapon, muzzle, mode, ammo, magazine, projectile]
_characterID =     _this select 0;
_minutes =        _this select 1;
_newObject =     _this select 2;
_playerID =     _this select 3;
_infected =        _this select 4;
if (((count _this) >= 6) && {(typeName (_this select 5)) == "STRING"} && {(_this select 5) != ""}) then {
    _victimName =    _this select 5;
} else {
    _victimName =  if (alive _newObject) then {name _newObject;} else {"";};
};
_victim = _newObject;
_newObject setVariable ["bodyName", _victimName, true];
_newObject setVariable ["bodyUID", _playerID, true];

_killer = _victim getVariable["AttackedBy", "nil"];
_killerName = _victim getVariable["AttackedByName", "nil"];

if ((typeName _killer) != "STRING") then {
    _weapon = _victim getVariable["AttackedByWeapon", "nil"];
    _distance = _victim getVariable["AttackedFromDistance", "nil"];
    _pic = _victim getVariable["AttackedByWeaponImg", "nil"];
    if ((owner _victim) == (owner _killer)) then {
        _loc_message = format["PLAYERSUICIDE: %1 killed himself", _victimName];
        _message = format ["%1 killed himself",_victimName];
    } else {
        _loc_message = format["PLAYERKILL: %1 was killed by %2 with weapon %3 from %4m", _victimName, _killerName, _weapon, _distance];
        _message = format ["%1 was killed by %2 with weapon %3 from %4m", _victimName, _killerName, _weapon, _distance];
   
        if ((gettext (configFile >> 'cfgWeapons' >> (currentWeapon _killer) >> 'displayName')) != "Throw") then {
            if (_pic != "nil") then {
                _kill_txt = format ["<t align='left' size='0.9'>%1 </t>",_killerName];
                _kill_txt = _kill_txt + format ["<img size='1.0' align='left' image='%1'/>",_pic];
                _kill_txt = _kill_txt + format ["<t align='left' size='0.9'> %1 </t>",_victimName];
                _kill_txt = _kill_txt + format ["<t align='left' size='0.9'>[%1m]</t>",(ceil _distance)];
               
                customkillMessage = [_kill_txt];
                publicVariable "customkillMessage";
            };
        };
    };

    diag_log _loc_message;
   
    if(DZE_DeathMsgGlobal) then {
        [nil, nil, rspawn, [_killer, _message], { (_this select 0) globalChat (_this select 1) }] call RE;
    };
    /* needs customRemoteMessage
    if(DZE_DeathMsgGlobal) then {
        customRemoteMessage = ['globalChat', _message, _killer];
        publicVariable "customRemoteMessage";
    };
    */
    if(DZE_DeathMsgSide) then {
        [nil, nil, rspawn, [_killer, _message], { (_this select 0) sideChat (_this select 1) }] call RE;
    };
    if(DZE_DeathMsgTitleText) then {
        [nil,nil,"per",rTITLETEXT,_message,"PLAIN DOWN"] call RE;
    };
   
    //Use my killboard in order to work correctly
    _death_record = [
        _victimName,
        _killerName,
        _weapon,
        _pic,
        _distance,
        ServerCurrentTime
    ];
    PlayerDeaths set [count PlayerDeaths,_death_record];
    PV_DeathBoard = PlayerDeaths;
    publicVariable "PV_DeathBoard";
   
    _victim setVariable["AttackedBy","nil", true];
    _victim setVariable["AttackedByName","nil", true];
    _victim setVariable["AttackedByWeapon","nil", true];
    _victim setVariable["AttackedFromDistance","nil", true];
    _victim setVariable["AttackedByWeaponImg","nil", true];
};

_newObject setVariable["processedDeath",diag_tickTime];

if (typeName _minutes == "STRING") then {
    _minutes = parseNumber _minutes;
};

diag_log ("PLAYERDEATH: Player Died " + _playerID);

if (_characterID != "0") then {
    _key = format["CHILD:202:%1:%2:%3:",_characterID,_minutes,_infected];
    #ifdef DZE_SERVER_DEBUG_HIVE
    diag_log ("HIVE: WRITE: "+ str(_key));
    #endif
    _key call server_hiveWrite;
} else {
    deleteVehicle _newObject;
};
 
Hello all.

I have tried to put this nice scrips on my server,but at that doesn't work.He spawn me random like before.
Im newbie with this,do you see my pictures and say to me it's that correct please ?
My host is GTXGaming.co.uk.


My dayz_server\compile\server_playerSetup.sqf:

1502130840435980312959290.png


My Init.sqf
1502130838085980312959287.png

1502130838095980312959288.png


My description.ext
1502130838075980312959286.png

My spawn folder place :
1502130847335980312959291.png


Does all that his correct please ? Thanks to you.
 
@ebay

I was wondering if it was possible to put a local marker on your dead body on the map.
So when you die, You can see that local marker and make it easier to spawn near your body.

And Maybe for DZMS, dead bodies of all your group members.
 
Again your hard work is great Ebay and thanks. Would it be easy to put the config files server side to give the script some more security?
Also, do you you have a donation page and/or website? I feel you deserve more credit for your work.
Cheers
Max
 
Again your hard work is great Ebay and thanks. Would it be easy to put the config files server side to give the script some more security?
Also, do you you have a donation page and/or website? I feel you deserve more credit for your work.
Cheers
Max

Use Public Variables like Old ESS

Thats what i Did
 
Hey ebay love your mods! I have been trying to upgrade my server from ESS to this and I keep getting this RPT error: ERROR: Cannot Sync Character Tarvitz as no characterID. I've gone through the install like 4 times and even went through the old install a few times and deleted everything relating to ESS, then tried to install the new version.

I'm still a little confused about what exactly I'm supposed to have my server_playersetup.sqf is it this code:

if (_randomSpot) then {
if (!isDedicated) then {endLoadingScreen;};
_debug = getMarkerpos "respawn_west";
_worldspace = [0,[_debug select 0,_debug select 1,0.3]];
};
or is the code in your link? it is not very clear. Plus, I already had that code from the old ESS install. Not sure if that is even the problem as I've tried it with both.

Oh, and I get no client RPT errors and I know that me trying to upgrade is causing this because, I have re-installed my back up many times and the error is always after trying to upgrade to this version.
 
Okay I fixed it. I had to totally re-install the server then update ESS before joining and that worked.
 
Disabling the plane for halo jumping causes client rpt spam, fixed it but just giving a heads up. (fixed with a couple extra isnil checks on the variable)
 
I thought I fixed it...It seems not.. I've traced my login problems to upgrading from ESS to ESS V2 and I'm still confused about how to go about upgrading. Mainly step 5 like I mentioned above. So, what is the best way to go about going from ESS to V2? remove old ESS code then install V2? or just make changes?

No RPT errors client or server (except the one I posted above) and the ESS works great. Just can't connect to server after restart until I delete my Clientside MPmission PBO for my server and rejoin.
 
Last edited:
Hey ebay thanks for the earlier help! I was still having a lot of problems with my last server, so I decided to start fresh. I am having an issue with ESS not working at all this time around. I went through the install a few times just to be sure I didn't forget anything and still no luck. I'm running the Tavi map on Overpoch with the current mods:
P4life
admintools
snap pro
vector build
walking Zeds.

Then I installed this. I haven't touched the spawn folder at all. (just in case that was the issue)
I'm thinking maybe my problem is plot 4 life (that mod just seems to give me all kinds of problems) but before I remove all the changes I thought I would run it by you.

Client RPT: http://pastebin.com/MTf83YKr
Server RPT http://pastebin.com/QKH0Zcxn
 
Back
Top