Skip to content

Port recent DayZ source updates - #7

Merged
devin-ai-integration[bot] merged 1 commit into
Personed:mainfrom
Arthurnashh:codex/recent-source-fixes-20261120
Nov 21, 2026
Merged

devin-ai-integration[bot] merged 1 commit into
Personed:mainfrom
Arthurnashh:codex/recent-source-fixes-20261120

Conversation

@Arthurnashh

@Arthurnashh Arthurnashh commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

This PR carries the 24 recently modified C++ source and header files from the local DayZ source tree (Nov 19–20, 2026). It contains source files only; no executables, PBOs, project files, or generated build output.


Devin Review

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 3 potential issues.

🐛 2 issues in files not directly in the diff

🐛 Shader startup failure on clean installations

On installations without a shader cache, InitShaderDirs searches the build-tree location instead of the packaged executable-relative directory. ShaderCacheFileDesc::Init treats missing sources without a cache as fatal, so the game cannot start.


🐛 Primary display crash in graphics fallback

When graphics initialization falls back to DirectDraw, DDEnumCallbackEx dereferences the primary display's null lpGUID if its monitor matches. The game crashes before creating the graphics device.

Devin Review

Comment thread lib/world.cpp
Comment on lines +19133 to +19139
if (SteamRemoteStorage()->FileExists(cloudFileName))
{
if (QIFileFunctions::FileExists(filename))
{
int64 cloudTimeStamp = SteamRemoteStorage()->GetFileTimestamp(cloudFileName);
int64 profileTimeStamp = QIFileFunctions::TimeStamp(filename);
if (profileTimeStamp < cloudTimeStamp)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 Cloud profile loss on new machines

On a new machine, SteamProfileNSLoader skips downloading an existing cloud profile because the local file does not exist. LoadProfileNamespace starts empty, and a later SaveProfileNamespace overwrites the cloud profile with the replacement.

Learn more

Cloud restoration is nested inside a local-file existence check. LoadProfileNamespace resets the namespace and loads that same local file after this loader returns. SaveProfileNamespace subsequently saves and uploads the resulting namespace, with no protection for a cloud profile that was never downloaded.

Example: A player has profile variables saved in Steam Cloud and installs on a second computer. There is no local .vars file, so the existing cloud file is ignored. Saving the newly initialized profile replaces the remote variables.

Recommended fix: Download when the cloud file exists and the local file is missing, as well as when the cloud file is newer. Handle download failure before allowing a replacement upload, and test cloud-only restoration.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

devin-ai-integration Bot pushed a commit that referenced this pull request Nov 21, 2026
Port recent DayZ source updates + build fixes (supersedes #7)
@devin-ai-integration
devin-ai-integration Bot merged commit 7caef9b into Personed:main Nov 21, 2026
2 of 3 checks passed
@devin-ai-integration

Copy link
Copy Markdown
Contributor

Superseded by #9, which carries this PR's content plus the build fixes needed for Retail/Retail Server x64 (the head branch lives on a fork maintainers can't push to, so fixes went through #9). All Devin Review findings were addressed there as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant