- tbag_cdscommented on [DZG-1231]Hundreds of P3D Objects Missing or Invisible Across All Servers Since Latest Update(edited)tbag_cdscommented on [DZG-1231]Hundreds of P3D Objects Missing or Invisible Across All Servers Since Latest Update(edited)
I've been investigating this issue since the DayZ 1.30 update and have now successfully developed and tested a working fix for the affected P3D objects.
Affected version: 1.30.164078
Affected platforms: PlayStation, Xbox and potentially PC servers using vanilla JSON Object Spawner placements.After examining the updated DayZ scripts, asset configurations, server logs and conducting multiple in-game tests, the issue appears to originate from how the vanilla Object Spawner creates static
.p3dassets.Findings
Tested 21 custom Object Spawner JSON files containing 66,815 P3D placements.
Verified all 377 unique
.p3dasset paths referenced by these files still exist within the updated game assets.Confirmed that the server successfully loads and processes the JSON files without reporting spawning failures.
Identified that affected P3D objects were being created server-side but were not correctly visible to connected clients.
Isolated testing showed that objects created using the existing vanilla call had no network IDs, whereas changing
createLocaltofalseresulted in network IDs being assigned.Confirmed that invisible rocks, trees, bushes and vegetation could retain collision despite not being visible to players.
Identified cause
Within the vanilla
ObjectSpawner.c, the following line handles.p3dasset spawning:object = g_Game.CreateStaticObjectUsingP3D(item.name, vector.ArrayToVec(item.pos), vector.ArrayToVec(item.ypr), scale, true);However, the native function is defined as:
proto native Object CreateStaticObjectUsingP3D(string p3dFilename, vector position, vector orientation, float scale = 1.0, bool createLocal = false, bool objSpawner = false);The
trueargument is being passed tocreateLocal, meaning these objects are created locally rather than being correctly replicated to connected clients.Confirmed working correction
object = g_Game.CreateStaticObjectUsingP3D(item.name, vector.ArrayToVec(item.pos), vector.ArrayToVec(item.ypr), scale, false);Changing
createLocalfromtruetofalsesuccessfully resolves the visibility issue in our PC server testing.I developed a small override mod that replaces the affected Object Spawner behaviour while preserving existing JSON loading, object positions, rotations, scale and normal class-based object spawning.
The fix has now been fully tested in-game, with previously invisible rocks, trees, bushes and other P3D assets successfully restored and visible to connected players.
The server processed all 21 JSON files, creating 66,815 P3D objects and 39,969 class-based objects, with zero reported creation failures.
This issue affects direct
.p3dmodel placements loaded throughcfggameplay.jsonusingWorldsData.objectSpawnersArr, rather than normal class-name objects created throughCreateObjectEx().The successful PC workaround provides strong evidence that the vanilla
createLocalparameter is responsible for the visibility regression introduced in DayZ 1.30.Temporary workaround for PC server owners
To help other server owners affected by this issue, I've released the working override mod on Steam Workshop:
CDS DayZ 1.30 P3D Object Spawner Fix
https://steamcommunity.com/sharedfiles/filedetails/?id=3821589105
PC server owners can install this mod as a temporary workaround until an official fix is released.
It automatically restores affected P3D objects using existing Object Spawner JSON files, without requiring owners to modify or rebuild their custom placements.
Please note: This workaround is for PC servers only. Unfortunately, console server owners will still require an official fix from Bohemia Interactive.
Hopefully these findings and the confirmed working correction help the development team identify and resolve the underlying issue for all platforms.
Thanks for looking into this.