Repository navigation
Port recent DayZ source updates - #7
devin-ai-integration[bot] merged 1 commit into
Conversation
There was a problem hiding this comment.
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.
| if (SteamRemoteStorage()->FileExists(cloudFileName)) | ||
| { | ||
| if (QIFileFunctions::FileExists(filename)) | ||
| { | ||
| int64 cloudTimeStamp = SteamRemoteStorage()->GetFileTimestamp(cloudFileName); | ||
| int64 profileTimeStamp = QIFileFunctions::TimeStamp(filename); | ||
| if (profileTimeStamp < cloudTimeStamp) |
There was a problem hiding this comment.
🔴 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.
Was this helpful? React with 👍 or 👎 to provide feedback.
Port recent DayZ source updates + build fixes (supersedes #7)
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.