• Tracker

    Spaces
    Browse
    Statistics
  • /
  • /Stable Feedback
  • /DZG-1543
Back
1

failed to load PlayerStats for characters last saved on 1.29:PlayerStatsPCO_v130 version number is lower than the 1.29 v

CharacterBugErrorServer
1

State

Open
Issue key
DZG-1543
Access
Public
Space
DayZ
Project
Stable Feedback
Creator
bench
Created
Oct 19, 2026
Views
9
Platform
Playstation
What happened?

1.29 saved characters at GAME_STORAGE_VERSION = 142, with PlayerStatsPCO_current extends PlayerStatsPCO_v115 (11 stats). In 1.30 (scripts/4_World/Classes/PlayerStats/PlayerStatsPCO.c):

  • PlayerStatsPCO_v130.GetVersion() returns 130 and adds a 12th stat, THERMAL_BIAS.

  • PlayerStatsPCO_current extends v130.

PCOHandler.GetPCO(142) searches downward from the save version, finds 130, and reads 12 stats from a blob that holds 11. PlayerBase.OnStoreLoad then prints "---- failed to load PlayerStats ----" and returns false. Everything after it is skipped: ModifiersManager, AgentPool, bleeding sources, thermal bias and the rest. The engine logs "state load does not correspond to state save".

Also, PlayerBase.OnStoreLoad (around line 7520) calls m_ThermalBiasHandler.OnStoreLoad(ctx, version) with no version check, unlike every earlier addition (>= 116, >= 125, >= 131, >= 134).

Seen on a live server (Xbox community server, Livonia, 1.30.164078.38). Four of 22 existing-character logins since the update logged:

SCRIPT : ---- failed to load PlayerStats ----
[ERROR][SurvivorM_Francis] :: state load does not correspond to state save

Each was the first 1.30 login for a character last saved on 1.29.

Reproduction steps
  1. On a 1.29 server, log in a character with active effects (a disease or a bleed) and log out.

  2. Update the server to 1.30 and log the same character in.

  3. The RPT shows "failed to load PlayerStats" and "state load does not correspond to state save". The character keeps its gear and position but loses its saved diseases, effects and other state.

Exact build version (optional)
1.30.164078
Where did it happen?
Community
Is it modded?
No
Expected result

Expected result: 1.29 characters load fully, with the 11 old stats read and THERMAL_BIAS set to its default.

Actual result: Loading stops at PlayerStats, and the rest of the character's state is thrown away.

Suggested fix:

  1. Version the new stats layout by the storage version that introduced it. Saves of 142 and below are 1.29, so:

class PlayerStatsPCO_v130 extends PlayerStatsPCO_Base
{
    override int GetVersion() { return 143; }

With that, GetPCO(142) falls back to v115 (11 stats).
2. Gate the new read in PlayerBase.OnStoreLoad:

if (version >= 143)
{
    if (!m_ThermalBiasHandler.OnStoreLoad(ctx, version))
        return false;
}

Already-affected characters correct themselves at their next save, so the fix only needs to protect characters that haven't logged in since the update.

Reactions

Activity

    about 5 hours ago
  • bench
    created issueabout 5 hours ago

You are not signed in. Please sign in to see more details and to reply.

State

Open
Issue key
DZG-1543
Access
Public
Space
DayZ
Project
Stable Feedback
Creator
bench
Created
Oct 19, 2026
Views
9