official-antistasi-community / A3-Antistasi

Antistasi Community Version - work in progress - Discord https://discord.com/invite/TYDwCRKnKX
https://antistasi.de
Other
227 stars 154 forks source link

[Bug]: savegame load for loadouts_rebel fails #2076

Closed TheJJ closed 3 years ago

TheJJ commented 3 years ago

Describe the bug

An error occurs when loading the server state:

2021-08-21 16:36:27:697 | Antistasi | Info | File: A3A_fnc_loadServer | Starting Persistent Load. | Called By: A3A_fnc_initServer
2021-08-21 16:36:27:707 | Antistasi | Error | File: A3A_fnc_returnSavedStat | Variable countCA does not exist. | Called By: A3A_fnc_getStatVariable
Weather was forced to change
Error in expression <vate _garrison = +(_x select 1);
{

if (_x find "loadouts_rebel" != 0) then { co>
  Error position: <_x find "loadouts_rebel" != 0) then { co>
  Error Undefined variable in expression: _x
File mpmissions\__cur_mp.Altis\functions\Save\fn_loadStat.sqf..., line 150
"server/BIS_fnc_log: [BIS_fnc_preload] ----- Scripts initialized at 19972 ms -----"
18:37:28 Game started.

How to reproduce

Not sure what we did for the bug to trigger. It was a 2.4 map, we updated to 2.5.0 and 2.5.1 and played happily with a few server restarts.

Version

2.5.1

Have you altered the code?

No

What i have changed

No response

Map

Altis

What server?

Private dedicated server

Time bug occured (Server time/UTC)

2021-08-21 16:36:27:707 CEST

Mods

No response

Additional context

No response

Lazejun commented 3 years ago

Thanks for Creating the issue,

We are aware of the Issue, there are Multiple methods to solve it quickly, pinned in the help channel on Discord.

2067 Will prevent it from happening.