A3Antistasi / A3-Antistasi

A3-Antistasi is the new official Antistasi version
https://a3antistasi.enjin.com/
MIT License
79 stars 337 forks source link

[bug] Disconnect issue #197

Closed Jonathan-Rosewood closed 5 years ago

Jonathan-Rosewood commented 5 years ago

Version: 1.4.0.1

Mods: CBA, TFAR

Environment: MP dedicated

.rpt attatched? No

have you edited the missionfile?: Yes (add TFAR system component)

Issue:


 1:50:01 Player Jonathan disconnected.
 1:50:01 BattlEye Server: Player #0 Jonathan disconnected
 1:50:01 Client: Remote object 3:0 not found
 1:50:01 "antistasi-altis/BIS_fnc_log: HandleDisconnect : R Alpha 1-6:1"
 1:50:01 Error in expression <er _x} count (units _x) == 0) and (side group _x == buenos)) then
{
_uds = units>
 1:50:01   Error position: <group _x == buenos)) then
{
_uds = units>
 1:50:01   Error group: Type Group, expected Object
 1:50:01 File onPlayerDisconnect.sqf [A3A_fnc_onPlayerDisconnect], line 14
 1:50:01 Error in expression <er _x} count (units _x) == 0) and (side group _x == buenos)) then
{
_uds = units>
 1:50:01   Error position: <group _x == buenos)) then
{
_uds = units>
 1:50:01   Error Generic error in expression
 1:50:01 File onPlayerDisconnect.sqf [A3A_fnc_onPlayerDisconnect], line 14
wriley commented 5 years ago

Changing this on line 14 fixes this error.

side group _x == buenos ----> change to ----> side _x == buenos

This also made personal stats save work again when using ACE on a dedi server. With this error present it seems to corrupt the personal stats save, at least for loadout and personal garage when using ACE mod. Fixing this error made it work again for me.

Barbolani77 commented 5 years ago

???? That line is supposed to be fixed in the current latest update

wriley commented 5 years ago

???? That line is supposed to be fixed in the current latest update

https://github.com/A3Antistasi/A3-Antistasi/blob/master/A3-Antistasi/onPlayerDisconnect.sqf#L14

It's still there on master on github for me. Maybe a fix that didn't get pushed?

Jonathan-Rosewood commented 5 years ago

@wriley okay, thanks a lot!

I do not close until the repository contains this bug, so that others know about the existence of a solution.

Jonathan-Rosewood commented 5 years ago

onPlayerDisconnect.sqf (in 14 line)

    if (!(_x getVariable ["esNATO",false])) then
        {
+       if ((leader _x getVariable ["spawner",false]) and ({isPlayer _x} count (units _x) == 0) and (side _x == buenos)) then
-       if ((leader _x getVariable ["spawner",false]) and ({isPlayer _x} count (units _x) == 0) and (side group _x == buenos)) then
            {
            _uds = units _x;
Barbolani77 commented 5 years ago

Yes, it seems I messed up with something while pushing, on the next one!

Barbolani77 commented 5 years ago

Solved!